json_patch

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const JsonPatchType = "json-patch"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

Types

type JSONPatchTrait

type JSONPatchTrait struct {
	Base       apis.TraitBase
	Properties JsonPatchSpec
}

func JsonPatch

func JsonPatch() *JSONPatchTrait

func (*JSONPatchTrait) Build

func (*JSONPatchTrait) DefType

func (j *JSONPatchTrait) DefType() string

func (*JSONPatchTrait) FromTrait

func (*JSONPatchTrait) GetOperations

func (o *JSONPatchTrait) GetOperations() []map[string]interface{}

GetOperations returns the Operations field value

func (*JSONPatchTrait) GetOperationsOk

func (o *JSONPatchTrait) GetOperationsOk() ([]map[string]interface{}, bool)

GetOperationsOk returns a tuple with the Operations field value and a boolean to check if the value has been set.

func (*JSONPatchTrait) SetOperations

func (o *JSONPatchTrait) SetOperations(v []map[string]interface{}) *JSONPatchTrait

SetOperations sets field value

func (*JSONPatchTrait) Validate

func (o *JSONPatchTrait) Validate() error

Validate validates this JsonPatchSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type JsonPatchSpec

type JsonPatchSpec struct {
	Operations []map[string]interface{} `json:"operations"`
}

JsonPatchSpec struct for JsonPatchSpec

func NewJsonPatchSpec

func NewJsonPatchSpec() *JsonPatchSpec

NewJsonPatchSpec is short for NewJsonPatchSpecWithDefault which instantiates a new JsonPatchSpec 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 NewJsonPatchSpecEmpty

func NewJsonPatchSpecEmpty() *JsonPatchSpec

NewJsonPatchSpecEmpty instantiates a new JsonPatchSpec object with no properties set. This constructor will not assign any default values to properties.

func NewJsonPatchSpecList

func NewJsonPatchSpecList(ps ...*JsonPatchSpec) []JsonPatchSpec

NewJsonPatchSpecs converts a list JsonPatchSpec pointers to objects. This is helpful when the SetJsonPatchSpec requires a list of objects

func NewJsonPatchSpecWith

func NewJsonPatchSpecWith(operations []map[string]interface{}) *JsonPatchSpec

NewJsonPatchSpecWith instantiates a new JsonPatchSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewJsonPatchSpecWithDefault

func NewJsonPatchSpecWithDefault() *JsonPatchSpec

NewJsonPatchSpecWithDefault instantiates a new JsonPatchSpec 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 (JsonPatchSpec) MarshalJSON

func (o JsonPatchSpec) MarshalJSON() ([]byte, error)

func (JsonPatchSpec) ToMap

func (o JsonPatchSpec) ToMap() (map[string]interface{}, error)

type NullableJsonPatchSpec

type NullableJsonPatchSpec struct {
	// contains filtered or unexported fields
}

func NewNullableJsonPatchSpec

func NewNullableJsonPatchSpec(val *JsonPatchSpec) *NullableJsonPatchSpec

func (*NullableJsonPatchSpec) Get

func (*NullableJsonPatchSpec) IsSet

func (v *NullableJsonPatchSpec) IsSet() bool

func (NullableJsonPatchSpec) MarshalJSON

func (v NullableJsonPatchSpec) MarshalJSON() ([]byte, error)

func (*NullableJsonPatchSpec) Set

func (v *NullableJsonPatchSpec) Set(val *JsonPatchSpec)

func (*NullableJsonPatchSpec) UnmarshalJSON

func (v *NullableJsonPatchSpec) UnmarshalJSON(src []byte) error

func (*NullableJsonPatchSpec) Unset

func (v *NullableJsonPatchSpec) Unset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL