mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 11:29:26 +03:00
2f70351c90
* 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>
343 lines
8.3 KiB
Go
Generated
343 lines
8.3 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"
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
// checks if the DataExport type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DataExport{}
|
|
|
|
// DataExport Mixin to validate that a valid enterprise license exists before allowing to save the object
|
|
type DataExport struct {
|
|
Id string `json:"id"`
|
|
RequestedBy PartialUser `json:"requested_by"`
|
|
RequestedOn time.Time `json:"requested_on"`
|
|
ContentType ContentType `json:"content_type"`
|
|
QueryParams map[string]interface{} `json:"query_params"`
|
|
FileUrl string `json:"file_url"`
|
|
Completed bool `json:"completed"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _DataExport DataExport
|
|
|
|
// NewDataExport instantiates a new DataExport 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 NewDataExport(id string, requestedBy PartialUser, requestedOn time.Time, contentType ContentType, queryParams map[string]interface{}, fileUrl string, completed bool) *DataExport {
|
|
this := DataExport{}
|
|
this.Id = id
|
|
this.RequestedBy = requestedBy
|
|
this.RequestedOn = requestedOn
|
|
this.ContentType = contentType
|
|
this.QueryParams = queryParams
|
|
this.FileUrl = fileUrl
|
|
this.Completed = completed
|
|
return &this
|
|
}
|
|
|
|
// NewDataExportWithDefaults instantiates a new DataExport 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 NewDataExportWithDefaults() *DataExport {
|
|
this := DataExport{}
|
|
return &this
|
|
}
|
|
|
|
// GetId returns the Id field value
|
|
func (o *DataExport) GetId() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetIdOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Id, true
|
|
}
|
|
|
|
// SetId sets field value
|
|
func (o *DataExport) SetId(v string) {
|
|
o.Id = v
|
|
}
|
|
|
|
// GetRequestedBy returns the RequestedBy field value
|
|
func (o *DataExport) GetRequestedBy() PartialUser {
|
|
if o == nil {
|
|
var ret PartialUser
|
|
return ret
|
|
}
|
|
|
|
return o.RequestedBy
|
|
}
|
|
|
|
// GetRequestedByOk returns a tuple with the RequestedBy field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetRequestedByOk() (*PartialUser, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.RequestedBy, true
|
|
}
|
|
|
|
// SetRequestedBy sets field value
|
|
func (o *DataExport) SetRequestedBy(v PartialUser) {
|
|
o.RequestedBy = v
|
|
}
|
|
|
|
// GetRequestedOn returns the RequestedOn field value
|
|
func (o *DataExport) GetRequestedOn() time.Time {
|
|
if o == nil {
|
|
var ret time.Time
|
|
return ret
|
|
}
|
|
|
|
return o.RequestedOn
|
|
}
|
|
|
|
// GetRequestedOnOk returns a tuple with the RequestedOn field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetRequestedOnOk() (*time.Time, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.RequestedOn, true
|
|
}
|
|
|
|
// SetRequestedOn sets field value
|
|
func (o *DataExport) SetRequestedOn(v time.Time) {
|
|
o.RequestedOn = v
|
|
}
|
|
|
|
// GetContentType returns the ContentType field value
|
|
func (o *DataExport) GetContentType() ContentType {
|
|
if o == nil {
|
|
var ret ContentType
|
|
return ret
|
|
}
|
|
|
|
return o.ContentType
|
|
}
|
|
|
|
// GetContentTypeOk returns a tuple with the ContentType field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetContentTypeOk() (*ContentType, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.ContentType, true
|
|
}
|
|
|
|
// SetContentType sets field value
|
|
func (o *DataExport) SetContentType(v ContentType) {
|
|
o.ContentType = v
|
|
}
|
|
|
|
// GetQueryParams returns the QueryParams field value
|
|
func (o *DataExport) GetQueryParams() map[string]interface{} {
|
|
if o == nil {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
|
|
return o.QueryParams
|
|
}
|
|
|
|
// GetQueryParamsOk returns a tuple with the QueryParams field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetQueryParamsOk() (map[string]interface{}, bool) {
|
|
if o == nil {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.QueryParams, true
|
|
}
|
|
|
|
// SetQueryParams sets field value
|
|
func (o *DataExport) SetQueryParams(v map[string]interface{}) {
|
|
o.QueryParams = v
|
|
}
|
|
|
|
// GetFileUrl returns the FileUrl field value
|
|
func (o *DataExport) GetFileUrl() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.FileUrl
|
|
}
|
|
|
|
// GetFileUrlOk returns a tuple with the FileUrl field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetFileUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.FileUrl, true
|
|
}
|
|
|
|
// SetFileUrl sets field value
|
|
func (o *DataExport) SetFileUrl(v string) {
|
|
o.FileUrl = v
|
|
}
|
|
|
|
// GetCompleted returns the Completed field value
|
|
func (o *DataExport) GetCompleted() bool {
|
|
if o == nil {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
|
|
return o.Completed
|
|
}
|
|
|
|
// GetCompletedOk returns a tuple with the Completed field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataExport) GetCompletedOk() (*bool, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Completed, true
|
|
}
|
|
|
|
// SetCompleted sets field value
|
|
func (o *DataExport) SetCompleted(v bool) {
|
|
o.Completed = v
|
|
}
|
|
|
|
func (o DataExport) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DataExport) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["id"] = o.Id
|
|
toSerialize["requested_by"] = o.RequestedBy
|
|
toSerialize["requested_on"] = o.RequestedOn
|
|
toSerialize["content_type"] = o.ContentType
|
|
toSerialize["query_params"] = o.QueryParams
|
|
toSerialize["file_url"] = o.FileUrl
|
|
toSerialize["completed"] = o.Completed
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *DataExport) UnmarshalJSON(data []byte) (err error) {
|
|
// This validates that all required properties are included in the JSON object
|
|
// by unmarshalling the object into a generic map with string keys and checking
|
|
// that every required field exists as a key in the generic map.
|
|
requiredProperties := []string{
|
|
"id",
|
|
"requested_by",
|
|
"requested_on",
|
|
"content_type",
|
|
"query_params",
|
|
"file_url",
|
|
"completed",
|
|
}
|
|
|
|
allProperties := make(map[string]interface{})
|
|
|
|
err = json.Unmarshal(data, &allProperties)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
for _, requiredProperty := range requiredProperties {
|
|
if _, exists := allProperties[requiredProperty]; !exists {
|
|
return fmt.Errorf("no value given for required property %v", requiredProperty)
|
|
}
|
|
}
|
|
|
|
varDataExport := _DataExport{}
|
|
|
|
err = json.Unmarshal(data, &varDataExport)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = DataExport(varDataExport)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "requested_by")
|
|
delete(additionalProperties, "requested_on")
|
|
delete(additionalProperties, "content_type")
|
|
delete(additionalProperties, "query_params")
|
|
delete(additionalProperties, "file_url")
|
|
delete(additionalProperties, "completed")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableDataExport struct {
|
|
value *DataExport
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDataExport) Get() *DataExport {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDataExport) Set(val *DataExport) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDataExport) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDataExport) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDataExport(val *DataExport) *NullableDataExport {
|
|
return &NullableDataExport{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDataExport) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDataExport) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|