Name | Type | Description | Notes |
---|---|---|---|
Id | int32 | [readonly] | |
Url | string | [readonly] | |
Display | string | [readonly] | |
Device | NestedDevice | ||
Module | Pointer to NullableComponentNestedModule | [optional] | |
Name | string | ||
Label | Pointer to string | Physical label | [optional] |
Type | Pointer to NullableCableLengthUnit | [optional] | |
MaximumDraw | Pointer to NullableInt32 | Maximum power draw (watts) | [optional] |
AllocatedDraw | Pointer to NullableInt32 | Allocated power draw (watts) | [optional] |
Description | Pointer to string | [optional] | |
MarkConnected | Pointer to bool | Treat as if a cable is connected | [optional] |
Cable | NullableNestedCable | [readonly] | |
CableEnd | string | [readonly] | |
LinkPeers | []interface{} | [readonly] | |
LinkPeersType | string | Return the type of the peer link terminations, or None. | [readonly] |
ConnectedEndpoints | []interface{} | [readonly] | |
ConnectedEndpointsType | string | [readonly] | |
ConnectedEndpointsReachable | bool | [readonly] | |
Tags | Pointer to []NestedTag | [optional] | |
CustomFields | Pointer to map[string]interface{} | [optional] | |
Created | NullableTime | [readonly] | |
LastUpdated | NullableTime | [readonly] | |
Occupied | bool | [readonly] |
func NewPowerPort(id int32, url string, display string, device NestedDevice, name string, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort
NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPowerPortWithDefaults() *PowerPort
NewPowerPortWithDefaults instantiates a new PowerPort object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *PowerPort) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *PowerPort) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetId(v int32)
SetId sets Id field to given value.
func (o *PowerPort) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
func (o *PowerPort) 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.
func (o *PowerPort) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *PowerPort) GetDisplay() string
GetDisplay returns the Display field if non-nil, zero value otherwise.
func (o *PowerPort) 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.
func (o *PowerPort) SetDisplay(v string)
SetDisplay sets Display field to given value.
func (o *PowerPort) GetDevice() NestedDevice
GetDevice returns the Device field if non-nil, zero value otherwise.
func (o *PowerPort) 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.
func (o *PowerPort) SetDevice(v NestedDevice)
SetDevice sets Device field to given value.
func (o *PowerPort) GetModule() ComponentNestedModule
GetModule returns the Module field if non-nil, zero value otherwise.
func (o *PowerPort) GetModuleOk() (*ComponentNestedModule, bool)
GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetModule(v ComponentNestedModule)
SetModule sets Module field to given value.
func (o *PowerPort) HasModule() bool
HasModule returns a boolean if a field has been set.
func (o *PowerPort) SetModuleNil(b bool)
SetModuleNil sets the value for Module to be an explicit nil
func (o *PowerPort) UnsetModule()
UnsetModule ensures that no value is present for Module, not even an explicit nil
func (o *PowerPort) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *PowerPort) 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.
func (o *PowerPort) SetName(v string)
SetName sets Name field to given value.
func (o *PowerPort) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PowerPort) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PowerPort) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (o *PowerPort) GetType() CableLengthUnit
GetType returns the Type field if non-nil, zero value otherwise.
func (o *PowerPort) GetTypeOk() (*CableLengthUnit, 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.
func (o *PowerPort) SetType(v CableLengthUnit)
SetType sets Type field to given value.
func (o *PowerPort) HasType() bool
HasType returns a boolean if a field has been set.
func (o *PowerPort) SetTypeNil(b bool)
SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPort) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *PowerPort) GetMaximumDraw() int32
GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise.
func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)
GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetMaximumDraw(v int32)
SetMaximumDraw sets MaximumDraw field to given value.
func (o *PowerPort) HasMaximumDraw() bool
HasMaximumDraw returns a boolean if a field has been set.
func (o *PowerPort) SetMaximumDrawNil(b bool)
SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPort) UnsetMaximumDraw()
UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil
func (o *PowerPort) GetAllocatedDraw() int32
GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise.
func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)
GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetAllocatedDraw(v int32)
SetAllocatedDraw sets AllocatedDraw field to given value.
func (o *PowerPort) HasAllocatedDraw() bool
HasAllocatedDraw returns a boolean if a field has been set.
func (o *PowerPort) SetAllocatedDrawNil(b bool)
SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPort) UnsetAllocatedDraw()
UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil
func (o *PowerPort) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *PowerPort) 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.
func (o *PowerPort) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *PowerPort) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *PowerPort) GetMarkConnected() bool
GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise.
func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)
GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetMarkConnected(v bool)
SetMarkConnected sets MarkConnected field to given value.
func (o *PowerPort) HasMarkConnected() bool
HasMarkConnected returns a boolean if a field has been set.
func (o *PowerPort) GetCable() NestedCable
GetCable returns the Cable field if non-nil, zero value otherwise.
func (o *PowerPort) GetCableOk() (*NestedCable, 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.
func (o *PowerPort) SetCable(v NestedCable)
SetCable sets Cable field to given value.
func (o *PowerPort) SetCableNil(b bool)
SetCableNil sets the value for Cable to be an explicit nil
func (o *PowerPort) UnsetCable()
UnsetCable ensures that no value is present for Cable, not even an explicit nil
func (o *PowerPort) GetCableEnd() string
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
func (o *PowerPort) GetCableEndOk() (*string, bool)
GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetCableEnd(v string)
SetCableEnd sets CableEnd field to given value.
func (o *PowerPort) GetLinkPeers() []interface{}
GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise.
func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)
GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetLinkPeers(v []interface{})
SetLinkPeers sets LinkPeers field to given value.
func (o *PowerPort) GetLinkPeersType() string
GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise.
func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)
GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetLinkPeersType(v string)
SetLinkPeersType sets LinkPeersType field to given value.
func (o *PowerPort) GetConnectedEndpoints() []interface{}
GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise.
func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)
GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetConnectedEndpoints(v []interface{})
SetConnectedEndpoints sets ConnectedEndpoints field to given value.
func (o *PowerPort) GetConnectedEndpointsType() string
GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise.
func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)
GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetConnectedEndpointsType(v string)
SetConnectedEndpointsType sets ConnectedEndpointsType field to given value.
func (o *PowerPort) GetConnectedEndpointsReachable() bool
GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise.
func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)
GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetConnectedEndpointsReachable(v bool)
SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value.
func (o *PowerPort) GetTags() []NestedTag
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *PowerPort) GetTagsOk() (*[]NestedTag, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetTags(v []NestedTag)
SetTags sets Tags field to given value.
func (o *PowerPort) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *PowerPort) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
func (o *PowerPort) GetCustomFieldsOk() (*map[string]interface{}, bool)
GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *PowerPort) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *PowerPort) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *PowerPort) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetCreated(v time.Time)
SetCreated sets Created field to given value.
func (o *PowerPort) SetCreatedNil(b bool)
SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerPort) UnsetCreated()
UnsetCreated ensures that no value is present for Created, not even an explicit nil
func (o *PowerPort) GetLastUpdated() time.Time
GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool)
GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetLastUpdated(v time.Time)
SetLastUpdated sets LastUpdated field to given value.
func (o *PowerPort) SetLastUpdatedNil(b bool)
SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerPort) UnsetLastUpdated()
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
func (o *PowerPort) GetOccupied() bool
GetOccupied returns the Occupied field if non-nil, zero value otherwise.
func (o *PowerPort) GetOccupiedOk() (*bool, bool)
GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPort) SetOccupied(v bool)
SetOccupied sets Occupied field to given value.