artifact-keeper-client 1.1.2

Rust client for the Artifact Keeper REST API
Documentation
# \RepositoryLabelsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_repo_label**]RepositoryLabelsApi.md#add_repo_label | **POST** /api/v1/repositories/{key}/labels/{label_key} | Add or update a single label
[**delete_repo_label**]RepositoryLabelsApi.md#delete_repo_label | **DELETE** /api/v1/repositories/{key}/labels/{label_key} | Delete a label by key
[**list_repo_labels**]RepositoryLabelsApi.md#list_repo_labels | **GET** /api/v1/repositories/{key}/labels | List all labels on a repository
[**set_repo_labels**]RepositoryLabelsApi.md#set_repo_labels | **PUT** /api/v1/repositories/{key}/labels | Set all labels on a repository (replaces existing)



## add_repo_label

> models::LabelResponse add_repo_label(key, label_key, add_label_request)
Add or update a single label

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**label_key** | **String** | Label key to set | [required] |
**add_label_request** | [**AddLabelRequest**]AddLabelRequest.md |  | [required] |

### Return type

[**models::LabelResponse**](LabelResponse.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_repo_label

> delete_repo_label(key, label_key)
Delete a label by key

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key** | **String** | Repository key | [required] |
**label_key** | **String** | Label key to remove | [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)


## list_repo_labels

> models::LabelsListResponse list_repo_labels(key)
List all labels on a repository

### Parameters


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

### Return type

[**models::LabelsListResponse**](LabelsListResponse.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)


## set_repo_labels

> models::LabelsListResponse set_repo_labels(key, set_labels_request)
Set all labels on a repository (replaces existing)

### Parameters


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

### Return type

[**models::LabelsListResponse**](LabelsListResponse.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)