--- id: beta-json-patch title: JsonPatch pagination_label: JsonPatch sidebar_label: JsonPatch sidebar_class_name: gosdk keywords: ['go', 'Golang', 'sdk', 'JsonPatch', 'BetaJsonPatch'] slug: /tools/sdk/go/beta/models/json-patch tags: ['SDK', 'Software Development Kit', 'JsonPatch', 'BetaJsonPatch'] --- # JsonPatch ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Operations** | Pointer to [**[]JsonPatchOperation**](json-patch-operation) | Operations to be applied | [optional] ## Methods ### NewJsonPatch `func NewJsonPatch() *JsonPatch` NewJsonPatch instantiates a new JsonPatch 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 ### NewJsonPatchWithDefaults `func NewJsonPatchWithDefaults() *JsonPatch` NewJsonPatchWithDefaults instantiates a new JsonPatch 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 ### GetOperations `func (o *JsonPatch) GetOperations() []JsonPatchOperation` GetOperations returns the Operations field if non-nil, zero value otherwise. ### GetOperationsOk `func (o *JsonPatch) GetOperationsOk() (*[]JsonPatchOperation, bool)` GetOperationsOk returns a tuple with the Operations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOperations `func (o *JsonPatch) SetOperations(v []JsonPatchOperation)` SetOperations sets Operations field to given value. ### HasOperations `func (o *JsonPatch) HasOperations() bool` HasOperations returns a boolean if a field has been set.