# PulpMavenClient::DistributionsMavenApi All URIs are relative to *http://localhost:24817* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](DistributionsMavenApi.md#create) | **POST** /pulp/api/v3/distributions/maven/maven/ | Create a maven distribution [**delete**](DistributionsMavenApi.md#delete) | **DELETE** {maven_distribution_href} | Delete a maven distribution [**list**](DistributionsMavenApi.md#list) | **GET** /pulp/api/v3/distributions/maven/maven/ | List maven distributions [**partial_update**](DistributionsMavenApi.md#partial_update) | **PATCH** {maven_distribution_href} | Partially update a maven distribution [**read**](DistributionsMavenApi.md#read) | **GET** {maven_distribution_href} | Inspect a maven distribution [**update**](DistributionsMavenApi.md#update) | **PUT** {maven_distribution_href} | Update a maven distribution ## create > AsyncOperationResponse create(data) Create a maven distribution Trigger an asynchronous create task ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new data = PulpMavenClient::MavenMavenDistribution.new # MavenMavenDistribution | begin #Create a maven distribution result = api_instance.create(data) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **data** | [**MavenMavenDistribution**](MavenMavenDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## delete > AsyncOperationResponse delete(maven_distribution_href) Delete a maven distribution Trigger an asynchronous delete task ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ begin #Delete a maven distribution result = api_instance.delete(maven_distribution_href) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list > InlineResponse2001 list(opts) List maven distributions ViewSet for Maven Distributions. ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new opts = { name: 'name_example', # String | name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values base_path: 'base_path_example', # String | base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values limit: 56, # Integer | Number of results to return per page. offset: 56, # Integer | The initial index from which to return the results. fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin #List maven distributions result = api_instance.list(opts) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| | [optional] **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional] **base_path** | **String**| | [optional] **base_path__contains** | **String**| Filter results where base_path contains value | [optional] **base_path__icontains** | **String**| Filter results where base_path contains value | [optional] **base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional] **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**InlineResponse2001**](InlineResponse2001.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## partial_update > AsyncOperationResponse partial_update(maven_distribution_href, data) Partially update a maven distribution Trigger an asynchronous partial update task ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ data = PulpMavenClient::MavenMavenDistribution.new # MavenMavenDistribution | begin #Partially update a maven distribution result = api_instance.partial_update(maven_distribution_href, data) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->partial_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ | **data** | [**MavenMavenDistribution**](MavenMavenDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## read > MavenMavenDistribution read(maven_distribution_href, opts) Inspect a maven distribution ViewSet for Maven Distributions. ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ opts = { fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin #Inspect a maven distribution result = api_instance.read(maven_distribution_href, opts) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ | **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**MavenMavenDistribution**](MavenMavenDistribution.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## update > AsyncOperationResponse update(maven_distribution_href, data) Update a maven distribution Trigger an asynchronous update task ### Example ```ruby # load the gem require 'pulp_maven_client' # setup authorization PulpMavenClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpMavenClient::DistributionsMavenApi.new maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ data = PulpMavenClient::MavenMavenDistribution.new # MavenMavenDistribution | begin #Update a maven distribution result = api_instance.update(maven_distribution_href, data) p result rescue PulpMavenClient::ApiError => e puts "Exception when calling DistributionsMavenApi->update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ | **data** | [**MavenMavenDistribution**](MavenMavenDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json