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

307 lines
8.6 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 PatchedBlueprintInstanceRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedBlueprintInstanceRequest{}
// PatchedBlueprintInstanceRequest Info about a single blueprint instance file
type PatchedBlueprintInstanceRequest struct {
Name *string `json:"name,omitempty"`
Path *string `json:"path,omitempty"`
Context map[string]interface{} `json:"context,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Content *string `json:"content,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PatchedBlueprintInstanceRequest PatchedBlueprintInstanceRequest
// NewPatchedBlueprintInstanceRequest instantiates a new PatchedBlueprintInstanceRequest 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 NewPatchedBlueprintInstanceRequest() *PatchedBlueprintInstanceRequest {
this := PatchedBlueprintInstanceRequest{}
var path string = ""
this.Path = &path
return &this
}
// NewPatchedBlueprintInstanceRequestWithDefaults instantiates a new PatchedBlueprintInstanceRequest 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 NewPatchedBlueprintInstanceRequestWithDefaults() *PatchedBlueprintInstanceRequest {
this := PatchedBlueprintInstanceRequest{}
var path string = ""
this.Path = &path
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PatchedBlueprintInstanceRequest) 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 *PatchedBlueprintInstanceRequest) 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 *PatchedBlueprintInstanceRequest) 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 *PatchedBlueprintInstanceRequest) SetName(v string) {
o.Name = &v
}
// GetPath returns the Path field value if set, zero value otherwise.
func (o *PatchedBlueprintInstanceRequest) GetPath() string {
if o == nil || IsNil(o.Path) {
var ret string
return ret
}
return *o.Path
}
// GetPathOk returns a tuple with the Path field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedBlueprintInstanceRequest) GetPathOk() (*string, bool) {
if o == nil || IsNil(o.Path) {
return nil, false
}
return o.Path, true
}
// HasPath returns a boolean if a field has been set.
func (o *PatchedBlueprintInstanceRequest) HasPath() bool {
if o != nil && !IsNil(o.Path) {
return true
}
return false
}
// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *PatchedBlueprintInstanceRequest) SetPath(v string) {
o.Path = &v
}
// GetContext returns the Context field value if set, zero value otherwise.
func (o *PatchedBlueprintInstanceRequest) GetContext() map[string]interface{} {
if o == nil || IsNil(o.Context) {
var ret map[string]interface{}
return ret
}
return o.Context
}
// GetContextOk returns a tuple with the Context field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedBlueprintInstanceRequest) GetContextOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Context) {
return map[string]interface{}{}, false
}
return o.Context, true
}
// HasContext returns a boolean if a field has been set.
func (o *PatchedBlueprintInstanceRequest) HasContext() bool {
if o != nil && !IsNil(o.Context) {
return true
}
return false
}
// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field.
func (o *PatchedBlueprintInstanceRequest) SetContext(v map[string]interface{}) {
o.Context = v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *PatchedBlueprintInstanceRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
var ret bool
return ret
}
return *o.Enabled
}
// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedBlueprintInstanceRequest) GetEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.Enabled) {
return nil, false
}
return o.Enabled, true
}
// HasEnabled returns a boolean if a field has been set.
func (o *PatchedBlueprintInstanceRequest) HasEnabled() bool {
if o != nil && !IsNil(o.Enabled) {
return true
}
return false
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *PatchedBlueprintInstanceRequest) SetEnabled(v bool) {
o.Enabled = &v
}
// GetContent returns the Content field value if set, zero value otherwise.
func (o *PatchedBlueprintInstanceRequest) GetContent() string {
if o == nil || IsNil(o.Content) {
var ret string
return ret
}
return *o.Content
}
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedBlueprintInstanceRequest) GetContentOk() (*string, bool) {
if o == nil || IsNil(o.Content) {
return nil, false
}
return o.Content, true
}
// HasContent returns a boolean if a field has been set.
func (o *PatchedBlueprintInstanceRequest) HasContent() bool {
if o != nil && !IsNil(o.Content) {
return true
}
return false
}
// SetContent gets a reference to the given string and assigns it to the Content field.
func (o *PatchedBlueprintInstanceRequest) SetContent(v string) {
o.Content = &v
}
func (o PatchedBlueprintInstanceRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PatchedBlueprintInstanceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Path) {
toSerialize["path"] = o.Path
}
if !IsNil(o.Context) {
toSerialize["context"] = o.Context
}
if !IsNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
}
if !IsNil(o.Content) {
toSerialize["content"] = o.Content
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *PatchedBlueprintInstanceRequest) UnmarshalJSON(data []byte) (err error) {
varPatchedBlueprintInstanceRequest := _PatchedBlueprintInstanceRequest{}
err = json.Unmarshal(data, &varPatchedBlueprintInstanceRequest)
if err != nil {
return err
}
*o = PatchedBlueprintInstanceRequest(varPatchedBlueprintInstanceRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
delete(additionalProperties, "path")
delete(additionalProperties, "context")
delete(additionalProperties, "enabled")
delete(additionalProperties, "content")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePatchedBlueprintInstanceRequest struct {
value *PatchedBlueprintInstanceRequest
isSet bool
}
func (v NullablePatchedBlueprintInstanceRequest) Get() *PatchedBlueprintInstanceRequest {
return v.value
}
func (v *NullablePatchedBlueprintInstanceRequest) Set(val *PatchedBlueprintInstanceRequest) {
v.value = val
v.isSet = true
}
func (v NullablePatchedBlueprintInstanceRequest) IsSet() bool {
return v.isSet
}
func (v *NullablePatchedBlueprintInstanceRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePatchedBlueprintInstanceRequest(val *PatchedBlueprintInstanceRequest) *NullablePatchedBlueprintInstanceRequest {
return &NullablePatchedBlueprintInstanceRequest{value: val, isSet: true}
}
func (v NullablePatchedBlueprintInstanceRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePatchedBlueprintInstanceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}