# 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}/{identifier}/ | 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}/{identifier}/ | Update details about a repository in a given namespace. [**repos_read**](ReposApi.md#repos_read) | **GET** /repos/{owner}/{identifier}/ | 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' 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) ### 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' 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) ### HTTP request headers - **Content-Type**: application/json - **Accept**: Not defined # **repos_delete** > repos_delete(owner, identifier) 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' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | identifier = "identifier_example" # String | begin #Delete a repository in a given namespace. api_instance.repos_delete(owner, identifier) rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | ### Return type nil (empty response body) ### Authorization [apikey](../README.md#apikey) ### 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' 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) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_partial_update** > Repository repos_partial_update(owner, identifier, 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' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | identifier = "identifier_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, identifier, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_partial_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | **data** | [**ReposPartialUpdate**](ReposPartialUpdate.md)| | [optional] ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: Not defined # **repos_read** > Repository repos_read(owner, identifier) 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' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | identifier = "identifier_example" # String | begin #Get a specific repository. result = api_instance.repos_read(owner, identifier) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined