Files
authentik/packages/client-go/model_device_facts_request.go
T
Marc 'risson' Schmitt 2f70351c90 packages/client-go: init (#21139)
* packages/client-go: init

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* format

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove mod/sum

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix translate

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* no go replace

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* update rust makefile with pwd

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* fix build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix docs

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* don't need a version ig?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* exclude go client from cspell

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix main docker build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
2026-03-25 15:26:50 +01:00

489 lines
14 KiB
Go
Generated

/*
authentik
Making authentication simple.
API version: 2026.5.0-rc1
Contact: hello@goauthentik.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// checks if the DeviceFactsRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DeviceFactsRequest{}
// DeviceFactsRequest struct for DeviceFactsRequest
type DeviceFactsRequest struct {
Os NullableOperatingSystemRequest `json:"os,omitempty"`
Disks []DiskRequest `json:"disks,omitempty"`
Network NullableNetworkRequest `json:"network,omitempty"`
Hardware NullableHardwareRequest `json:"hardware,omitempty"`
Software []SoftwareRequest `json:"software,omitempty"`
Processes []ProcessRequest `json:"processes,omitempty"`
Users []DeviceUserRequest `json:"users,omitempty"`
Groups []DeviceGroupRequest `json:"groups,omitempty"`
Vendor map[string]interface{} `json:"vendor,omitempty"`
AdditionalProperties map[string]interface{}
}
type _DeviceFactsRequest DeviceFactsRequest
// NewDeviceFactsRequest instantiates a new DeviceFactsRequest 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 NewDeviceFactsRequest() *DeviceFactsRequest {
this := DeviceFactsRequest{}
return &this
}
// NewDeviceFactsRequestWithDefaults instantiates a new DeviceFactsRequest 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 NewDeviceFactsRequestWithDefaults() *DeviceFactsRequest {
this := DeviceFactsRequest{}
return &this
}
// GetOs returns the Os field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetOs() OperatingSystemRequest {
if o == nil || IsNil(o.Os.Get()) {
var ret OperatingSystemRequest
return ret
}
return *o.Os.Get()
}
// GetOsOk returns a tuple with the Os field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetOsOk() (*OperatingSystemRequest, bool) {
if o == nil {
return nil, false
}
return o.Os.Get(), o.Os.IsSet()
}
// HasOs returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasOs() bool {
if o != nil && o.Os.IsSet() {
return true
}
return false
}
// SetOs gets a reference to the given NullableOperatingSystemRequest and assigns it to the Os field.
func (o *DeviceFactsRequest) SetOs(v OperatingSystemRequest) {
o.Os.Set(&v)
}
// SetOsNil sets the value for Os to be an explicit nil
func (o *DeviceFactsRequest) SetOsNil() {
o.Os.Set(nil)
}
// UnsetOs ensures that no value is present for Os, not even an explicit nil
func (o *DeviceFactsRequest) UnsetOs() {
o.Os.Unset()
}
// GetDisks returns the Disks field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetDisks() []DiskRequest {
if o == nil {
var ret []DiskRequest
return ret
}
return o.Disks
}
// GetDisksOk returns a tuple with the Disks field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetDisksOk() ([]DiskRequest, bool) {
if o == nil || IsNil(o.Disks) {
return nil, false
}
return o.Disks, true
}
// HasDisks returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasDisks() bool {
if o != nil && !IsNil(o.Disks) {
return true
}
return false
}
// SetDisks gets a reference to the given []DiskRequest and assigns it to the Disks field.
func (o *DeviceFactsRequest) SetDisks(v []DiskRequest) {
o.Disks = v
}
// GetNetwork returns the Network field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetNetwork() NetworkRequest {
if o == nil || IsNil(o.Network.Get()) {
var ret NetworkRequest
return ret
}
return *o.Network.Get()
}
// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetNetworkOk() (*NetworkRequest, bool) {
if o == nil {
return nil, false
}
return o.Network.Get(), o.Network.IsSet()
}
// HasNetwork returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasNetwork() bool {
if o != nil && o.Network.IsSet() {
return true
}
return false
}
// SetNetwork gets a reference to the given NullableNetworkRequest and assigns it to the Network field.
func (o *DeviceFactsRequest) SetNetwork(v NetworkRequest) {
o.Network.Set(&v)
}
// SetNetworkNil sets the value for Network to be an explicit nil
func (o *DeviceFactsRequest) SetNetworkNil() {
o.Network.Set(nil)
}
// UnsetNetwork ensures that no value is present for Network, not even an explicit nil
func (o *DeviceFactsRequest) UnsetNetwork() {
o.Network.Unset()
}
// GetHardware returns the Hardware field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetHardware() HardwareRequest {
if o == nil || IsNil(o.Hardware.Get()) {
var ret HardwareRequest
return ret
}
return *o.Hardware.Get()
}
// GetHardwareOk returns a tuple with the Hardware field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetHardwareOk() (*HardwareRequest, bool) {
if o == nil {
return nil, false
}
return o.Hardware.Get(), o.Hardware.IsSet()
}
// HasHardware returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasHardware() bool {
if o != nil && o.Hardware.IsSet() {
return true
}
return false
}
// SetHardware gets a reference to the given NullableHardwareRequest and assigns it to the Hardware field.
func (o *DeviceFactsRequest) SetHardware(v HardwareRequest) {
o.Hardware.Set(&v)
}
// SetHardwareNil sets the value for Hardware to be an explicit nil
func (o *DeviceFactsRequest) SetHardwareNil() {
o.Hardware.Set(nil)
}
// UnsetHardware ensures that no value is present for Hardware, not even an explicit nil
func (o *DeviceFactsRequest) UnsetHardware() {
o.Hardware.Unset()
}
// GetSoftware returns the Software field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetSoftware() []SoftwareRequest {
if o == nil {
var ret []SoftwareRequest
return ret
}
return o.Software
}
// GetSoftwareOk returns a tuple with the Software field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetSoftwareOk() ([]SoftwareRequest, bool) {
if o == nil || IsNil(o.Software) {
return nil, false
}
return o.Software, true
}
// HasSoftware returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasSoftware() bool {
if o != nil && !IsNil(o.Software) {
return true
}
return false
}
// SetSoftware gets a reference to the given []SoftwareRequest and assigns it to the Software field.
func (o *DeviceFactsRequest) SetSoftware(v []SoftwareRequest) {
o.Software = v
}
// GetProcesses returns the Processes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetProcesses() []ProcessRequest {
if o == nil {
var ret []ProcessRequest
return ret
}
return o.Processes
}
// GetProcessesOk returns a tuple with the Processes field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetProcessesOk() ([]ProcessRequest, bool) {
if o == nil || IsNil(o.Processes) {
return nil, false
}
return o.Processes, true
}
// HasProcesses returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasProcesses() bool {
if o != nil && !IsNil(o.Processes) {
return true
}
return false
}
// SetProcesses gets a reference to the given []ProcessRequest and assigns it to the Processes field.
func (o *DeviceFactsRequest) SetProcesses(v []ProcessRequest) {
o.Processes = v
}
// GetUsers returns the Users field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetUsers() []DeviceUserRequest {
if o == nil {
var ret []DeviceUserRequest
return ret
}
return o.Users
}
// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetUsersOk() ([]DeviceUserRequest, bool) {
if o == nil || IsNil(o.Users) {
return nil, false
}
return o.Users, true
}
// HasUsers returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasUsers() bool {
if o != nil && !IsNil(o.Users) {
return true
}
return false
}
// SetUsers gets a reference to the given []DeviceUserRequest and assigns it to the Users field.
func (o *DeviceFactsRequest) SetUsers(v []DeviceUserRequest) {
o.Users = v
}
// GetGroups returns the Groups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DeviceFactsRequest) GetGroups() []DeviceGroupRequest {
if o == nil {
var ret []DeviceGroupRequest
return ret
}
return o.Groups
}
// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DeviceFactsRequest) GetGroupsOk() ([]DeviceGroupRequest, bool) {
if o == nil || IsNil(o.Groups) {
return nil, false
}
return o.Groups, true
}
// HasGroups returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasGroups() bool {
if o != nil && !IsNil(o.Groups) {
return true
}
return false
}
// SetGroups gets a reference to the given []DeviceGroupRequest and assigns it to the Groups field.
func (o *DeviceFactsRequest) SetGroups(v []DeviceGroupRequest) {
o.Groups = v
}
// GetVendor returns the Vendor field value if set, zero value otherwise.
func (o *DeviceFactsRequest) GetVendor() map[string]interface{} {
if o == nil || IsNil(o.Vendor) {
var ret map[string]interface{}
return ret
}
return o.Vendor
}
// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceFactsRequest) GetVendorOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Vendor) {
return map[string]interface{}{}, false
}
return o.Vendor, true
}
// HasVendor returns a boolean if a field has been set.
func (o *DeviceFactsRequest) HasVendor() bool {
if o != nil && !IsNil(o.Vendor) {
return true
}
return false
}
// SetVendor gets a reference to the given map[string]interface{} and assigns it to the Vendor field.
func (o *DeviceFactsRequest) SetVendor(v map[string]interface{}) {
o.Vendor = v
}
func (o DeviceFactsRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DeviceFactsRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Os.IsSet() {
toSerialize["os"] = o.Os.Get()
}
if o.Disks != nil {
toSerialize["disks"] = o.Disks
}
if o.Network.IsSet() {
toSerialize["network"] = o.Network.Get()
}
if o.Hardware.IsSet() {
toSerialize["hardware"] = o.Hardware.Get()
}
if o.Software != nil {
toSerialize["software"] = o.Software
}
if o.Processes != nil {
toSerialize["processes"] = o.Processes
}
if o.Users != nil {
toSerialize["users"] = o.Users
}
if o.Groups != nil {
toSerialize["groups"] = o.Groups
}
if !IsNil(o.Vendor) {
toSerialize["vendor"] = o.Vendor
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *DeviceFactsRequest) UnmarshalJSON(data []byte) (err error) {
varDeviceFactsRequest := _DeviceFactsRequest{}
err = json.Unmarshal(data, &varDeviceFactsRequest)
if err != nil {
return err
}
*o = DeviceFactsRequest(varDeviceFactsRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "os")
delete(additionalProperties, "disks")
delete(additionalProperties, "network")
delete(additionalProperties, "hardware")
delete(additionalProperties, "software")
delete(additionalProperties, "processes")
delete(additionalProperties, "users")
delete(additionalProperties, "groups")
delete(additionalProperties, "vendor")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableDeviceFactsRequest struct {
value *DeviceFactsRequest
isSet bool
}
func (v NullableDeviceFactsRequest) Get() *DeviceFactsRequest {
return v.value
}
func (v *NullableDeviceFactsRequest) Set(val *DeviceFactsRequest) {
v.value = val
v.isSet = true
}
func (v NullableDeviceFactsRequest) IsSet() bool {
return v.isSet
}
func (v *NullableDeviceFactsRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDeviceFactsRequest(val *DeviceFactsRequest) *NullableDeviceFactsRequest {
return &NullableDeviceFactsRequest{value: val, isSet: true}
}
func (v NullableDeviceFactsRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDeviceFactsRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}