You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists. You may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following: - Conditions `pattern` and `anchoring` are unavailable. - Condition `filters` triggers if the source item matches the specified filters. - Condition `filters` accepts numeric filters. - Consequence `params` only covers filtering parameters. - Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).
26
+
/// </summary>
27
+
///
28
+
/// Required API Key ACLs:
29
+
/// - editSettings
30
+
/// <param name="indexName">Name of the index on which to perform the operation.</param>
/// Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists. You may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following: - Conditions `pattern` and `anchoring` are unavailable. - Condition `filters` triggers if the source item matches the specified filters. - Condition `filters` accepts numeric filters. - Consequence `params` only covers filtering parameters. - Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead). (Synchronous version)
43
+
/// </summary>
44
+
///
45
+
/// Required API Key ACLs:
46
+
/// - editSettings
47
+
/// <param name="indexName">Name of the index on which to perform the operation.</param>
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3
+
//
4
+
usingSystem;
5
+
usingSystem.Text;
6
+
usingSystem.Linq;
7
+
usingSystem.Text.Json.Serialization;
8
+
usingSystem.Collections.Generic;
9
+
usingAlgolia.Search.Serializer;
10
+
usingSystem.Text.Json;
11
+
12
+
namespaceAlgolia.Search.Models.Recommend;
13
+
14
+
/// <summary>
15
+
/// Response, taskID, and update timestamp.
16
+
/// </summary>
17
+
publicpartialclassRecommendUpdatedAtResponse
18
+
{
19
+
/// <summary>
20
+
/// Initializes a new instance of the RecommendUpdatedAtResponse class.
21
+
/// </summary>
22
+
[JsonConstructor]
23
+
publicRecommendUpdatedAtResponse(){}
24
+
/// <summary>
25
+
/// Initializes a new instance of the RecommendUpdatedAtResponse class.
26
+
/// </summary>
27
+
/// <param name="taskID">Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`. (required).</param>
28
+
/// <param name="updatedAt">Date and time when the object was updated, in RFC 3339 format. (required).</param>
/// Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
37
+
/// </summary>
38
+
/// <value>Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`. </value>
39
+
[JsonPropertyName("taskID")]
40
+
publiclongTaskID{get;set;}
41
+
42
+
/// <summary>
43
+
/// Date and time when the object was updated, in RFC 3339 format.
44
+
/// </summary>
45
+
/// <value>Date and time when the object was updated, in RFC 3339 format.</value>
46
+
[JsonPropertyName("updatedAt")]
47
+
publicstringUpdatedAt{get;set;}
48
+
49
+
/// <summary>
50
+
/// Returns the string presentation of the object
51
+
/// </summary>
52
+
/// <returns>String presentation of the object</returns>
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3
+
//
4
+
usingSystem;
5
+
usingSystem.Text;
6
+
usingSystem.Linq;
7
+
usingSystem.Text.Json.Serialization;
8
+
usingSystem.Collections.Generic;
9
+
usingAlgolia.Search.Serializer;
10
+
usingSystem.Text.Json;
11
+
12
+
namespaceAlgolia.Search.Models.Recommend;
13
+
14
+
/// <summary>
15
+
/// TimeRange
16
+
/// </summary>
17
+
publicpartialclassTimeRange
18
+
{
19
+
/// <summary>
20
+
/// Initializes a new instance of the TimeRange class.
21
+
/// </summary>
22
+
[JsonConstructor]
23
+
publicTimeRange(){}
24
+
/// <summary>
25
+
/// Initializes a new instance of the TimeRange class.
26
+
/// </summary>
27
+
/// <param name="from">When the rule should start to be active, in Unix epoch time. (required).</param>
28
+
/// <param name="until">When the rule should stop to be active, in Unix epoch time. (required).</param>
29
+
publicTimeRange(intfrom,intuntil)
30
+
{
31
+
From=from;
32
+
Until=until;
33
+
}
34
+
35
+
/// <summary>
36
+
/// When the rule should start to be active, in Unix epoch time.
37
+
/// </summary>
38
+
/// <value>When the rule should start to be active, in Unix epoch time.</value>
39
+
[JsonPropertyName("from")]
40
+
publicintFrom{get;set;}
41
+
42
+
/// <summary>
43
+
/// When the rule should stop to be active, in Unix epoch time.
44
+
/// </summary>
45
+
/// <value>When the rule should stop to be active, in Unix epoch time.</value>
46
+
[JsonPropertyName("until")]
47
+
publicintUntil{get;set;}
48
+
49
+
/// <summary>
50
+
/// Returns the string presentation of the object
51
+
/// </summary>
52
+
/// <returns>String presentation of the object</returns>
53
+
publicoverridestringToString()
54
+
{
55
+
StringBuildersb=newStringBuilder();
56
+
sb.Append("class TimeRange {\n");
57
+
sb.Append(" From: ").Append(From).Append("\n");
58
+
sb.Append(" Until: ").Append(Until).Append("\n");
59
+
sb.Append("}\n");
60
+
returnsb.ToString();
61
+
}
62
+
63
+
/// <summary>
64
+
/// Returns the JSON string presentation of the object
65
+
/// </summary>
66
+
/// <returns>JSON string presentation of the object</returns>
0 commit comments