Skip to content

Commit

Permalink
Implemented string filter comparators
Browse files Browse the repository at this point in the history
  • Loading branch information
nick committed Apr 18, 2024
1 parent 7e2c2e9 commit 41b15b7
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 42 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ docs/PercolateRequest.md
docs/PercolateRequestQuery.md
docs/QueryFilter.md
docs/RangeFilter.md
docs/RangeFilterLte.md
docs/ReplaceDocumentRequest.md
docs/SearchAPI.md
docs/SearchRequest.md
docs/SearchResponse.md
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Class | Method | HTTP request | Description
- [PercolateRequestQuery](docs/PercolateRequestQuery.md)
- [QueryFilter](docs/QueryFilter.md)
- [RangeFilter](docs/RangeFilter.md)
- [RangeFilterLte](docs/RangeFilterLte.md)
- [ReplaceDocumentRequest](docs/ReplaceDocumentRequest.md)
- [SearchRequest](docs/SearchRequest.md)
- [SearchResponse](docs/SearchResponse.md)
Expand Down
34 changes: 16 additions & 18 deletions docs/RangeFilter.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# RangeFilter

Range attribute filter

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Field** | **string** | |
**Lte** | Pointer to **NullableFloat32** | | [optional]
**Gte** | Pointer to **NullableFloat32** | | [optional]
**Lt** | Pointer to **NullableFloat32** | | [optional]
**Gt** | Pointer to **NullableFloat32** | | [optional]
**Lte** | Pointer to [**NullableRangeFilterLte**](RangeFilterLte.md) | | [optional]
**Gte** | Pointer to [**NullableRangeFilterLte**](RangeFilterLte.md) | | [optional]
**Lt** | Pointer to [**NullableRangeFilterLte**](RangeFilterLte.md) | | [optional]
**Gt** | Pointer to [**NullableRangeFilterLte**](RangeFilterLte.md) | | [optional]

## Methods

Expand Down Expand Up @@ -53,20 +51,20 @@ SetField sets Field field to given value.

### GetLte

`func (o *RangeFilter) GetLte() float32`
`func (o *RangeFilter) GetLte() RangeFilterLte`

GetLte returns the Lte field if non-nil, zero value otherwise.

### GetLteOk

`func (o *RangeFilter) GetLteOk() (*float32, bool)`
`func (o *RangeFilter) GetLteOk() (*RangeFilterLte, bool)`

GetLteOk returns a tuple with the Lte field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLte

`func (o *RangeFilter) SetLte(v float32)`
`func (o *RangeFilter) SetLte(v RangeFilterLte)`

SetLte sets Lte field to given value.

Expand All @@ -88,20 +86,20 @@ HasLte returns a boolean if a field has been set.
UnsetLte ensures that no value is present for Lte, not even an explicit nil
### GetGte

`func (o *RangeFilter) GetGte() float32`
`func (o *RangeFilter) GetGte() RangeFilterLte`

GetGte returns the Gte field if non-nil, zero value otherwise.

### GetGteOk

`func (o *RangeFilter) GetGteOk() (*float32, bool)`
`func (o *RangeFilter) GetGteOk() (*RangeFilterLte, bool)`

GetGteOk returns a tuple with the Gte field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGte

`func (o *RangeFilter) SetGte(v float32)`
`func (o *RangeFilter) SetGte(v RangeFilterLte)`

SetGte sets Gte field to given value.

Expand All @@ -123,20 +121,20 @@ HasGte returns a boolean if a field has been set.
UnsetGte ensures that no value is present for Gte, not even an explicit nil
### GetLt

`func (o *RangeFilter) GetLt() float32`
`func (o *RangeFilter) GetLt() RangeFilterLte`

GetLt returns the Lt field if non-nil, zero value otherwise.

### GetLtOk

`func (o *RangeFilter) GetLtOk() (*float32, bool)`
`func (o *RangeFilter) GetLtOk() (*RangeFilterLte, bool)`

GetLtOk returns a tuple with the Lt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLt

`func (o *RangeFilter) SetLt(v float32)`
`func (o *RangeFilter) SetLt(v RangeFilterLte)`

SetLt sets Lt field to given value.

Expand All @@ -158,20 +156,20 @@ HasLt returns a boolean if a field has been set.
UnsetLt ensures that no value is present for Lt, not even an explicit nil
### GetGt

`func (o *RangeFilter) GetGt() float32`
`func (o *RangeFilter) GetGt() RangeFilterLte`

GetGt returns the Gt field if non-nil, zero value otherwise.

### GetGtOk

`func (o *RangeFilter) GetGtOk() (*float32, bool)`
`func (o *RangeFilter) GetGtOk() (*RangeFilterLte, bool)`

GetGtOk returns a tuple with the Gt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGt

`func (o *RangeFilter) SetGt(v float32)`
`func (o *RangeFilter) SetGt(v RangeFilterLte)`

SetGt sets Gt field to given value.

Expand Down
30 changes: 30 additions & 0 deletions docs/RangeFilterLte.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# RangeFilterLte

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

## Methods

### NewRangeFilterLte

`func NewRangeFilterLte() *RangeFilterLte`

NewRangeFilterLte instantiates a new RangeFilterLte 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

### NewRangeFilterLteWithDefaults

`func NewRangeFilterLteWithDefaults() *RangeFilterLte`

NewRangeFilterLteWithDefaults instantiates a new RangeFilterLte 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


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


51 changes: 51 additions & 0 deletions docs/ReplaceDocumentRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# ReplaceDocumentRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Doc** | **map[string]interface{}** | Object with document data |

## Methods

### NewReplaceDocumentRequest

`func NewReplaceDocumentRequest(doc map[string]interface{}, ) *ReplaceDocumentRequest`

NewReplaceDocumentRequest instantiates a new ReplaceDocumentRequest 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

### NewReplaceDocumentRequestWithDefaults

`func NewReplaceDocumentRequestWithDefaults() *ReplaceDocumentRequest`

NewReplaceDocumentRequestWithDefaults instantiates a new ReplaceDocumentRequest 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

### GetDoc

`func (o *ReplaceDocumentRequest) GetDoc() map[string]interface{}`

GetDoc returns the Doc field if non-nil, zero value otherwise.

### GetDocOk

`func (o *ReplaceDocumentRequest) 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.

### SetDoc

`func (o *ReplaceDocumentRequest) SetDoc(v map[string]interface{})`

SetDoc sets Doc field to given value.



[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


48 changes: 24 additions & 24 deletions model_range_filter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 41b15b7

Please sign in to comment.