From 004be4040ddfa0289f9a296d8f2c3a83f3a62e4f Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 13 Jan 2025 13:13:45 +0000 Subject: [PATCH] fix(specs): deprecate task v1 [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/4327 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- algoliasearch/Clients/IngestionClient.cs | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/algoliasearch/Clients/IngestionClient.cs b/algoliasearch/Clients/IngestionClient.cs index 0818df1d..0fb0dba4 100644 --- a/algoliasearch/Clients/IngestionClient.cs +++ b/algoliasearch/Clients/IngestionClient.cs @@ -157,6 +157,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of TaskCreateResponse + [Obsolete] Task CreateTaskV1Async(TaskCreateV1 taskCreate, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -169,6 +170,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// TaskCreateResponse + [Obsolete] TaskCreateResponse CreateTaskV1(TaskCreateV1 taskCreate, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -439,6 +441,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of DeleteResponse + [Obsolete] Task DeleteTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -451,6 +454,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// DeleteResponse + [Obsolete] DeleteResponse DeleteTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -596,6 +600,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of TaskUpdateResponse + [Obsolete] Task EnableTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -613,6 +618,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// TaskUpdateResponse + [Obsolete] TaskUpdateResponse EnableTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -836,6 +842,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of TaskV1 + [Obsolete] Task GetTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -853,6 +860,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// TaskV1 + [Obsolete] TaskV1 GetTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1200,6 +1208,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of ListTasksResponseV1 + [Obsolete] Task ListTasksV1Async(int? itemsPerPage = default, int? page = default, List action = default, bool? enabled = default, List sourceID = default, List destinationID = default, List triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1225,6 +1234,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// ListTasksResponseV1 + [Obsolete] ListTasksResponseV1 ListTasksV1(int? itemsPerPage = default, int? page = default, List action = default, bool? enabled = default, List sourceID = default, List destinationID = default, List triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1390,6 +1400,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of RunResponse + [Obsolete] Task RunTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1407,6 +1418,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// RunResponse + [Obsolete] RunResponse RunTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1560,6 +1572,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of List{TaskV1} + [Obsolete] Task> SearchTasksV1Async(TaskSearch taskSearch, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1577,6 +1590,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// List{TaskV1} + [Obsolete] List SearchTasksV1(TaskSearch taskSearch, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1862,6 +1876,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of TaskUpdateResponse + [Obsolete] Task UpdateTaskV1Async(string taskID, TaskUpdateV1 taskUpdate, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -1875,6 +1890,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// TaskUpdateResponse + [Obsolete] TaskUpdateResponse UpdateTaskV1(string taskID, TaskUpdateV1 taskUpdate, RequestOptions options = null, CancellationToken cancellationToken = default); /// @@ -2133,6 +2149,7 @@ public TaskCreateResponse CreateTask(TaskCreate taskCreate, RequestOptions optio /// + [Obsolete] public async Task CreateTaskV1Async(TaskCreateV1 taskCreate, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2148,6 +2165,7 @@ public async Task CreateTaskV1Async(TaskCreateV1 taskCreate, /// + [Obsolete] public TaskCreateResponse CreateTaskV1(TaskCreateV1 taskCreate, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => CreateTaskV1Async(taskCreate, options, cancellationToken)); @@ -2335,6 +2353,7 @@ public DeleteResponse DeleteTask(string taskID, RequestOptions options = null, C /// + [Obsolete] public async Task DeleteTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2350,6 +2369,7 @@ public async Task DeleteTaskV1Async(string taskID, RequestOption /// + [Obsolete] public DeleteResponse DeleteTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => DeleteTaskV1Async(taskID, options, cancellationToken)); @@ -2437,6 +2457,7 @@ public TaskUpdateResponse EnableTask(string taskID, RequestOptions options = nul /// + [Obsolete] public async Task EnableTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2452,6 +2473,7 @@ public async Task EnableTaskV1Async(string taskID, RequestOp /// + [Obsolete] public TaskUpdateResponse EnableTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => EnableTaskV1Async(taskID, options, cancellationToken)); @@ -2582,6 +2604,7 @@ public IngestionTask GetTask(string taskID, RequestOptions options = null, Cance /// + [Obsolete] public async Task GetTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2597,6 +2620,7 @@ public async Task GetTaskV1Async(string taskID, RequestOptions options = /// + [Obsolete] public TaskV1 GetTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => GetTaskV1Async(taskID, options, cancellationToken)); @@ -2764,6 +2788,7 @@ public ListTasksResponse ListTasks(int? itemsPerPage = default, int? page = defa /// + [Obsolete] public async Task ListTasksV1Async(int? itemsPerPage = default, int? page = default, List action = default, bool? enabled = default, List sourceID = default, List destinationID = default, List triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default) { var requestOptions = new InternalRequestOptions(options); @@ -2783,6 +2808,7 @@ public async Task ListTasksV1Async(int? itemsPerPage = defa /// + [Obsolete] public ListTasksResponseV1 ListTasksV1(int? itemsPerPage = default, int? page = default, List action = default, bool? enabled = default, List sourceID = default, List destinationID = default, List triggerType = default, TaskSortKeys? sort = default, OrderKeys? order = default, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => ListTasksV1Async(itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, options, cancellationToken)); @@ -2877,6 +2903,7 @@ public RunResponse RunTask(string taskID, RequestOptions options = null, Cancell /// + [Obsolete] public async Task RunTaskV1Async(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2892,6 +2919,7 @@ public async Task RunTaskV1Async(string taskID, RequestOptions opti /// + [Obsolete] public RunResponse RunTaskV1(string taskID, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => RunTaskV1Async(taskID, options, cancellationToken)); @@ -2977,6 +3005,7 @@ public List SearchTasks(TaskSearch taskSearch, RequestOptions opt /// + [Obsolete] public async Task> SearchTasksV1Async(TaskSearch taskSearch, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -2992,6 +3021,7 @@ public async Task> SearchTasksV1Async(TaskSearch taskSearch, Reques /// + [Obsolete] public List SearchTasksV1(TaskSearch taskSearch, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => SearchTasksV1Async(taskSearch, options, cancellationToken)); @@ -3185,6 +3215,7 @@ public TaskUpdateResponse UpdateTask(string taskID, TaskUpdate taskUpdate, Reque /// + [Obsolete] public async Task UpdateTaskV1Async(string taskID, TaskUpdateV1 taskUpdate, RequestOptions options = null, CancellationToken cancellationToken = default) { @@ -3205,6 +3236,7 @@ public async Task UpdateTaskV1Async(string taskID, TaskUpdat /// + [Obsolete] public TaskUpdateResponse UpdateTaskV1(string taskID, TaskUpdateV1 taskUpdate, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => UpdateTaskV1Async(taskID, taskUpdate, options, cancellationToken));