Skip to content

Commit

Permalink
add support for update and delete schema field (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaho authored May 4, 2022
1 parent 75fc617 commit 5a521ea
Show file tree
Hide file tree
Showing 38 changed files with 1,706 additions and 297 deletions.
14 changes: 6 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ docs/BatchUpsertRecordsResponseError.md
docs/BatchUpsertRecordsResponseKey.md
docs/BatchUpsertRecordsResponseVariables.md
docs/Collection.md
docs/CollectionType.md
docs/CollectionsApi.md
docs/DeleteRecordRequest.md
docs/Error.md
Expand All @@ -28,10 +29,12 @@ docs/ExperimentRequestPipeline.md
docs/ExperimentResponse.md
docs/GeneratePipelinesRequest.md
docs/GeneratePipelinesResponse.md
docs/GetCollectionRequestView.md
docs/GetDefaultPipelineResponse.md
docs/GetDefaultVersionRequestView.md
docs/GetPipelineRequestView.md
docs/GetRecordRequest.md
docs/ListCollectionsRequestView.md
docs/ListCollectionsResponse.md
docs/ListPipelinesRequestView.md
docs/ListPipelinesResponse.md
Expand Down Expand Up @@ -94,14 +97,6 @@ docs/UpsertRecordRequest.md
docs/UpsertRecordRequestPipeline.md
docs/UpsertRecordResponse.md
src/Com.Sajari.Sdk.Test/Com.Sajari.Sdk.Test.csproj
src/Com.Sajari.Sdk.Test/Model/BannerTests.cs
src/Com.Sajari.Sdk.Test/Model/EventTests.cs
src/Com.Sajari.Sdk.Test/Model/ExperimentRequestPipelineTests.cs
src/Com.Sajari.Sdk.Test/Model/ExperimentRequestTests.cs
src/Com.Sajari.Sdk.Test/Model/ExperimentResponseTests.cs
src/Com.Sajari.Sdk.Test/Model/ListPromotionsRequestPromotionViewTests.cs
src/Com.Sajari.Sdk.Test/Model/PromotionPinModeTests.cs
src/Com.Sajari.Sdk.Test/Model/TextPositionTests.cs
src/Com.Sajari.Sdk/Api/CollectionsApi.cs
src/Com.Sajari.Sdk/Api/EventsApi.cs
src/Com.Sajari.Sdk/Api/PipelinesApi.cs
Expand Down Expand Up @@ -143,6 +138,7 @@ src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseError.cs
src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseKey.cs
src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseVariables.cs
src/Com.Sajari.Sdk/Model/Collection.cs
src/Com.Sajari.Sdk/Model/CollectionType.cs
src/Com.Sajari.Sdk/Model/DeleteRecordRequest.cs
src/Com.Sajari.Sdk/Model/Error.cs
src/Com.Sajari.Sdk/Model/Event.cs
Expand All @@ -151,10 +147,12 @@ src/Com.Sajari.Sdk/Model/ExperimentRequestPipeline.cs
src/Com.Sajari.Sdk/Model/ExperimentResponse.cs
src/Com.Sajari.Sdk/Model/GeneratePipelinesRequest.cs
src/Com.Sajari.Sdk/Model/GeneratePipelinesResponse.cs
src/Com.Sajari.Sdk/Model/GetCollectionRequestView.cs
src/Com.Sajari.Sdk/Model/GetDefaultPipelineResponse.cs
src/Com.Sajari.Sdk/Model/GetDefaultVersionRequestView.cs
src/Com.Sajari.Sdk/Model/GetPipelineRequestView.cs
src/Com.Sajari.Sdk/Model/GetRecordRequest.cs
src/Com.Sajari.Sdk/Model/ListCollectionsRequestView.cs
src/Com.Sajari.Sdk/Model/ListCollectionsResponse.cs
src/Com.Sajari.Sdk/Model/ListPipelinesRequestView.cs
src/Com.Sajari.Sdk/Model/ListPipelinesResponse.cs
Expand Down
10 changes: 5 additions & 5 deletions Com.Sajari.Sdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk", "src\Com.Sajari.Sdk\Com.Sajari.Sdk.csproj", "{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk", "src\Com.Sajari.Sdk\Com.Sajari.Sdk.csproj", "{9209CA73-88E1-456D-BE89-9978B4E998A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk.Test", "src\Com.Sajari.Sdk.Test\Com.Sajari.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Release|Any CPU.Build.0 = Release|Any CPU
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Search.io offers a search and discovery service with Neuralsearch®, the world's
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v4
- SDK version: 5.0.0
- SDK version: 5.1.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://www.search.io/company/contact](https://www.search.io/company/contact)

Expand Down Expand Up @@ -81,11 +81,12 @@ namespace Example
var apiInstance = new CollectionsApi(config);
var collectionId = "collectionId_example"; // string | The ID to use for the collection. This must start with an alphanumeric character followed by one or more alphanumeric or `-` characters. Strictly speaking, it must match the regular expression: `^[A-Za-z][A-Za-z0-9\\-]*$`.
var collection = new Collection(); // Collection | Details of the collection to create.
var accountId = "accountId_example"; // string | The account that owns the collection, e.g. `1618535966441231024`. (optional)
try
{
// Create collection
Collection result = apiInstance.CreateCollection(collectionId, collection);
Collection result = apiInstance.CreateCollection(collectionId, collection, accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand Down Expand Up @@ -144,7 +145,9 @@ Class | Method | HTTP request | Description
*RedirectsApi* | [**UpdateRedirect**](docs/RedirectsApi.md#updateredirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect
*SchemaApi* | [**BatchCreateSchemaFields**](docs/SchemaApi.md#batchcreateschemafields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
*SchemaApi* | [**CreateSchemaField**](docs/SchemaApi.md#createschemafield) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field
*SchemaApi* | [**DeleteSchemaField**](docs/SchemaApi.md#deleteschemafield) | **DELETE** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Delete schema field
*SchemaApi* | [**ListSchemaFields**](docs/SchemaApi.md#listschemafields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields
*SchemaApi* | [**UpdateSchemaField**](docs/SchemaApi.md#updateschemafield) | **PATCH** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Update schema field


<a name="documentation-for-models"></a>
Expand All @@ -166,6 +169,7 @@ Class | Method | HTTP request | Description
- [Model.BatchUpsertRecordsResponseKey](docs/BatchUpsertRecordsResponseKey.md)
- [Model.BatchUpsertRecordsResponseVariables](docs/BatchUpsertRecordsResponseVariables.md)
- [Model.Collection](docs/Collection.md)
- [Model.CollectionType](docs/CollectionType.md)
- [Model.DeleteRecordRequest](docs/DeleteRecordRequest.md)
- [Model.Error](docs/Error.md)
- [Model.Event](docs/Event.md)
Expand All @@ -174,10 +178,12 @@ Class | Method | HTTP request | Description
- [Model.ExperimentResponse](docs/ExperimentResponse.md)
- [Model.GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
- [Model.GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
- [Model.GetCollectionRequestView](docs/GetCollectionRequestView.md)
- [Model.GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
- [Model.GetDefaultVersionRequestView](docs/GetDefaultVersionRequestView.md)
- [Model.GetPipelineRequestView](docs/GetPipelineRequestView.md)
- [Model.GetRecordRequest](docs/GetRecordRequest.md)
- [Model.ListCollectionsRequestView](docs/ListCollectionsRequestView.md)
- [Model.ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [Model.ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [Model.ListPipelinesResponse](docs/ListPipelinesResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccountId** | **string** | Output only. The ID of the account that owns this collection. | [optional] [readonly]
**AuthorizedQueryDomains** | **List&lt;string&gt;** | The list of authorized query domains for the collection. Client-side / browser requests to the [QueryCollection](/docs/api#operation/QueryCollection) call can be made by any authorized query domain or any of its subdomains. This allows your interface to make search requests without having to provide an API key in the client-side request. | [optional]
**CreateTime** | **DateTime** | Output only. Time the collection was created. | [optional] [readonly]
**CreateTime** | **DateTime** | Output only. The time the collection was created. | [optional] [readonly]
**DisplayName** | **string** | The collection&#39;s display name. You can change this at any time. |
**Id** | **string** | Output only. The collection&#39;s ID. | [optional] [readonly]

Expand Down
10 changes: 10 additions & 0 deletions docs/CollectionType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Com.Sajari.Sdk.Model.CollectionType
- TYPE_UNSPECIFIED: Type not specified. - WEBSITE: The type for website collections. - SHOPIFY: The type for the collection backing a Shopify account. - CUSTOM: The legacy custom type.

## Properties

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

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

Loading

0 comments on commit 5a521ea

Please sign in to comment.