Skip to content

Latest commit

 

History

History
390 lines (209 loc) · 10.1 KB

FrontPort.md

File metadata and controls

390 lines (209 loc) · 10.1 KB

FrontPort

Properties

Name Type Description Notes
Id string [readonly]
Url string [readonly]
Device NestedDevice
Name string
Label Pointer to string Physical label [optional]
Type FrontPortType
RearPort FrontPortRearPort
RearPortPosition Pointer to int32 [optional] [default to 1]
Description Pointer to string [optional]
Cable CircuitTerminationCable
CablePeer map[string]interface{} [readonly]
CablePeerType NullableString [readonly]
Tags Pointer to []TagSerializerField [optional]
CustomFields Pointer to map[string]interface{} [optional]
Display string Human friendly display value [readonly]

Methods

NewFrontPort

func NewFrontPort(id string, url string, device NestedDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable CircuitTerminationCable, cablePeer map[string]interface{}, cablePeerType NullableString, display string, ) *FrontPort

NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewFrontPortWithDefaults

func NewFrontPortWithDefaults() *FrontPort

NewFrontPortWithDefaults instantiates a new FrontPort object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetId

func (o *FrontPort) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *FrontPort) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *FrontPort) SetId(v string)

SetId sets Id field to given value.

GetUrl

func (o *FrontPort) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

func (o *FrontPort) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrl

func (o *FrontPort) SetUrl(v string)

SetUrl sets Url field to given value.

GetDevice

func (o *FrontPort) GetDevice() NestedDevice

GetDevice returns the Device field if non-nil, zero value otherwise.

GetDeviceOk

func (o *FrontPort) GetDeviceOk() (*NestedDevice, bool)

GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDevice

func (o *FrontPort) SetDevice(v NestedDevice)

SetDevice sets Device field to given value.

GetName

func (o *FrontPort) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *FrontPort) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *FrontPort) SetName(v string)

SetName sets Name field to given value.

GetLabel

func (o *FrontPort) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

GetLabelOk

func (o *FrontPort) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabel

func (o *FrontPort) SetLabel(v string)

SetLabel sets Label field to given value.

HasLabel

func (o *FrontPort) HasLabel() bool

HasLabel returns a boolean if a field has been set.

GetType

func (o *FrontPort) GetType() FrontPortType

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *FrontPort) GetTypeOk() (*FrontPortType, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *FrontPort) SetType(v FrontPortType)

SetType sets Type field to given value.

GetRearPort

func (o *FrontPort) GetRearPort() FrontPortRearPort

GetRearPort returns the RearPort field if non-nil, zero value otherwise.

GetRearPortOk

func (o *FrontPort) GetRearPortOk() (*FrontPortRearPort, bool)

GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRearPort

func (o *FrontPort) SetRearPort(v FrontPortRearPort)

SetRearPort sets RearPort field to given value.

GetRearPortPosition

func (o *FrontPort) GetRearPortPosition() int32

GetRearPortPosition returns the RearPortPosition field if non-nil, zero value otherwise.

GetRearPortPositionOk

func (o *FrontPort) GetRearPortPositionOk() (*int32, bool)

GetRearPortPositionOk returns a tuple with the RearPortPosition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRearPortPosition

func (o *FrontPort) SetRearPortPosition(v int32)

SetRearPortPosition sets RearPortPosition field to given value.

HasRearPortPosition

func (o *FrontPort) HasRearPortPosition() bool

HasRearPortPosition returns a boolean if a field has been set.

GetDescription

func (o *FrontPort) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *FrontPort) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *FrontPort) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *FrontPort) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetCable

func (o *FrontPort) GetCable() CircuitTerminationCable

GetCable returns the Cable field if non-nil, zero value otherwise.

GetCableOk

func (o *FrontPort) GetCableOk() (*CircuitTerminationCable, bool)

GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCable

func (o *FrontPort) SetCable(v CircuitTerminationCable)

SetCable sets Cable field to given value.

GetCablePeer

func (o *FrontPort) GetCablePeer() map[string]interface{}

GetCablePeer returns the CablePeer field if non-nil, zero value otherwise.

GetCablePeerOk

func (o *FrontPort) GetCablePeerOk() (*map[string]interface{}, bool)

GetCablePeerOk returns a tuple with the CablePeer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCablePeer

func (o *FrontPort) SetCablePeer(v map[string]interface{})

SetCablePeer sets CablePeer field to given value.

SetCablePeerNil

func (o *FrontPort) SetCablePeerNil(b bool)

SetCablePeerNil sets the value for CablePeer to be an explicit nil

UnsetCablePeer

func (o *FrontPort) UnsetCablePeer()

UnsetCablePeer ensures that no value is present for CablePeer, not even an explicit nil

GetCablePeerType

func (o *FrontPort) GetCablePeerType() string

GetCablePeerType returns the CablePeerType field if non-nil, zero value otherwise.

GetCablePeerTypeOk

func (o *FrontPort) GetCablePeerTypeOk() (*string, bool)

GetCablePeerTypeOk returns a tuple with the CablePeerType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCablePeerType

func (o *FrontPort) SetCablePeerType(v string)

SetCablePeerType sets CablePeerType field to given value.

SetCablePeerTypeNil

func (o *FrontPort) SetCablePeerTypeNil(b bool)

SetCablePeerTypeNil sets the value for CablePeerType to be an explicit nil

UnsetCablePeerType

func (o *FrontPort) UnsetCablePeerType()

UnsetCablePeerType ensures that no value is present for CablePeerType, not even an explicit nil

GetTags

func (o *FrontPort) GetTags() []TagSerializerField

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *FrontPort) GetTagsOk() (*[]TagSerializerField, bool)

GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTags

func (o *FrontPort) SetTags(v []TagSerializerField)

SetTags sets Tags field to given value.

HasTags

func (o *FrontPort) HasTags() bool

HasTags returns a boolean if a field has been set.

GetCustomFields

func (o *FrontPort) GetCustomFields() map[string]interface{}

GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.

GetCustomFieldsOk

func (o *FrontPort) GetCustomFieldsOk() (*map[string]interface{}, bool)

GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCustomFields

func (o *FrontPort) SetCustomFields(v map[string]interface{})

SetCustomFields sets CustomFields field to given value.

HasCustomFields

func (o *FrontPort) HasCustomFields() bool

HasCustomFields returns a boolean if a field has been set.

GetDisplay

func (o *FrontPort) GetDisplay() string

GetDisplay returns the Display field if non-nil, zero value otherwise.

GetDisplayOk

func (o *FrontPort) GetDisplayOk() (*string, bool)

GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDisplay

func (o *FrontPort) SetDisplay(v string)

SetDisplay sets Display field to given value.

[Back to Model list] [Back to API list] [Back to README]