Skip to content

Commit 93977c9

Browse files
Update code samples [skip ci]
1 parent bb5fc71 commit 93977c9

17 files changed

+18
-18
lines changed

snippets/samples/code_samples_async_guide_canceled_by_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CodeGroup>
22

33
```javascript JS
4-
client.getTasks({ canceledBy: [9, 15] })
4+
client.tasks.getTasks({ canceledBy: [9, 15] })
55
```
66

77
```python Python

snippets/samples/code_samples_async_guide_filter_by_date_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CodeGroup>
22

33
```javascript JS
4-
client.getTasks({ afterEnqueuedAt: '2020-10-11T11:49:53.000Z' })
4+
client.tasks.getTasks({ afterEnqueuedAt: '2020-10-11T11:49:53.000Z' })
55
```
66

77
```python Python

snippets/samples/code_samples_async_guide_filter_by_ids_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CodeGroup>
22

33
```javascript JS
4-
client.getTasks({ uids: [5, 10, 13] })
4+
client.tasks.getTasks({ uids: [5, 10, 13] })
55
```
66

77
```python Python

snippets/samples/code_samples_async_guide_filter_by_index_uids_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CodeGroup>
22

33
```javascript JS
4-
client.getTasks({ indexUids: ['movies'] })
4+
client.tasks.getTasks({ indexUids: ['movies'] })
55
```
66

77
```python Python

snippets/samples/code_samples_async_guide_filter_by_statuses_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ curl \
66
```
77

88
```javascript JS
9-
client.getTasks({ statuses: ['failed', 'canceled'] })
9+
client.tasks.getTasks({ statuses: ['failed', 'canceled'] })
1010
```
1111

1212
```python Python

snippets/samples/code_samples_async_guide_filter_by_types_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CodeGroup>
22

33
```javascript JS
4-
client.getTasks({ types: ['dumpCreation', 'indexSwap'] })
4+
client.tasks.getTasks({ types: ['dumpCreation', 'indexSwap'] })
55
```
66

77
```python Python

snippets/samples/code_samples_async_guide_multiple_filters_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ curl \
66
```
77

88
```javascript JS
9-
client.getTasks({
9+
client.tasks.getTasks({
1010
indexUids: ['movies'],
1111
types: ['documentAdditionOrUpdate','documentDeletion'],
1212
statuses: ['processing']

snippets/samples/code_samples_cancel_tasks_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ curl \
66
```
77

88
```javascript JS
9-
client.cancelTasks({ uids: [1, 2] })
9+
client.tasks.cancelTasks({ uids: [1, 2] })
1010
```
1111

1212
```python Python

snippets/samples/code_samples_delete_tasks_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ curl \
66
```
77

88
```javascript JS
9-
client.deleteTasks({ uids: [1, 2] })
9+
client.tasks.deleteTasks({ uids: [1, 2] })
1010
```
1111

1212
```python Python

snippets/samples/code_samples_get_all_batches_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ curl \
66
```
77

88
```javascript JS
9-
client.getBatches();
9+
client.batches.getBatches();
1010
```
1111

1212
```python Python

0 commit comments

Comments
 (0)