Name | Type | Description | Notes |
---|---|---|---|
Id | string | ||
ExternalKey | Pointer to string | [optional] | |
Name | Pointer to string | [optional] | |
Ips | Pointer to []string | [optional] | |
Dns | Pointer to []string | [optional] | |
TorOver | Pointer to bool | [optional] [default to false] | |
ConnectionMode | Pointer to ConnectionMode | [optional] | |
Wireguard | Pointer to WireGuard | [optional] | |
Location | Pointer to Location | [optional] | |
Servers | Pointer to []Server | [optional] | |
LastActiveAt | Pointer to time.Time | [optional] | |
Type | Pointer to string | [optional] |
func NewDevice(id string, ) *Device
NewDevice instantiates a new Device 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 NewDeviceWithDefaults() *Device
NewDeviceWithDefaults instantiates a new Device 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 *Device) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Device) 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.
func (o *Device) SetId(v string)
SetId sets Id field to given value.
func (o *Device) GetExternalKey() string
GetExternalKey returns the ExternalKey field if non-nil, zero value otherwise.
func (o *Device) GetExternalKeyOk() (*string, bool)
GetExternalKeyOk returns a tuple with the ExternalKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetExternalKey(v string)
SetExternalKey sets ExternalKey field to given value.
func (o *Device) HasExternalKey() bool
HasExternalKey returns a boolean if a field has been set.
func (o *Device) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Device) 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 *Device) SetName(v string)
SetName sets Name field to given value.
func (o *Device) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Device) GetIps() []string
GetIps returns the Ips field if non-nil, zero value otherwise.
func (o *Device) GetIpsOk() (*[]string, bool)
GetIpsOk returns a tuple with the Ips field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetIps(v []string)
SetIps sets Ips field to given value.
func (o *Device) HasIps() bool
HasIps returns a boolean if a field has been set.
func (o *Device) GetDns() []string
GetDns returns the Dns field if non-nil, zero value otherwise.
func (o *Device) GetDnsOk() (*[]string, bool)
GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetDns(v []string)
SetDns sets Dns field to given value.
func (o *Device) HasDns() bool
HasDns returns a boolean if a field has been set.
func (o *Device) GetTorOver() bool
GetTorOver returns the TorOver field if non-nil, zero value otherwise.
func (o *Device) GetTorOverOk() (*bool, bool)
GetTorOverOk returns a tuple with the TorOver field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetTorOver(v bool)
SetTorOver sets TorOver field to given value.
func (o *Device) HasTorOver() bool
HasTorOver returns a boolean if a field has been set.
func (o *Device) GetConnectionMode() ConnectionMode
GetConnectionMode returns the ConnectionMode field if non-nil, zero value otherwise.
func (o *Device) GetConnectionModeOk() (*ConnectionMode, bool)
GetConnectionModeOk returns a tuple with the ConnectionMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetConnectionMode(v ConnectionMode)
SetConnectionMode sets ConnectionMode field to given value.
func (o *Device) HasConnectionMode() bool
HasConnectionMode returns a boolean if a field has been set.
func (o *Device) GetWireguard() WireGuard
GetWireguard returns the Wireguard field if non-nil, zero value otherwise.
func (o *Device) GetWireguardOk() (*WireGuard, bool)
GetWireguardOk returns a tuple with the Wireguard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetWireguard(v WireGuard)
SetWireguard sets Wireguard field to given value.
func (o *Device) HasWireguard() bool
HasWireguard returns a boolean if a field has been set.
func (o *Device) GetLocation() Location
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *Device) GetLocationOk() (*Location, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetLocation(v Location)
SetLocation sets Location field to given value.
func (o *Device) HasLocation() bool
HasLocation returns a boolean if a field has been set.
func (o *Device) GetServers() []Server
GetServers returns the Servers field if non-nil, zero value otherwise.
func (o *Device) GetServersOk() (*[]Server, bool)
GetServersOk returns a tuple with the Servers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetServers(v []Server)
SetServers sets Servers field to given value.
func (o *Device) HasServers() bool
HasServers returns a boolean if a field has been set.
func (o *Device) GetLastActiveAt() time.Time
GetLastActiveAt returns the LastActiveAt field if non-nil, zero value otherwise.
func (o *Device) GetLastActiveAtOk() (*time.Time, bool)
GetLastActiveAtOk returns a tuple with the LastActiveAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Device) SetLastActiveAt(v time.Time)
SetLastActiveAt sets LastActiveAt field to given value.
func (o *Device) HasLastActiveAt() bool
HasLastActiveAt returns a boolean if a field has been set.
func (o *Device) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Device) GetTypeOk() (*string, 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 *Device) SetType(v string)
SetType sets Type field to given value.
func (o *Device) HasType() bool
HasType returns a boolean if a field has been set.