Skip to content

Commit

Permalink
fix(csharp): remove global enum converter (#3765) (generated) [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Morgan Leroi <morgan.leroi@gmail.com>
  • Loading branch information
algolia-bot and morganleroi committed Sep 18, 2024
1 parent e74af8d commit 4545f0f
Show file tree
Hide file tree
Showing 103 changed files with 103 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Abtesting;
/// Metric for which you want to detect the smallest relative difference.
/// </summary>
/// <value>Metric for which you want to detect the smallest relative difference.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Effect>))]
public enum Effect
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Abtesting;
/// A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed.
/// </summary>
/// <value>A/B test status. - `active`. The A/B test is live and search traffic is split between the two variants. - `stopped`. You stopped the A/B test. The A/B test data is still available for analysis. - `expired`. The A/B test was automatically stopped after reaching its end date. - `failed`. Creating the A/B test failed. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Status>))]
public enum Status
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Analytics;
/// <summary>
/// Defines direction
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Direction>))]
public enum Direction
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Analytics;
/// Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator.
/// </summary>
/// <value>Character that characterizes how the filter is applied. For example, for a facet filter `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Operator>))]
public enum Operator
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Analytics;
/// Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available.
/// </summary>
/// <value>Attribute by which to order the response items. If the `clickAnalytics` parameter is false, only `searchCount` is available. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<OrderBy>))]
public enum OrderBy
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Type of indexing operation.
/// </summary>
/// <value>Type of indexing operation.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Action>))]
public enum Action
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Action to perform on the Algolia index.
/// </summary>
/// <value>Action to perform on the Algolia index.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ActionType>))]
public enum ActionType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list of authentication resources.
/// </summary>
/// <value>Property by which to sort the list of authentication resources.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<AuthenticationSortKeys>))]
public enum AuthenticationSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Type of authentication. This determines the type of credentials required in the `input` object.
/// </summary>
/// <value>Type of authentication. This determines the type of credentials required in the `input` object.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<AuthenticationType>))]
public enum AuthenticationType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Defines BigQueryDataType
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<BigQueryDataType>))]
public enum BigQueryDataType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the destinations.
/// </summary>
/// <value>Property by which to sort the destinations.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<DestinationSortKeys>))]
public enum DestinationSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Destination type. - `search`. Data is stored in an Algolia index. - `insights`. Data is recorded as user events in the Insights API.
/// </summary>
/// <value>Destination type. - `search`. Data is stored in an Algolia index. - `insights`. Data is recorded as user events in the Insights API. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<DestinationType>))]
public enum DestinationType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Image type.
/// </summary>
/// <value>Image type.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<DockerImageType>))]
public enum DockerImageType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Container registry name from where to pull the image.
/// </summary>
/// <value>Container registry name from where to pull the image.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<DockerRegistry>))]
public enum DockerRegistry
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// The strategy to use to fetch the data.
/// </summary>
/// <value>The strategy to use to fetch the data.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<DockerStreamsSyncMode>))]
public enum DockerStreamsSyncMode
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Type of entity to update.
/// </summary>
/// <value>Type of entity to update.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<EntityType>))]
public enum EntityType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list of task run events.
/// </summary>
/// <value>Property by which to sort the list of task run events.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<EventSortKeys>))]
public enum EventSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Defines EventStatus
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<EventStatus>))]
public enum EventStatus
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Defines EventType
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<EventType>))]
public enum EventType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Mapping format schema.
/// </summary>
/// <value>Mapping format schema.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<MappingFormatSchema>))]
public enum MappingFormatSchema
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Defines MappingTypeCSV
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<MappingTypeCSV>))]
public enum MappingTypeCSV
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// HTTP method to be used for retrieving your data.
/// </summary>
/// <value>HTTP method to be used for retrieving your data.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<MethodType>))]
public enum MethodType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task is run manually, with the `/run` endpoint.
/// </summary>
/// <value>Task is run manually, with the `/run` endpoint.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<OnDemandTriggerType>))]
public enum OnDemandTriggerType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Ascending or descending sort order.
/// </summary>
/// <value>Ascending or descending sort order.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<OrderKeys>))]
public enum OrderKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Name of an ecommerce platform with which to authenticate. This determines which authentication type you can select.
/// </summary>
/// <value>Name of an ecommerce platform with which to authenticate. This determines which authentication type you can select. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Platform>))]
public enum Platform
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Authentication resource not tied to any ecommerce platform, used for filtering.
/// </summary>
/// <value>Authentication resource not tied to any ecommerce platform, used for filtering.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<PlatformNone>))]
public enum PlatformNone
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Record type for ecommerce sources.
/// </summary>
/// <value>Record type for ecommerce sources.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RecordType>))]
public enum RecordType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task run outcome.
/// </summary>
/// <value>Task run outcome.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RunOutcome>))]
public enum RunOutcome
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// A code for the task run's outcome. A readable description of the code is included in the `reason` response property.
/// </summary>
/// <value>A code for the task run's outcome. A readable description of the code is included in the `reason` response property.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RunReasonCode>))]
public enum RunReasonCode
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list of task runs.
/// </summary>
/// <value>Property by which to sort the list of task runs.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RunSortKeys>))]
public enum RunSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task run status.
/// </summary>
/// <value>Task run status.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RunStatus>))]
public enum RunStatus
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task run type.
/// </summary>
/// <value>Task run type.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<RunType>))]
public enum RunType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task runs on a schedule.
/// </summary>
/// <value>Task runs on a schedule.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ScheduleTriggerType>))]
public enum ScheduleTriggerType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list.
/// </summary>
/// <value>Property by which to sort the list.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<SortKeys>))]
public enum SortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list of sources.
/// </summary>
/// <value>Property by which to sort the list of sources.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<SourceSortKeys>))]
public enum SourceSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Defines SourceType
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<SourceType>))]
public enum SourceType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task runs continuously.
/// </summary>
/// <value>Task runs continuously.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<StreamingTriggerType>))]
public enum StreamingTriggerType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task runs after receiving subscribed event.
/// </summary>
/// <value>Task runs after receiving subscribed event.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<SubscriptionTriggerType>))]
public enum SubscriptionTriggerType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Property by which to sort the list of tasks.
/// </summary>
/// <value>Property by which to sort the list of tasks.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<TaskSortKeys>))]
public enum TaskSortKeys
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Ingestion;
/// Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run` endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task after an event is received, such as, a webhook. - `streaming`. Run the task continuously.
/// </summary>
/// <value>Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run` endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task after an event is received, such as, a webhook. - `streaming`. Run the task continuously. </value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<TriggerType>))]
public enum TriggerType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Insights;
/// <summary>
/// Defines AddToCartEvent
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<AddToCartEvent>))]
public enum AddToCartEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Insights;
/// <summary>
/// Defines ClickEvent
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ClickEvent>))]
public enum ClickEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Insights;
/// <summary>
/// Defines ConversionEvent
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ConversionEvent>))]
public enum ConversionEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Insights;
/// <summary>
/// Defines PurchaseEvent
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<PurchaseEvent>))]
public enum PurchaseEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Insights;
/// <summary>
/// Defines ViewEvent
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ViewEvent>))]
public enum ViewEvent
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Monitoring;
/// <summary>
/// Defines Metric
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Metric>))]
public enum Metric
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Monitoring;
/// <summary>
/// Defines Period
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Period>))]
public enum Period
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Monitoring;
/// Region where the cluster is located.
/// </summary>
/// <value>Region where the cluster is located.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Region>))]
public enum Region
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Algolia.Search.Models.Monitoring;
/// <summary>
/// Defines ServerStatus
/// </summary>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<ServerStatus>))]
public enum ServerStatus
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Algolia.Search.Models.Monitoring;
/// Status of the cluster.
/// </summary>
/// <value>Status of the cluster.</value>
[JsonConverter(typeof(Serializer.JsonStringEnumConverter<Status>))]
public enum Status
{
/// <summary>
Expand Down
Loading

0 comments on commit 4545f0f

Please sign in to comment.