artifact-keeper-client 1.2.1

Rust client for the Artifact Keeper REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# \RepositoriesApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_virtual_member**]RepositoriesApi.md#add_virtual_member | **POST** /api/v1/repositories/{key}/members | Add a member to a virtual repository
[**create_repository**]RepositoriesApi.md#create_repository | **POST** /api/v1/repositories | Create a new repository
[**delete_artifact**]RepositoriesApi.md#delete_artifact | **DELETE** /api/v1/repositories/{key}/artifacts/{path} | Delete artifact
[**delete_pypi_track**]RepositoriesApi.md#delete_pypi_track | **DELETE** /api/v1/repositories/{key}/pypi-tracks/{project} | Remove a PEP 708 `tracks` declaration, restoring local-precedence isolation for that project name (#1600).
[**delete_repository**]RepositoriesApi.md#delete_repository | **DELETE** /api/v1/repositories/{key} | Delete repository
[**delete_routing_rules**]RepositoriesApi.md#delete_routing_rules | **DELETE** /api/v1/repositories/{key}/routing-rules | Delete all routing rules for a repository
[**download_artifact**]RepositoriesApi.md#download_artifact | **GET** /api/v1/repositories/{key}/download/{path} | Download artifact
[**get_cache_ttl**]RepositoriesApi.md#get_cache_ttl | **GET** /api/v1/repositories/{key}/cache-ttl | Get the proxy cache TTL for a repository
[**get_content**]RepositoriesApi.md#get_content | **GET** /api/v1/tree/content | 
[**get_repository**]RepositoriesApi.md#get_repository | **GET** /api/v1/repositories/{key} | Get repository details
[**get_repository_artifact_metadata**]RepositoriesApi.md#get_repository_artifact_metadata | **GET** /api/v1/repositories/{key}/artifacts/{path} | Get artifact metadata
[**get_routing_rules**]RepositoriesApi.md#get_routing_rules | **GET** /api/v1/repositories/{key}/routing-rules | Get routing rules for a repository
[**get_tree**]RepositoriesApi.md#get_tree | **GET** /api/v1/tree | 
[**invalidate_cache**]RepositoriesApi.md#invalidate_cache | **POST** /api/v1/repositories/{key}/cache/invalidate | Invalidate a single cached artifact entry on a Remote (proxy) repository (#1539).
[**list_artifacts**]RepositoriesApi.md#list_artifacts | **GET** /api/v1/repositories/{key}/artifacts | List artifacts in repository
[**list_pypi_tracks**]RepositoriesApi.md#list_pypi_tracks | **GET** /api/v1/repositories/{key}/pypi-tracks | List the PEP 708 `tracks` declarations on a repository.
[**list_repositories**]RepositoriesApi.md#list_repositories | **GET** /api/v1/repositories | List repositories
[**list_virtual_members**]RepositoriesApi.md#list_virtual_members | **GET** /api/v1/repositories/{key}/members | List virtual repository members
[**put_pypi_track**]RepositoriesApi.md#put_pypi_track | **PUT** /api/v1/repositories/{key}/pypi-tracks/{project} | Declare (upsert) that a locally-owned PyPI project tracks an upstream one, allowing a virtual repository to merge versions across members for that name instead of isolating it (PEP 708, #1600).
[**remove_virtual_member**]RepositoriesApi.md#remove_virtual_member | **DELETE** /api/v1/repositories/{key}/members/{member_key} | Remove a member from a virtual repository
[**set_cache_ttl**]RepositoriesApi.md#set_cache_ttl | **PUT** /api/v1/repositories/{key}/cache-ttl | Set the proxy cache TTL for a repository
[**set_routing_rules**]RepositoriesApi.md#set_routing_rules | **POST** /api/v1/repositories/{key}/routing-rules | Set routing rules for a repository
[**set_upstream_auth**]RepositoriesApi.md#set_upstream_auth | **PUT** /api/v1/repositories/{key}/upstream-auth | Set or remove upstream auth for a remote repository
[**test_upstream**]RepositoriesApi.md#test_upstream | **POST** /api/v1/repositories/{key}/test-upstream | Test connectivity to the upstream URL of a remote repository
[**update_repository**]RepositoriesApi.md#update_repository | **PATCH** /api/v1/repositories/{key} | Update repository
[**update_virtual_members**]RepositoriesApi.md#update_virtual_members | **PUT** /api/v1/repositories/{key}/members | Update priorities for all members (bulk reorder)
[**upload_artifact**]RepositoriesApi.md#upload_artifact | **PUT** /api/v1/repositories/{key}/artifacts/{path} | Upload artifact



## add_virtual_member

> models::VirtualMemberResponse add_virtual_member(key, add_virtual_member_request)
Add a member to a virtual repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**add_virtual_member_request** | [**AddVirtualMemberRequest**]AddVirtualMemberRequest.md |  | [required] |

### Return type

[**models::VirtualMemberResponse**](VirtualMemberResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## create_repository

> models::RepositoryResponse create_repository(create_repository_request)
Create a new repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_repository_request** | [**CreateRepositoryRequest**]CreateRepositoryRequest.md |  | [required] |

### Return type

[**models::RepositoryResponse**](RepositoryResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## delete_artifact

> delete_artifact(key, path)
Delete artifact

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**path** | **String** | Artifact path | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## delete_pypi_track

> delete_pypi_track(key, project)
Remove a PEP 708 `tracks` declaration, restoring local-precedence isolation for that project name (#1600).

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**project** | **String** | Project name (PEP 503 normalized server-side) | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## delete_repository

> delete_repository(key)
Delete repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## delete_routing_rules

> delete_routing_rules(key)
Delete all routing rules for a repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## download_artifact

> download_artifact(key, path)
Download artifact

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**path** | **String** | Artifact path | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/octet-stream

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


## get_cache_ttl

> models::CacheTtlResponse get_cache_ttl(key)
Get the proxy cache TTL for a repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

[**models::CacheTtlResponse**](CacheTtlResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_content

> get_content(repository_key, path, max_bytes)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**repository_key** | **String** | Repository key containing the artifact | [required] |
**path** | **String** | Full artifact path within the repository | [required] |
**max_bytes** | Option<**i64**> | Optional maximum number of bytes to return (truncates the response) |  |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/octet-stream, application/json

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


## get_repository

> models::RepositoryResponse get_repository(key)
Get repository details

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

[**models::RepositoryResponse**](RepositoryResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_repository_artifact_metadata

> models::ArtifactResponse get_repository_artifact_metadata(key, path)
Get artifact metadata

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**path** | **String** | Artifact path | [required] |

### Return type

[**models::ArtifactResponse**](ArtifactResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_routing_rules

> models::RoutingRulesResponse get_routing_rules(key)
Get routing rules for a repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

[**models::RoutingRulesResponse**](RoutingRulesResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_tree

> models::TreeResponse get_tree(repository_key, path, include_metadata)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**repository_key** | Option<**String**> | Repository key to browse |  |
**path** | Option<**String**> | Path prefix to browse within the repository |  |
**include_metadata** | Option<**bool**> | Whether to include metadata in the response |  |

### Return type

[**models::TreeResponse**](TreeResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## invalidate_cache

> models::InvalidateCacheResponse invalidate_cache(key, path)
Invalidate a single cached artifact entry on a Remote (proxy) repository (#1539).

Mirrors the auth + repo-access pattern of `set_cache_ttl`. Idempotent: invalidating a path that was never cached (or was already evicted) still returns 200, matching the underlying `ProxyService::invalidate_cache` contract (which ignores delete-of-missing on the storage backend).

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**path** | **String** | Artifact path to evict from the proxy cache. Same shape as the path segment of `GET /api/v1/repositories/{key}/artifacts/{path}`. Path-traversal segments such as `..` are rejected by `ProxyService::cache_storage_key` (covered by `test_invalidate_cache_by_key_rejects_invalid_path`). | [required] |

### Return type

[**models::InvalidateCacheResponse**](InvalidateCacheResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_artifacts

> models::ArtifactListResponse list_artifacts(key, page, per_page, q, path_prefix, group_by)
List artifacts in repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**page** | Option<**i32**> |  |  |
**per_page** | Option<**i32**> |  |  |
**q** | Option<**String**> |  |  |
**path_prefix** | Option<**String**> |  |  |
**group_by** | Option<**String**> | Server-side artifact grouping.  Supported values: - `maven_component`: Maven/Gradle artifacts are grouped by   groupId, artifactId, and version.  Individual files (jar, pom,   checksums) appear in the `artifact_files` array of each component. - `docker_tag`: Docker/OCI artifacts are grouped by (image, tag),   with `total_size_bytes` summed across the manifest config and   referenced layer blobs.  The grouped rows are returned in the   `docker_tags` array. |  |

### Return type

[**models::ArtifactListResponse**](ArtifactListResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_pypi_tracks

> models::PypiTracksListResponse list_pypi_tracks(key)
List the PEP 708 `tracks` declarations on a repository.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

[**models::PypiTracksListResponse**](PypiTracksListResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_repositories

> models::RepositoryListResponse list_repositories(page, per_page, format, r#type, q)
List repositories

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**page** | Option<**i32**> |  |  |
**per_page** | Option<**i32**> |  |  |
**format** | Option<**String**> |  |  |
**r#type** | Option<**String**> |  |  |
**q** | Option<**String**> |  |  |

### Return type

[**models::RepositoryListResponse**](RepositoryListResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_virtual_members

> models::VirtualMembersListResponse list_virtual_members(key)
List virtual repository members

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

[**models::VirtualMembersListResponse**](VirtualMembersListResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## put_pypi_track

> models::PypiTrackResponse put_pypi_track(key, project, pypi_track_request)
Declare (upsert) that a locally-owned PyPI project tracks an upstream one, allowing a virtual repository to merge versions across members for that name instead of isolating it (PEP 708, #1600).

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**project** | **String** | Project name (PEP 503 normalized server-side) | [required] |
**pypi_track_request** | [**PypiTrackRequest**]PypiTrackRequest.md |  | [required] |

### Return type

[**models::PypiTrackResponse**](PypiTrackResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## remove_virtual_member

> remove_virtual_member(key, member_key)
Remove a member from a virtual repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**member_key** | **String** | Member repository key | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## set_cache_ttl

> models::CacheTtlResponse set_cache_ttl(key, set_cache_ttl_request)
Set the proxy cache TTL for a repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**set_cache_ttl_request** | [**SetCacheTtlRequest**]SetCacheTtlRequest.md |  | [required] |

### Return type

[**models::CacheTtlResponse**](CacheTtlResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## set_routing_rules

> models::RoutingRulesResponse set_routing_rules(key, set_routing_rules_request)
Set routing rules for a repository

Routing rules rewrite the request path before it is forwarded to the upstream server. This is useful for proxying resources like GitHub Releases where the client-facing path structure differs from the upstream URL layout. Rules are evaluated in order and the first match wins.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**set_routing_rules_request** | [**SetRoutingRulesRequest**]SetRoutingRulesRequest.md |  | [required] |

### Return type

[**models::RoutingRulesResponse**](RoutingRulesResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## set_upstream_auth

> set_upstream_auth(key, upstream_auth_request)
Set or remove upstream auth for a remote repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**upstream_auth_request** | [**UpstreamAuthRequest**]UpstreamAuthRequest.md |  | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

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


## test_upstream

> test_upstream(key)
Test connectivity to the upstream URL of a remote repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## update_repository

> models::RepositoryResponse update_repository(key, update_repository_request)
Update repository

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**update_repository_request** | [**UpdateRepositoryRequest**]UpdateRepositoryRequest.md |  | [required] |

### Return type

[**models::RepositoryResponse**](RepositoryResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## update_virtual_members

> models::VirtualMembersListResponse update_virtual_members(key, update_virtual_members_request)
Update priorities for all members (bulk reorder)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**update_virtual_members_request** | [**UpdateVirtualMembersRequest**]UpdateVirtualMembersRequest.md |  | [required] |

### Return type

[**models::VirtualMembersListResponse**](VirtualMembersListResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## upload_artifact

> models::ArtifactResponse upload_artifact(key, path, request_body)
Upload artifact

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**path** | **String** | Artifact path | [required] |
**request_body** | [**Vec<i32>**]i32.md |  | [required] |

### Return type

[**models::ArtifactResponse**](ArtifactResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/octet-stream
- **Accept**: application/json

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