# CloudsmithApi::QuotaApi All URIs are relative to *https://api.cloudsmith.io* Method | HTTP request | Description ------------- | ------------- | ------------- [**quota_history_list**](QuotaApi.md#quota_history_list) | **GET** /quota/{owner}/history/ | Quota history for a given namespace. [**quota_list**](QuotaApi.md#quota_list) | **GET** /quota/{owner}/ | Quota usage for a given namespace. [**quota_oss_history_list**](QuotaApi.md#quota_oss_history_list) | **GET** /quota/{owner}/oss/history/ | Open-source Quota history for a given namespace. [**quota_oss_list**](QuotaApi.md#quota_oss_list) | **GET** /quota/{owner}/oss/ | Open-source Quota usage for a given namespace. # **quota_history_list** > Array<QuotaHistory> quota_history_list(owner, opts) Quota history for a given namespace. Quota history for 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::QuotaApi.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 #Quota history for a given namespace. result = api_instance.quota_history_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling QuotaApi->quota_history_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<QuotaHistory>**](QuotaHistory.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **quota_list** > Array<Quota> quota_list(owner, opts) Quota usage for a given namespace. Quota usage for 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::QuotaApi.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 #Quota usage for a given namespace. result = api_instance.quota_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling QuotaApi->quota_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<Quota>**](Quota.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **quota_oss_history_list** > Array<QuotaHistory> quota_oss_history_list(owner, opts) Open-source Quota history for a given namespace. Open-source Quota history for 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::QuotaApi.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 #Open-source Quota history for a given namespace. result = api_instance.quota_oss_history_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling QuotaApi->quota_oss_history_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<QuotaHistory>**](QuotaHistory.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **quota_oss_list** > Array<Quota> quota_oss_list(owner, opts) Open-source Quota usage for a given namespace. Open-source Quota usage for 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::QuotaApi.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 #Open-source Quota usage for a given namespace. result = api_instance.quota_oss_list(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling QuotaApi->quota_oss_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<Quota>**](Quota.md) ### Authorization [apikey](../README.md#apikey), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined