# PulpRpmClient::ContentModulemdDefaultsApi All URIs are relative to *https://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](ContentModulemdDefaultsApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd_defaults/ | Create a modulemd defaults [**list**](ContentModulemdDefaultsApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd_defaults/ | List modulemd defaultss [**read**](ContentModulemdDefaultsApi.md#read) | **GET** {rpm_modulemd_defaults_href} | Inspect a modulemd defaults ## create > AsyncOperationResponse create(relative_path, _module, stream, profiles, opts) Create a modulemd defaults Trigger an asynchronous task to create content,optionally create new repository version. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path _module = '_module_example' # String | Modulemd name. stream = 'stream_example' # String | Modulemd default stream. profiles = nil # Object | Default profiles for modulemd streams. opts = { artifact: 'artifact_example', # String | Artifact file representing the physical content file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit. repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with. upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit. } begin #Create a modulemd defaults result = api_instance.create(relative_path, _module, stream, profiles, opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling ContentModulemdDefaultsApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **relative_path** | **String**| Path where the artifact is located relative to distributions base_path | **_module** | **String**| Modulemd name. | **stream** | **String**| Modulemd default stream. | **profiles** | [**Object**](Object.md)| Default profiles for modulemd streams. | **artifact** | **String**| Artifact file representing the physical content | [optional] **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional] **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional] **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional] ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded - **Accept**: application/json ## list > PaginatedrpmModulemdDefaultsResponseList list(opts) List modulemd defaultss ViewSet for Modulemd. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new opts = { limit: 56, # Integer | Number of results to return per page. _module: '_module_example', # String | Filter results where module matches value module__in: ['module__in_example'], # Array | Filter results where module is in a comma-separated list of values offset: 56, # Integer | The initial index from which to return the results. ordering: ['ordering_example'], # Array | Ordering repository_version: 'repository_version_example', # String | Repository Version referenced by HREF repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF sha256: 'sha256_example', # String | stream: 'stream_example', # String | Filter results where stream matches value stream__in: ['stream__in_example'], # Array | Filter results where stream is in a comma-separated list of values fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin #List modulemd defaultss result = api_instance.list(opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling ContentModulemdDefaultsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **Integer**| Number of results to return per page. | [optional] **_module** | **String**| Filter results where module matches value | [optional] **module__in** | [**Array<String>**](String.md)| Filter results where module is in a comma-separated list of values | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **ordering** | [**Array<String>**](String.md)| Ordering | [optional] **repository_version** | **String**| Repository Version referenced by HREF | [optional] **repository_version_added** | **String**| Repository Version referenced by HREF | [optional] **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional] **sha256** | **String**| | [optional] **stream** | **String**| Filter results where stream matches value | [optional] **stream__in** | [**Array<String>**](String.md)| Filter results where stream is in a comma-separated list of values | [optional] **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**PaginatedrpmModulemdDefaultsResponseList**](PaginatedrpmModulemdDefaultsResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > RpmModulemdDefaultsResponse read(rpm_modulemd_defaults_href, opts) Inspect a modulemd defaults ViewSet for Modulemd. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # String | opts = { fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin #Inspect a modulemd defaults result = api_instance.read(rpm_modulemd_defaults_href, opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling ContentModulemdDefaultsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_modulemd_defaults_href** | **String**| | **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**RpmModulemdDefaultsResponse**](RpmModulemdDefaultsResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json