Name | Type | Description | Notes |
---|---|---|---|
Index | string | Name of the index to insert the document into | |
Cluster | Pointer to string | Name of the cluster to insert the document into | [optional] |
Id | Pointer to int64 | Document ID. If not provided, an ID will be auto-generated | [optional] |
Doc | map[string]interface{} | Object containing document data |
func NewInsertDocumentRequest(index string, doc map[string]interface{}, ) *InsertDocumentRequest
NewInsertDocumentRequest instantiates a new InsertDocumentRequest 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 NewInsertDocumentRequestWithDefaults() *InsertDocumentRequest
NewInsertDocumentRequestWithDefaults instantiates a new InsertDocumentRequest 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 (o *InsertDocumentRequest) GetIndex() string
GetIndex returns the Index field if non-nil, zero value otherwise.
func (o *InsertDocumentRequest) GetIndexOk() (*string, bool)
GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InsertDocumentRequest) SetIndex(v string)
SetIndex sets Index field to given value.
func (o *InsertDocumentRequest) GetCluster() string
GetCluster returns the Cluster field if non-nil, zero value otherwise.
func (o *InsertDocumentRequest) GetClusterOk() (*string, bool)
GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InsertDocumentRequest) SetCluster(v string)
SetCluster sets Cluster field to given value.
func (o *InsertDocumentRequest) HasCluster() bool
HasCluster returns a boolean if a field has been set.
func (o *InsertDocumentRequest) GetId() int64
GetId returns the Id field if non-nil, zero value otherwise.
func (o *InsertDocumentRequest) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InsertDocumentRequest) SetId(v int64)
SetId sets Id field to given value.
func (o *InsertDocumentRequest) HasId() bool
HasId returns a boolean if a field has been set.
func (o *InsertDocumentRequest) GetDoc() map[string]interface{}
GetDoc returns the Doc field if non-nil, zero value otherwise.
func (o *InsertDocumentRequest) GetDocOk() (*map[string]interface{}, bool)
GetDocOk returns a tuple with the Doc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InsertDocumentRequest) SetDoc(v map[string]interface{})
SetDoc sets Doc field to given value.