Files
authentik/packages/client-go/model_patched_google_endpoint_device_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

193 lines
5.4 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 PatchedGoogleEndpointDeviceRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedGoogleEndpointDeviceRequest{}
// PatchedGoogleEndpointDeviceRequest Serializer for Endpoint authenticator devices
type PatchedGoogleEndpointDeviceRequest struct {
Pk *string `json:"pk,omitempty"`
// The human-readable name of this device.
Name *string `json:"name,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PatchedGoogleEndpointDeviceRequest PatchedGoogleEndpointDeviceRequest
// NewPatchedGoogleEndpointDeviceRequest instantiates a new PatchedGoogleEndpointDeviceRequest 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 NewPatchedGoogleEndpointDeviceRequest() *PatchedGoogleEndpointDeviceRequest {
this := PatchedGoogleEndpointDeviceRequest{}
return &this
}
// NewPatchedGoogleEndpointDeviceRequestWithDefaults instantiates a new PatchedGoogleEndpointDeviceRequest 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 NewPatchedGoogleEndpointDeviceRequestWithDefaults() *PatchedGoogleEndpointDeviceRequest {
this := PatchedGoogleEndpointDeviceRequest{}
return &this
}
// GetPk returns the Pk field value if set, zero value otherwise.
func (o *PatchedGoogleEndpointDeviceRequest) GetPk() string {
if o == nil || IsNil(o.Pk) {
var ret string
return ret
}
return *o.Pk
}
// GetPkOk returns a tuple with the Pk field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedGoogleEndpointDeviceRequest) GetPkOk() (*string, bool) {
if o == nil || IsNil(o.Pk) {
return nil, false
}
return o.Pk, true
}
// HasPk returns a boolean if a field has been set.
func (o *PatchedGoogleEndpointDeviceRequest) HasPk() bool {
if o != nil && !IsNil(o.Pk) {
return true
}
return false
}
// SetPk gets a reference to the given string and assigns it to the Pk field.
func (o *PatchedGoogleEndpointDeviceRequest) SetPk(v string) {
o.Pk = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedGoogleEndpointDeviceRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedGoogleEndpointDeviceRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *PatchedGoogleEndpointDeviceRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *PatchedGoogleEndpointDeviceRequest) SetName(v string) {
o.Name = &v
}
func (o PatchedGoogleEndpointDeviceRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PatchedGoogleEndpointDeviceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Pk) {
toSerialize["pk"] = o.Pk
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PatchedGoogleEndpointDeviceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedGoogleEndpointDeviceRequest := _PatchedGoogleEndpointDeviceRequest{}
err = json.Unmarshal(data, &varPatchedGoogleEndpointDeviceRequest)
if err != nil {
return err
}
*o = PatchedGoogleEndpointDeviceRequest(varPatchedGoogleEndpointDeviceRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "pk")
delete(additionalProperties, "name")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePatchedGoogleEndpointDeviceRequest struct {
value *PatchedGoogleEndpointDeviceRequest
isSet bool
}
func (v NullablePatchedGoogleEndpointDeviceRequest) Get() *PatchedGoogleEndpointDeviceRequest {
return v.value
}
func (v *NullablePatchedGoogleEndpointDeviceRequest) Set(val *PatchedGoogleEndpointDeviceRequest) {
v.value = val
v.isSet = true
}
func (v NullablePatchedGoogleEndpointDeviceRequest) IsSet() bool {
return v.isSet
}
func (v *NullablePatchedGoogleEndpointDeviceRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePatchedGoogleEndpointDeviceRequest(val *PatchedGoogleEndpointDeviceRequest) *NullablePatchedGoogleEndpointDeviceRequest {
return &NullablePatchedGoogleEndpointDeviceRequest{value: val, isSet: true}
}
func (v NullablePatchedGoogleEndpointDeviceRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePatchedGoogleEndpointDeviceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}