github.com/dim13/unifi@v0.0.0-20230308161331-9b04946f5e93/portprofile.go (about)

     1  // Copyright (c) 2014 The unifi Authors. All rights reserved.
     2  // Use of this source code is governed by ISC-style license
     3  // that can be found in the LICENSE file.
     4  
     5  package unifi
     6  
     7  type PortprofileMap map[string]PortProfile
     8  
     9  type PortProfile struct {
    10  	ID                   string   `json:"_id"`
    11  	AttrHidden           bool     `json:"attr_hidden,omitempty"`
    12  	AttrHiddenID         string   `json:"attr_hidden_id,omitempty"`
    13  	AttrNoDelete         bool     `json:"attr_no_delete,omitempty"`
    14  	AttrNoEdit           bool     `json:"attr_no_edit,omitempty"`
    15  	Forward              string   `json:"forward"`
    16  	Name                 string   `json:"name"`
    17  	SiteID               string   `json:"site_id"`
    18  	NativeNetworkconfID  string   `json:"native_networkconf_id,omitempty"`
    19  	Autoneg              bool     `json:"autoneg,omitempty"`
    20  	Dot1XCtrl            string   `json:"dot1x_ctrl,omitempty"`
    21  	LldpmedEnabled       bool     `json:"lldpmed_enabled,omitempty"`
    22  	OpMode               string   `json:"op_mode,omitempty"`
    23  	TaggedNetworkconfIds []string `json:"tagged_networkconf_ids,omitempty"`
    24  }