From 83132314122403fbc0e48188c2007a91a640d15f Mon Sep 17 00:00:00 2001 From: Matthieu Gouel Date: Mon, 24 Jun 2024 17:00:34 +0200 Subject: [PATCH] Update connector to be compatible with Netbox v3.7 Model has been regenerated to be compatible with Netbox v3.7 (2023-12-29). Note that we drop compatibility for older versions of Netbox. --- pkg/connector/netbox/database.go | 2 +- .../netbox/model/circuits_circuit.gen.go | 36 +++++---- .../model/circuits_circuittermination.gen.go | 36 +++++---- .../netbox/model/circuits_circuittype.gen.go | 8 +- .../netbox/model/circuits_provider.gen.go | 16 ++-- pkg/connector/netbox/model/dcim_cable.gen.go | 37 +++++----- .../netbox/model/dcim_cabletermination.gen.go | 27 +++++++ pkg/connector/netbox/model/dcim_device.gen.go | 55 +++++++------- .../netbox/model/dcim_devicerole.gen.go | 21 +++--- .../netbox/model/dcim_devicetype.gen.go | 37 ++++++---- .../netbox/model/dcim_frontport.gen.go | 38 +++++----- .../netbox/model/dcim_interface.gen.go | 74 ++++++++++--------- .../netbox/model/dcim_manufacturer.gen.go | 8 +- .../netbox/model/dcim_platform.gen.go | 21 +++--- .../netbox/model/dcim_rearport.gen.go | 36 +++++---- pkg/connector/netbox/model/dcim_site.gen.go | 39 +++++----- pkg/connector/netbox/model/extras_tag.gen.go | 10 +-- .../netbox/model/extras_taggeditem.gen.go | 12 ++- .../netbox/model/gen/auth_group.gen.go | 18 ----- .../model/gen/auth_group_permissions.gen.go | 19 ----- .../netbox/model/gen/auth_permission.gen.go | 20 ----- .../netbox/model/gen/auth_user.gen.go | 31 -------- .../netbox/model/gen/auth_user_groups.gen.go | 19 ----- .../gen/auth_user_user_permissions.gen.go | 19 ----- .../netbox/model/gen/circuits_circuit.gen.go | 30 -------- .../gen/circuits_circuittermination.gen.go | 28 ------- .../model/gen/circuits_circuittype.gen.go | 27 ------- .../netbox/model/gen/circuits_provider.gen.go | 32 -------- .../model/gen/circuits_provider_asns.gen.go | 19 ----- .../model/gen/circuits_providernetwork.gen.go | 29 -------- .../netbox/model/gen/dcim_cable.gen.go | 30 -------- .../netbox/model/gen/dcim_cablepath.gen.go | 24 ------ .../netbox/model/gen/dcim_consoleport.gen.go | 36 --------- .../model/gen/dcim_consoleporttemplate.gen.go | 29 -------- .../model/gen/dcim_consoleserverport.gen.go | 36 --------- .../gen/dcim_consoleserverporttemplate.gen.go | 29 -------- .../netbox/model/gen/dcim_device.gen.go | 42 ----------- .../netbox/model/gen/dcim_devicebay.gen.go | 29 -------- .../model/gen/dcim_devicebaytemplate.gen.go | 27 ------- .../netbox/model/gen/dcim_devicerole.gen.go | 29 -------- .../netbox/model/gen/dcim_devicetype.gen.go | 35 --------- .../netbox/model/gen/dcim_frontport.gen.go | 29 -------- .../model/gen/dcim_frontporttemplate.gen.go | 32 -------- .../netbox/model/gen/dcim_interface.gen.go | 50 ------------- .../gen/dcim_interface_tagged_vlans.gen.go | 19 ----- .../gen/dcim_interface_wireless_lans.gen.go | 19 ----- .../model/gen/dcim_interfacetemplate.gen.go | 30 -------- .../model/gen/dcim_inventoryitem.gen.go | 41 ---------- .../model/gen/dcim_inventoryitemrole.gen.go | 28 ------- .../gen/dcim_inventoryitemtemplate.gen.go | 37 ---------- .../netbox/model/gen/dcim_location.gen.go | 34 --------- .../netbox/model/gen/dcim_manufacturer.gen.go | 27 ------- .../netbox/model/gen/dcim_module.gen.go | 31 -------- .../netbox/model/gen/dcim_modulebay.gen.go | 29 -------- .../model/gen/dcim_modulebaytemplate.gen.go | 28 ------- .../netbox/model/gen/dcim_moduletype.gen.go | 28 ------- .../netbox/model/gen/dcim_platform.gen.go | 30 -------- .../netbox/model/gen/dcim_powerfeed.gen.go | 41 ---------- .../netbox/model/gen/dcim_poweroutlet.gen.go | 37 ---------- .../model/gen/dcim_poweroutlettemplate.gen.go | 31 -------- .../netbox/model/gen/dcim_powerpanel.gen.go | 27 ------- .../netbox/model/gen/dcim_powerport.gen.go | 37 ---------- .../model/gen/dcim_powerporttemplate.gen.go | 31 -------- .../netbox/model/gen/dcim_rack.gen.go | 41 ---------- .../model/gen/dcim_rackreservation.gen.go | 29 -------- .../netbox/model/gen/dcim_rackrole.gen.go | 28 ------- .../netbox/model/gen/dcim_rearport.gen.go | 28 ------- .../model/gen/dcim_rearporttemplate.gen.go | 31 -------- .../netbox/model/gen/dcim_region.gen.go | 32 -------- .../netbox/model/gen/dcim_site.gen.go | 38 ---------- .../netbox/model/gen/dcim_site_asns.gen.go | 19 ----- .../netbox/model/gen/dcim_sitegroup.gen.go | 32 -------- .../model/gen/dcim_virtualchassis.gen.go | 27 ------- .../netbox/model/gen/django_admin_log.gen.go | 28 ------- .../model/gen/django_content_type.gen.go | 19 ----- .../netbox/model/gen/django_migrations.gen.go | 24 ------ .../netbox/model/gen/django_session.gen.go | 23 ------ .../model/gen/extras_configcontext.gen.go | 28 ------- ...extras_configcontext_cluster_groups.gen.go | 19 ----- .../extras_configcontext_cluster_types.gen.go | 19 ----- .../gen/extras_configcontext_clusters.gen.go | 19 ----- .../extras_configcontext_device_types.gen.go | 19 ----- .../gen/extras_configcontext_platforms.gen.go | 19 ----- .../gen/extras_configcontext_regions.gen.go | 19 ----- .../gen/extras_configcontext_roles.gen.go | 19 ----- .../extras_configcontext_site_groups.gen.go | 19 ----- .../gen/extras_configcontext_sites.gen.go | 19 ----- .../gen/extras_configcontext_tags.gen.go | 19 ----- .../extras_configcontext_tenant_groups.gen.go | 19 ----- .../gen/extras_configcontext_tenants.gen.go | 19 ----- .../model/gen/extras_configrevision.gen.go | 24 ------ .../model/gen/extras_customfield.gen.go | 36 --------- .../extras_customfield_content_types.gen.go | 19 ----- .../netbox/model/gen/extras_customlink.gen.go | 32 -------- .../model/gen/extras_exporttemplate.gen.go | 30 -------- .../model/gen/extras_imageattachment.gen.go | 29 -------- .../netbox/model/gen/extras_jobresult.gen.go | 29 -------- .../model/gen/extras_journalentry.gen.go | 29 -------- .../model/gen/extras_objectchange.gen.go | 33 --------- .../netbox/model/gen/extras_tag.gen.go | 27 ------- .../netbox/model/gen/extras_taggeditem.gen.go | 17 ----- .../netbox/model/gen/extras_webhook.gen.go | 37 ---------- .../gen/extras_webhook_content_types.gen.go | 19 ----- .../netbox/model/gen/ipam_aggregate.gen.go | 29 -------- .../netbox/model/gen/ipam_asn.gen.go | 28 ------- .../netbox/model/gen/ipam_fhrpgroup.gen.go | 29 -------- .../model/gen/ipam_fhrpgroupassignment.gen.go | 27 ------- .../netbox/model/gen/ipam_ipaddress.gen.go | 26 ------- .../netbox/model/gen/ipam_iprange.gen.go | 32 -------- .../netbox/model/gen/ipam_prefix.gen.go | 27 ------- .../netbox/model/gen/ipam_rir.gen.go | 28 ------- .../netbox/model/gen/ipam_role.gen.go | 28 ------- .../netbox/model/gen/ipam_routetarget.gen.go | 27 ------- .../netbox/model/gen/ipam_service.gen.go | 30 -------- .../model/gen/ipam_service_ipaddresses.gen.go | 19 ----- .../model/gen/ipam_servicetemplate.gen.go | 28 ------- .../netbox/model/gen/ipam_vlan.gen.go | 32 -------- .../netbox/model/gen/ipam_vlangroup.gen.go | 31 -------- .../netbox/model/gen/ipam_vrf.gen.go | 29 -------- .../model/gen/ipam_vrf_export_targets.gen.go | 19 ----- .../model/gen/ipam_vrf_import_targets.gen.go | 19 ----- .../model/gen/social_auth_association.gen.go | 23 ------ .../netbox/model/gen/social_auth_code.gen.go | 25 ------- .../netbox/model/gen/social_auth_nonce.gen.go | 20 ----- .../model/gen/social_auth_partial.gen.go | 26 ------- .../gen/social_auth_usersocialauth.gen.go | 27 ------- .../netbox/model/gen/taggit_tag.gen.go | 19 ----- .../netbox/model/gen/taggit_taggeditem.gen.go | 20 ----- .../netbox/model/gen/tenancy_contact.gen.go | 32 -------- .../gen/tenancy_contactassignment.gen.go | 28 ------- .../model/gen/tenancy_contactgroup.gen.go | 32 -------- .../model/gen/tenancy_contactrole.gen.go | 27 ------- .../netbox/model/gen/tenancy_tenant.gen.go | 29 -------- .../model/gen/tenancy_tenantgroup.gen.go | 32 -------- .../model/gen/users_objectpermission.gen.go | 22 ------ .../gen/users_objectpermission_groups.gen.go | 19 ----- ...users_objectpermission_object_types.gen.go | 19 ----- .../gen/users_objectpermission_users.gen.go | 19 ----- .../netbox/model/gen/users_token.gen.go | 27 ------- .../netbox/model/gen/users_userconfig.gen.go | 19 ----- .../model/gen/virtualization_cluster.gen.go | 30 -------- .../gen/virtualization_clustergroup.gen.go | 27 ------- .../gen/virtualization_clustertype.gen.go | 27 ------- .../gen/virtualization_virtualmachine.gen.go | 37 ---------- .../gen/virtualization_vminterface.gen.go | 35 --------- ...ualization_vminterface_tagged_vlans.gen.go | 19 ----- .../model/gen/wireless_wirelesslan.gen.go | 31 -------- .../gen/wireless_wirelesslangroup.gen.go | 32 -------- .../model/gen/wireless_wirelesslink.gen.go | 34 --------- .../netbox/model/ipam_ipaddress.gen.go | 33 +++++---- pkg/connector/netbox/model/ipam_prefix.gen.go | 35 +++++---- pkg/connector/netbox/netbox.go | 14 +++- pkg/connector/netbox/netbox_test.go | 70 +++++++++++++----- 153 files changed, 389 insertions(+), 3850 deletions(-) create mode 100644 pkg/connector/netbox/model/dcim_cabletermination.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_group.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_group_permissions.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_permission.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_user.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_user_groups.gen.go delete mode 100644 pkg/connector/netbox/model/gen/auth_user_user_permissions.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_circuit.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_circuittermination.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_circuittype.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_provider.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_provider_asns.gen.go delete mode 100644 pkg/connector/netbox/model/gen/circuits_providernetwork.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_cable.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_cablepath.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_consoleport.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_consoleporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_consoleserverport.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_consoleserverporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_device.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_devicebay.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_devicebaytemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_devicerole.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_devicetype.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_frontport.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_frontporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_interface.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_interface_tagged_vlans.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_interface_wireless_lans.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_interfacetemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_inventoryitem.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_inventoryitemrole.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_inventoryitemtemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_location.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_manufacturer.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_module.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_modulebay.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_modulebaytemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_moduletype.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_platform.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_powerfeed.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_poweroutlet.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_poweroutlettemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_powerpanel.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_powerport.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_powerporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_rack.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_rackreservation.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_rackrole.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_rearport.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_rearporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_region.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_site.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_site_asns.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_sitegroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/dcim_virtualchassis.gen.go delete mode 100644 pkg/connector/netbox/model/gen/django_admin_log.gen.go delete mode 100644 pkg/connector/netbox/model/gen/django_content_type.gen.go delete mode 100644 pkg/connector/netbox/model/gen/django_migrations.gen.go delete mode 100644 pkg/connector/netbox/model/gen/django_session.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_cluster_groups.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_cluster_types.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_clusters.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_device_types.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_platforms.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_regions.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_roles.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_site_groups.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_sites.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_tags.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_tenant_groups.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configcontext_tenants.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_configrevision.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_customfield.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_customfield_content_types.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_customlink.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_exporttemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_imageattachment.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_jobresult.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_journalentry.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_objectchange.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_tag.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_taggeditem.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_webhook.gen.go delete mode 100644 pkg/connector/netbox/model/gen/extras_webhook_content_types.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_aggregate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_asn.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_fhrpgroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_fhrpgroupassignment.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_ipaddress.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_iprange.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_prefix.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_rir.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_role.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_routetarget.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_service.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_service_ipaddresses.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_servicetemplate.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_vlan.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_vlangroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_vrf.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_vrf_export_targets.gen.go delete mode 100644 pkg/connector/netbox/model/gen/ipam_vrf_import_targets.gen.go delete mode 100644 pkg/connector/netbox/model/gen/social_auth_association.gen.go delete mode 100644 pkg/connector/netbox/model/gen/social_auth_code.gen.go delete mode 100644 pkg/connector/netbox/model/gen/social_auth_nonce.gen.go delete mode 100644 pkg/connector/netbox/model/gen/social_auth_partial.gen.go delete mode 100644 pkg/connector/netbox/model/gen/social_auth_usersocialauth.gen.go delete mode 100644 pkg/connector/netbox/model/gen/taggit_tag.gen.go delete mode 100644 pkg/connector/netbox/model/gen/taggit_taggeditem.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_contact.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_contactassignment.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_contactgroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_contactrole.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_tenant.gen.go delete mode 100644 pkg/connector/netbox/model/gen/tenancy_tenantgroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_objectpermission.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_objectpermission_groups.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_objectpermission_object_types.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_objectpermission_users.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_token.gen.go delete mode 100644 pkg/connector/netbox/model/gen/users_userconfig.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_cluster.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_clustergroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_clustertype.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_virtualmachine.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_vminterface.gen.go delete mode 100644 pkg/connector/netbox/model/gen/virtualization_vminterface_tagged_vlans.gen.go delete mode 100644 pkg/connector/netbox/model/gen/wireless_wirelesslan.gen.go delete mode 100644 pkg/connector/netbox/model/gen/wireless_wirelesslangroup.gen.go delete mode 100644 pkg/connector/netbox/model/gen/wireless_wirelesslink.gen.go diff --git a/pkg/connector/netbox/database.go b/pkg/connector/netbox/database.go index 7dba977..371c62e 100644 --- a/pkg/connector/netbox/database.go +++ b/pkg/connector/netbox/database.go @@ -276,7 +276,7 @@ func (db *database) getTags(contentTypeID uint) ([]model.ExtrasTaggeditem, error tagsMapping := make([]model.ExtrasTaggeditem, 0) err := db.pgdb.Model(&tagsMapping).Relation("Tag").Where("content_type_id = ?", contentTypeID).Select() if err != nil { - return nil, fmt.Errorf("Select failed: %v", err) + return nil, fmt.Errorf("select failed: %v", err) } return tagsMapping, nil diff --git a/pkg/connector/netbox/model/circuits_circuit.gen.go b/pkg/connector/netbox/model/circuits_circuit.gen.go index 033af55..b8c5e59 100644 --- a/pkg/connector/netbox/model/circuits_circuit.gen.go +++ b/pkg/connector/netbox/model/circuits_circuit.gen.go @@ -1,24 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameCircuitsCircuit = "circuits_circuit" // CircuitsCircuit mapped from table type CircuitsCircuit struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Cid string `gorm:"column:cid;not null" json:"cid"` - Status string `gorm:"column:status;not null" json:"status"` - //InstallDate time.Time `gorm:"column:install_date" json:"install_date"` - //CommitRate int32 `gorm:"column:commit_rate" json:"commit_rate"` - //Description string `gorm:"column:description;not null" json:"description"` - //Comments string `gorm:"column:comments;not null" json:"comments"` - ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - TerminationAID int64 `gorm:"column:termination_a_id" json:"termination_a_id" sql:"termination_a_id"` - TerminationZID int64 `gorm:"column:termination_z_id" json:"termination_z_id" sql:"termination_z_id"` - TypeID int64 `gorm:"column:type_id;not null" json:"type_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Cid string `gorm:"column:cid;not null" json:"cid"` + // InstallDate time.Time `gorm:"column:install_date" json:"install_date"` + // CommitRate int32 `gorm:"column:commit_rate" json:"commit_rate"` + // Comments string `gorm:"column:comments;not null" json:"comments"` + ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"` + TypeID int64 `gorm:"column:type_id;not null" json:"type_id"` + TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + // Description string `gorm:"column:description;not null" json:"description"` + Status string `gorm:"column:status;not null" json:"status"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + TerminationAID int64 `gorm:"column:termination_a_id" json:"termination_a_id" sql:"termination_a_id"` + TerminationZID int64 `gorm:"column:termination_z_id" json:"termination_z_id" sql:"termination_z_id"` + // TerminationDate time.Time `gorm:"column:termination_date" json:"termination_date"` + // ProviderAccountID int64 `gorm:"column:provider_account_id" json:"provider_account_id"` Tags []string `sql:"-"` Provider CircuitsProvider `pg:"fk:provider_id"` Type CircuitsCircuittype `pg:"fk:type_id"` diff --git a/pkg/connector/netbox/model/circuits_circuittermination.gen.go b/pkg/connector/netbox/model/circuits_circuittermination.gen.go index e37d4fc..bb1a446 100644 --- a/pkg/connector/netbox/model/circuits_circuittermination.gen.go +++ b/pkg/connector/netbox/model/circuits_circuittermination.gen.go @@ -1,25 +1,29 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameCircuitsCircuittermination = "circuits_circuittermination" // CircuitsCircuittermination mapped from table type CircuitsCircuittermination struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //TermSide string `gorm:"column:term_side;not null" json:"term_side"` - //PortSpeed int32 `gorm:"column:port_speed" json:"port_speed"` - //UpstreamSpeed int32 `gorm:"column:upstream_speed" json:"upstream_speed"` - //XconnectID string `gorm:"column:xconnect_id;not null" json:"xconnect_id"` - //PpInfo string `gorm:"column:pp_info;not null" json:"pp_info"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - CircuitID int64 `gorm:"column:circuit_id;not null" json:"circuit_id"` - //ProviderNetworkID int64 `gorm:"column:provider_network_id" json:"provider_network_id"` - //SiteID int64 `gorm:"column:site_id" json:"site_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // TermSide string `gorm:"column:term_side;not null" json:"term_side"` + // PortSpeed int32 `gorm:"column:port_speed" json:"port_speed"` + // UpstreamSpeed int32 `gorm:"column:upstream_speed" json:"upstream_speed"` + // XconnectID string `gorm:"column:xconnect_id;not null" json:"xconnect_id"` + // PpInfo string `gorm:"column:pp_info;not null" json:"pp_info"` + CircuitID int64 `gorm:"column:circuit_id;not null" json:"circuit_id"` + // SiteID int64 `gorm:"column:site_id" json:"site_id"` + // CableID int64 `gorm:"column:cable_id" json:"cable_id"` + // Description string `gorm:"column:description;not null" json:"description"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` + // ProviderNetworkID int64 `gorm:"column:provider_network_id" json:"provider_network_id"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // CableEnd string `gorm:"column:cable_end;not null" json:"cable_end"` } // TableName CircuitsCircuittermination's table name diff --git a/pkg/connector/netbox/model/circuits_circuittype.gen.go b/pkg/connector/netbox/model/circuits_circuittype.gen.go index e3dece3..3bb89ab 100644 --- a/pkg/connector/netbox/model/circuits_circuittype.gen.go +++ b/pkg/connector/netbox/model/circuits_circuittype.gen.go @@ -8,13 +8,13 @@ const TableNameCircuitsCircuittype = "circuits_circuittype" // CircuitsCircuittype mapped from table type CircuitsCircuittype struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` -// Description string `gorm:"column:description;not null" json:"description"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // Description string `gorm:"column:description;not null" json:"description"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` } // TableName CircuitsCircuittype's table name diff --git a/pkg/connector/netbox/model/circuits_provider.gen.go b/pkg/connector/netbox/model/circuits_provider.gen.go index fd24ef0..91dd147 100644 --- a/pkg/connector/netbox/model/circuits_provider.gen.go +++ b/pkg/connector/netbox/model/circuits_provider.gen.go @@ -8,18 +8,14 @@ const TableNameCircuitsProvider = "circuits_provider" // CircuitsProvider mapped from table type CircuitsProvider struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` -// Asn int64 `gorm:"column:asn" json:"asn"` -// Account string `gorm:"column:account;not null" json:"account"` -// PortalURL string `gorm:"column:portal_url;not null" json:"portal_url"` -// NocContact string `gorm:"column:noc_contact;not null" json:"noc_contact"` -// AdminContact string `gorm:"column:admin_contact;not null" json:"admin_contact"` -// Comments string `gorm:"column:comments;not null" json:"comments"` + // Comments string `gorm:"column:comments;not null" json:"comments"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // Description string `gorm:"column:description;not null" json:"description"` } // TableName CircuitsProvider's table name diff --git a/pkg/connector/netbox/model/dcim_cable.gen.go b/pkg/connector/netbox/model/dcim_cable.gen.go index 54c0a4a..eb6b649 100644 --- a/pkg/connector/netbox/model/dcim_cable.gen.go +++ b/pkg/connector/netbox/model/dcim_cable.gen.go @@ -1,27 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameDcimCable = "dcim_cable" // DcimCable mapped from table type DcimCable struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - TerminationAID int64 `gorm:"column:termination_a_id;not null" json:"termination_a_id" sql:"termination_a_id"` - TerminationBID int64 `gorm:"column:termination_b_id;not null" json:"termination_b_id" sql:"termination_b_id"` - Type string `gorm:"column:type;not null" json:"type"` - Status string `gorm:"column:status;not null" json:"status"` - //Label string `gorm:"column:label;not null" json:"label"` - //Color string `gorm:"column:color;not null" json:"color"` - //Length float64 `gorm:"column:length" json:"length"` - //LengthUnit string `gorm:"column:length_unit;not null" json:"length_unit"` - //AbsLength float64 `gorm:"column:_abs_length" json:"_abs_length" sql:"_abs_length"` - TerminationADeviceID int64 `gorm:"column:_termination_a_device_id" json:"_termination_a_device_id" sql:"_termination_a_device_id"` - TerminationBDeviceID int64 `gorm:"column:_termination_b_device_id" json:"_termination_b_device_id" sql:"_termination_b_device_id"` - TerminationATypeID int32 `gorm:"column:termination_a_type_id;not null" json:"termination_a_type_id" sql:"termination_a_type_id"` - TerminationBTypeID int32 `gorm:"column:termination_b_type_id;not null" json:"termination_b_type_id" sql:"termination_b_type_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Type string `gorm:"column:type;not null" json:"type"` + Status string `gorm:"column:status;not null" json:"status"` + // Label string `gorm:"column:label;not null" json:"label"` + // Color string `gorm:"column:color;not null" json:"color"` + // Length float64 `gorm:"column:length" json:"length"` + // LengthUnit string `gorm:"column:length_unit;not null" json:"length_unit"` + // AbsLength float64 `gorm:"column:_abs_length" json:"_abs_length"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + // Comments string `gorm:"column:comments;not null" json:"comments"` + // Description string `gorm:"column:description;not null" json:"description"`` + Terminations []*DcimCabletermination `pg:"fk:cable_id"` } // TableName DcimCable's table name diff --git a/pkg/connector/netbox/model/dcim_cabletermination.gen.go b/pkg/connector/netbox/model/dcim_cabletermination.gen.go new file mode 100644 index 0000000..eacb55a --- /dev/null +++ b/pkg/connector/netbox/model/dcim_cabletermination.gen.go @@ -0,0 +1,27 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + +package model + +const TableNameDcimCabletermination = "dcim_cabletermination" + +// DcimCabletermination mapped from table +type DcimCabletermination struct { + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + CableEnd string `gorm:"column:cable_end;not null" json:"cable_end"` + TerminationID int64 `gorm:"column:termination_id;not null" json:"termination_id"` + CableID int64 `gorm:"column:cable_id;not null" json:"cable_id"` + TerminationTypeID int32 `gorm:"column:termination_type_id;not null" json:"termination_type_id"` + // DeviceID int64 `gorm:"column:_device_id" json:"_device_id"` + // RackID int64 `gorm:"column:_rack_id" json:"_rack_id"` + // LocationID int64 `gorm:"column:_location_id" json:"_location_id"` + // SiteID int64 `gorm:"column:_site_id" json:"_site_id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` +} + +// TableName DcimCabletermination's table name +func (*DcimCabletermination) TableName() string { + return TableNameDcimCabletermination +} \ No newline at end of file diff --git a/pkg/connector/netbox/model/dcim_device.gen.go b/pkg/connector/netbox/model/dcim_device.gen.go index a45c12b..4f890b2 100644 --- a/pkg/connector/netbox/model/dcim_device.gen.go +++ b/pkg/connector/netbox/model/dcim_device.gen.go @@ -4,33 +4,36 @@ const TableNameDcimDevice = "dcim_device" // DcimDevice mapped from table type DcimDevice struct { - // Created time.Time `gorm:"column:created" json:"created"` - // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - //LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"` - Name string `gorm:"column:name" json:"name"` - Serial string `gorm:"column:serial;not null" json:"serial"` - AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` - Position int16 `gorm:"column:position" json:"position"` - // Face string `gorm:"column:face;not null" json:"face"` - Status string `gorm:"column:status;not null" json:"status"` - // VcPosition int16 `gorm:"column:vc_position" json:"vc_position"` - // VcPriority int16 `gorm:"column:vc_priority" json:"vc_priority"` - Comments string `gorm:"column:comments;not null" json:"comments"` - // ClusterID int64 `gorm:"column:cluster_id" json:"cluster_id"` - DeviceRoleID int64 `gorm:"column:device_role_id;not null" json:"device_role_id"` - DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` - LocationID int64 `gorm:"column:location_id" json:"location_id"` - PlatformID int64 `gorm:"column:platform_id" json:"platform_id"` - PrimaryIp4ID int64 `gorm:"column:primary_ip4_id" json:"primary_ip4_id" sql:"primary_ip4_id"` - PrimaryIp6ID int64 `gorm:"column:primary_ip6_id" json:"primary_ip6_id" sql:"primary_ip6_id"` - RackID int64 `gorm:"column:rack_id" json:"rack_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - // VirtualChassisID int64 `gorm:"column:virtual_chassis_id" json:"virtual_chassis_id"` - // Airflow string `gorm:"column:airflow;not null" json:"airflow"` - DeviceRole DcimDevicerole `pg:"fk:device_role_id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Name string `gorm:"column:name" json:"name"` + Serial string `gorm:"column:serial;not null" json:"serial"` + Position float64 `gorm:"column:position" json:"position"` + // Face string `gorm:"column:face;not null" json:"face"` + Status string `gorm:"column:status;not null" json:"status"` + Comments string `gorm:"column:comments;not null" json:"comments"` + RoleID int64 `gorm:"column:role_id;not null" json:"role_id"` + DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` + PlatformID int64 `gorm:"column:platform_id" json:"platform_id"` + RackID int64 `gorm:"column:rack_id" json:"rack_id"` + PrimaryIp4ID int64 `gorm:"column:primary_ip4_id" json:"primary_ip4_id" sql:"primary_ip4_id"` + PrimaryIp6ID int64 `gorm:"column:primary_ip6_id" json:"primary_ip6_id" sql:"primary_ip6_id"` + TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` + SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` + // ClusterID int64 `gorm:"column:cluster_id" json:"cluster_id"` + // VirtualChassisID int64 `gorm:"column:virtual_chassis_id" json:"virtual_chassis_id"` + // VcPosition int16 `gorm:"column:vc_position" json:"vc_position"` + // VcPriority int16 `gorm:"column:vc_priority" json:"vc_priority"` + // LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"` + // Name string `gorm:"column:_name" json:"_name"` + //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + LocationID int64 `gorm:"column:location_id" json:"location_id"` + // Airflow string `gorm:"column:airflow;not null" json:"airflow"` + // Description string `gorm:"column:description;not null" json:"description"` + // ConfigTemplateID int64 `gorm:"column:config_template_id" json:"config_template_id"` + DeviceRole DcimDevicerole `pg:"fk:role_id"` DeviceType DcimDevicetype `pg:"fk:device_type_id"` Site DcimSite `pg:"fk:site_id"` Tags []string `sql:"-"` diff --git a/pkg/connector/netbox/model/dcim_devicerole.gen.go b/pkg/connector/netbox/model/dcim_devicerole.gen.go index be89eda..2353f46 100644 --- a/pkg/connector/netbox/model/dcim_devicerole.gen.go +++ b/pkg/connector/netbox/model/dcim_devicerole.gen.go @@ -8,18 +8,19 @@ const TableNameDcimDevicerole = "dcim_devicerole" // DcimDevicerole mapped from table type DcimDevicerole struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` -// Color string `gorm:"column:color;not null" json:"color"` -// VMRole bool `gorm:"column:vm_role;not null" json:"vm_role"` -// Description string `gorm:"column:description;not null" json:"description"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + Slug string `gorm:"column:slug;not null" json:"slug"` + // Color string `gorm:"column:color;not null" json:"color"` + // VMRole bool `gorm:"column:vm_role;not null" json:"vm_role"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // Description string `gorm:"column:description;not null" json:"description"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // ConfigTemplateID int64 `gorm:"column:config_template_id" json:"config_template_id"` } // TableName DcimDevicerole's table name func (*DcimDevicerole) TableName() string { return TableNameDcimDevicerole -} +} \ No newline at end of file diff --git a/pkg/connector/netbox/model/dcim_devicetype.gen.go b/pkg/connector/netbox/model/dcim_devicetype.gen.go index 136df24..6eb9ce1 100644 --- a/pkg/connector/netbox/model/dcim_devicetype.gen.go +++ b/pkg/connector/netbox/model/dcim_devicetype.gen.go @@ -8,24 +8,29 @@ const TableNameDcimDevicetype = "dcim_devicetype" // DcimDevicetype mapped from table type DcimDevicetype struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Model string `gorm:"column:model;not null" json:"model"` - Slug string `gorm:"column:slug;not null" json:"slug"` -// PartNumber string `gorm:"column:part_number;not null" json:"part_number"` -// UHeight int16 `gorm:"column:u_height;not null" json:"u_height"` -// IsFullDepth bool `gorm:"column:is_full_depth;not null" json:"is_full_depth"` -// SubdeviceRole string `gorm:"column:subdevice_role;not null" json:"subdevice_role"` -// FrontImage string `gorm:"column:front_image;not null" json:"front_image"` -// RearImage string `gorm:"column:rear_image;not null" json:"rear_image"` -// Comments string `gorm:"column:comments;not null" json:"comments"` - ManufacturerID int64 `gorm:"column:manufacturer_id;not null" json:"manufacturer_id"` -// Airflow string `gorm:"column:airflow;not null" json:"airflow"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Model string `gorm:"column:model;not null" json:"model"` + Slug string `gorm:"column:slug;not null" json:"slug"` + // UHeight float64 `gorm:"column:u_height;not null" json:"u_height"` + // IsFullDepth bool `gorm:"column:is_full_depth;not null" json:"is_full_depth"` + ManufacturerID int64 `gorm:"column:manufacturer_id;not null" json:"manufacturer_id"` + // SubdeviceRole string `gorm:"column:subdevice_role;not null" json:"subdevice_role"` + // PartNumber string `gorm:"column:part_number;not null" json:"part_number"` + // Comments string `gorm:"column:comments;not null" json:"comments"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // FrontImage string `gorm:"column:front_image;not null" json:"front_image"` + // RearImage string `gorm:"column:rear_image;not null" json:"rear_image"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // Airflow string `gorm:"column:airflow;not null" json:"airflow"` + // Weight float64 `gorm:"column:weight" json:"weight"` + // WeightUnit string `gorm:"column:weight_unit;not null" json:"weight_unit"` + // AbsWeight int64 `gorm:"column:_abs_weight" json:"_abs_weight"` + // Description string `gorm:"column:description;not null" json:"description"` + // DefaultPlatformID int64 `gorm:"column:default_platform_id" json:"default_platform_id"` } // TableName DcimDevicetype's table name func (*DcimDevicetype) TableName() string { return TableNameDcimDevicetype -} +} \ No newline at end of file diff --git a/pkg/connector/netbox/model/dcim_frontport.gen.go b/pkg/connector/netbox/model/dcim_frontport.gen.go index f23033f..25c30f4 100644 --- a/pkg/connector/netbox/model/dcim_frontport.gen.go +++ b/pkg/connector/netbox/model/dcim_frontport.gen.go @@ -1,26 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameDcimFrontport = "dcim_frontport" // DcimFrontport mapped from table type DcimFrontport struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Type string `gorm:"column:type;not null" json:"type"` - RearPortPosition int16 `gorm:"column:rear_port_position;not null" json:"rear_port_position"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - RearPortID int64 `gorm:"column:rear_port_id;not null" json:"rear_port_id"` - //Color string `gorm:"column:color;not null" json:"color"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + // Type string `gorm:"column:type;not null" json:"type"` + RearPortPosition int16 `gorm:"column:rear_port_position;not null" json:"rear_port_position"` + // Description string `gorm:"column:description;not null" json:"description"` + DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` + RearPortID int64 `gorm:"column:rear_port_id;not null" json:"rear_port_id"` + // CableID int64 `gorm:"column:cable_id" json:"cable_id"` + // Name string `gorm:"column:_name;not null" json:"_name"` + // Label string `gorm:"column:label;not null" json:"label"` + // Created time.Time `gorm:"column:created" json:"created"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` + // Color string `gorm:"column:color;not null" json:"color"` + // ModuleID int64 `gorm:"column:module_id" json:"module_id"` + // CableEnd string `gorm:"column:cable_end;not null" json:"cable_end"` } // TableName DcimFrontport's table name diff --git a/pkg/connector/netbox/model/dcim_interface.gen.go b/pkg/connector/netbox/model/dcim_interface.gen.go index 817312c..6b7da2f 100644 --- a/pkg/connector/netbox/model/dcim_interface.gen.go +++ b/pkg/connector/netbox/model/dcim_interface.gen.go @@ -1,43 +1,49 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameDcimInterface = "dcim_interface" // DcimInterface mapped from table type DcimInterface struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Enabled bool `gorm:"column:enabled;not null" json:"enabled"` - MacAddress string `gorm:"column:mac_address" json:"mac_address"` - //Mtu int32 `gorm:"column:mtu" json:"mtu"` - //Mode string `gorm:"column:mode;not null" json:"mode"` - Type string `gorm:"column:type;not null" json:"type"` - MgmtOnly bool `gorm:"column:mgmt_only;not null" json:"mgmt_only"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - LagID int64 `gorm:"column:lag_id" json:"lag_id"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - //UntaggedVlanID int64 `gorm:"column:untagged_vlan_id" json:"untagged_vlan_id"` - //Wwn string `gorm:"column:wwn" json:"wwn"` - //BridgeID int64 `gorm:"column:bridge_id" json:"bridge_id"` - //RfRole string `gorm:"column:rf_role;not null" json:"rf_role"` - //RfChannel string `gorm:"column:rf_channel;not null" json:"rf_channel"` - //RfChannelFrequency float64 `gorm:"column:rf_channel_frequency" json:"rf_channel_frequency"` - //RfChannelWidth float64 `gorm:"column:rf_channel_width" json:"rf_channel_width"` - //TxPower int16 `gorm:"column:tx_power" json:"tx_power"` - //WirelessLinkID int64 `gorm:"column:wireless_link_id" json:"wireless_link_id"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` - //Duplex string `gorm:"column:duplex" json:"duplex"` - Speed int32 `gorm:"column:speed" json:"speed"` + ID int64 `gorm:"column:id;not null" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + Type string `gorm:"column:type;not null" json:"type"` + MgmtOnly bool `gorm:"column:mgmt_only;not null" json:"mgmt_only"` + // Description string `gorm:"column:description;not null" json:"description"` + DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` + MacAddress string `gorm:"column:mac_address" json:"mac_address"` + LagID int64 `gorm:"column:lag_id" json:"lag_id"` + // Enabled bool `gorm:"column:enabled;not null" json:"enabled"` + // Mtu int32 `gorm:"column:mtu" json:"mtu"` + // Mode string `gorm:"column:mode;not null" json:"mode"` + // UntaggedVlanID int64 `gorm:"column:untagged_vlan_id" json:"untagged_vlan_id"` + CableID int64 `gorm:"column:cable_id" json:"cable_id"` + //Name string `gorm:"column:_name;not null" json:"_name"` + // Label string `gorm:"column:label;not null" json:"label"` + //PathID int64 `gorm:"column:_path_id" json:"_path_id"` + // Created time.Time `gorm:"column:created" json:"created"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` + ParentID int64 `gorm:"column:parent_id" json:"parent_id"` + // Wwn string `gorm:"column:wwn" json:"wwn"` + // BridgeID int64 `gorm:"column:bridge_id" json:"bridge_id"` + // RfRole string `gorm:"column:rf_role;not null" json:"rf_role"` + // RfChannel string `gorm:"column:rf_channel;not null" json:"rf_channel"` + // RfChannelFrequency float64 `gorm:"column:rf_channel_frequency" json:"rf_channel_frequency"` + // RfChannelWidth float64 `gorm:"column:rf_channel_width" json:"rf_channel_width"` + // TxPower int16 `gorm:"column:tx_power" json:"tx_power"` + // WirelessLinkID int64 `gorm:"column:wireless_link_id" json:"wireless_link_id"` + // ModuleID int64 `gorm:"column:module_id" json:"module_id"` + // VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` + // Duplex string `gorm:"column:duplex" json:"duplex"` + Speed int32 `gorm:"column:speed" json:"speed"` + // PoeMode string `gorm:"column:poe_mode;not null" json:"poe_mode"` + // PoeType string `gorm:"column:poe_type;not null" json:"poe_type"` + // CableEnd string `gorm:"column:cable_end;not null" json:"cable_end"` Parent *DcimInterface `pg:"fk:parent_id"` Device DcimDevice `pg:"fk:device_id"` LAG *DcimInterface `pg:"fk:lag_id"` diff --git a/pkg/connector/netbox/model/dcim_manufacturer.gen.go b/pkg/connector/netbox/model/dcim_manufacturer.gen.go index 551b111..4dbe381 100644 --- a/pkg/connector/netbox/model/dcim_manufacturer.gen.go +++ b/pkg/connector/netbox/model/dcim_manufacturer.gen.go @@ -8,13 +8,13 @@ const TableNameDcimManufacturer = "dcim_manufacturer" // DcimManufacturer mapped from table type DcimManufacturer struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` -// Description string `gorm:"column:description;not null" json:"description"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // Description string `gorm:"column:description;not null" json:"description"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` } // TableName DcimManufacturer's table name diff --git a/pkg/connector/netbox/model/dcim_platform.gen.go b/pkg/connector/netbox/model/dcim_platform.gen.go index 3ea7714..74b6cec 100644 --- a/pkg/connector/netbox/model/dcim_platform.gen.go +++ b/pkg/connector/netbox/model/dcim_platform.gen.go @@ -8,16 +8,17 @@ const TableNameDcimPlatform = "dcim_platform" // DcimPlatform mapped from table type DcimPlatform struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -// CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` -// NapalmDriver string `gorm:"column:napalm_driver;not null" json:"napalm_driver"` -// NapalmArgs string `gorm:"column:napalm_args" json:"napalm_args"` -// Description string `gorm:"column:description;not null" json:"description"` - ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + Slug string `gorm:"column:slug;not null" json:"slug"` + // NapalmDriver string `gorm:"column:napalm_driver;not null" json:"napalm_driver"` + ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // NapalmArgs string `gorm:"column:napalm_args" json:"napalm_args"` + // Description string `gorm:"column:description;not null" json:"description"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // ConfigTemplateID int64 `gorm:"column:config_template_id" json:"config_template_id"` } // TableName DcimPlatform's table name diff --git a/pkg/connector/netbox/model/dcim_rearport.gen.go b/pkg/connector/netbox/model/dcim_rearport.gen.go index acbc893..0d2d164 100644 --- a/pkg/connector/netbox/model/dcim_rearport.gen.go +++ b/pkg/connector/netbox/model/dcim_rearport.gen.go @@ -1,25 +1,29 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameDcimRearport = "dcim_rearport" // DcimRearport mapped from table type DcimRearport struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Type string `gorm:"column:type;not null" json:"type"` - Positions int16 `gorm:"column:positions;not null" json:"positions"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - //Color string `gorm:"column:color;not null" json:"color"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` + ID int64 `gorm:"column:id;not null" json:"id"` + Name string `gorm:"column:name;not null" json:"name"` + Type string `gorm:"column:type;not null" json:"type"` + Positions int16 `gorm:"column:positions;not null" json:"positions"` + // Description string `gorm:"column:description;not null" json:"description"` + DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` + // CableID int64 `gorm:"column:cable_id" json:"cable_id"` + // Name string `gorm:"column:_name;not null" json:"_name"` + // Label string `gorm:"column:label;not null" json:"label"` + // Created time.Time `gorm:"column:created" json:"created"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + // MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` + // Color string `gorm:"column:color;not null" json:"color"` + // ModuleID int64 `gorm:"column:module_id" json:"module_id"` + // CableEnd string `gorm:"column:cable_end;not null" json:"cable_end"` } // TableName DcimRearport's table name diff --git a/pkg/connector/netbox/model/dcim_site.gen.go b/pkg/connector/netbox/model/dcim_site.gen.go index a37c8a1..7ac4acc 100644 --- a/pkg/connector/netbox/model/dcim_site.gen.go +++ b/pkg/connector/netbox/model/dcim_site.gen.go @@ -8,27 +8,28 @@ const TableNameDcimSite = "dcim_site" // DcimSite mapped from table type DcimSite struct { -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Status string `gorm:"column:status;not null" json:"status"` -// Facility string `gorm:"column:facility;not null" json:"facility"` -// TimeZone string `gorm:"column:time_zone;not null" json:"time_zone"` -// Description string `gorm:"column:description;not null" json:"description"` -// PhysicalAddress string `gorm:"column:physical_address;not null" json:"physical_address"` -// ShippingAddress string `gorm:"column:shipping_address;not null" json:"shipping_address"` -// Latitude float64 `gorm:"column:latitude" json:"latitude"` -// Longitude float64 `gorm:"column:longitude" json:"longitude"` -// Comments string `gorm:"column:comments;not null" json:"comments"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - RegionID int64 `gorm:"column:region_id" json:"region_id"` -// TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Name string `gorm:"column:name;not null" json:"name"` + Slug string `gorm:"column:slug;not null" json:"slug"` + // Facility string `gorm:"column:facility;not null" json:"facility"` + // PhysicalAddress string `gorm:"column:physical_address;not null" json:"physical_address"` + // ShippingAddress string `gorm:"column:shipping_address;not null" json:"shipping_address"` + // Comments string `gorm:"column:comments;not null" json:"comments"` + // TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + RegionID int64 `gorm:"column:region_id" json:"region_id"` + // Description string `gorm:"column:description;not null" json:"description"` + Status string `gorm:"column:status;not null" json:"status"` + // TimeZone string `gorm:"column:time_zone;not null" json:"time_zone"` + // Latitude float64 `gorm:"column:latitude" json:"latitude"` + // Longitude float64 `gorm:"column:longitude" json:"longitude"` + // Name string `gorm:"column:_name;not null" json:"_name"` + CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + GroupID int64 `gorm:"column:group_id" json:"group_id"` } // TableName DcimSite's table name func (*DcimSite) TableName() string { return TableNameDcimSite -} +} \ No newline at end of file diff --git a/pkg/connector/netbox/model/extras_tag.gen.go b/pkg/connector/netbox/model/extras_tag.gen.go index 02ad02c..8a454ba 100644 --- a/pkg/connector/netbox/model/extras_tag.gen.go +++ b/pkg/connector/netbox/model/extras_tag.gen.go @@ -8,13 +8,13 @@ const TableNameExtrasTag = "extras_tag" // ExtrasTag mapped from table type ExtrasTag struct { + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` Slug string `gorm:"column:slug;not null" json:"slug"` -// Created time.Time `gorm:"column:created" json:"created"` -// LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` -// Color string `gorm:"column:color;not null" json:"color"` -// Description string `gorm:"column:description;not null" json:"description"` + // Color string `gorm:"column:color;not null" json:"color"` + // Description string `gorm:"column:description;not null" json:"description"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` } // TableName ExtrasTag's table name diff --git a/pkg/connector/netbox/model/extras_taggeditem.gen.go b/pkg/connector/netbox/model/extras_taggeditem.gen.go index e85606d..faf3530 100644 --- a/pkg/connector/netbox/model/extras_taggeditem.gen.go +++ b/pkg/connector/netbox/model/extras_taggeditem.gen.go @@ -1,13 +1,17 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameExtrasTaggeditem = "extras_taggeditem" // ExtrasTaggeditem mapped from table type ExtrasTaggeditem struct { - ObjectID int32 `gorm:"column:object_id;not null" json:"object_id"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - TagID int64 `gorm:"column:tag_id;not null" json:"tag_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + ObjectID int32 `gorm:"column:object_id;not null" json:"object_id"` + ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` + TagID int64 `gorm:"column:tag_id;not null" json:"tag_id"` Tag ExtrasTag `pg:"fk:tag_id"` } diff --git a/pkg/connector/netbox/model/gen/auth_group.gen.go b/pkg/connector/netbox/model/gen/auth_group.gen.go deleted file mode 100644 index 1f6b94b..0000000 --- a/pkg/connector/netbox/model/gen/auth_group.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameAuthGroup = "auth_group" - -// AuthGroup mapped from table -type AuthGroup struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` -} - -// TableName AuthGroup's table name -func (*AuthGroup) TableName() string { - return TableNameAuthGroup -} diff --git a/pkg/connector/netbox/model/gen/auth_group_permissions.gen.go b/pkg/connector/netbox/model/gen/auth_group_permissions.gen.go deleted file mode 100644 index ed6a78b..0000000 --- a/pkg/connector/netbox/model/gen/auth_group_permissions.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameAuthGroupPermission = "auth_group_permissions" - -// AuthGroupPermission mapped from table -type AuthGroupPermission struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - GroupID int32 `gorm:"column:group_id;not null" json:"group_id"` - PermissionID int32 `gorm:"column:permission_id;not null" json:"permission_id"` -} - -// TableName AuthGroupPermission's table name -func (*AuthGroupPermission) TableName() string { - return TableNameAuthGroupPermission -} diff --git a/pkg/connector/netbox/model/gen/auth_permission.gen.go b/pkg/connector/netbox/model/gen/auth_permission.gen.go deleted file mode 100644 index 47a2a35..0000000 --- a/pkg/connector/netbox/model/gen/auth_permission.gen.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameAuthPermission = "auth_permission" - -// AuthPermission mapped from table -type AuthPermission struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - Codename string `gorm:"column:codename;not null" json:"codename"` -} - -// TableName AuthPermission's table name -func (*AuthPermission) TableName() string { - return TableNameAuthPermission -} diff --git a/pkg/connector/netbox/model/gen/auth_user.gen.go b/pkg/connector/netbox/model/gen/auth_user.gen.go deleted file mode 100644 index 4cead2b..0000000 --- a/pkg/connector/netbox/model/gen/auth_user.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameAuthUser = "auth_user" - -// AuthUser mapped from table -type AuthUser struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Password string `gorm:"column:password;not null" json:"password"` - LastLogin time.Time `gorm:"column:last_login" json:"last_login"` - IsSuperuser bool `gorm:"column:is_superuser;not null" json:"is_superuser"` - Username string `gorm:"column:username;not null" json:"username"` - FirstName string `gorm:"column:first_name;not null" json:"first_name"` - LastName string `gorm:"column:last_name;not null" json:"last_name"` - Email string `gorm:"column:email;not null" json:"email"` - IsStaff bool `gorm:"column:is_staff;not null" json:"is_staff"` - IsActive bool `gorm:"column:is_active;not null" json:"is_active"` - DateJoined time.Time `gorm:"column:date_joined;not null" json:"date_joined"` -} - -// TableName AuthUser's table name -func (*AuthUser) TableName() string { - return TableNameAuthUser -} diff --git a/pkg/connector/netbox/model/gen/auth_user_groups.gen.go b/pkg/connector/netbox/model/gen/auth_user_groups.gen.go deleted file mode 100644 index 02aeb1a..0000000 --- a/pkg/connector/netbox/model/gen/auth_user_groups.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameAuthUserGroup = "auth_user_groups" - -// AuthUserGroup mapped from table -type AuthUserGroup struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` - GroupID int32 `gorm:"column:group_id;not null" json:"group_id"` -} - -// TableName AuthUserGroup's table name -func (*AuthUserGroup) TableName() string { - return TableNameAuthUserGroup -} diff --git a/pkg/connector/netbox/model/gen/auth_user_user_permissions.gen.go b/pkg/connector/netbox/model/gen/auth_user_user_permissions.gen.go deleted file mode 100644 index 5ff1173..0000000 --- a/pkg/connector/netbox/model/gen/auth_user_user_permissions.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameAuthUserUserPermission = "auth_user_user_permissions" - -// AuthUserUserPermission mapped from table -type AuthUserUserPermission struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` - PermissionID int32 `gorm:"column:permission_id;not null" json:"permission_id"` -} - -// TableName AuthUserUserPermission's table name -func (*AuthUserUserPermission) TableName() string { - return TableNameAuthUserUserPermission -} diff --git a/pkg/connector/netbox/model/gen/circuits_circuit.gen.go b/pkg/connector/netbox/model/gen/circuits_circuit.gen.go deleted file mode 100644 index 033af55..0000000 --- a/pkg/connector/netbox/model/gen/circuits_circuit.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -package model - -const TableNameCircuitsCircuit = "circuits_circuit" - -// CircuitsCircuit mapped from table -type CircuitsCircuit struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Cid string `gorm:"column:cid;not null" json:"cid"` - Status string `gorm:"column:status;not null" json:"status"` - //InstallDate time.Time `gorm:"column:install_date" json:"install_date"` - //CommitRate int32 `gorm:"column:commit_rate" json:"commit_rate"` - //Description string `gorm:"column:description;not null" json:"description"` - //Comments string `gorm:"column:comments;not null" json:"comments"` - ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - TerminationAID int64 `gorm:"column:termination_a_id" json:"termination_a_id" sql:"termination_a_id"` - TerminationZID int64 `gorm:"column:termination_z_id" json:"termination_z_id" sql:"termination_z_id"` - TypeID int64 `gorm:"column:type_id;not null" json:"type_id"` - Tags []string `sql:"-"` - Provider CircuitsProvider `pg:"fk:provider_id"` - Type CircuitsCircuittype `pg:"fk:type_id"` -} - -// TableName CircuitsCircuit's table name -func (*CircuitsCircuit) TableName() string { - return TableNameCircuitsCircuit -} diff --git a/pkg/connector/netbox/model/gen/circuits_circuittermination.gen.go b/pkg/connector/netbox/model/gen/circuits_circuittermination.gen.go deleted file mode 100644 index e37d4fc..0000000 --- a/pkg/connector/netbox/model/gen/circuits_circuittermination.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -package model - -const TableNameCircuitsCircuittermination = "circuits_circuittermination" - -// CircuitsCircuittermination mapped from table -type CircuitsCircuittermination struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //TermSide string `gorm:"column:term_side;not null" json:"term_side"` - //PortSpeed int32 `gorm:"column:port_speed" json:"port_speed"` - //UpstreamSpeed int32 `gorm:"column:upstream_speed" json:"upstream_speed"` - //XconnectID string `gorm:"column:xconnect_id;not null" json:"xconnect_id"` - //PpInfo string `gorm:"column:pp_info;not null" json:"pp_info"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - CircuitID int64 `gorm:"column:circuit_id;not null" json:"circuit_id"` - //ProviderNetworkID int64 `gorm:"column:provider_network_id" json:"provider_network_id"` - //SiteID int64 `gorm:"column:site_id" json:"site_id"` -} - -// TableName CircuitsCircuittermination's table name -func (*CircuitsCircuittermination) TableName() string { - return TableNameCircuitsCircuittermination -} diff --git a/pkg/connector/netbox/model/gen/circuits_circuittype.gen.go b/pkg/connector/netbox/model/gen/circuits_circuittype.gen.go deleted file mode 100644 index 3f1ecc0..0000000 --- a/pkg/connector/netbox/model/gen/circuits_circuittype.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameCircuitsCircuittype = "circuits_circuittype" - -// CircuitsCircuittype mapped from table -type CircuitsCircuittype struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName CircuitsCircuittype's table name -func (*CircuitsCircuittype) TableName() string { - return TableNameCircuitsCircuittype -} diff --git a/pkg/connector/netbox/model/gen/circuits_provider.gen.go b/pkg/connector/netbox/model/gen/circuits_provider.gen.go deleted file mode 100644 index ef3edfa..0000000 --- a/pkg/connector/netbox/model/gen/circuits_provider.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameCircuitsProvider = "circuits_provider" - -// CircuitsProvider mapped from table -type CircuitsProvider struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Asn int64 `gorm:"column:asn" json:"asn"` - Account string `gorm:"column:account;not null" json:"account"` - PortalURL string `gorm:"column:portal_url;not null" json:"portal_url"` - NocContact string `gorm:"column:noc_contact;not null" json:"noc_contact"` - AdminContact string `gorm:"column:admin_contact;not null" json:"admin_contact"` - Comments string `gorm:"column:comments;not null" json:"comments"` -} - -// TableName CircuitsProvider's table name -func (*CircuitsProvider) TableName() string { - return TableNameCircuitsProvider -} diff --git a/pkg/connector/netbox/model/gen/circuits_provider_asns.gen.go b/pkg/connector/netbox/model/gen/circuits_provider_asns.gen.go deleted file mode 100644 index be7a280..0000000 --- a/pkg/connector/netbox/model/gen/circuits_provider_asns.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameCircuitsProviderAsn = "circuits_provider_asns" - -// CircuitsProviderAsn mapped from table -type CircuitsProviderAsn struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"` - AsnID int64 `gorm:"column:asn_id;not null" json:"asn_id"` -} - -// TableName CircuitsProviderAsn's table name -func (*CircuitsProviderAsn) TableName() string { - return TableNameCircuitsProviderAsn -} diff --git a/pkg/connector/netbox/model/gen/circuits_providernetwork.gen.go b/pkg/connector/netbox/model/gen/circuits_providernetwork.gen.go deleted file mode 100644 index 341b48a..0000000 --- a/pkg/connector/netbox/model/gen/circuits_providernetwork.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameCircuitsProvidernetwork = "circuits_providernetwork" - -// CircuitsProvidernetwork mapped from table -type CircuitsProvidernetwork struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Description string `gorm:"column:description;not null" json:"description"` - Comments string `gorm:"column:comments;not null" json:"comments"` - ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"` - ServiceID string `gorm:"column:service_id;not null" json:"service_id"` -} - -// TableName CircuitsProvidernetwork's table name -func (*CircuitsProvidernetwork) TableName() string { - return TableNameCircuitsProvidernetwork -} diff --git a/pkg/connector/netbox/model/gen/dcim_cable.gen.go b/pkg/connector/netbox/model/gen/dcim_cable.gen.go deleted file mode 100644 index 54c0a4a..0000000 --- a/pkg/connector/netbox/model/gen/dcim_cable.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -package model - -const TableNameDcimCable = "dcim_cable" - -// DcimCable mapped from table -type DcimCable struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - TerminationAID int64 `gorm:"column:termination_a_id;not null" json:"termination_a_id" sql:"termination_a_id"` - TerminationBID int64 `gorm:"column:termination_b_id;not null" json:"termination_b_id" sql:"termination_b_id"` - Type string `gorm:"column:type;not null" json:"type"` - Status string `gorm:"column:status;not null" json:"status"` - //Label string `gorm:"column:label;not null" json:"label"` - //Color string `gorm:"column:color;not null" json:"color"` - //Length float64 `gorm:"column:length" json:"length"` - //LengthUnit string `gorm:"column:length_unit;not null" json:"length_unit"` - //AbsLength float64 `gorm:"column:_abs_length" json:"_abs_length" sql:"_abs_length"` - TerminationADeviceID int64 `gorm:"column:_termination_a_device_id" json:"_termination_a_device_id" sql:"_termination_a_device_id"` - TerminationBDeviceID int64 `gorm:"column:_termination_b_device_id" json:"_termination_b_device_id" sql:"_termination_b_device_id"` - TerminationATypeID int32 `gorm:"column:termination_a_type_id;not null" json:"termination_a_type_id" sql:"termination_a_type_id"` - TerminationBTypeID int32 `gorm:"column:termination_b_type_id;not null" json:"termination_b_type_id" sql:"termination_b_type_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName DcimCable's table name -func (*DcimCable) TableName() string { - return TableNameDcimCable -} diff --git a/pkg/connector/netbox/model/gen/dcim_cablepath.gen.go b/pkg/connector/netbox/model/gen/dcim_cablepath.gen.go deleted file mode 100644 index 59eff8d..0000000 --- a/pkg/connector/netbox/model/gen/dcim_cablepath.gen.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameDcimCablepath = "dcim_cablepath" - -// DcimCablepath mapped from table -type DcimCablepath struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - OriginID int64 `gorm:"column:origin_id;not null" json:"origin_id"` - DestinationID int64 `gorm:"column:destination_id" json:"destination_id"` - Path string `gorm:"column:path;not null" json:"path"` - IsActive bool `gorm:"column:is_active;not null" json:"is_active"` - IsSplit bool `gorm:"column:is_split;not null" json:"is_split"` - DestinationTypeID int32 `gorm:"column:destination_type_id" json:"destination_type_id"` - OriginTypeID int32 `gorm:"column:origin_type_id;not null" json:"origin_type_id"` -} - -// TableName DcimCablepath's table name -func (*DcimCablepath) TableName() string { - return TableNameDcimCablepath -} diff --git a/pkg/connector/netbox/model/gen/dcim_consoleport.gen.go b/pkg/connector/netbox/model/gen/dcim_consoleport.gen.go deleted file mode 100644 index a84b3ed..0000000 --- a/pkg/connector/netbox/model/gen/dcim_consoleport.gen.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimConsoleport = "dcim_consoleport" - -// DcimConsoleport mapped from table -type DcimConsoleport struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - Type string `gorm:"column:type;not null" json:"type"` - Speed int32 `gorm:"column:speed" json:"speed"` - LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimConsoleport's table name -func (*DcimConsoleport) TableName() string { - return TableNameDcimConsoleport -} diff --git a/pkg/connector/netbox/model/gen/dcim_consoleporttemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_consoleporttemplate.gen.go deleted file mode 100644 index 4db72ab..0000000 --- a/pkg/connector/netbox/model/gen/dcim_consoleporttemplate.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimConsoleporttemplate = "dcim_consoleporttemplate" - -// DcimConsoleporttemplate mapped from table -type DcimConsoleporttemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimConsoleporttemplate's table name -func (*DcimConsoleporttemplate) TableName() string { - return TableNameDcimConsoleporttemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_consoleserverport.gen.go b/pkg/connector/netbox/model/gen/dcim_consoleserverport.gen.go deleted file mode 100644 index 7746b3f..0000000 --- a/pkg/connector/netbox/model/gen/dcim_consoleserverport.gen.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimConsoleserverport = "dcim_consoleserverport" - -// DcimConsoleserverport mapped from table -type DcimConsoleserverport struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - Type string `gorm:"column:type;not null" json:"type"` - Speed int32 `gorm:"column:speed" json:"speed"` - LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimConsoleserverport's table name -func (*DcimConsoleserverport) TableName() string { - return TableNameDcimConsoleserverport -} diff --git a/pkg/connector/netbox/model/gen/dcim_consoleserverporttemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_consoleserverporttemplate.gen.go deleted file mode 100644 index 61030e2..0000000 --- a/pkg/connector/netbox/model/gen/dcim_consoleserverporttemplate.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimConsoleserverporttemplate = "dcim_consoleserverporttemplate" - -// DcimConsoleserverporttemplate mapped from table -type DcimConsoleserverporttemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimConsoleserverporttemplate's table name -func (*DcimConsoleserverporttemplate) TableName() string { - return TableNameDcimConsoleserverporttemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_device.gen.go b/pkg/connector/netbox/model/gen/dcim_device.gen.go deleted file mode 100644 index a45c12b..0000000 --- a/pkg/connector/netbox/model/gen/dcim_device.gen.go +++ /dev/null @@ -1,42 +0,0 @@ -package model - -const TableNameDcimDevice = "dcim_device" - -// DcimDevice mapped from table -type DcimDevice struct { - // Created time.Time `gorm:"column:created" json:"created"` - // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - //LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"` - Name string `gorm:"column:name" json:"name"` - Serial string `gorm:"column:serial;not null" json:"serial"` - AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` - Position int16 `gorm:"column:position" json:"position"` - // Face string `gorm:"column:face;not null" json:"face"` - Status string `gorm:"column:status;not null" json:"status"` - // VcPosition int16 `gorm:"column:vc_position" json:"vc_position"` - // VcPriority int16 `gorm:"column:vc_priority" json:"vc_priority"` - Comments string `gorm:"column:comments;not null" json:"comments"` - // ClusterID int64 `gorm:"column:cluster_id" json:"cluster_id"` - DeviceRoleID int64 `gorm:"column:device_role_id;not null" json:"device_role_id"` - DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` - LocationID int64 `gorm:"column:location_id" json:"location_id"` - PlatformID int64 `gorm:"column:platform_id" json:"platform_id"` - PrimaryIp4ID int64 `gorm:"column:primary_ip4_id" json:"primary_ip4_id" sql:"primary_ip4_id"` - PrimaryIp6ID int64 `gorm:"column:primary_ip6_id" json:"primary_ip6_id" sql:"primary_ip6_id"` - RackID int64 `gorm:"column:rack_id" json:"rack_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - // VirtualChassisID int64 `gorm:"column:virtual_chassis_id" json:"virtual_chassis_id"` - // Airflow string `gorm:"column:airflow;not null" json:"airflow"` - DeviceRole DcimDevicerole `pg:"fk:device_role_id"` - DeviceType DcimDevicetype `pg:"fk:device_type_id"` - Site DcimSite `pg:"fk:site_id"` - Tags []string `sql:"-"` -} - -// TableName DcimDevice's table name -func (*DcimDevice) TableName() string { - return TableNameDcimDevice -} diff --git a/pkg/connector/netbox/model/gen/dcim_devicebay.gen.go b/pkg/connector/netbox/model/gen/dcim_devicebay.gen.go deleted file mode 100644 index 3f0b8c1..0000000 --- a/pkg/connector/netbox/model/gen/dcim_devicebay.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimDevicebay = "dcim_devicebay" - -// DcimDevicebay mapped from table -type DcimDevicebay struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - InstalledDeviceID int64 `gorm:"column:installed_device_id" json:"installed_device_id"` -} - -// TableName DcimDevicebay's table name -func (*DcimDevicebay) TableName() string { - return TableNameDcimDevicebay -} diff --git a/pkg/connector/netbox/model/gen/dcim_devicebaytemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_devicebaytemplate.gen.go deleted file mode 100644 index bb307ec..0000000 --- a/pkg/connector/netbox/model/gen/dcim_devicebaytemplate.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimDevicebaytemplate = "dcim_devicebaytemplate" - -// DcimDevicebaytemplate mapped from table -type DcimDevicebaytemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` -} - -// TableName DcimDevicebaytemplate's table name -func (*DcimDevicebaytemplate) TableName() string { - return TableNameDcimDevicebaytemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_devicerole.gen.go b/pkg/connector/netbox/model/gen/dcim_devicerole.gen.go deleted file mode 100644 index c4fa5d9..0000000 --- a/pkg/connector/netbox/model/gen/dcim_devicerole.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimDevicerole = "dcim_devicerole" - -// DcimDevicerole mapped from table -type DcimDevicerole struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Color string `gorm:"column:color;not null" json:"color"` - VMRole bool `gorm:"column:vm_role;not null" json:"vm_role"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName DcimDevicerole's table name -func (*DcimDevicerole) TableName() string { - return TableNameDcimDevicerole -} diff --git a/pkg/connector/netbox/model/gen/dcim_devicetype.gen.go b/pkg/connector/netbox/model/gen/dcim_devicetype.gen.go deleted file mode 100644 index 864d86b..0000000 --- a/pkg/connector/netbox/model/gen/dcim_devicetype.gen.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimDevicetype = "dcim_devicetype" - -// DcimDevicetype mapped from table -type DcimDevicetype struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Model string `gorm:"column:model;not null" json:"model"` - Slug string `gorm:"column:slug;not null" json:"slug"` - PartNumber string `gorm:"column:part_number;not null" json:"part_number"` - UHeight int16 `gorm:"column:u_height;not null" json:"u_height"` - IsFullDepth bool `gorm:"column:is_full_depth;not null" json:"is_full_depth"` - SubdeviceRole string `gorm:"column:subdevice_role;not null" json:"subdevice_role"` - FrontImage string `gorm:"column:front_image;not null" json:"front_image"` - RearImage string `gorm:"column:rear_image;not null" json:"rear_image"` - Comments string `gorm:"column:comments;not null" json:"comments"` - ManufacturerID int64 `gorm:"column:manufacturer_id;not null" json:"manufacturer_id"` - Airflow string `gorm:"column:airflow;not null" json:"airflow"` -} - -// TableName DcimDevicetype's table name -func (*DcimDevicetype) TableName() string { - return TableNameDcimDevicetype -} diff --git a/pkg/connector/netbox/model/gen/dcim_frontport.gen.go b/pkg/connector/netbox/model/gen/dcim_frontport.gen.go deleted file mode 100644 index f23033f..0000000 --- a/pkg/connector/netbox/model/gen/dcim_frontport.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -package model - -const TableNameDcimFrontport = "dcim_frontport" - -// DcimFrontport mapped from table -type DcimFrontport struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Type string `gorm:"column:type;not null" json:"type"` - RearPortPosition int16 `gorm:"column:rear_port_position;not null" json:"rear_port_position"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - RearPortID int64 `gorm:"column:rear_port_id;not null" json:"rear_port_id"` - //Color string `gorm:"column:color;not null" json:"color"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimFrontport's table name -func (*DcimFrontport) TableName() string { - return TableNameDcimFrontport -} diff --git a/pkg/connector/netbox/model/gen/dcim_frontporttemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_frontporttemplate.gen.go deleted file mode 100644 index 7844585..0000000 --- a/pkg/connector/netbox/model/gen/dcim_frontporttemplate.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimFrontporttemplate = "dcim_frontporttemplate" - -// DcimFrontporttemplate mapped from table -type DcimFrontporttemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - RearPortPosition int16 `gorm:"column:rear_port_position;not null" json:"rear_port_position"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - RearPortID int64 `gorm:"column:rear_port_id;not null" json:"rear_port_id"` - Color string `gorm:"column:color;not null" json:"color"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimFrontporttemplate's table name -func (*DcimFrontporttemplate) TableName() string { - return TableNameDcimFrontporttemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_interface.gen.go b/pkg/connector/netbox/model/gen/dcim_interface.gen.go deleted file mode 100644 index 817312c..0000000 --- a/pkg/connector/netbox/model/gen/dcim_interface.gen.go +++ /dev/null @@ -1,50 +0,0 @@ -package model - -const TableNameDcimInterface = "dcim_interface" - -// DcimInterface mapped from table -type DcimInterface struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Enabled bool `gorm:"column:enabled;not null" json:"enabled"` - MacAddress string `gorm:"column:mac_address" json:"mac_address"` - //Mtu int32 `gorm:"column:mtu" json:"mtu"` - //Mode string `gorm:"column:mode;not null" json:"mode"` - Type string `gorm:"column:type;not null" json:"type"` - MgmtOnly bool `gorm:"column:mgmt_only;not null" json:"mgmt_only"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - LagID int64 `gorm:"column:lag_id" json:"lag_id"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - //UntaggedVlanID int64 `gorm:"column:untagged_vlan_id" json:"untagged_vlan_id"` - //Wwn string `gorm:"column:wwn" json:"wwn"` - //BridgeID int64 `gorm:"column:bridge_id" json:"bridge_id"` - //RfRole string `gorm:"column:rf_role;not null" json:"rf_role"` - //RfChannel string `gorm:"column:rf_channel;not null" json:"rf_channel"` - //RfChannelFrequency float64 `gorm:"column:rf_channel_frequency" json:"rf_channel_frequency"` - //RfChannelWidth float64 `gorm:"column:rf_channel_width" json:"rf_channel_width"` - //TxPower int16 `gorm:"column:tx_power" json:"tx_power"` - //WirelessLinkID int64 `gorm:"column:wireless_link_id" json:"wireless_link_id"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` - //Duplex string `gorm:"column:duplex" json:"duplex"` - Speed int32 `gorm:"column:speed" json:"speed"` - Parent *DcimInterface `pg:"fk:parent_id"` - Device DcimDevice `pg:"fk:device_id"` - LAG *DcimInterface `pg:"fk:lag_id"` - Tags []string `sql:"-"` -} - -// TableName DcimInterface's table name -func (*DcimInterface) TableName() string { - return TableNameDcimInterface -} diff --git a/pkg/connector/netbox/model/gen/dcim_interface_tagged_vlans.gen.go b/pkg/connector/netbox/model/gen/dcim_interface_tagged_vlans.gen.go deleted file mode 100644 index a20d513..0000000 --- a/pkg/connector/netbox/model/gen/dcim_interface_tagged_vlans.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameDcimInterfaceTaggedVlan = "dcim_interface_tagged_vlans" - -// DcimInterfaceTaggedVlan mapped from table -type DcimInterfaceTaggedVlan struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - InterfaceID int64 `gorm:"column:interface_id;not null" json:"interface_id"` - VlanID int64 `gorm:"column:vlan_id;not null" json:"vlan_id"` -} - -// TableName DcimInterfaceTaggedVlan's table name -func (*DcimInterfaceTaggedVlan) TableName() string { - return TableNameDcimInterfaceTaggedVlan -} diff --git a/pkg/connector/netbox/model/gen/dcim_interface_wireless_lans.gen.go b/pkg/connector/netbox/model/gen/dcim_interface_wireless_lans.gen.go deleted file mode 100644 index 8725e80..0000000 --- a/pkg/connector/netbox/model/gen/dcim_interface_wireless_lans.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameDcimInterfaceWirelessLan = "dcim_interface_wireless_lans" - -// DcimInterfaceWirelessLan mapped from table -type DcimInterfaceWirelessLan struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - InterfaceID int64 `gorm:"column:interface_id;not null" json:"interface_id"` - WirelesslanID int64 `gorm:"column:wirelesslan_id;not null" json:"wirelesslan_id"` -} - -// TableName DcimInterfaceWirelessLan's table name -func (*DcimInterfaceWirelessLan) TableName() string { - return TableNameDcimInterfaceWirelessLan -} diff --git a/pkg/connector/netbox/model/gen/dcim_interfacetemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_interfacetemplate.gen.go deleted file mode 100644 index f32ad44..0000000 --- a/pkg/connector/netbox/model/gen/dcim_interfacetemplate.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimInterfacetemplate = "dcim_interfacetemplate" - -// DcimInterfacetemplate mapped from table -type DcimInterfacetemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - MgmtOnly bool `gorm:"column:mgmt_only;not null" json:"mgmt_only"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimInterfacetemplate's table name -func (*DcimInterfacetemplate) TableName() string { - return TableNameDcimInterfacetemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_inventoryitem.gen.go b/pkg/connector/netbox/model/gen/dcim_inventoryitem.gen.go deleted file mode 100644 index a95d4f3..0000000 --- a/pkg/connector/netbox/model/gen/dcim_inventoryitem.gen.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimInventoryitem = "dcim_inventoryitem" - -// DcimInventoryitem mapped from table -type DcimInventoryitem struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - PartID string `gorm:"column:part_id;not null" json:"part_id"` - Serial string `gorm:"column:serial;not null" json:"serial"` - AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` - Discovered bool `gorm:"column:discovered;not null" json:"discovered"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` - ComponentID int64 `gorm:"column:component_id" json:"component_id"` - ComponentTypeID int32 `gorm:"column:component_type_id" json:"component_type_id"` -} - -// TableName DcimInventoryitem's table name -func (*DcimInventoryitem) TableName() string { - return TableNameDcimInventoryitem -} diff --git a/pkg/connector/netbox/model/gen/dcim_inventoryitemrole.gen.go b/pkg/connector/netbox/model/gen/dcim_inventoryitemrole.gen.go deleted file mode 100644 index 54d02fd..0000000 --- a/pkg/connector/netbox/model/gen/dcim_inventoryitemrole.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimInventoryitemrole = "dcim_inventoryitemrole" - -// DcimInventoryitemrole mapped from table -type DcimInventoryitemrole struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Color string `gorm:"column:color;not null" json:"color"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName DcimInventoryitemrole's table name -func (*DcimInventoryitemrole) TableName() string { - return TableNameDcimInventoryitemrole -} diff --git a/pkg/connector/netbox/model/gen/dcim_inventoryitemtemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_inventoryitemtemplate.gen.go deleted file mode 100644 index 4e8d6f2..0000000 --- a/pkg/connector/netbox/model/gen/dcim_inventoryitemtemplate.gen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimInventoryitemtemplate = "dcim_inventoryitemtemplate" - -// DcimInventoryitemtemplate mapped from table -type DcimInventoryitemtemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - ComponentID int64 `gorm:"column:component_id" json:"component_id"` - PartID string `gorm:"column:part_id;not null" json:"part_id"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ComponentTypeID int32 `gorm:"column:component_type_id" json:"component_type_id"` - DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` - ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` -} - -// TableName DcimInventoryitemtemplate's table name -func (*DcimInventoryitemtemplate) TableName() string { - return TableNameDcimInventoryitemtemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_location.gen.go b/pkg/connector/netbox/model/gen/dcim_location.gen.go deleted file mode 100644 index 65eece0..0000000 --- a/pkg/connector/netbox/model/gen/dcim_location.gen.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimLocation = "dcim_location" - -// DcimLocation mapped from table -type DcimLocation struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName DcimLocation's table name -func (*DcimLocation) TableName() string { - return TableNameDcimLocation -} diff --git a/pkg/connector/netbox/model/gen/dcim_manufacturer.gen.go b/pkg/connector/netbox/model/gen/dcim_manufacturer.gen.go deleted file mode 100644 index 0c52e4c..0000000 --- a/pkg/connector/netbox/model/gen/dcim_manufacturer.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimManufacturer = "dcim_manufacturer" - -// DcimManufacturer mapped from table -type DcimManufacturer struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName DcimManufacturer's table name -func (*DcimManufacturer) TableName() string { - return TableNameDcimManufacturer -} diff --git a/pkg/connector/netbox/model/gen/dcim_module.gen.go b/pkg/connector/netbox/model/gen/dcim_module.gen.go deleted file mode 100644 index 999570c..0000000 --- a/pkg/connector/netbox/model/gen/dcim_module.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimModule = "dcim_module" - -// DcimModule mapped from table -type DcimModule struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"` - Serial string `gorm:"column:serial;not null" json:"serial"` - AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` - Comments string `gorm:"column:comments;not null" json:"comments"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - ModuleBayID int64 `gorm:"column:module_bay_id;not null" json:"module_bay_id"` - ModuleTypeID int64 `gorm:"column:module_type_id;not null" json:"module_type_id"` -} - -// TableName DcimModule's table name -func (*DcimModule) TableName() string { - return TableNameDcimModule -} diff --git a/pkg/connector/netbox/model/gen/dcim_modulebay.gen.go b/pkg/connector/netbox/model/gen/dcim_modulebay.gen.go deleted file mode 100644 index 3e5dddc..0000000 --- a/pkg/connector/netbox/model/gen/dcim_modulebay.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimModulebay = "dcim_modulebay" - -// DcimModulebay mapped from table -type DcimModulebay struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Position string `gorm:"column:position;not null" json:"position"` - Description string `gorm:"column:description;not null" json:"description"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` -} - -// TableName DcimModulebay's table name -func (*DcimModulebay) TableName() string { - return TableNameDcimModulebay -} diff --git a/pkg/connector/netbox/model/gen/dcim_modulebaytemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_modulebaytemplate.gen.go deleted file mode 100644 index d8fbc1a..0000000 --- a/pkg/connector/netbox/model/gen/dcim_modulebaytemplate.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimModulebaytemplate = "dcim_modulebaytemplate" - -// DcimModulebaytemplate mapped from table -type DcimModulebaytemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Position string `gorm:"column:position;not null" json:"position"` - Description string `gorm:"column:description;not null" json:"description"` - DeviceTypeID int64 `gorm:"column:device_type_id;not null" json:"device_type_id"` -} - -// TableName DcimModulebaytemplate's table name -func (*DcimModulebaytemplate) TableName() string { - return TableNameDcimModulebaytemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_moduletype.gen.go b/pkg/connector/netbox/model/gen/dcim_moduletype.gen.go deleted file mode 100644 index 0572256..0000000 --- a/pkg/connector/netbox/model/gen/dcim_moduletype.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimModuletype = "dcim_moduletype" - -// DcimModuletype mapped from table -type DcimModuletype struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Model string `gorm:"column:model;not null" json:"model"` - PartNumber string `gorm:"column:part_number;not null" json:"part_number"` - Comments string `gorm:"column:comments;not null" json:"comments"` - ManufacturerID int64 `gorm:"column:manufacturer_id;not null" json:"manufacturer_id"` -} - -// TableName DcimModuletype's table name -func (*DcimModuletype) TableName() string { - return TableNameDcimModuletype -} diff --git a/pkg/connector/netbox/model/gen/dcim_platform.gen.go b/pkg/connector/netbox/model/gen/dcim_platform.gen.go deleted file mode 100644 index fb66b74..0000000 --- a/pkg/connector/netbox/model/gen/dcim_platform.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPlatform = "dcim_platform" - -// DcimPlatform mapped from table -type DcimPlatform struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - NapalmDriver string `gorm:"column:napalm_driver;not null" json:"napalm_driver"` - NapalmArgs string `gorm:"column:napalm_args" json:"napalm_args"` - Description string `gorm:"column:description;not null" json:"description"` - ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"` -} - -// TableName DcimPlatform's table name -func (*DcimPlatform) TableName() string { - return TableNameDcimPlatform -} diff --git a/pkg/connector/netbox/model/gen/dcim_powerfeed.gen.go b/pkg/connector/netbox/model/gen/dcim_powerfeed.gen.go deleted file mode 100644 index da91eef..0000000 --- a/pkg/connector/netbox/model/gen/dcim_powerfeed.gen.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPowerfeed = "dcim_powerfeed" - -// DcimPowerfeed mapped from table -type DcimPowerfeed struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - Name string `gorm:"column:name;not null" json:"name"` - Status string `gorm:"column:status;not null" json:"status"` - Type string `gorm:"column:type;not null" json:"type"` - Supply string `gorm:"column:supply;not null" json:"supply"` - Phase string `gorm:"column:phase;not null" json:"phase"` - Voltage int16 `gorm:"column:voltage;not null" json:"voltage"` - Amperage int16 `gorm:"column:amperage;not null" json:"amperage"` - MaxUtilization int16 `gorm:"column:max_utilization;not null" json:"max_utilization"` - AvailablePower int32 `gorm:"column:available_power;not null" json:"available_power"` - Comments string `gorm:"column:comments;not null" json:"comments"` - LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - PowerPanelID int64 `gorm:"column:power_panel_id;not null" json:"power_panel_id"` - RackID int64 `gorm:"column:rack_id" json:"rack_id"` -} - -// TableName DcimPowerfeed's table name -func (*DcimPowerfeed) TableName() string { - return TableNameDcimPowerfeed -} diff --git a/pkg/connector/netbox/model/gen/dcim_poweroutlet.gen.go b/pkg/connector/netbox/model/gen/dcim_poweroutlet.gen.go deleted file mode 100644 index 231ceb8..0000000 --- a/pkg/connector/netbox/model/gen/dcim_poweroutlet.gen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPoweroutlet = "dcim_poweroutlet" - -// DcimPoweroutlet mapped from table -type DcimPoweroutlet struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - Type string `gorm:"column:type;not null" json:"type"` - FeedLeg string `gorm:"column:feed_leg;not null" json:"feed_leg"` - LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - PowerPortID int64 `gorm:"column:power_port_id" json:"power_port_id"` - ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimPoweroutlet's table name -func (*DcimPoweroutlet) TableName() string { - return TableNameDcimPoweroutlet -} diff --git a/pkg/connector/netbox/model/gen/dcim_poweroutlettemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_poweroutlettemplate.gen.go deleted file mode 100644 index 53f2c36..0000000 --- a/pkg/connector/netbox/model/gen/dcim_poweroutlettemplate.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPoweroutlettemplate = "dcim_poweroutlettemplate" - -// DcimPoweroutlettemplate mapped from table -type DcimPoweroutlettemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - FeedLeg string `gorm:"column:feed_leg;not null" json:"feed_leg"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - PowerPortID int64 `gorm:"column:power_port_id" json:"power_port_id"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimPoweroutlettemplate's table name -func (*DcimPoweroutlettemplate) TableName() string { - return TableNameDcimPoweroutlettemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_powerpanel.gen.go b/pkg/connector/netbox/model/gen/dcim_powerpanel.gen.go deleted file mode 100644 index 86b16f8..0000000 --- a/pkg/connector/netbox/model/gen/dcim_powerpanel.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPowerpanel = "dcim_powerpanel" - -// DcimPowerpanel mapped from table -type DcimPowerpanel struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - LocationID int64 `gorm:"column:location_id" json:"location_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` -} - -// TableName DcimPowerpanel's table name -func (*DcimPowerpanel) TableName() string { - return TableNameDcimPowerpanel -} diff --git a/pkg/connector/netbox/model/gen/dcim_powerport.gen.go b/pkg/connector/netbox/model/gen/dcim_powerport.gen.go deleted file mode 100644 index 126beb0..0000000 --- a/pkg/connector/netbox/model/gen/dcim_powerport.gen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPowerport = "dcim_powerport" - -// DcimPowerport mapped from table -type DcimPowerport struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - Type string `gorm:"column:type;not null" json:"type"` - MaximumDraw int16 `gorm:"column:maximum_draw" json:"maximum_draw"` - AllocatedDraw int16 `gorm:"column:allocated_draw" json:"allocated_draw"` - LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - PathID int64 `gorm:"column:_path_id" json:"_path_id"` - CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimPowerport's table name -func (*DcimPowerport) TableName() string { - return TableNameDcimPowerport -} diff --git a/pkg/connector/netbox/model/gen/dcim_powerporttemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_powerporttemplate.gen.go deleted file mode 100644 index 06e043d..0000000 --- a/pkg/connector/netbox/model/gen/dcim_powerporttemplate.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimPowerporttemplate = "dcim_powerporttemplate" - -// DcimPowerporttemplate mapped from table -type DcimPowerporttemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - MaximumDraw int16 `gorm:"column:maximum_draw" json:"maximum_draw"` - AllocatedDraw int16 `gorm:"column:allocated_draw" json:"allocated_draw"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimPowerporttemplate's table name -func (*DcimPowerporttemplate) TableName() string { - return TableNameDcimPowerporttemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_rack.gen.go b/pkg/connector/netbox/model/gen/dcim_rack.gen.go deleted file mode 100644 index 71a5d75..0000000 --- a/pkg/connector/netbox/model/gen/dcim_rack.gen.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimRack = "dcim_rack" - -// DcimRack mapped from table -type DcimRack struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - FacilityID string `gorm:"column:facility_id" json:"facility_id"` - Status string `gorm:"column:status;not null" json:"status"` - Serial string `gorm:"column:serial;not null" json:"serial"` - AssetTag string `gorm:"column:asset_tag" json:"asset_tag"` - Type string `gorm:"column:type;not null" json:"type"` - Width int16 `gorm:"column:width;not null" json:"width"` - UHeight int16 `gorm:"column:u_height;not null" json:"u_height"` - DescUnits bool `gorm:"column:desc_units;not null" json:"desc_units"` - OuterWidth int16 `gorm:"column:outer_width" json:"outer_width"` - OuterDepth int16 `gorm:"column:outer_depth" json:"outer_depth"` - OuterUnit string `gorm:"column:outer_unit;not null" json:"outer_unit"` - Comments string `gorm:"column:comments;not null" json:"comments"` - LocationID int64 `gorm:"column:location_id" json:"location_id"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName DcimRack's table name -func (*DcimRack) TableName() string { - return TableNameDcimRack -} diff --git a/pkg/connector/netbox/model/gen/dcim_rackreservation.gen.go b/pkg/connector/netbox/model/gen/dcim_rackreservation.gen.go deleted file mode 100644 index 06d9a7c..0000000 --- a/pkg/connector/netbox/model/gen/dcim_rackreservation.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimRackreservation = "dcim_rackreservation" - -// DcimRackreservation mapped from table -type DcimRackreservation struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Units string `gorm:"column:units;not null" json:"units"` - Description string `gorm:"column:description;not null" json:"description"` - RackID int64 `gorm:"column:rack_id;not null" json:"rack_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` -} - -// TableName DcimRackreservation's table name -func (*DcimRackreservation) TableName() string { - return TableNameDcimRackreservation -} diff --git a/pkg/connector/netbox/model/gen/dcim_rackrole.gen.go b/pkg/connector/netbox/model/gen/dcim_rackrole.gen.go deleted file mode 100644 index 8e84c3d..0000000 --- a/pkg/connector/netbox/model/gen/dcim_rackrole.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimRackrole = "dcim_rackrole" - -// DcimRackrole mapped from table -type DcimRackrole struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Color string `gorm:"column:color;not null" json:"color"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName DcimRackrole's table name -func (*DcimRackrole) TableName() string { - return TableNameDcimRackrole -} diff --git a/pkg/connector/netbox/model/gen/dcim_rearport.gen.go b/pkg/connector/netbox/model/gen/dcim_rearport.gen.go deleted file mode 100644 index acbc893..0000000 --- a/pkg/connector/netbox/model/gen/dcim_rearport.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -package model - -const TableNameDcimRearport = "dcim_rearport" - -// DcimRearport mapped from table -type DcimRearport struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - //Label string `gorm:"column:label;not null" json:"label"` - //Description string `gorm:"column:description;not null" json:"description"` - //LinkPeerID int64 `gorm:"column:_link_peer_id" json:"_link_peer_id"` - //MarkConnected bool `gorm:"column:mark_connected;not null" json:"mark_connected"` - //Type string `gorm:"column:type;not null" json:"type"` - Positions int16 `gorm:"column:positions;not null" json:"positions"` - //LinkPeerTypeID int32 `gorm:"column:_link_peer_type_id" json:"_link_peer_type_id"` - //CableID int64 `gorm:"column:cable_id" json:"cable_id"` - DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"` - //Color string `gorm:"column:color;not null" json:"color"` - //ModuleID int64 `gorm:"column:module_id" json:"module_id"` -} - -// TableName DcimRearport's table name -func (*DcimRearport) TableName() string { - return TableNameDcimRearport -} diff --git a/pkg/connector/netbox/model/gen/dcim_rearporttemplate.gen.go b/pkg/connector/netbox/model/gen/dcim_rearporttemplate.gen.go deleted file mode 100644 index a7ccf71..0000000 --- a/pkg/connector/netbox/model/gen/dcim_rearporttemplate.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimRearporttemplate = "dcim_rearporttemplate" - -// DcimRearporttemplate mapped from table -type DcimRearporttemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Type string `gorm:"column:type;not null" json:"type"` - Positions int16 `gorm:"column:positions;not null" json:"positions"` - DeviceTypeID int64 `gorm:"column:device_type_id" json:"device_type_id"` - Color string `gorm:"column:color;not null" json:"color"` - ModuleTypeID int64 `gorm:"column:module_type_id" json:"module_type_id"` -} - -// TableName DcimRearporttemplate's table name -func (*DcimRearporttemplate) TableName() string { - return TableNameDcimRearporttemplate -} diff --git a/pkg/connector/netbox/model/gen/dcim_region.gen.go b/pkg/connector/netbox/model/gen/dcim_region.gen.go deleted file mode 100644 index e9b0f80..0000000 --- a/pkg/connector/netbox/model/gen/dcim_region.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimRegion = "dcim_region" - -// DcimRegion mapped from table -type DcimRegion struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` -} - -// TableName DcimRegion's table name -func (*DcimRegion) TableName() string { - return TableNameDcimRegion -} diff --git a/pkg/connector/netbox/model/gen/dcim_site.gen.go b/pkg/connector/netbox/model/gen/dcim_site.gen.go deleted file mode 100644 index 7118c2b..0000000 --- a/pkg/connector/netbox/model/gen/dcim_site.gen.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimSite = "dcim_site" - -// DcimSite mapped from table -type DcimSite struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Status string `gorm:"column:status;not null" json:"status"` - Facility string `gorm:"column:facility;not null" json:"facility"` - TimeZone string `gorm:"column:time_zone;not null" json:"time_zone"` - Description string `gorm:"column:description;not null" json:"description"` - PhysicalAddress string `gorm:"column:physical_address;not null" json:"physical_address"` - ShippingAddress string `gorm:"column:shipping_address;not null" json:"shipping_address"` - Latitude float64 `gorm:"column:latitude" json:"latitude"` - Longitude float64 `gorm:"column:longitude" json:"longitude"` - Comments string `gorm:"column:comments;not null" json:"comments"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - RegionID int64 `gorm:"column:region_id" json:"region_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName DcimSite's table name -func (*DcimSite) TableName() string { - return TableNameDcimSite -} diff --git a/pkg/connector/netbox/model/gen/dcim_site_asns.gen.go b/pkg/connector/netbox/model/gen/dcim_site_asns.gen.go deleted file mode 100644 index 6d6f1dc..0000000 --- a/pkg/connector/netbox/model/gen/dcim_site_asns.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameDcimSiteAsn = "dcim_site_asns" - -// DcimSiteAsn mapped from table -type DcimSiteAsn struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` - AsnID int64 `gorm:"column:asn_id;not null" json:"asn_id"` -} - -// TableName DcimSiteAsn's table name -func (*DcimSiteAsn) TableName() string { - return TableNameDcimSiteAsn -} diff --git a/pkg/connector/netbox/model/gen/dcim_sitegroup.gen.go b/pkg/connector/netbox/model/gen/dcim_sitegroup.gen.go deleted file mode 100644 index cc963f0..0000000 --- a/pkg/connector/netbox/model/gen/dcim_sitegroup.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimSitegroup = "dcim_sitegroup" - -// DcimSitegroup mapped from table -type DcimSitegroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` -} - -// TableName DcimSitegroup's table name -func (*DcimSitegroup) TableName() string { - return TableNameDcimSitegroup -} diff --git a/pkg/connector/netbox/model/gen/dcim_virtualchassis.gen.go b/pkg/connector/netbox/model/gen/dcim_virtualchassis.gen.go deleted file mode 100644 index e17ce2b..0000000 --- a/pkg/connector/netbox/model/gen/dcim_virtualchassis.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDcimVirtualchassi = "dcim_virtualchassis" - -// DcimVirtualchassi mapped from table -type DcimVirtualchassi struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Domain string `gorm:"column:domain;not null" json:"domain"` - MasterID int64 `gorm:"column:master_id" json:"master_id"` -} - -// TableName DcimVirtualchassi's table name -func (*DcimVirtualchassi) TableName() string { - return TableNameDcimVirtualchassi -} diff --git a/pkg/connector/netbox/model/gen/django_admin_log.gen.go b/pkg/connector/netbox/model/gen/django_admin_log.gen.go deleted file mode 100644 index c65c737..0000000 --- a/pkg/connector/netbox/model/gen/django_admin_log.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDjangoAdminLog = "django_admin_log" - -// DjangoAdminLog mapped from table -type DjangoAdminLog struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ActionTime time.Time `gorm:"column:action_time;not null" json:"action_time"` - ObjectID string `gorm:"column:object_id" json:"object_id"` - ObjectRepr string `gorm:"column:object_repr;not null" json:"object_repr"` - ActionFlag int16 `gorm:"column:action_flag;not null" json:"action_flag"` - ChangeMessage string `gorm:"column:change_message;not null" json:"change_message"` - ContentTypeID int32 `gorm:"column:content_type_id" json:"content_type_id"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` -} - -// TableName DjangoAdminLog's table name -func (*DjangoAdminLog) TableName() string { - return TableNameDjangoAdminLog -} diff --git a/pkg/connector/netbox/model/gen/django_content_type.gen.go b/pkg/connector/netbox/model/gen/django_content_type.gen.go deleted file mode 100644 index b456355..0000000 --- a/pkg/connector/netbox/model/gen/django_content_type.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameDjangoContentType = "django_content_type" - -// DjangoContentType mapped from table -type DjangoContentType struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - AppLabel string `gorm:"column:app_label;not null" json:"app_label"` - Model string `gorm:"column:model;not null" json:"model"` -} - -// TableName DjangoContentType's table name -func (*DjangoContentType) TableName() string { - return TableNameDjangoContentType -} diff --git a/pkg/connector/netbox/model/gen/django_migrations.gen.go b/pkg/connector/netbox/model/gen/django_migrations.gen.go deleted file mode 100644 index 8cd7d8a..0000000 --- a/pkg/connector/netbox/model/gen/django_migrations.gen.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDjangoMigration = "django_migrations" - -// DjangoMigration mapped from table -type DjangoMigration struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - App string `gorm:"column:app;not null" json:"app"` - Name string `gorm:"column:name;not null" json:"name"` - Applied time.Time `gorm:"column:applied;not null" json:"applied"` -} - -// TableName DjangoMigration's table name -func (*DjangoMigration) TableName() string { - return TableNameDjangoMigration -} diff --git a/pkg/connector/netbox/model/gen/django_session.gen.go b/pkg/connector/netbox/model/gen/django_session.gen.go deleted file mode 100644 index 2e7599a..0000000 --- a/pkg/connector/netbox/model/gen/django_session.gen.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameDjangoSession = "django_session" - -// DjangoSession mapped from table -type DjangoSession struct { - SessionKey string `gorm:"column:session_key;primaryKey" json:"session_key"` - SessionData string `gorm:"column:session_data;not null" json:"session_data"` - ExpireDate time.Time `gorm:"column:expire_date;not null" json:"expire_date"` -} - -// TableName DjangoSession's table name -func (*DjangoSession) TableName() string { - return TableNameDjangoSession -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext.gen.go deleted file mode 100644 index f78547f..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasConfigcontext = "extras_configcontext" - -// ExtrasConfigcontext mapped from table -type ExtrasConfigcontext struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Weight int16 `gorm:"column:weight;not null" json:"weight"` - Description string `gorm:"column:description;not null" json:"description"` - IsActive bool `gorm:"column:is_active;not null" json:"is_active"` - Data string `gorm:"column:data;not null" json:"data"` -} - -// TableName ExtrasConfigcontext's table name -func (*ExtrasConfigcontext) TableName() string { - return TableNameExtrasConfigcontext -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_cluster_groups.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_cluster_groups.gen.go deleted file mode 100644 index c888c97..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_cluster_groups.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextClusterGroup = "extras_configcontext_cluster_groups" - -// ExtrasConfigcontextClusterGroup mapped from table -type ExtrasConfigcontextClusterGroup struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - ClustergroupID int64 `gorm:"column:clustergroup_id;not null" json:"clustergroup_id"` -} - -// TableName ExtrasConfigcontextClusterGroup's table name -func (*ExtrasConfigcontextClusterGroup) TableName() string { - return TableNameExtrasConfigcontextClusterGroup -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_cluster_types.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_cluster_types.gen.go deleted file mode 100644 index 73cc56a..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_cluster_types.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextClusterType = "extras_configcontext_cluster_types" - -// ExtrasConfigcontextClusterType mapped from table -type ExtrasConfigcontextClusterType struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - ClustertypeID int64 `gorm:"column:clustertype_id;not null" json:"clustertype_id"` -} - -// TableName ExtrasConfigcontextClusterType's table name -func (*ExtrasConfigcontextClusterType) TableName() string { - return TableNameExtrasConfigcontextClusterType -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_clusters.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_clusters.gen.go deleted file mode 100644 index e2910b2..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_clusters.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextCluster = "extras_configcontext_clusters" - -// ExtrasConfigcontextCluster mapped from table -type ExtrasConfigcontextCluster struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - ClusterID int64 `gorm:"column:cluster_id;not null" json:"cluster_id"` -} - -// TableName ExtrasConfigcontextCluster's table name -func (*ExtrasConfigcontextCluster) TableName() string { - return TableNameExtrasConfigcontextCluster -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_device_types.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_device_types.gen.go deleted file mode 100644 index 4df0b28..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_device_types.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextDeviceType = "extras_configcontext_device_types" - -// ExtrasConfigcontextDeviceType mapped from table -type ExtrasConfigcontextDeviceType struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - DevicetypeID int64 `gorm:"column:devicetype_id;not null" json:"devicetype_id"` -} - -// TableName ExtrasConfigcontextDeviceType's table name -func (*ExtrasConfigcontextDeviceType) TableName() string { - return TableNameExtrasConfigcontextDeviceType -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_platforms.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_platforms.gen.go deleted file mode 100644 index e6db2d0..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_platforms.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextPlatform = "extras_configcontext_platforms" - -// ExtrasConfigcontextPlatform mapped from table -type ExtrasConfigcontextPlatform struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - PlatformID int64 `gorm:"column:platform_id;not null" json:"platform_id"` -} - -// TableName ExtrasConfigcontextPlatform's table name -func (*ExtrasConfigcontextPlatform) TableName() string { - return TableNameExtrasConfigcontextPlatform -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_regions.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_regions.gen.go deleted file mode 100644 index be7ff4a..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_regions.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextRegion = "extras_configcontext_regions" - -// ExtrasConfigcontextRegion mapped from table -type ExtrasConfigcontextRegion struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - RegionID int64 `gorm:"column:region_id;not null" json:"region_id"` -} - -// TableName ExtrasConfigcontextRegion's table name -func (*ExtrasConfigcontextRegion) TableName() string { - return TableNameExtrasConfigcontextRegion -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_roles.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_roles.gen.go deleted file mode 100644 index 41903ff..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_roles.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextRole = "extras_configcontext_roles" - -// ExtrasConfigcontextRole mapped from table -type ExtrasConfigcontextRole struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - DeviceroleID int64 `gorm:"column:devicerole_id;not null" json:"devicerole_id"` -} - -// TableName ExtrasConfigcontextRole's table name -func (*ExtrasConfigcontextRole) TableName() string { - return TableNameExtrasConfigcontextRole -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_site_groups.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_site_groups.gen.go deleted file mode 100644 index 6d2131e..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_site_groups.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextSiteGroup = "extras_configcontext_site_groups" - -// ExtrasConfigcontextSiteGroup mapped from table -type ExtrasConfigcontextSiteGroup struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - SitegroupID int64 `gorm:"column:sitegroup_id;not null" json:"sitegroup_id"` -} - -// TableName ExtrasConfigcontextSiteGroup's table name -func (*ExtrasConfigcontextSiteGroup) TableName() string { - return TableNameExtrasConfigcontextSiteGroup -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_sites.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_sites.gen.go deleted file mode 100644 index 1e8d6f0..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_sites.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextSite = "extras_configcontext_sites" - -// ExtrasConfigcontextSite mapped from table -type ExtrasConfigcontextSite struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - SiteID int64 `gorm:"column:site_id;not null" json:"site_id"` -} - -// TableName ExtrasConfigcontextSite's table name -func (*ExtrasConfigcontextSite) TableName() string { - return TableNameExtrasConfigcontextSite -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_tags.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_tags.gen.go deleted file mode 100644 index e3d7c9c..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_tags.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextTag = "extras_configcontext_tags" - -// ExtrasConfigcontextTag mapped from table -type ExtrasConfigcontextTag struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - TagID int64 `gorm:"column:tag_id;not null" json:"tag_id"` -} - -// TableName ExtrasConfigcontextTag's table name -func (*ExtrasConfigcontextTag) TableName() string { - return TableNameExtrasConfigcontextTag -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_tenant_groups.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_tenant_groups.gen.go deleted file mode 100644 index 6d188e3..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_tenant_groups.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextTenantGroup = "extras_configcontext_tenant_groups" - -// ExtrasConfigcontextTenantGroup mapped from table -type ExtrasConfigcontextTenantGroup struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - TenantgroupID int64 `gorm:"column:tenantgroup_id;not null" json:"tenantgroup_id"` -} - -// TableName ExtrasConfigcontextTenantGroup's table name -func (*ExtrasConfigcontextTenantGroup) TableName() string { - return TableNameExtrasConfigcontextTenantGroup -} diff --git a/pkg/connector/netbox/model/gen/extras_configcontext_tenants.gen.go b/pkg/connector/netbox/model/gen/extras_configcontext_tenants.gen.go deleted file mode 100644 index ad272d4..0000000 --- a/pkg/connector/netbox/model/gen/extras_configcontext_tenants.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasConfigcontextTenant = "extras_configcontext_tenants" - -// ExtrasConfigcontextTenant mapped from table -type ExtrasConfigcontextTenant struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ConfigcontextID int64 `gorm:"column:configcontext_id;not null" json:"configcontext_id"` - TenantID int64 `gorm:"column:tenant_id;not null" json:"tenant_id"` -} - -// TableName ExtrasConfigcontextTenant's table name -func (*ExtrasConfigcontextTenant) TableName() string { - return TableNameExtrasConfigcontextTenant -} diff --git a/pkg/connector/netbox/model/gen/extras_configrevision.gen.go b/pkg/connector/netbox/model/gen/extras_configrevision.gen.go deleted file mode 100644 index 1d8b5ee..0000000 --- a/pkg/connector/netbox/model/gen/extras_configrevision.gen.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasConfigrevision = "extras_configrevision" - -// ExtrasConfigrevision mapped from table -type ExtrasConfigrevision struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Created time.Time `gorm:"column:created;not null" json:"created"` - Comment string `gorm:"column:comment;not null" json:"comment"` - Data string `gorm:"column:data" json:"data"` -} - -// TableName ExtrasConfigrevision's table name -func (*ExtrasConfigrevision) TableName() string { - return TableNameExtrasConfigrevision -} diff --git a/pkg/connector/netbox/model/gen/extras_customfield.gen.go b/pkg/connector/netbox/model/gen/extras_customfield.gen.go deleted file mode 100644 index bcd88ff..0000000 --- a/pkg/connector/netbox/model/gen/extras_customfield.gen.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasCustomfield = "extras_customfield" - -// ExtrasCustomfield mapped from table -type ExtrasCustomfield struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Type string `gorm:"column:type;not null" json:"type"` - Name string `gorm:"column:name;not null" json:"name"` - Label string `gorm:"column:label;not null" json:"label"` - Description string `gorm:"column:description;not null" json:"description"` - Required bool `gorm:"column:required;not null" json:"required"` - FilterLogic string `gorm:"column:filter_logic;not null" json:"filter_logic"` - Default string `gorm:"column:default" json:"default"` - Weight int16 `gorm:"column:weight;not null" json:"weight"` - ValidationMinimum int32 `gorm:"column:validation_minimum" json:"validation_minimum"` - ValidationMaximum int32 `gorm:"column:validation_maximum" json:"validation_maximum"` - ValidationRegex string `gorm:"column:validation_regex;not null" json:"validation_regex"` - Choices string `gorm:"column:choices" json:"choices"` - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ObjectTypeID int32 `gorm:"column:object_type_id" json:"object_type_id"` -} - -// TableName ExtrasCustomfield's table name -func (*ExtrasCustomfield) TableName() string { - return TableNameExtrasCustomfield -} diff --git a/pkg/connector/netbox/model/gen/extras_customfield_content_types.gen.go b/pkg/connector/netbox/model/gen/extras_customfield_content_types.gen.go deleted file mode 100644 index 45583b9..0000000 --- a/pkg/connector/netbox/model/gen/extras_customfield_content_types.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasCustomfieldContentType = "extras_customfield_content_types" - -// ExtrasCustomfieldContentType mapped from table -type ExtrasCustomfieldContentType struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - CustomfieldID int64 `gorm:"column:customfield_id;not null" json:"customfield_id"` - ContenttypeID int32 `gorm:"column:contenttype_id;not null" json:"contenttype_id"` -} - -// TableName ExtrasCustomfieldContentType's table name -func (*ExtrasCustomfieldContentType) TableName() string { - return TableNameExtrasCustomfieldContentType -} diff --git a/pkg/connector/netbox/model/gen/extras_customlink.gen.go b/pkg/connector/netbox/model/gen/extras_customlink.gen.go deleted file mode 100644 index 47be73d..0000000 --- a/pkg/connector/netbox/model/gen/extras_customlink.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasCustomlink = "extras_customlink" - -// ExtrasCustomlink mapped from table -type ExtrasCustomlink struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - LinkText string `gorm:"column:link_text;not null" json:"link_text"` - LinkURL string `gorm:"column:link_url;not null" json:"link_url"` - Weight int16 `gorm:"column:weight;not null" json:"weight"` - GroupName string `gorm:"column:group_name;not null" json:"group_name"` - ButtonClass string `gorm:"column:button_class;not null" json:"button_class"` - NewWindow bool `gorm:"column:new_window;not null" json:"new_window"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - Enabled bool `gorm:"column:enabled;not null" json:"enabled"` -} - -// TableName ExtrasCustomlink's table name -func (*ExtrasCustomlink) TableName() string { - return TableNameExtrasCustomlink -} diff --git a/pkg/connector/netbox/model/gen/extras_exporttemplate.gen.go b/pkg/connector/netbox/model/gen/extras_exporttemplate.gen.go deleted file mode 100644 index bed192e..0000000 --- a/pkg/connector/netbox/model/gen/extras_exporttemplate.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasExporttemplate = "extras_exporttemplate" - -// ExtrasExporttemplate mapped from table -type ExtrasExporttemplate struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Description string `gorm:"column:description;not null" json:"description"` - TemplateCode string `gorm:"column:template_code;not null" json:"template_code"` - MimeType string `gorm:"column:mime_type;not null" json:"mime_type"` - FileExtension string `gorm:"column:file_extension;not null" json:"file_extension"` - AsAttachment bool `gorm:"column:as_attachment;not null" json:"as_attachment"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -} - -// TableName ExtrasExporttemplate's table name -func (*ExtrasExporttemplate) TableName() string { - return TableNameExtrasExporttemplate -} diff --git a/pkg/connector/netbox/model/gen/extras_imageattachment.gen.go b/pkg/connector/netbox/model/gen/extras_imageattachment.gen.go deleted file mode 100644 index 95bf73b..0000000 --- a/pkg/connector/netbox/model/gen/extras_imageattachment.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasImageattachment = "extras_imageattachment" - -// ExtrasImageattachment mapped from table -type ExtrasImageattachment struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectID int64 `gorm:"column:object_id;not null" json:"object_id"` - Image string `gorm:"column:image;not null" json:"image"` - ImageHeight int16 `gorm:"column:image_height;not null" json:"image_height"` - ImageWidth int16 `gorm:"column:image_width;not null" json:"image_width"` - Name string `gorm:"column:name;not null" json:"name"` - Created time.Time `gorm:"column:created" json:"created"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` -} - -// TableName ExtrasImageattachment's table name -func (*ExtrasImageattachment) TableName() string { - return TableNameExtrasImageattachment -} diff --git a/pkg/connector/netbox/model/gen/extras_jobresult.gen.go b/pkg/connector/netbox/model/gen/extras_jobresult.gen.go deleted file mode 100644 index 21e9463..0000000 --- a/pkg/connector/netbox/model/gen/extras_jobresult.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasJobresult = "extras_jobresult" - -// ExtrasJobresult mapped from table -type ExtrasJobresult struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Created time.Time `gorm:"column:created;not null" json:"created"` - Completed time.Time `gorm:"column:completed" json:"completed"` - Status string `gorm:"column:status;not null" json:"status"` - Data string `gorm:"column:data" json:"data"` - JobID string `gorm:"column:job_id;not null" json:"job_id"` - ObjTypeID int32 `gorm:"column:obj_type_id;not null" json:"obj_type_id"` - UserID int32 `gorm:"column:user_id" json:"user_id"` -} - -// TableName ExtrasJobresult's table name -func (*ExtrasJobresult) TableName() string { - return TableNameExtrasJobresult -} diff --git a/pkg/connector/netbox/model/gen/extras_journalentry.gen.go b/pkg/connector/netbox/model/gen/extras_journalentry.gen.go deleted file mode 100644 index cc95ea9..0000000 --- a/pkg/connector/netbox/model/gen/extras_journalentry.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasJournalentry = "extras_journalentry" - -// ExtrasJournalentry mapped from table -type ExtrasJournalentry struct { - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - AssignedObjectID int64 `gorm:"column:assigned_object_id;not null" json:"assigned_object_id"` - Created time.Time `gorm:"column:created" json:"created"` - Kind string `gorm:"column:kind;not null" json:"kind"` - Comments string `gorm:"column:comments;not null" json:"comments"` - AssignedObjectTypeID int32 `gorm:"column:assigned_object_type_id;not null" json:"assigned_object_type_id"` - CreatedByID int32 `gorm:"column:created_by_id" json:"created_by_id"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` -} - -// TableName ExtrasJournalentry's table name -func (*ExtrasJournalentry) TableName() string { - return TableNameExtrasJournalentry -} diff --git a/pkg/connector/netbox/model/gen/extras_objectchange.gen.go b/pkg/connector/netbox/model/gen/extras_objectchange.gen.go deleted file mode 100644 index 5cdc7be..0000000 --- a/pkg/connector/netbox/model/gen/extras_objectchange.gen.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasObjectchange = "extras_objectchange" - -// ExtrasObjectchange mapped from table -type ExtrasObjectchange struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Time time.Time `gorm:"column:time;not null" json:"time"` - UserName string `gorm:"column:user_name;not null" json:"user_name"` - RequestID string `gorm:"column:request_id;not null" json:"request_id"` - Action string `gorm:"column:action;not null" json:"action"` - ChangedObjectID int64 `gorm:"column:changed_object_id;not null" json:"changed_object_id"` - RelatedObjectID int64 `gorm:"column:related_object_id" json:"related_object_id"` - ObjectRepr string `gorm:"column:object_repr;not null" json:"object_repr"` - PrechangeData string `gorm:"column:prechange_data" json:"prechange_data"` - PostchangeData string `gorm:"column:postchange_data" json:"postchange_data"` - ChangedObjectTypeID int32 `gorm:"column:changed_object_type_id;not null" json:"changed_object_type_id"` - RelatedObjectTypeID int32 `gorm:"column:related_object_type_id" json:"related_object_type_id"` - UserID int32 `gorm:"column:user_id" json:"user_id"` -} - -// TableName ExtrasObjectchange's table name -func (*ExtrasObjectchange) TableName() string { - return TableNameExtrasObjectchange -} diff --git a/pkg/connector/netbox/model/gen/extras_tag.gen.go b/pkg/connector/netbox/model/gen/extras_tag.gen.go deleted file mode 100644 index 17dc927..0000000 --- a/pkg/connector/netbox/model/gen/extras_tag.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasTag = "extras_tag" - -// ExtrasTag mapped from table -type ExtrasTag struct { - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Color string `gorm:"column:color;not null" json:"color"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName ExtrasTag's table name -func (*ExtrasTag) TableName() string { - return TableNameExtrasTag -} diff --git a/pkg/connector/netbox/model/gen/extras_taggeditem.gen.go b/pkg/connector/netbox/model/gen/extras_taggeditem.gen.go deleted file mode 100644 index e85606d..0000000 --- a/pkg/connector/netbox/model/gen/extras_taggeditem.gen.go +++ /dev/null @@ -1,17 +0,0 @@ -package model - -const TableNameExtrasTaggeditem = "extras_taggeditem" - -// ExtrasTaggeditem mapped from table -type ExtrasTaggeditem struct { - ObjectID int32 `gorm:"column:object_id;not null" json:"object_id"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - TagID int64 `gorm:"column:tag_id;not null" json:"tag_id"` - Tag ExtrasTag `pg:"fk:tag_id"` -} - -// TableName ExtrasTaggeditem's table name -func (*ExtrasTaggeditem) TableName() string { - return TableNameExtrasTaggeditem -} diff --git a/pkg/connector/netbox/model/gen/extras_webhook.gen.go b/pkg/connector/netbox/model/gen/extras_webhook.gen.go deleted file mode 100644 index bfdacbf..0000000 --- a/pkg/connector/netbox/model/gen/extras_webhook.gen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameExtrasWebhook = "extras_webhook" - -// ExtrasWebhook mapped from table -type ExtrasWebhook struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - TypeCreate bool `gorm:"column:type_create;not null" json:"type_create"` - TypeUpdate bool `gorm:"column:type_update;not null" json:"type_update"` - TypeDelete bool `gorm:"column:type_delete;not null" json:"type_delete"` - PayloadURL string `gorm:"column:payload_url;not null" json:"payload_url"` - Enabled bool `gorm:"column:enabled;not null" json:"enabled"` - HTTPMethod string `gorm:"column:http_method;not null" json:"http_method"` - HTTPContentType string `gorm:"column:http_content_type;not null" json:"http_content_type"` - AdditionalHeaders string `gorm:"column:additional_headers;not null" json:"additional_headers"` - BodyTemplate string `gorm:"column:body_template;not null" json:"body_template"` - Secret string `gorm:"column:secret;not null" json:"secret"` - SslVerification bool `gorm:"column:ssl_verification;not null" json:"ssl_verification"` - CaFilePath string `gorm:"column:ca_file_path" json:"ca_file_path"` - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - Conditions string `gorm:"column:conditions" json:"conditions"` -} - -// TableName ExtrasWebhook's table name -func (*ExtrasWebhook) TableName() string { - return TableNameExtrasWebhook -} diff --git a/pkg/connector/netbox/model/gen/extras_webhook_content_types.gen.go b/pkg/connector/netbox/model/gen/extras_webhook_content_types.gen.go deleted file mode 100644 index e102ff4..0000000 --- a/pkg/connector/netbox/model/gen/extras_webhook_content_types.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameExtrasWebhookContentType = "extras_webhook_content_types" - -// ExtrasWebhookContentType mapped from table -type ExtrasWebhookContentType struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - WebhookID int64 `gorm:"column:webhook_id;not null" json:"webhook_id"` - ContenttypeID int32 `gorm:"column:contenttype_id;not null" json:"contenttype_id"` -} - -// TableName ExtrasWebhookContentType's table name -func (*ExtrasWebhookContentType) TableName() string { - return TableNameExtrasWebhookContentType -} diff --git a/pkg/connector/netbox/model/gen/ipam_aggregate.gen.go b/pkg/connector/netbox/model/gen/ipam_aggregate.gen.go deleted file mode 100644 index 5820f06..0000000 --- a/pkg/connector/netbox/model/gen/ipam_aggregate.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamAggregate = "ipam_aggregate" - -// IpamAggregate mapped from table -type IpamAggregate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Prefix string `gorm:"column:prefix;not null" json:"prefix"` - DateAdded time.Time `gorm:"column:date_added" json:"date_added"` - Description string `gorm:"column:description;not null" json:"description"` - RirID int64 `gorm:"column:rir_id;not null" json:"rir_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName IpamAggregate's table name -func (*IpamAggregate) TableName() string { - return TableNameIpamAggregate -} diff --git a/pkg/connector/netbox/model/gen/ipam_asn.gen.go b/pkg/connector/netbox/model/gen/ipam_asn.gen.go deleted file mode 100644 index 75c10f6..0000000 --- a/pkg/connector/netbox/model/gen/ipam_asn.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamAsn = "ipam_asn" - -// IpamAsn mapped from table -type IpamAsn struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Asn int64 `gorm:"column:asn;not null" json:"asn"` - Description string `gorm:"column:description;not null" json:"description"` - RirID int64 `gorm:"column:rir_id;not null" json:"rir_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName IpamAsn's table name -func (*IpamAsn) TableName() string { - return TableNameIpamAsn -} diff --git a/pkg/connector/netbox/model/gen/ipam_fhrpgroup.gen.go b/pkg/connector/netbox/model/gen/ipam_fhrpgroup.gen.go deleted file mode 100644 index 64dd594..0000000 --- a/pkg/connector/netbox/model/gen/ipam_fhrpgroup.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamFhrpgroup = "ipam_fhrpgroup" - -// IpamFhrpgroup mapped from table -type IpamFhrpgroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - GroupID int16 `gorm:"column:group_id;not null" json:"group_id"` - Protocol string `gorm:"column:protocol;not null" json:"protocol"` - AuthType string `gorm:"column:auth_type;not null" json:"auth_type"` - AuthKey string `gorm:"column:auth_key;not null" json:"auth_key"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName IpamFhrpgroup's table name -func (*IpamFhrpgroup) TableName() string { - return TableNameIpamFhrpgroup -} diff --git a/pkg/connector/netbox/model/gen/ipam_fhrpgroupassignment.gen.go b/pkg/connector/netbox/model/gen/ipam_fhrpgroupassignment.gen.go deleted file mode 100644 index 2252343..0000000 --- a/pkg/connector/netbox/model/gen/ipam_fhrpgroupassignment.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamFhrpgroupassignment = "ipam_fhrpgroupassignment" - -// IpamFhrpgroupassignment mapped from table -type IpamFhrpgroupassignment struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - InterfaceID int64 `gorm:"column:interface_id;not null" json:"interface_id"` - Priority int16 `gorm:"column:priority;not null" json:"priority"` - GroupID int64 `gorm:"column:group_id;not null" json:"group_id"` - InterfaceTypeID int32 `gorm:"column:interface_type_id;not null" json:"interface_type_id"` -} - -// TableName IpamFhrpgroupassignment's table name -func (*IpamFhrpgroupassignment) TableName() string { - return TableNameIpamFhrpgroupassignment -} diff --git a/pkg/connector/netbox/model/gen/ipam_ipaddress.gen.go b/pkg/connector/netbox/model/gen/ipam_ipaddress.gen.go deleted file mode 100644 index 713c4af..0000000 --- a/pkg/connector/netbox/model/gen/ipam_ipaddress.gen.go +++ /dev/null @@ -1,26 +0,0 @@ -package model - -const TableNameIpamIpaddress = "ipam_ipaddress" - -// IpamIpaddress mapped from table -type IpamIpaddress struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Address string `gorm:"column:address;not null" json:"address"` - //Status string `gorm:"column:status;not null" json:"status"` - //Role string `gorm:"column:role;not null" json:"role"` - AssignedObjectID int64 `gorm:"column:assigned_object_id" json:"assigned_object_id"` - //DNSName string `gorm:"column:dns_name;not null" json:"dns_name"` - //Description string `gorm:"column:description;not null" json:"description"` - AssignedObjectTypeID int32 `gorm:"column:assigned_object_type_id" json:"assigned_object_type_id"` - //NatInsideID int64 `gorm:"column:nat_inside_id" json:"nat_inside_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` -} - -// TableName IpamIpaddress's table name -func (*IpamIpaddress) TableName() string { - return TableNameIpamIpaddress -} diff --git a/pkg/connector/netbox/model/gen/ipam_iprange.gen.go b/pkg/connector/netbox/model/gen/ipam_iprange.gen.go deleted file mode 100644 index 8edfa28..0000000 --- a/pkg/connector/netbox/model/gen/ipam_iprange.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamIprange = "ipam_iprange" - -// IpamIprange mapped from table -type IpamIprange struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - StartAddress string `gorm:"column:start_address;not null" json:"start_address"` - EndAddress string `gorm:"column:end_address;not null" json:"end_address"` - Size int32 `gorm:"column:size;not null" json:"size"` - Status string `gorm:"column:status;not null" json:"status"` - Description string `gorm:"column:description;not null" json:"description"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` -} - -// TableName IpamIprange's table name -func (*IpamIprange) TableName() string { - return TableNameIpamIprange -} diff --git a/pkg/connector/netbox/model/gen/ipam_prefix.gen.go b/pkg/connector/netbox/model/gen/ipam_prefix.gen.go deleted file mode 100644 index da172f1..0000000 --- a/pkg/connector/netbox/model/gen/ipam_prefix.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -package model - -const TableNameIpamPrefix = "ipam_prefix" - -// IpamPrefix mapped from table -type IpamPrefix struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Prefix string `gorm:"column:prefix;not null" json:"prefix"` - //Status string `gorm:"column:status;not null" json:"status"` - //IsPool bool `gorm:"column:is_pool;not null" json:"is_pool"` - //Description string `gorm:"column:description;not null" json:"description"` - //RoleID int64 `gorm:"column:role_id" json:"role_id"` - //SiteID int64 `gorm:"column:site_id" json:"site_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - //VlanID int64 `gorm:"column:vlan_id" json:"vlan_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` - //MarkUtilized bool `gorm:"column:mark_utilized;not null" json:"mark_utilized"` - Tags []string `sql:"-"` -} - -// TableName IpamPrefix's table name -func (*IpamPrefix) TableName() string { - return TableNameIpamPrefix -} diff --git a/pkg/connector/netbox/model/gen/ipam_rir.gen.go b/pkg/connector/netbox/model/gen/ipam_rir.gen.go deleted file mode 100644 index 381dd8e..0000000 --- a/pkg/connector/netbox/model/gen/ipam_rir.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamRir = "ipam_rir" - -// IpamRir mapped from table -type IpamRir struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - IsPrivate bool `gorm:"column:is_private;not null" json:"is_private"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName IpamRir's table name -func (*IpamRir) TableName() string { - return TableNameIpamRir -} diff --git a/pkg/connector/netbox/model/gen/ipam_role.gen.go b/pkg/connector/netbox/model/gen/ipam_role.gen.go deleted file mode 100644 index f2cd62d..0000000 --- a/pkg/connector/netbox/model/gen/ipam_role.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamRole = "ipam_role" - -// IpamRole mapped from table -type IpamRole struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Weight int16 `gorm:"column:weight;not null" json:"weight"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName IpamRole's table name -func (*IpamRole) TableName() string { - return TableNameIpamRole -} diff --git a/pkg/connector/netbox/model/gen/ipam_routetarget.gen.go b/pkg/connector/netbox/model/gen/ipam_routetarget.gen.go deleted file mode 100644 index 502a789..0000000 --- a/pkg/connector/netbox/model/gen/ipam_routetarget.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamRoutetarget = "ipam_routetarget" - -// IpamRoutetarget mapped from table -type IpamRoutetarget struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Description string `gorm:"column:description;not null" json:"description"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName IpamRoutetarget's table name -func (*IpamRoutetarget) TableName() string { - return TableNameIpamRoutetarget -} diff --git a/pkg/connector/netbox/model/gen/ipam_service.gen.go b/pkg/connector/netbox/model/gen/ipam_service.gen.go deleted file mode 100644 index 14883a9..0000000 --- a/pkg/connector/netbox/model/gen/ipam_service.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamService = "ipam_service" - -// IpamService mapped from table -type IpamService struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Protocol string `gorm:"column:protocol;not null" json:"protocol"` - Ports string `gorm:"column:ports;not null" json:"ports"` - Description string `gorm:"column:description;not null" json:"description"` - DeviceID int64 `gorm:"column:device_id" json:"device_id"` - VirtualMachineID int64 `gorm:"column:virtual_machine_id" json:"virtual_machine_id"` -} - -// TableName IpamService's table name -func (*IpamService) TableName() string { - return TableNameIpamService -} diff --git a/pkg/connector/netbox/model/gen/ipam_service_ipaddresses.gen.go b/pkg/connector/netbox/model/gen/ipam_service_ipaddresses.gen.go deleted file mode 100644 index dcb0411..0000000 --- a/pkg/connector/netbox/model/gen/ipam_service_ipaddresses.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameIpamServiceIpaddress = "ipam_service_ipaddresses" - -// IpamServiceIpaddress mapped from table -type IpamServiceIpaddress struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ServiceID int64 `gorm:"column:service_id;not null" json:"service_id"` - IpaddressID int64 `gorm:"column:ipaddress_id;not null" json:"ipaddress_id"` -} - -// TableName IpamServiceIpaddress's table name -func (*IpamServiceIpaddress) TableName() string { - return TableNameIpamServiceIpaddress -} diff --git a/pkg/connector/netbox/model/gen/ipam_servicetemplate.gen.go b/pkg/connector/netbox/model/gen/ipam_servicetemplate.gen.go deleted file mode 100644 index 7f11bbd..0000000 --- a/pkg/connector/netbox/model/gen/ipam_servicetemplate.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamServicetemplate = "ipam_servicetemplate" - -// IpamServicetemplate mapped from table -type IpamServicetemplate struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Protocol string `gorm:"column:protocol;not null" json:"protocol"` - Ports string `gorm:"column:ports;not null" json:"ports"` - Description string `gorm:"column:description;not null" json:"description"` - Name string `gorm:"column:name;not null" json:"name"` -} - -// TableName IpamServicetemplate's table name -func (*IpamServicetemplate) TableName() string { - return TableNameIpamServicetemplate -} diff --git a/pkg/connector/netbox/model/gen/ipam_vlan.gen.go b/pkg/connector/netbox/model/gen/ipam_vlan.gen.go deleted file mode 100644 index 299ac95..0000000 --- a/pkg/connector/netbox/model/gen/ipam_vlan.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamVlan = "ipam_vlan" - -// IpamVlan mapped from table -type IpamVlan struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Vid int16 `gorm:"column:vid;not null" json:"vid"` - Name string `gorm:"column:name;not null" json:"name"` - Status string `gorm:"column:status;not null" json:"status"` - Description string `gorm:"column:description;not null" json:"description"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` - SiteID int64 `gorm:"column:site_id" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName IpamVlan's table name -func (*IpamVlan) TableName() string { - return TableNameIpamVlan -} diff --git a/pkg/connector/netbox/model/gen/ipam_vlangroup.gen.go b/pkg/connector/netbox/model/gen/ipam_vlangroup.gen.go deleted file mode 100644 index 299f615..0000000 --- a/pkg/connector/netbox/model/gen/ipam_vlangroup.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamVlangroup = "ipam_vlangroup" - -// IpamVlangroup mapped from table -type IpamVlangroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - ScopeID int64 `gorm:"column:scope_id" json:"scope_id"` - Description string `gorm:"column:description;not null" json:"description"` - ScopeTypeID int32 `gorm:"column:scope_type_id" json:"scope_type_id"` - MaxVid int16 `gorm:"column:max_vid;not null" json:"max_vid"` - MinVid int16 `gorm:"column:min_vid;not null" json:"min_vid"` -} - -// TableName IpamVlangroup's table name -func (*IpamVlangroup) TableName() string { - return TableNameIpamVlangroup -} diff --git a/pkg/connector/netbox/model/gen/ipam_vrf.gen.go b/pkg/connector/netbox/model/gen/ipam_vrf.gen.go deleted file mode 100644 index 5818e02..0000000 --- a/pkg/connector/netbox/model/gen/ipam_vrf.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameIpamVrf = "ipam_vrf" - -// IpamVrf mapped from table -type IpamVrf struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Rd string `gorm:"column:rd" json:"rd"` - EnforceUnique bool `gorm:"column:enforce_unique;not null" json:"enforce_unique"` - Description string `gorm:"column:description;not null" json:"description"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName IpamVrf's table name -func (*IpamVrf) TableName() string { - return TableNameIpamVrf -} diff --git a/pkg/connector/netbox/model/gen/ipam_vrf_export_targets.gen.go b/pkg/connector/netbox/model/gen/ipam_vrf_export_targets.gen.go deleted file mode 100644 index 72ab141..0000000 --- a/pkg/connector/netbox/model/gen/ipam_vrf_export_targets.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameIpamVrfExportTarget = "ipam_vrf_export_targets" - -// IpamVrfExportTarget mapped from table -type IpamVrfExportTarget struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - VrfID int64 `gorm:"column:vrf_id;not null" json:"vrf_id"` - RoutetargetID int64 `gorm:"column:routetarget_id;not null" json:"routetarget_id"` -} - -// TableName IpamVrfExportTarget's table name -func (*IpamVrfExportTarget) TableName() string { - return TableNameIpamVrfExportTarget -} diff --git a/pkg/connector/netbox/model/gen/ipam_vrf_import_targets.gen.go b/pkg/connector/netbox/model/gen/ipam_vrf_import_targets.gen.go deleted file mode 100644 index 7480759..0000000 --- a/pkg/connector/netbox/model/gen/ipam_vrf_import_targets.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameIpamVrfImportTarget = "ipam_vrf_import_targets" - -// IpamVrfImportTarget mapped from table -type IpamVrfImportTarget struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - VrfID int64 `gorm:"column:vrf_id;not null" json:"vrf_id"` - RoutetargetID int64 `gorm:"column:routetarget_id;not null" json:"routetarget_id"` -} - -// TableName IpamVrfImportTarget's table name -func (*IpamVrfImportTarget) TableName() string { - return TableNameIpamVrfImportTarget -} diff --git a/pkg/connector/netbox/model/gen/social_auth_association.gen.go b/pkg/connector/netbox/model/gen/social_auth_association.gen.go deleted file mode 100644 index 18c2d55..0000000 --- a/pkg/connector/netbox/model/gen/social_auth_association.gen.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameSocialAuthAssociation = "social_auth_association" - -// SocialAuthAssociation mapped from table -type SocialAuthAssociation struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ServerURL string `gorm:"column:server_url;not null" json:"server_url"` - Handle string `gorm:"column:handle;not null" json:"handle"` - Secret string `gorm:"column:secret;not null" json:"secret"` - Issued int32 `gorm:"column:issued;not null" json:"issued"` - Lifetime int32 `gorm:"column:lifetime;not null" json:"lifetime"` - AssocType string `gorm:"column:assoc_type;not null" json:"assoc_type"` -} - -// TableName SocialAuthAssociation's table name -func (*SocialAuthAssociation) TableName() string { - return TableNameSocialAuthAssociation -} diff --git a/pkg/connector/netbox/model/gen/social_auth_code.gen.go b/pkg/connector/netbox/model/gen/social_auth_code.gen.go deleted file mode 100644 index 49e31fd..0000000 --- a/pkg/connector/netbox/model/gen/social_auth_code.gen.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameSocialAuthCode = "social_auth_code" - -// SocialAuthCode mapped from table -type SocialAuthCode struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Email string `gorm:"column:email;not null" json:"email"` - Code string `gorm:"column:code;not null" json:"code"` - Verified bool `gorm:"column:verified;not null" json:"verified"` - Timestamp time.Time `gorm:"column:timestamp;not null" json:"timestamp"` -} - -// TableName SocialAuthCode's table name -func (*SocialAuthCode) TableName() string { - return TableNameSocialAuthCode -} diff --git a/pkg/connector/netbox/model/gen/social_auth_nonce.gen.go b/pkg/connector/netbox/model/gen/social_auth_nonce.gen.go deleted file mode 100644 index acc73d1..0000000 --- a/pkg/connector/netbox/model/gen/social_auth_nonce.gen.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameSocialAuthNonce = "social_auth_nonce" - -// SocialAuthNonce mapped from table -type SocialAuthNonce struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ServerURL string `gorm:"column:server_url;not null" json:"server_url"` - Timestamp int32 `gorm:"column:timestamp;not null" json:"timestamp"` - Salt string `gorm:"column:salt;not null" json:"salt"` -} - -// TableName SocialAuthNonce's table name -func (*SocialAuthNonce) TableName() string { - return TableNameSocialAuthNonce -} diff --git a/pkg/connector/netbox/model/gen/social_auth_partial.gen.go b/pkg/connector/netbox/model/gen/social_auth_partial.gen.go deleted file mode 100644 index 5a19c9e..0000000 --- a/pkg/connector/netbox/model/gen/social_auth_partial.gen.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameSocialAuthPartial = "social_auth_partial" - -// SocialAuthPartial mapped from table -type SocialAuthPartial struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Token string `gorm:"column:token;not null" json:"token"` - NextStep int16 `gorm:"column:next_step;not null" json:"next_step"` - Backend string `gorm:"column:backend;not null" json:"backend"` - Data string `gorm:"column:data;not null" json:"data"` - Timestamp time.Time `gorm:"column:timestamp;not null" json:"timestamp"` -} - -// TableName SocialAuthPartial's table name -func (*SocialAuthPartial) TableName() string { - return TableNameSocialAuthPartial -} diff --git a/pkg/connector/netbox/model/gen/social_auth_usersocialauth.gen.go b/pkg/connector/netbox/model/gen/social_auth_usersocialauth.gen.go deleted file mode 100644 index c70ec21..0000000 --- a/pkg/connector/netbox/model/gen/social_auth_usersocialauth.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameSocialAuthUsersocialauth = "social_auth_usersocialauth" - -// SocialAuthUsersocialauth mapped from table -type SocialAuthUsersocialauth struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Provider string `gorm:"column:provider;not null" json:"provider"` - UID string `gorm:"column:uid;not null" json:"uid"` - ExtraData string `gorm:"column:extra_data;not null" json:"extra_data"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` - Created time.Time `gorm:"column:created;not null" json:"created"` - Modified time.Time `gorm:"column:modified;not null" json:"modified"` -} - -// TableName SocialAuthUsersocialauth's table name -func (*SocialAuthUsersocialauth) TableName() string { - return TableNameSocialAuthUsersocialauth -} diff --git a/pkg/connector/netbox/model/gen/taggit_tag.gen.go b/pkg/connector/netbox/model/gen/taggit_tag.gen.go deleted file mode 100644 index 829681f..0000000 --- a/pkg/connector/netbox/model/gen/taggit_tag.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameTaggitTag = "taggit_tag" - -// TaggitTag mapped from table -type TaggitTag struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` -} - -// TableName TaggitTag's table name -func (*TaggitTag) TableName() string { - return TableNameTaggitTag -} diff --git a/pkg/connector/netbox/model/gen/taggit_taggeditem.gen.go b/pkg/connector/netbox/model/gen/taggit_taggeditem.gen.go deleted file mode 100644 index a36f5b7..0000000 --- a/pkg/connector/netbox/model/gen/taggit_taggeditem.gen.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameTaggitTaggeditem = "taggit_taggeditem" - -// TaggitTaggeditem mapped from table -type TaggitTaggeditem struct { - ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectID int32 `gorm:"column:object_id;not null" json:"object_id"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - TagID int32 `gorm:"column:tag_id;not null" json:"tag_id"` -} - -// TableName TaggitTaggeditem's table name -func (*TaggitTaggeditem) TableName() string { - return TableNameTaggitTaggeditem -} diff --git a/pkg/connector/netbox/model/gen/tenancy_contact.gen.go b/pkg/connector/netbox/model/gen/tenancy_contact.gen.go deleted file mode 100644 index b981c6d..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_contact.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyContact = "tenancy_contact" - -// TenancyContact mapped from table -type TenancyContact struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Title string `gorm:"column:title;not null" json:"title"` - Phone string `gorm:"column:phone;not null" json:"phone"` - Email string `gorm:"column:email;not null" json:"email"` - Address string `gorm:"column:address;not null" json:"address"` - Comments string `gorm:"column:comments;not null" json:"comments"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - Link string `gorm:"column:link;not null" json:"link"` -} - -// TableName TenancyContact's table name -func (*TenancyContact) TableName() string { - return TableNameTenancyContact -} diff --git a/pkg/connector/netbox/model/gen/tenancy_contactassignment.gen.go b/pkg/connector/netbox/model/gen/tenancy_contactassignment.gen.go deleted file mode 100644 index d0d6aa9..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_contactassignment.gen.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyContactassignment = "tenancy_contactassignment" - -// TenancyContactassignment mapped from table -type TenancyContactassignment struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectID int64 `gorm:"column:object_id;not null" json:"object_id"` - Priority string `gorm:"column:priority;not null" json:"priority"` - ContactID int64 `gorm:"column:contact_id;not null" json:"contact_id"` - ContentTypeID int32 `gorm:"column:content_type_id;not null" json:"content_type_id"` - RoleID int64 `gorm:"column:role_id;not null" json:"role_id"` -} - -// TableName TenancyContactassignment's table name -func (*TenancyContactassignment) TableName() string { - return TableNameTenancyContactassignment -} diff --git a/pkg/connector/netbox/model/gen/tenancy_contactgroup.gen.go b/pkg/connector/netbox/model/gen/tenancy_contactgroup.gen.go deleted file mode 100644 index 3ce4e4c..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_contactgroup.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyContactgroup = "tenancy_contactgroup" - -// TenancyContactgroup mapped from table -type TenancyContactgroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` -} - -// TableName TenancyContactgroup's table name -func (*TenancyContactgroup) TableName() string { - return TableNameTenancyContactgroup -} diff --git a/pkg/connector/netbox/model/gen/tenancy_contactrole.gen.go b/pkg/connector/netbox/model/gen/tenancy_contactrole.gen.go deleted file mode 100644 index 43205b2..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_contactrole.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyContactrole = "tenancy_contactrole" - -// TenancyContactrole mapped from table -type TenancyContactrole struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName TenancyContactrole's table name -func (*TenancyContactrole) TableName() string { - return TableNameTenancyContactrole -} diff --git a/pkg/connector/netbox/model/gen/tenancy_tenant.gen.go b/pkg/connector/netbox/model/gen/tenancy_tenant.gen.go deleted file mode 100644 index 63dd882..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_tenant.gen.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyTenant = "tenancy_tenant" - -// TenancyTenant mapped from table -type TenancyTenant struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Comments string `gorm:"column:comments;not null" json:"comments"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` -} - -// TableName TenancyTenant's table name -func (*TenancyTenant) TableName() string { - return TableNameTenancyTenant -} diff --git a/pkg/connector/netbox/model/gen/tenancy_tenantgroup.gen.go b/pkg/connector/netbox/model/gen/tenancy_tenantgroup.gen.go deleted file mode 100644 index b9e8fec..0000000 --- a/pkg/connector/netbox/model/gen/tenancy_tenantgroup.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameTenancyTenantgroup = "tenancy_tenantgroup" - -// TenancyTenantgroup mapped from table -type TenancyTenantgroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` -} - -// TableName TenancyTenantgroup's table name -func (*TenancyTenantgroup) TableName() string { - return TableNameTenancyTenantgroup -} diff --git a/pkg/connector/netbox/model/gen/users_objectpermission.gen.go b/pkg/connector/netbox/model/gen/users_objectpermission.gen.go deleted file mode 100644 index f3cc2c8..0000000 --- a/pkg/connector/netbox/model/gen/users_objectpermission.gen.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameUsersObjectpermission = "users_objectpermission" - -// UsersObjectpermission mapped from table -type UsersObjectpermission struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Description string `gorm:"column:description;not null" json:"description"` - Enabled bool `gorm:"column:enabled;not null" json:"enabled"` - Actions string `gorm:"column:actions;not null" json:"actions"` - Constraints string `gorm:"column:constraints" json:"constraints"` -} - -// TableName UsersObjectpermission's table name -func (*UsersObjectpermission) TableName() string { - return TableNameUsersObjectpermission -} diff --git a/pkg/connector/netbox/model/gen/users_objectpermission_groups.gen.go b/pkg/connector/netbox/model/gen/users_objectpermission_groups.gen.go deleted file mode 100644 index caf20f4..0000000 --- a/pkg/connector/netbox/model/gen/users_objectpermission_groups.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameUsersObjectpermissionGroup = "users_objectpermission_groups" - -// UsersObjectpermissionGroup mapped from table -type UsersObjectpermissionGroup struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectpermissionID int64 `gorm:"column:objectpermission_id;not null" json:"objectpermission_id"` - GroupID int32 `gorm:"column:group_id;not null" json:"group_id"` -} - -// TableName UsersObjectpermissionGroup's table name -func (*UsersObjectpermissionGroup) TableName() string { - return TableNameUsersObjectpermissionGroup -} diff --git a/pkg/connector/netbox/model/gen/users_objectpermission_object_types.gen.go b/pkg/connector/netbox/model/gen/users_objectpermission_object_types.gen.go deleted file mode 100644 index b442c66..0000000 --- a/pkg/connector/netbox/model/gen/users_objectpermission_object_types.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameUsersObjectpermissionObjectType = "users_objectpermission_object_types" - -// UsersObjectpermissionObjectType mapped from table -type UsersObjectpermissionObjectType struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectpermissionID int64 `gorm:"column:objectpermission_id;not null" json:"objectpermission_id"` - ContenttypeID int32 `gorm:"column:contenttype_id;not null" json:"contenttype_id"` -} - -// TableName UsersObjectpermissionObjectType's table name -func (*UsersObjectpermissionObjectType) TableName() string { - return TableNameUsersObjectpermissionObjectType -} diff --git a/pkg/connector/netbox/model/gen/users_objectpermission_users.gen.go b/pkg/connector/netbox/model/gen/users_objectpermission_users.gen.go deleted file mode 100644 index baa7871..0000000 --- a/pkg/connector/netbox/model/gen/users_objectpermission_users.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameUsersObjectpermissionUser = "users_objectpermission_users" - -// UsersObjectpermissionUser mapped from table -type UsersObjectpermissionUser struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - ObjectpermissionID int64 `gorm:"column:objectpermission_id;not null" json:"objectpermission_id"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` -} - -// TableName UsersObjectpermissionUser's table name -func (*UsersObjectpermissionUser) TableName() string { - return TableNameUsersObjectpermissionUser -} diff --git a/pkg/connector/netbox/model/gen/users_token.gen.go b/pkg/connector/netbox/model/gen/users_token.gen.go deleted file mode 100644 index 42d2d56..0000000 --- a/pkg/connector/netbox/model/gen/users_token.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameUsersToken = "users_token" - -// UsersToken mapped from table -type UsersToken struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Created time.Time `gorm:"column:created;not null" json:"created"` - Expires time.Time `gorm:"column:expires" json:"expires"` - Key string `gorm:"column:key;not null" json:"key"` - WriteEnabled bool `gorm:"column:write_enabled;not null" json:"write_enabled"` - Description string `gorm:"column:description;not null" json:"description"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` -} - -// TableName UsersToken's table name -func (*UsersToken) TableName() string { - return TableNameUsersToken -} diff --git a/pkg/connector/netbox/model/gen/users_userconfig.gen.go b/pkg/connector/netbox/model/gen/users_userconfig.gen.go deleted file mode 100644 index e098ed2..0000000 --- a/pkg/connector/netbox/model/gen/users_userconfig.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameUsersUserconfig = "users_userconfig" - -// UsersUserconfig mapped from table -type UsersUserconfig struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Data string `gorm:"column:data;not null" json:"data"` - UserID int32 `gorm:"column:user_id;not null" json:"user_id"` -} - -// TableName UsersUserconfig's table name -func (*UsersUserconfig) TableName() string { - return TableNameUsersUserconfig -} diff --git a/pkg/connector/netbox/model/gen/virtualization_cluster.gen.go b/pkg/connector/netbox/model/gen/virtualization_cluster.gen.go deleted file mode 100644 index 6db4b2b..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_cluster.gen.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameVirtualizationCluster = "virtualization_cluster" - -// VirtualizationCluster mapped from table -type VirtualizationCluster struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Comments string `gorm:"column:comments;not null" json:"comments"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - SiteID int64 `gorm:"column:site_id" json:"site_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - TypeID int64 `gorm:"column:type_id;not null" json:"type_id"` -} - -// TableName VirtualizationCluster's table name -func (*VirtualizationCluster) TableName() string { - return TableNameVirtualizationCluster -} diff --git a/pkg/connector/netbox/model/gen/virtualization_clustergroup.gen.go b/pkg/connector/netbox/model/gen/virtualization_clustergroup.gen.go deleted file mode 100644 index 4666c9f..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_clustergroup.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameVirtualizationClustergroup = "virtualization_clustergroup" - -// VirtualizationClustergroup mapped from table -type VirtualizationClustergroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName VirtualizationClustergroup's table name -func (*VirtualizationClustergroup) TableName() string { - return TableNameVirtualizationClustergroup -} diff --git a/pkg/connector/netbox/model/gen/virtualization_clustertype.gen.go b/pkg/connector/netbox/model/gen/virtualization_clustertype.gen.go deleted file mode 100644 index 2933fe7..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_clustertype.gen.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameVirtualizationClustertype = "virtualization_clustertype" - -// VirtualizationClustertype mapped from table -type VirtualizationClustertype struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` -} - -// TableName VirtualizationClustertype's table name -func (*VirtualizationClustertype) TableName() string { - return TableNameVirtualizationClustertype -} diff --git a/pkg/connector/netbox/model/gen/virtualization_virtualmachine.gen.go b/pkg/connector/netbox/model/gen/virtualization_virtualmachine.gen.go deleted file mode 100644 index c9eddb2..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_virtualmachine.gen.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameVirtualizationVirtualmachine = "virtualization_virtualmachine" - -// VirtualizationVirtualmachine mapped from table -type VirtualizationVirtualmachine struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"` - Name string `gorm:"column:name;not null" json:"name"` - Status string `gorm:"column:status;not null" json:"status"` - Vcpus float64 `gorm:"column:vcpus" json:"vcpus"` - Memory int32 `gorm:"column:memory" json:"memory"` - Disk int32 `gorm:"column:disk" json:"disk"` - Comments string `gorm:"column:comments;not null" json:"comments"` - ClusterID int64 `gorm:"column:cluster_id;not null" json:"cluster_id"` - PlatformID int64 `gorm:"column:platform_id" json:"platform_id"` - PrimaryIp4ID int64 `gorm:"column:primary_ip4_id" json:"primary_ip4_id"` - PrimaryIp6ID int64 `gorm:"column:primary_ip6_id" json:"primary_ip6_id"` - RoleID int64 `gorm:"column:role_id" json:"role_id"` - TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` -} - -// TableName VirtualizationVirtualmachine's table name -func (*VirtualizationVirtualmachine) TableName() string { - return TableNameVirtualizationVirtualmachine -} diff --git a/pkg/connector/netbox/model/gen/virtualization_vminterface.gen.go b/pkg/connector/netbox/model/gen/virtualization_vminterface.gen.go deleted file mode 100644 index cdfadb2..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_vminterface.gen.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameVirtualizationVminterface = "virtualization_vminterface" - -// VirtualizationVminterface mapped from table -type VirtualizationVminterface struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Enabled bool `gorm:"column:enabled;not null" json:"enabled"` - MacAddress string `gorm:"column:mac_address" json:"mac_address"` - Mtu int32 `gorm:"column:mtu" json:"mtu"` - Mode string `gorm:"column:mode;not null" json:"mode"` - Name string `gorm:"column:name;not null" json:"name"` - Description string `gorm:"column:description;not null" json:"description"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` - UntaggedVlanID int64 `gorm:"column:untagged_vlan_id" json:"untagged_vlan_id"` - VirtualMachineID int64 `gorm:"column:virtual_machine_id;not null" json:"virtual_machine_id"` - BridgeID int64 `gorm:"column:bridge_id" json:"bridge_id"` - VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` -} - -// TableName VirtualizationVminterface's table name -func (*VirtualizationVminterface) TableName() string { - return TableNameVirtualizationVminterface -} diff --git a/pkg/connector/netbox/model/gen/virtualization_vminterface_tagged_vlans.gen.go b/pkg/connector/netbox/model/gen/virtualization_vminterface_tagged_vlans.gen.go deleted file mode 100644 index fa39fb6..0000000 --- a/pkg/connector/netbox/model/gen/virtualization_vminterface_tagged_vlans.gen.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -const TableNameVirtualizationVminterfaceTaggedVlan = "virtualization_vminterface_tagged_vlans" - -// VirtualizationVminterfaceTaggedVlan mapped from table -type VirtualizationVminterfaceTaggedVlan struct { - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - VminterfaceID int64 `gorm:"column:vminterface_id;not null" json:"vminterface_id"` - VlanID int64 `gorm:"column:vlan_id;not null" json:"vlan_id"` -} - -// TableName VirtualizationVminterfaceTaggedVlan's table name -func (*VirtualizationVminterfaceTaggedVlan) TableName() string { - return TableNameVirtualizationVminterfaceTaggedVlan -} diff --git a/pkg/connector/netbox/model/gen/wireless_wirelesslan.gen.go b/pkg/connector/netbox/model/gen/wireless_wirelesslan.gen.go deleted file mode 100644 index c5fb7c3..0000000 --- a/pkg/connector/netbox/model/gen/wireless_wirelesslan.gen.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameWirelessWirelesslan = "wireless_wirelesslan" - -// WirelessWirelesslan mapped from table -type WirelessWirelesslan struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Ssid string `gorm:"column:ssid;not null" json:"ssid"` - GroupID int64 `gorm:"column:group_id" json:"group_id"` - Description string `gorm:"column:description;not null" json:"description"` - AuthCipher string `gorm:"column:auth_cipher;not null" json:"auth_cipher"` - AuthPsk string `gorm:"column:auth_psk;not null" json:"auth_psk"` - AuthType string `gorm:"column:auth_type;not null" json:"auth_type"` - VlanID int64 `gorm:"column:vlan_id" json:"vlan_id"` -} - -// TableName WirelessWirelesslan's table name -func (*WirelessWirelesslan) TableName() string { - return TableNameWirelessWirelesslan -} diff --git a/pkg/connector/netbox/model/gen/wireless_wirelesslangroup.gen.go b/pkg/connector/netbox/model/gen/wireless_wirelesslangroup.gen.go deleted file mode 100644 index 65cbcde..0000000 --- a/pkg/connector/netbox/model/gen/wireless_wirelesslangroup.gen.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameWirelessWirelesslangroup = "wireless_wirelesslangroup" - -// WirelessWirelesslangroup mapped from table -type WirelessWirelesslangroup struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Name string `gorm:"column:name;not null" json:"name"` - Slug string `gorm:"column:slug;not null" json:"slug"` - Description string `gorm:"column:description;not null" json:"description"` - Lft int32 `gorm:"column:lft;not null" json:"lft"` - Rght int32 `gorm:"column:rght;not null" json:"rght"` - TreeID int32 `gorm:"column:tree_id;not null" json:"tree_id"` - Level int32 `gorm:"column:level;not null" json:"level"` - ParentID int64 `gorm:"column:parent_id" json:"parent_id"` -} - -// TableName WirelessWirelesslangroup's table name -func (*WirelessWirelesslangroup) TableName() string { - return TableNameWirelessWirelesslangroup -} diff --git a/pkg/connector/netbox/model/gen/wireless_wirelesslink.gen.go b/pkg/connector/netbox/model/gen/wireless_wirelesslink.gen.go deleted file mode 100644 index 319d29f..0000000 --- a/pkg/connector/netbox/model/gen/wireless_wirelesslink.gen.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. -// Code generated by gorm.io/gen. DO NOT EDIT. - -package model - -import ( - "time" -) - -const TableNameWirelessWirelesslink = "wireless_wirelesslink" - -// WirelessWirelesslink mapped from table -type WirelessWirelesslink struct { - Created time.Time `gorm:"column:created" json:"created"` - LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Ssid string `gorm:"column:ssid;not null" json:"ssid"` - Status string `gorm:"column:status;not null" json:"status"` - Description string `gorm:"column:description;not null" json:"description"` - AuthCipher string `gorm:"column:auth_cipher;not null" json:"auth_cipher"` - AuthPsk string `gorm:"column:auth_psk;not null" json:"auth_psk"` - AuthType string `gorm:"column:auth_type;not null" json:"auth_type"` - InterfaceADeviceID int64 `gorm:"column:_interface_a_device_id" json:"_interface_a_device_id"` - InterfaceBDeviceID int64 `gorm:"column:_interface_b_device_id" json:"_interface_b_device_id"` - InterfaceAID int64 `gorm:"column:interface_a_id;not null" json:"interface_a_id"` - InterfaceBID int64 `gorm:"column:interface_b_id;not null" json:"interface_b_id"` -} - -// TableName WirelessWirelesslink's table name -func (*WirelessWirelesslink) TableName() string { - return TableNameWirelessWirelesslink -} diff --git a/pkg/connector/netbox/model/ipam_ipaddress.gen.go b/pkg/connector/netbox/model/ipam_ipaddress.gen.go index 8428b4e..3534893 100644 --- a/pkg/connector/netbox/model/ipam_ipaddress.gen.go +++ b/pkg/connector/netbox/model/ipam_ipaddress.gen.go @@ -1,23 +1,28 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameIpamIpaddress = "ipam_ipaddress" // IpamIpaddress mapped from table type IpamIpaddress struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Address string `gorm:"column:address;not null" json:"address"` - //Status string `gorm:"column:status;not null" json:"status"` - //Role string `gorm:"column:role;not null" json:"role"` - AssignedObjectID int64 `gorm:"column:assigned_object_id" json:"assigned_object_id"` - //DNSName string `gorm:"column:dns_name;not null" json:"dns_name"` - //Description string `gorm:"column:description;not null" json:"description"` - AssignedObjectTypeID int32 `gorm:"column:assigned_object_type_id" json:"assigned_object_type_id"` - //NatInsideID int64 `gorm:"column:nat_inside_id" json:"nat_inside_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Address string `gorm:"column:address;not null" json:"address"` + // Description string `gorm:"column:description;not null" json:"description"` + AssignedObjectID int64 `gorm:"column:assigned_object_id" json:"assigned_object_id"` + // NatInsideID int64 `gorm:"column:nat_inside_id" json:"nat_inside_id"` + // VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` + // TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + // Status string `gorm:"column:status;not null" json:"status"` + // Role string `gorm:"column:role;not null" json:"role"` + // DNSName string `gorm:"column:dns_name;not null" json:"dns_name"` + AssignedObjectTypeID int32 `gorm:"column:assigned_object_type_id" json:"assigned_object_type_id"` + CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // Comments string `gorm:"column:comments;not null" json:"comments"` } // TableName IpamIpaddress's table name diff --git a/pkg/connector/netbox/model/ipam_prefix.gen.go b/pkg/connector/netbox/model/ipam_prefix.gen.go index da172f1..2ede39f 100644 --- a/pkg/connector/netbox/model/ipam_prefix.gen.go +++ b/pkg/connector/netbox/model/ipam_prefix.gen.go @@ -1,23 +1,30 @@ +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. +// Code generated by gorm.io/gen. DO NOT EDIT. + package model const TableNameIpamPrefix = "ipam_prefix" // IpamPrefix mapped from table type IpamPrefix struct { - //Created time.Time `gorm:"column:created" json:"created"` - //LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` - //CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` - ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` - Prefix string `gorm:"column:prefix;not null" json:"prefix"` - //Status string `gorm:"column:status;not null" json:"status"` - //IsPool bool `gorm:"column:is_pool;not null" json:"is_pool"` - //Description string `gorm:"column:description;not null" json:"description"` - //RoleID int64 `gorm:"column:role_id" json:"role_id"` - //SiteID int64 `gorm:"column:site_id" json:"site_id"` - //TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` - //VlanID int64 `gorm:"column:vlan_id" json:"vlan_id"` - //VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` - //MarkUtilized bool `gorm:"column:mark_utilized;not null" json:"mark_utilized"` + ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` + // Created time.Time `gorm:"column:created" json:"created"` + // LastUpdated time.Time `gorm:"column:last_updated" json:"last_updated"` + Prefix string `gorm:"column:prefix;not null" json:"prefix"` + // Status string `gorm:"column:status;not null" json:"status"` + // Description string `gorm:"column:description;not null" json:"description"` + // RoleID int64 `gorm:"column:role_id" json:"role_id"` + // SiteID int64 `gorm:"column:site_id" json:"site_id"` + // VlanID int64 `gorm:"column:vlan_id" json:"vlan_id"` + // VrfID int64 `gorm:"column:vrf_id" json:"vrf_id"` + // TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"` + // IsPool bool `gorm:"column:is_pool;not null" json:"is_pool"` + // CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"` + // Children int64 `gorm:"column:_children;not null" json:"_children"` + // Depth int16 `gorm:"column:_depth;not null" json:"_depth"` + // MarkUtilized bool `gorm:"column:mark_utilized;not null" json:"mark_utilized"` + // Comments string `gorm:"column:comments;not null" json:"comments"` Tags []string `sql:"-"` } diff --git a/pkg/connector/netbox/netbox.go b/pkg/connector/netbox/netbox.go index b4a3db7..0081fbf 100644 --- a/pkg/connector/netbox/netbox.go +++ b/pkg/connector/netbox/netbox.go @@ -416,16 +416,24 @@ func (n *NetboxConnector) getCableEnd(terminationType int32, terminationID int64 func (n *NetboxConnector) addCables(t *model.Topology) error { for _, c := range n.cables { - if c.TerminationAID == 0 || c.TerminationBID == 0 { + // For now, all terminations should have exactly 2 ends. + if len(c.Terminations) != 2 { continue } - AEnd, err := n.getCableEnd(c.TerminationATypeID, c.TerminationAID, t) + termination_a := c.Terminations[0] + termination_b := c.Terminations[1] + + if termination_a.TerminationID == 0 || termination_b.TerminationID == 0 { + continue + } + + AEnd, err := n.getCableEnd(termination_a.TerminationTypeID, termination_a.TerminationID, t) if err != nil { continue } - BEnd, err := n.getCableEnd(c.TerminationBTypeID, c.TerminationBID, t) + BEnd, err := n.getCableEnd(termination_b.TerminationTypeID, termination_b.TerminationID, t) if err != nil { continue } diff --git a/pkg/connector/netbox/netbox_test.go b/pkg/connector/netbox/netbox_test.go index 8a8f597..ae53ff0 100644 --- a/pkg/connector/netbox/netbox_test.go +++ b/pkg/connector/netbox/netbox_test.go @@ -505,36 +505,66 @@ func TestEnrichment(t *testing.T) { client: apiClient, cables: []*dbModel.DcimCable{ { - TerminationATypeID: 2, - TerminationBTypeID: 2, - TerminationAID: 42, - TerminationBID: 23, + Terminations: []*dbModel.DcimCabletermination{ + { + TerminationID: 42, + TerminationTypeID: 2, + }, + { + TerminationID: 23, + TerminationTypeID: 2, + }, + }, }, { - TerminationATypeID: 2, - TerminationBTypeID: 5, - TerminationAID: 98, - TerminationBID: 1, // circuit termination + Terminations: []*dbModel.DcimCabletermination{ + { + TerminationID: 98, + TerminationTypeID: 2, + }, + { + TerminationID: 1, // circuit termination + TerminationTypeID: 5, + }, + }, }, { - TerminationATypeID: 2, - TerminationBTypeID: 5, - TerminationAID: 99, - TerminationBID: 2, // circuit termination + Terminations: []*dbModel.DcimCabletermination{ + { + TerminationID: 99, + TerminationTypeID: 2, + }, + { + TerminationID: 2, // circuit termination + TerminationTypeID: 5, + }, + }, }, // Cable with unknown termination type, e.g. serial or power cables, which are ignored for now { - TerminationATypeID: 99, - TerminationBTypeID: 5, - TerminationAID: 99, - TerminationBID: 2, + Terminations: []*dbModel.DcimCabletermination{ + { + TerminationID: 99, + TerminationTypeID: 99, + }, + { + TerminationID: 2, + TerminationTypeID: 5, + }, + }, }, { - TerminationATypeID: 1, - TerminationBTypeID: 99, - TerminationAID: 99, - TerminationBID: 2, + Terminations: []*dbModel.DcimCabletermination{ + { + TerminationID: 99, + TerminationTypeID: 1, + }, + { + TerminationID: 2, + TerminationTypeID: 99, + }, + }, }, }, circuits: map[int64]*dbModel.CircuitsCircuit{