# CloudsmithApi::ReposApi All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- [**repos_all_list**](ReposApi.md#repos_all_list) | **GET** /repos/ | Get a list of all repositories associated with current user. [**repos_create**](ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace. [**repos_delete**](ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{slug}/ | Delete a repository in a given namespace. [**repos_list**](ReposApi.md#repos_list) | **GET** /repos/{owner}/ | Get a list of all repositories within a namespace. [**repos_partial_update**](ReposApi.md#repos_partial_update) | **PATCH** /repos/{owner}/{slug}/ | Update details about a repository in a given namespace. [**repos_read**](ReposApi.md#repos_read) | **GET** /repos/{owner}/{slug}/ | Get a specific repository. # **repos_all_list** > Array<Repository> repos_all_list(opts) Get a list of all repositories associated with current user. Get a list of all repositories associated with current user. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #Get a list of all repositories associated with current user. result = api_instance.repos_all_list(opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_all_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<Repository>**](Repository.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_create** > Repository repos_create(owner, opts) Create a new repository in a given namespace. Create a new repository in a given namespace. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | opts = { data: CloudsmithApi::ReposCreate.new # ReposCreate | } begin #Create a new repository in a given namespace. result = api_instance.repos_create(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **data** | [**ReposCreate**](ReposCreate.md)| | [optional] ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: Not defined # **repos_delete** > repos_delete(owner, slug) Delete a repository in a given namespace. Delete a repository in a given namespace. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | slug = "slug_example" # String | begin #Delete a repository in a given namespace. api_instance.repos_delete(owner, slug) rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **slug** | **String**| | ### Return type nil (empty response body) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_list** > Array<Repository> repos_list(owner, opts) Get a list of all repositories within a namespace. Get a list of all repositories within a namespace. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #Get a list of all repositories within a namespace. result = api_instance.repos_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<Repository>**](Repository.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_partial_update** > Repository repos_partial_update(owner, opts) Update details about a repository in a given namespace. Update details about a repository in a given namespace. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | opts = { data: CloudsmithApi::ReposPartialUpdate.new # ReposPartialUpdate | } begin #Update details about a repository in a given namespace. result = api_instance.repos_partial_update(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_partial_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **data** | [**ReposPartialUpdate**](ReposPartialUpdate.md)| | [optional] ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: Not defined # **repos_read** > Repository repos_read(owner, slug) Get a specific repository. Get a specific repository. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | slug = "slug_example" # String | begin #Get a specific repository. result = api_instance.repos_read(owner, slug) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **slug** | **String**| | ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined