models

package
v0.0.0-...-7233b99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN struct {
	Asn           int             `json:"asn"`
	Comments      string          `json:"comments,omitempty"`
	Created       strfmt.DateTime `json:"created,omitempty"`
	CustomFields  interface{}     `json:"custom_fields,omitempty"`
	Description   string          `json:"description,omitempty"`
	Display       string          `json:"display,omitempty"`
	Id            int             `json:"id,omitempty"`
	LastUpdated   strfmt.DateTime `json:"last_updated,omitempty"`
	ProviderCount int             `json:"provider_count,omitempty"`
	Rir           int             `json:"rir"`
	SiteCount     int             `json:"site_count,omitempty"`
	Tags          []NestedTag     `json:"tags,omitempty"`
	Tenant        NestedTenant    `json:"tenant,omitempty"`
	URL           strfmt.URI      `json:"url,omitempty"`
}

type AvailableIp

type AvailableIp struct {
	Family  int         `json:"family"`
	Address string      `json:"address"`
	Vrf     interface{} `json:"vrf"`
}

type Cable

type Cable struct {
	Color              string          `json:"color,omitempty"`
	Comments           string          `json:"comments,omitempty"`
	Created            strfmt.DateTime `json:"created,omitempty"`
	CustomFields       interface{}     `json:"custom_fields,omitempty"`
	Description        string          `json:"description,omitempty"`
	Display            string          `json:"display,omitempty"`
	Id                 int             `json:"id,omitempty"`
	Label              string          `json:"label,omitempty"`
	LastUpdated        strfmt.DateTime `json:"last_updated,omitempty"`
	Length             float64         `json:"length,omitempty"`
	LengthUnit         CableLengthUnit `json:"length_unit,omitempty"`
	Status             CableStatus     `json:"status,omitempty"`
	Tags               []NestedTag     `json:"tags,omitempty"`
	Tenant             NestedTenant    `json:"tenant,omitempty"`
	Type               string          `json:"type,omitempty"`
	Url                strfmt.URI      `json:"url,omitempty"`
	Aterminations      []Termination
	Bterminations      []Termination
	AssignedObjectType string
}

func (*Cable) UnmarshalJSON

func (cable *Cable) UnmarshalJSON(b []byte) error

type CableLengthUnit

type CableLengthUnit struct {
	Label *string `json:"label"`
	Value *string `json:"value"`
}

type CableStatus

type CableStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type Cluster

type Cluster struct {
	Comments            string             `json:"comments,omitempty"`
	Created             strfmt.DateTime    `json:"created,omitempty"`
	CustomFields        interface{}        `json:"custom_fields,omitempty"`
	Description         string             `json:"description,omitempty"`
	DeviceCount         int                `json:"device_count,omitempty"`
	Display             string             `json:"display,omitempty"`
	Group               NestedClusterGroup `json:"group,omitempty"`
	Id                  int                `json:"id,omitempty"`
	LastUpdated         strfmt.DateTime    `json:"last_updated,omitempty"`
	Name                string             `json:"name"`
	Site                NestedSite         `json:"site,omitempty"`
	Status              ClusterStatus      `json:"status,omitempty"`
	Tags                []NestedTag        `json:"tags,omitempty"`
	Tenant              NestedTenant       `json:"tenant,omitempty"`
	Type                NestedClusterType  `json:"type"`
	URL                 strfmt.URI         `json:"url,omitempty"`
	VirtualmachineCount int                `json:"virtualmachine_count,omitempty"`
}

type ClusterStatus

type ClusterStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type CreateAvailablePrefixRequest

type CreateAvailablePrefixRequest struct {
	PrefixLength int `json:"prefix_length"`
}

type Device

type Device struct {
	NestedDevice
	Airflow          *DeviceAirflow       `json:"airflow,omitempty"`
	AssetTag         string               `json:"asset_tag,omitempty"`
	Cluster          *NestedCluster       `json:"cluster,omitempty"`
	Comments         string               `json:"comments,omitempty"`
	ConfigContext    interface{}          `json:"config_context"`
	Created          strfmt.DateTime      `json:"created,omitempty"`
	CustomFields     interface{}          `json:"custom_fields,omitempty"`
	Description      string               `json:"description,omitempty"`
	DeviceRole       NestedDeviceRole     `json:"device_role"`
	DeviceType       NestedDeviceType     `json:"device_type"`
	Display          string               `json:"display,omitempty"`
	Face             DeviceFace           `json:"face"`
	Id               int                  `json:"id,omitempty"`
	LastUpdated      strfmt.DateTime      `json:"last_updated,omitempty"`
	LocalContextData interface{}          `json:"local_context_data"`
	Location         NestedLocation       `json:"location,omitempty"`
	Name             string               `json:"name,omitempty"`
	ParentDevice     NestedDevice         `json:"parent_device"`
	Platform         NestedPlatform       `json:"platform"`
	Position         float64              `json:"position"`
	PrimaryIp        NestedIpAddress      `json:"primary_ip"`
	PrimaryIp4       NestedIpAddress      `json:"primary_ip4"`
	PrimaryIp6       NestedIpAddress      `json:"primary_ip6"`
	Rack             NestedRack           `json:"rack"`
	Serial           string               `json:"serial"`
	Site             NestedSite           `json:"site"`
	Status           DeviceStatus         `json:"status"`
	Tags             []NestedTag          `json:"tags"`
	Tenant           NestedTenant         `json:"tenant"`
	VCPosition       int                  `json:"vc_position"`
	VCPriority       int                  `json:"vc_priority"`
	VirtualChassis   NestedVirtualChassis `json:"virtual_chassis"`
}

type DeviceAirflow

type DeviceAirflow struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type DeviceFace

type DeviceFace struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type DeviceRole

type DeviceRole struct {
	NestedDeviceRole
	Color       string `json:"color"`
	VMRole      bool   `json:"vm_role"`
	Description string `json:"description"`
}

type DeviceStatus

type DeviceStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type DeviceType

type DeviceType struct {
	NestedDeviceType
}

type Interface

type Interface struct {
	NestedInterface
	Cable              NestedCable       `json:"cable,omitempty"`
	ConnectedEndpoints []NestedInterface `json:"connected_endpoints"`
	CountIpaddresses   int               `json:"count_ipaddresses,omitempty"`
	Description        string            `json:"description,omitempty"`
	Enabled            bool              `json:"enabled,omitempty"`
	Label              string            `json:"label,omitempty"`
	Lag                NestedInterface   `json:"lag,omitempty"`
	MacAddress         string            `json:"mac_address,omitempty"`
	MgmtOnly           bool              `json:"mgmt_only,omitempty"`
	Mode               InterfaceMode     `json:"mode,omitempty"`
	Mtu                int               `json:"mtu,omitempty"`
	Name               string            `json:"name"`
	Occupied           bool              `json:"_occupied,omitempty"`
	TaggedVlans        []NestedVLAN      `json:"tagged_vlans"`
	Tags               []NestedTag       `json:"tags,omitempty"`
	Type               InterfaceType     `json:"type"`
	UntaggedVlan       NestedVLAN        `json:"untagged_vlan,omitempty"`
}

type InterfaceMode

type InterfaceMode struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type InterfaceType

type InterfaceType struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type IpAddress

type IpAddress struct {
	NestedIpAddress
	Vrf                 interface{}     `json:"vrf"`
	Tenant              Tenant          `json:"tenant"`
	Status              IpAddressStatus `json:"status"`
	Role                IpamRole        `json:"role"`
	NatInside           interface{}     `json:"nat_inside"`
	NatOutside          interface{}     `json:"nat_outside"`
	DnsName             string          `json:"dns_name"`
	Description         string          `json:"description"`
	Tags                []NestedTag     `json:"tags"`
	CustomFields        interface{}     `json:"custom_fields"`
	Created             string          `json:"created"`
	LastUpdated         string          `json:"last_updated"`
	AssignedInterface   NestedInterface
	AssignedVMInterface NestedVMInterface
	AssignedObjectType  string `json:"assigned_object_type"`
	AssignedObjectId    int    `json:"assigned_object_id"`
}

func (*IpAddress) UnmarshalJSON

func (ip *IpAddress) UnmarshalJSON(b []byte) error

type IpAddressStatus

type IpAddressStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type IpamRole

type IpamRole struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type LengthUnit

type LengthUnit struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type ListCablesRequest

type ListCablesRequest struct {
	common.ListParams
	CableId   int
	CableType string
}

type ListCablesResponse

type ListCablesResponse struct {
	common.ReturnValues
	Results []Cable `json:"results"`
}

type ListClusterRequest

type ListClusterRequest struct {
	common.ListParams
	Type   string
	Region string
}

type ListClusterResponse

type ListClusterResponse struct {
	common.ReturnValues
	Results []Cluster `json:"results"`
}

type ListDeviceRolesRequest

type ListDeviceRolesRequest struct {
	common.ListParams
}

type ListDeviceRolesResponse

type ListDeviceRolesResponse struct {
	common.ReturnValues
	Results []DeviceRole `json:"results"`
}

type ListDeviceTypesRequest

type ListDeviceTypesRequest struct {
	common.ListParams
}

type ListDeviceTypesResponse

type ListDeviceTypesResponse struct {
	common.ReturnValues
	Results []DeviceType `json:"results"`
}

type ListDevicesRequest

type ListDevicesRequest struct {
	common.ListParams
	ClusterId    int
	DeviceTypeId int
	Region       string
	Site         string
	RackId       int
	Serial       string
	RoleId       int
}

type ListDevicesResponse

type ListDevicesResponse struct {
	common.ReturnValues
	Results []Device `json:"results"`
}

type ListInterfacesRequest

type ListInterfacesRequest struct {
	common.ListParams
	Type       string
	DeviceId   int
	MacAddress string
}

type ListInterfacesResponse

type ListInterfacesResponse struct {
	common.ReturnValues
	Results []Interface `json:"results"`
}

type ListIpAddressesRequest

type ListIpAddressesRequest struct {
	common.ListParams
	InterfaceId   int
	VmInterfaceId int
	DeviceId      int
	Role          string
	Address       string
	VrfId         int
	Parent        string
}

type ListIpAddressesResponse

type ListIpAddressesResponse struct {
	common.ReturnValues
	Results []IpAddress `json:"results"`
}

type ListPlatformsRequest

type ListPlatformsRequest struct {
	common.ListParams
}

type ListPlatformsResponse

type ListPlatformsResponse struct {
	common.ReturnValues
	Results []Platform `json:"results"`
}

type ListPrefixesReponse

type ListPrefixesReponse struct {
	common.ReturnValues
	Results []Prefix `json:"results"`
}

type ListPrefixesRequest

type ListPrefixesRequest struct {
	common.ListParams
	Role          string
	Region        string
	Site          string
	Tag           string
	TenantId      int
	VrfId         int
	Prefix        string
	MaskLength    int
	MaskLengthGte int
	MaskLengthLte int
	Status        string
	Within        string
	Contains      string
	Children      *int
}

type ListRacksRequest

type ListRacksRequest struct {
	common.ListParams
}

type ListRacksResponse

type ListRacksResponse struct {
	common.ReturnValues
	Results []Rack `json:"results"`
}

type ListRegionsRequest

type ListRegionsRequest struct {
	common.ListParams
	Region string
	Slug   string
}

type ListRegionsResponse

type ListRegionsResponse struct {
	common.ReturnValues
	Results []Region `json:"results"`
}

type ListRolesRequest

type ListRolesRequest struct {
	common.ListParams
	Name string
	Slug string
}

type ListRolesResponse

type ListRolesResponse struct {
	common.ReturnValues
	Results []Role `json:"results"`
}

type ListSiteGroupsRequest

type ListSiteGroupsRequest struct {
	common.ListParams
	Region string
}

type ListSiteGroupsResponse

type ListSiteGroupsResponse struct {
	common.ReturnValues
	Results []SiteGroup `json:"results"`
}

type ListSitesRequest

type ListSitesRequest struct {
	common.ListParams
	Region string
}

type ListSitesResponse

type ListSitesResponse struct {
	common.ReturnValues
	Results []Site `json:"results"`
}

type ListTagsRequest

type ListTagsRequest struct {
	common.ListParams
}

type ListTagsResponse

type ListTagsResponse struct {
	common.ReturnValues
	Results []Tag `json:"results"`
}

type ListTenantGroupsRequest

type ListTenantGroupsRequest struct {
	common.ListParams
}

type ListTenantGroupsResponse

type ListTenantGroupsResponse struct {
	common.ReturnValues
	Results []TenantGroup `json:"results"`
}

type ListTenantsRequest

type ListTenantsRequest struct {
	common.ListParams
}

type ListTenantsResponse

type ListTenantsResponse struct {
	common.ReturnValues
	Results []Tenant `json:"results"`
}

type ListVMInterfacesRequest

type ListVMInterfacesRequest struct {
	common.ListParams
	VmId int
}

type ListVMInterfacesResponse

type ListVMInterfacesResponse struct {
	common.ReturnValues
	Results []VMInterface `json:"results"`
}

type ListVRFsRequest

type ListVRFsRequest struct {
	common.ListParams
	Name string
}

type ListVRFsResponse

type ListVRFsResponse struct {
	common.ReturnValues
	Results []VRF `json:"results"`
}

type ListVirtualMachinesRequest

type ListVirtualMachinesRequest struct {
	common.ListParams
	ClusterId int `json:"cluster_id"`
	RoleId    int `json:"role_id"`
}

type ListVirtualMachinesResponse

type ListVirtualMachinesResponse struct {
	common.ReturnValues
	Results []VirtualMachine `json:"results"`
}

type ListVlanRequest

type ListVlanRequest struct {
	common.ListParams
	Group string `json:"group"`
}

type ListVlanResponse

type ListVlanResponse struct {
	common.ReturnValues
	Results []Vlan `json:"results"`
}

type Location

type Location struct {
	Depth        int             `json:"_depth,omitempty"`
	Created      strfmt.DateTime `json:"created,omitempty"`
	CustomFields interface{}     `json:"custom_fields,omitempty"`
	Description  string          `json:"description,omitempty"`
	DeviceCount  int             `json:"device_count,omitempty"`
	Display      string          `json:"display,omitempty"`
	Id           int             `json:"id,omitempty"`
	LastUpdated  strfmt.DateTime `json:"last_updated,omitempty"`
	Name         string          `json:"name"`
	Parent       NestedLocation  `json:"parent,omitempty"`
	RackCount    int             `json:"rack_count,omitempty"`
	Site         NestedSite      `json:"site"`
	Slug         string          `json:"slug"`
	Status       LocationStatus  `json:"status,omitempty"`
	Tags         []NestedTag     `json:"tags,omitempty"`
	Tenant       NestedTenant    `json:"tenant,omitempty"`
	URL          strfmt.URI      `json:"url,omitempty"`
}

type LocationStatus

type LocationStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type NestedASN

type NestedASN struct {
	Asn     int        `json:"asn"`
	Display string     `json:"display,omitempty"`
	Id      int        `json:"id,omitempty"`
	Url     strfmt.URI `json:"url,omitempty"`
}

type NestedCable

type NestedCable struct {
	Id      int        `json:"id,omitempty"`
	Url     strfmt.URI `json:"url,omitempty"`
	Display string     `json:"display,omitempty"`
	Label   string     `json:"label,omitempty"`
}

type NestedCluster

type NestedCluster struct {
	Display             string     `json:"display,omitempty"`
	Id                  int        `json:"id,omitempty"`
	Name                string     `json:"name"`
	Url                 strfmt.URI `json:"url,omitempty"`
	VirtualmachineCount int        `json:"virtualmachine_count,omitempty"`
}

type NestedClusterGroup

type NestedClusterGroup struct {
	ClusterCount int        `json:"cluster_count,omitempty"`
	Display      string     `json:"display,omitempty"`
	Id           int        `json:"id,omitempty"`
	Name         string     `json:"name"`
	Slug         string     `json:"slug"`
	URL          strfmt.URI `json:"url,omitempty"`
}

type NestedClusterType

type NestedClusterType struct {
	Id           int    `json:"id"`
	Url          string `json:"url"`
	Name         string `json:"name"`
	Slug         string `json:"slug"`
	ClusterCount int    `json:"cluster_count"`
}

type NestedDevice

type NestedDevice struct {
	Id          int    `json:"id"`
	Url         string `json:"url"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
}

type NestedDeviceRole

type NestedDeviceRole struct {
	Id                  int    `json:"id"`
	Url                 string `json:"url"`
	Name                string `json:"name"`
	Slug                string `json:"slug"`
	DeviceCount         int    `json:"device_count"`
	Display             string `json:"display"`
	VirtualMachineCount int    `json:"virtualmachine_count"`
}

type NestedDeviceType

type NestedDeviceType struct {
	Id           int                `json:"id"`
	Url          strfmt.URI         `json:"url"`
	Manufacturer NestedManufacturer `json:"manufacturer"`
	Model        string             `json:"model"`
	Slug         string             `json:"slug"`
	Display      string             `json:"display"`
	DeviceCount  int                `json:"device_count"`
}

type NestedInterface

type NestedInterface struct {
	Id     int          `json:"id"`
	Url    string       `json:"url"`
	Device NestedDevice `json:"device"`
	Name   string       `json:"name"`
	Cable  int          `json:"cable"`
}

type NestedIpAddress

type NestedIpAddress struct {
	Id      int         `json:"id,omitempty"`
	Url     string      `json:"url,omitempty"`
	Family  interface{} `json:"family,omitempty"`
	Address string      `json:"address"`
}

type NestedLocation

type NestedLocation struct {
	Depth     int        `json:"_depth,omitempty"`
	Display   string     `json:"display,omitempty"`
	Id        int        `json:"id,omitempty"`
	Name      string     `json:"name"`
	RackCount int        `json:"rack_count,omitempty"`
	Slug      string     `json:"slug"`
	URL       strfmt.URI `json:"url,omitempty"`
}

type NestedManufacturer

type NestedManufacturer struct {
	Id              int    `json:"id"`
	Url             string `json:"url"`
	Name            string `json:"name"`
	Slug            string `json:"slug"`
	DevicetypeCount int    `json:"devicetype_count"`
	Display         string `json:"display,omitempty"`
}

type NestedPlatform

type NestedPlatform struct {
	Id                  int    `json:"id"`
	Url                 string `json:"url"`
	Name                string `json:"name"`
	Slug                string `json:"slug"`
	DeviceCount         int    `json:"device_count"`
	VirtualMachineCount int    `json:"virtualmachine_count"`
	Display             string `json:"display,omitempty"`
}

type NestedRack

type NestedRack struct {
	DeviceCount int        `json:"device_count,omitempty"`
	Display     string     `json:"display,omitempty"`
	Id          int        `json:"id,omitempty"`
	Name        string     `json:"name"`
	Url         strfmt.URI `json:"url,omitempty"`
}

type NestedRegion

type NestedRegion struct {
	Depth     int        `json:"_depth,omitempty"`
	Display   string     `json:"display,omitempty"`
	Id        int        `json:"id,omitempty"`
	Name      string     `json:"name"`
	SiteCount int        `json:"site_count,omitempty"`
	Slug      string     `json:"slug"`
	Url       strfmt.URI `json:"url,omitempty"`
}

type NestedSite

type NestedSite struct {
	Id      int    `json:"id"`
	Url     string `json:"url"`
	Slug    string `json:"slug"`
	Name    string `json:"name"`
	Display string `json:"display,omitempty"`
}

type NestedSiteGroup

type NestedSiteGroup struct {
	Id   int    `json:"id"`
	Url  string `json:"url"`
	Slug string `json:"slug"`
	Name string `json:"name"`
}

type NestedTag

type NestedTag struct {
	Id    int        `json:"id,omitempty"`
	Url   strfmt.URI `json:"url,omitempty"`
	Name  string     `json:"name"`
	Slug  string     `json:"slug"`
	Color string     `json:"color,omitempty"`
}

type NestedTenant

type NestedTenant struct {
	Id      int        `json:"id"`
	Url     strfmt.URI `json:"url,omitempty"`
	Name    string     `json:"name"`
	Slug    string     `json:"slug"`
	Display string     `json:"display,omitempty"`
}

type NestedTenantGroup

type NestedTenantGroup struct {
	Id          int    `json:"id"`
	Url         string `json:"url"`
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	TenantCount string `json:"tenant_count,omitempty"`
}

type NestedVLAN

type NestedVLAN struct {
	Id          int    `json:"id"`
	Url         string `json:"url"`
	VId         int    `json:"vid"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
}

type NestedVMInterface

type NestedVMInterface struct {
	Display        string                `json:"display,omitempty"`
	Id             int                   `json:"id,omitempty"`
	Name           string                `json:"name"`
	URL            strfmt.URI            `json:"url,omitempty"`
	VirtualMachine *NestedVirtualMachine `json:"virtual_machine,omitempty"`
}

type NestedVRF

type NestedVRF struct {
	Id          int    `json:"id"`
	Url         string `json:"url"`
	Name        string `json:"name"`
	Rd          string `json:"rd"` // Route Distinguisher
	DisplayName string `json:"display_name"`
	PrefixCount int    `json:"prefix_count"`
}

type NestedVirtualChassis

type NestedVirtualChassis struct {
	Display     string       `json:"display,omitempty"`
	Id          int          `json:"id,omitempty"`
	Master      NestedDevice `json:"master"`
	MemberCount int          `json:"member_count,omitempty"`
	Name        string       `json:"name"`
	URL         strfmt.URI   `json:"url,omitempty"`
}

type NestedVirtualMachine

type NestedVirtualMachine struct {
	Id   int    `json:"id"`
	Url  string `json:"url"`
	Name string `json:"name"`
}

type Platform

type Platform struct {
	NestedPlatform
	Manufacturer interface{} `json:"manufacturer"`
	NapalmDriver string      `json:"napalm_driver"`
	NapalmArgs   string      `json:"napalm_args"`
	Description  string      `json:"description"`
}

type Prefix

type Prefix struct {
	Id           int         `json:"id"`
	Url          string      `json:"url"`
	Family       interface{} `json:"family"`
	Prefix       string      `json:"prefix"`
	Site         Site        `json:"site"`
	Vrf          NestedVRF   `json:"vrf"`
	Tenant       Tenant      `json:"tenant"`
	Vlan         NestedVLAN  `json:"vlan"`
	Status       Status      `json:"status"`
	Role         Role        `json:"role"`
	IsPool       bool        `json:"is_pool"`
	Description  string      `json:"description"`
	Tags         []NestedTag `json:"tags"`
	CustomFields interface{} `json:"custom_fields"`
	Created      string      `json:"created"`
	LastUpdated  string      `json:"last_updated"`
}

type Rack

type Rack struct {
	Id             int         `json:"id"`
	Url            string      `json:"url"`
	Name           string      `json:"name"`
	FacilityId     string      `json:"facility_id"`
	DisplayName    string      `json:"display_name"`
	Site           Site        `json:"site"`
	Group          interface{} `json:"group"`
	Tenant         Tenant      `json:"tenant"`
	Status         interface{} `json:"status"`
	Role           RackRole    `json:"role"`
	Serial         string      `json:"serial"`
	AssetTag       string      `json:"asset_tag"`
	Type           interface{} `json:"type"`
	Width          interface{} `json:width`
	UHeight        int         `json:"u_height"`
	DescUnits      bool        `json:"desc_units"`
	OuterWidth     int         `json:"outer_width"`
	OuterDepth     int         `json:"outer_depth"`
	OuterUnit      interface{} `json:"outer_unit"`
	Comments       string      `json:"comments"`
	Tags           interface{} `json:"tags"`
	CustomFields   interface{} `json:"custom_fields"`
	Created        string      `json:"created"`
	LastUpdated    string      `json:"last_updated"`
	DeviceCount    int         `json:"device_count"`
	PowerfeedCount int         `json:"powerfeed_count"`
}

type RackRole

type RackRole struct {
	Id           int         `json:"id"`
	Url          string      `json:"url"`
	Display      string      `json:"display"`
	Name         string      `json:"name"`
	Slug         string      `json:"slug"`
	Color        string      `json:"color"`
	Description  string      `json:"description"`
	CustomFields interface{} `json:"custom_fields"`
	Created      string      `json:"created"`
	LastUpdated  string      `json:"last_updated"`
	RackCount    int         `json:"rack_count"`
}

type Region

type Region struct {
	Depth        int             `json:"_depth,omitempty"`
	Created      strfmt.DateTime `json:"created,omitempty"`
	CustomFields interface{}     `json:"custom_fields,omitempty"`
	Description  string          `json:"description,omitempty"`
	Display      string          `json:"display,omitempty"`
	Id           int             `json:"id,omitempty"`
	LastUpdated  strfmt.DateTime `json:"last_updated,omitempty"`
	Name         string          `json:"name"`
	Parent       NestedRegion    `json:"parent,omitempty"`
	SiteCount    int             `json:"site_count,omitempty"`
	Slug         string          `json:"slug"`
	Tags         []NestedTag     `json:"tags,omitempty"`
	Url          strfmt.URI      `json:"url,omitempty"`
}

type Role

type Role struct {
	Id          int    `json:"id"`
	Url         string `json:"url"`
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	Weight      int    `json:"weight"`
	Description string `json:"description"`
	PrefixCount int    `json:"prefix_count"`
	VlanCount   int    `json:"vlan_count"`
}

type Site

type Site struct {
	Asns                []NestedASN     `json:"asns"`
	CircuitCount        int             `json:"circuit_count"`
	Comments            string          `json:"comments"`
	Created             strfmt.DateTime `json:"created"`
	CustomFields        interface{}     `json:"custom_fields"`
	Description         string          `json:"description"`
	DeviceCount         int             `json:"device_count"`
	Facility            string          `json:"facility"`
	Group               NestedSiteGroup `json:"group"`
	Id                  int             `json:"id"`
	LastUpdated         strfmt.DateTime `json:"last_updated"`
	Latitude            float64         `json:"latitude"`
	Longitude           float64         `json:"longitude"`
	Name                string          `json:"name"`
	PhysicalAddress     string          `json:"physical_address"`
	PrefixCount         int             `json:"prefix_count"`
	RackCount           int             `json:"rack_count"`
	Region              NestedRegion    `json:"region"`
	ShippingAddress     string          `json:"shipping_address"`
	Slug                string          `json:"slug"`
	Status              SiteStatus      `json:"status"`
	Tags                []NestedTag     `json:"tags"`
	Tenant              Tenant          `json:"tenant"`
	TimeZone            string          `json:"time_zone"`
	Url                 strfmt.URI      `json:"url"`
	VirtualMachineCount int             `json:"virtualmachine_count"`
	VlanCount           int             `json:"vlan_count"`
}

type SiteGroup

type SiteGroup struct {
	Created      strfmt.DateTime `json:"created"`
	CustomFields interface{}     `json:"custom_fields"`
	Depth        int             `json:"_depth"`
	Description  string          `json:"description"`
	Display      string          `json:"display,omitempty"`
	Id           int             `json:"id"`
	LastUpdated  strfmt.DateTime `json:"last_updated"`
	Name         string          `json:"name"`
	Parent       NestedSiteGroup `json:"parent,omitempty"`
	SiteCount    int             `json:"site_count"`
	Slug         string          `json:"slug"`
	Tags         []NestedTag     `json:"tags"`
	Url          strfmt.URI      `json:"url"`
}

type SiteStatus

type SiteStatus struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type Status

type Status struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type Tag

type Tag struct {
	NestedTag
	Description string `json:"description"`
	TaggedItems int    `json:"tagged_items"`
}

type Tenant

type Tenant struct {
	NestedTenant
	Group               NestedTenantGroup `json:"group"`
	Description         string            `json:"description"`
	Comments            string            `json:"comments"`
	Tags                interface{}       `json:"tags"`
	CustomFields        interface{}       `json:"custom_fields"`
	Created             string            `json:"created"`
	LastUpdated         string            `json:"last_updated"`
	CircuitCount        int               `json:"circuit_count"`
	DeviceCount         int               `json:"device_count"`
	IpAddressCount      int               `json:"ipaddress_count"`
	PrefixCount         int               `json:"prefix_count"`
	RackCount           int               `json:"rack_count"`
	SiteCount           int               `json:"site_count"`
	VirtualMachineCount int               `json:"virtualmachine_count"`
	VlanCount           int               `json:"vlan_count"`
	VrfCount            int               `json:"vrf_count"`
	ClusterCount        int               `json:"cluster_count"`
}

type TenantGroup

type TenantGroup struct {
	NestedTenantGroup
	Description  string             `json:"description"`
	Comments     string             `json:"comments"`
	CustomFields interface{}        `json:"custom_fields"`
	Created      string             `json:"created"`
	LastUpdated  string             `json:"last_updated"`
	Name         string             `json:"name"`
	Parent       *NestedTenantGroup `json:"parent,omitempty"`
	Slug         string             `json:"slug"`
	Tags         []*NestedTag       `json:"tags"`
	TenantCount  int                `json:"tenant_count,omitempty"`
	Url          string             `json:"url,omitempty"`
}

type Termination

type Termination struct {
	Interface  NestedInterface `json:"object,omitempty"`
	ObjectId   int             `json:"object_id"`
	ObjectType string          `json:"object_type"`
}

type VMInterface

type VMInterface struct {
	Enabled        *bool                `json:"enabled,omitempty"`
	Url            string               `json:"url"`
	Id             int                  `json:"id"`
	Name           string               `json:"name"`
	MTU            *int                 `json:"mtu,omitempty"`
	MacAddress     *string              `json:"mac_address,omitempty"`
	Description    *string              `json:"description,omitempty"`
	Mode           *string              `json:"mode,omitempty"`
	Tags           []NestedTag          `json:"tags,omitempty"`
	VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
	UntaggedVlan   *NestedVLAN          `json:"untagged_vlan,omitempty"`
	TaggedVlans    []NestedVLAN         `json:"tagged_vlans,omitempty"`
}

func (*VMInterface) UnmarshalJSON

func (vmIf *VMInterface) UnmarshalJSON(b []byte) error

func (*VMInterface) Writeable

func (vmi *VMInterface) Writeable() WritableVMInterface

type VRF

type VRF struct {
	NestedVRF
	Tenant         NestedTenant `json:"tenant"`
	EnforceUnique  bool         `json:"enforce_unique"`
	Description    string       `json:"description"`
	Tags           []NestedTag  `json:"tags"`
	CustomFields   interface{}  `json:"custom_fields"`
	Created        string       `json:"created"`
	LastUpdated    string       `json:"last_updated"`
	IpAddressCount int          `json:"ipaddress_count"`
	PrefixCount    int          `json:"prefix_count"`
}

type VirtualChassis

type VirtualChassis struct {
	Comments     string          `json:"comments,omitempty"`
	Created      strfmt.DateTime `json:"created,omitempty"`
	CustomFields interface{}     `json:"custom_fields,omitempty"`
	Description  string          `json:"description,omitempty"`
	Display      string          `json:"display,omitempty"`
	Domain       string          `json:"domain,omitempty"`
	Id           int             `json:"id,omitempty"`
	LastUpdated  strfmt.DateTime `json:"last_updated,omitempty"`
	Master       NestedDevice    `json:"master,omitempty"`
	MemberCount  int             `json:"member_count,omitempty"`
	Name         string          `json:"name"`
	Tags         []NestedTag     `json:"tags,omitempty"`
	URL          strfmt.URI      `json:"url,omitempty"`
}

type VirtualMachine

type VirtualMachine struct {
	NestedVirtualMachine
	Status           VirtualMachineStatus `json:"status"`
	Role             NestedDeviceRole     `json:"role"`
	Tenant           NestedTenant         `json:"tenant"`
	Platform         NestedPlatform       `json:"platform"`
	PrimaryIp        NestedIpAddress      `json:"primary_ip"`
	PrimaryIp4       NestedIpAddress      `json:"primary_ip4"`
	PrimaryIp6       interface{}          `json:"primary_ip6"`
	VCPUs            float64              `json:"vcpus"`
	Memory           int                  `json:"memory"`
	Disk             int                  `json:"disk"`
	Comments         string               `json:"comments"`
	LocalContextData string               `json:"local_context_data"`
	Tags             interface{}          `json:"tags"`
	CustomFields     interface{}          `json:"custom_fields"`
	ConfigContext    interface{}          `json:"config_context"`
	Created          string               `json:"created"`
	LastUpdated      string               `json:"last_updated"`
	Cluster          NestedCluster
	Site             Site
	Device           Device
}

func (*VirtualMachine) UnmarshalJSON

func (vm *VirtualMachine) UnmarshalJSON(b []byte) error

func (*VirtualMachine) Writeable

func (vm *VirtualMachine) Writeable() WriteableVirtualMachine

type VirtualMachineStatus

type VirtualMachineStatus struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type Vlan

type Vlan struct {
	NestedVLAN
	Group        interface{} `json:"group"`
	Description  string      `json:"description"`
	Tags         interface{} `json:"tags"`
	CustomFields interface{} `json:"custom_fields"`
	Created      string      `json:"created"`
	LastUpdated  string      `json:"last_updated"`
	PrefixCount  int         `json:"prefix_count"`
	Role         Role        `json:"role"`
	Site         Site        `json:"site"`
	Status       interface{} `json:"status"`
	Tenant       Tenant      `json:"tenant"`
}

type WritableDeviceWithConfigContext

type WritableDeviceWithConfigContext struct {
	Airflow          string          `json:"airflow,omitempty"`
	AssetTag         string          `json:"asset_tag,omitempty"`
	Cluster          int             `json:"cluster,omitempty"`
	Comments         string          `json:"comments,omitempty"`
	ConfigContext    interface{}     `json:"config_context,omitempty"`
	Created          strfmt.DateTime `json:"created,omitempty"`
	CustomFields     interface{}     `json:"custom_fields,omitempty"`
	Description      string          `json:"description,omitempty"`
	DeviceRole       int             `json:"device_role"`
	DeviceType       int             `json:"device_type"`
	Display          string          `json:"display,omitempty"`
	Face             string          `json:"face,omitempty"`
	Id               int             `json:"id,omitempty"`
	LastUpdated      strfmt.DateTime `json:"last_updated,omitempty"`
	LocalContextData interface{}     `json:"local_context_data,omitempty"`
	Location         int             `json:"location,omitempty"`
	Name             string          `json:"name,omitempty"`
	ParentDevice     *NestedDevice   `json:"parent_device,omitempty"`
	Platform         int             `json:"platform,omitempty"`
	Position         float64         `json:"position,omitempty"`
	PrimaryIP        string          `json:"primary_ip,omitempty"`
	PrimaryIp4       int             `json:"primary_ip4,omitempty"`
	PrimaryIp6       int             `json:"primary_ip6,omitempty"`
	Rack             int             `json:"rack,omitempty"`
	Serial           string          `json:"serial,omitempty"`
	Site             int             `json:"site"`
	Status           string          `json:"status,omitempty"`
	Tags             []NestedTag     `json:"tags,omitempty"`
	Tenant           int             `json:"tenant,omitempty"`
	Url              strfmt.URI      `json:"url,omitempty"`
	VcPosition       int             `json:"vc_position,omitempty"`
	VcPriority       int             `json:"vc_priority,omitempty"`
	VirtualChassis   int             `json:"virtual_chassis,omitempty"`
}

type WritableInterface

type WritableInterface struct {
	Cable         NestedCable `json:"cable,omitempty"`
	CustomFields  interface{} `json:"custom_fields,omitempty"`
	Description   string      `json:"description,omitempty"`
	Device        int         `json:"device"`
	Enabled       bool        `json:"enabled,omitempty"`
	Label         string      `json:"label,omitempty"`
	Lag           int         `json:"lag,omitempty"`
	MacAddress    string      `json:"mac_address,omitempty"`
	MarkConnected bool        `json:"mark_connected,omitempty"`
	MgmtOnly      bool        `json:"mgmt_only,omitempty"`
	Mode          string      `json:"mode,omitempty"`
	Mtu           int         `json:"mtu,omitempty"`
	Name          string      `json:"name"`
	Parent        int         `json:"parent,omitempty"`
	TaggedVlans   []int       `json:"tagged_vlans,omitempty"`
	Tags          []NestedTag `json:"tags,omitempty"`
	Type          string      `json:"type"`
	UntaggedVlan  int         `json:"untagged_vlan,omitempty"`
}

type WritableVMInterface

type WritableVMInterface struct {
	Id             int         `json:"id,omitempty"`
	Url            string      `json:"url,omitempty"`
	VirtualMachine int         `json:"virtual_machine,omitempty"`
	Name           string      `json:"name"`
	Enabled        bool        `json:"enabled,omitempty"`
	MTU            int         `json:"mtu,omitempty"`
	MacAddress     *string     `json:"mac_address,omitempty"`
	Description    string      `json:"description,omitempty"`
	Mode           string      `json:"mode,omitempty"`
	UntaggedVlan   *int        `json:"untagged_vlan,omitempty"`
	TaggedVlans    []int       `json:"tagged_vlans,omitempty"`
	Tags           []NestedTag `json:"tags,omitempty"`
}

type WriteableCable

type WriteableCable struct {
	Aterminations []Termination   `json:"a_terminations,omitempty"`
	Bterminations []Termination   `json:"b_terminations,omitempty"`
	Color         string          `json:"color,omitempty"`
	Comments      string          `json:"comments,omitempty"`
	Created       strfmt.DateTime `json:"created,omitempty"`
	CustomFields  interface{}     `json:"custom_fields,omitempty"`
	Description   string          `json:"description,omitempty"`
	Display       string          `json:"display,omitempty"`
	Id            int64           `json:"id,omitempty"`
	Label         string          `json:"label,omitempty"`
	LastUpdated   strfmt.DateTime `json:"last_updated,omitempty"`
	Length        float64         `json:"length,omitempty"`
	LengthUnit    string          `json:"length_unit,omitempty"`
	Status        string          `json:"status,omitempty"`
	Tags          []NestedTag     `json:"tags,omitempty"`
	Tenant        int64           `json:"tenant,omitempty"`
	Type          string          `json:"type,omitempty"`
	Url           strfmt.URI      `json:"url,omitempty"`
}

type WriteableIpAddress

type WriteableIpAddress struct {
	NestedIpAddress
	Vrf                int         `json:"vrf,omitempty"`
	Tenant             int         `json:"tenant,omitempty"`
	Status             string      `json:"status,omitempty"`
	Role               string      `json:"role,omitempty"`
	AssignedObjectType string      `json:"assigned_object_type,omitempty"`
	AssignedObjectId   int         `json:"assigned_object_id,omitempty"`
	NatInside          int         `json:"nat_inside,omitempty"`
	NatOutside         int         `json:"nat_outside,omitempty"`
	DnsName            string      `json:"dns_name,omitempty"`
	Description        string      `json:"description,omitempty"`
	Tags               []NestedTag `json:"tags,omitempty"`
	CustomFields       interface{} `json:"custom_fields,omitempty"`
	Created            string      `json:"created,omitempty"`
	LastUpdated        string      `json:"last_updated,omitempty"`
}

type WriteablePrefix

type WriteablePrefix struct {
	Id           int         `json:"id,omitempty"`
	Url          string      `json:"url"`
	Prefix       string      `json:"prefix"`
	Site         int         `json:"site,omitempty"`
	Vrf          int         `json:"vrf,omitempty"`
	Tenant       int         `json:"tenant,omitempty"`
	Vlan         int         `json:"vlan,omitempty"`
	Status       string      `json:"status,omitempty"`
	Role         int         `json:"role,omitempty"`
	IsPool       bool        `json:"is_pool"`
	Description  string      `json:"description"`
	Tags         []NestedTag `json:"tags,omitempty"`
	CustomFields interface{} `json:"custom_fields,omitempty"`
	Created      string      `json:"created"`
	LastUpdated  string      `json:"last_updated"`
}

type WriteableVirtualMachine

type WriteableVirtualMachine struct {
	Id         int     `json:"id,omitempty"`
	Url        string  `json:"url,omitempty"`
	Name       string  `json:"name"`
	Status     string  `json:"status,omitempty"`
	Site       int     `json:"site,omitempty"`
	Cluster    int     `json:"cluster"`
	Device     int     `json:"device,omitempty"`
	Role       int     `json:"role,omitempty"`
	Tenant     int     `json:"tenant,omitempty"`
	Platform   int     `json:"platform,omitempty"`
	PrimaryIp  string  `json:"primary_ip,omitempty"`
	PrimaryIp4 int     `json:"primary_ip4,omitempty"`
	Comments   string  `json:"comments,omitempty"`
	VCPUs      float64 `json:"vcpus,omitempty"`
	Memory     int     `json:"memory,omitempty"`
	Disk       int     `json:"disk,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL