Documentation
¶
Index ¶
- Constants
- func FromTrait(from common.ApplicationTrait) (apis.Trait, error)
- type JSONPatchTrait
- func (j *JSONPatchTrait) Build() common.ApplicationTrait
- func (j *JSONPatchTrait) DefType() string
- func (j *JSONPatchTrait) FromTrait(from common.ApplicationTrait) (*JSONPatchTrait, error)
- func (o *JSONPatchTrait) GetOperations() []map[string]interface{}
- func (o *JSONPatchTrait) GetOperationsOk() ([]map[string]interface{}, bool)
- func (o *JSONPatchTrait) SetOperations(v []map[string]interface{}) *JSONPatchTrait
- func (o *JSONPatchTrait) Validate() error
- type JsonPatchSpec
- type NullableJsonPatchSpec
- func (v *NullableJsonPatchSpec) Get() *JsonPatchSpec
- func (v *NullableJsonPatchSpec) IsSet() bool
- func (v NullableJsonPatchSpec) MarshalJSON() ([]byte, error)
- func (v *NullableJsonPatchSpec) Set(val *JsonPatchSpec)
- func (v *NullableJsonPatchSpec) UnmarshalJSON(src []byte) error
- func (v *NullableJsonPatchSpec) Unset()
Constants ¶
const JsonPatchType = "json-patch"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONPatchTrait ¶
type JSONPatchTrait struct { Base apis.TraitBase Properties JsonPatchSpec }
func JsonPatch ¶
func JsonPatch() *JSONPatchTrait
func (*JSONPatchTrait) Build ¶
func (j *JSONPatchTrait) Build() common.ApplicationTrait
func (*JSONPatchTrait) DefType ¶
func (j *JSONPatchTrait) DefType() string
func (*JSONPatchTrait) FromTrait ¶
func (j *JSONPatchTrait) FromTrait(from common.ApplicationTrait) (*JSONPatchTrait, error)
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 (v *NullableJsonPatchSpec) Get() *JsonPatchSpec
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()