# PulpcoreClient::ImportersPulpImportsApi All URIs are relative to *https://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](ImportersPulpImportsApi.md#create) | **POST** {pulp_importer_href}imports/ | Create a pulp import [**delete**](ImportersPulpImportsApi.md#delete) | **DELETE** {pulp_pulp_import_href} | Delete a pulp import [**list**](ImportersPulpImportsApi.md#list) | **GET** {pulp_importer_href}imports/ | List pulp imports [**read**](ImportersPulpImportsApi.md#read) | **GET** {pulp_pulp_import_href} | Inspect a pulp import ## create > TaskGroupOperationResponse create(pulp_importer_href, pulp_import) Create a pulp import Trigger an asynchronous task to import a Pulp export. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ImportersPulpImportsApi.new pulp_importer_href = 'pulp_importer_href_example' # String | pulp_import = PulpcoreClient::PulpImport.new # PulpImport | begin #Create a pulp import result = api_instance.create(pulp_importer_href, pulp_import) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ImportersPulpImportsApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp_importer_href** | **String**| | **pulp_import** | [**PulpImport**](PulpImport.md)| | ### Return type [**TaskGroupOperationResponse**](TaskGroupOperationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json ## delete > delete(pulp_pulp_import_href) Delete a pulp import ViewSet for PulpImports. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ImportersPulpImportsApi.new pulp_pulp_import_href = 'pulp_pulp_import_href_example' # String | begin #Delete a pulp import api_instance.delete(pulp_pulp_import_href) rescue PulpcoreClient::ApiError => e puts "Exception when calling ImportersPulpImportsApi->delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp_pulp_import_href** | **String**| | ### Return type nil (empty response body) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## list > PaginatedImportResponseList list(pulp_importer_href, opts) List pulp imports ViewSet for PulpImports. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ImportersPulpImportsApi.new pulp_importer_href = 'pulp_importer_href_example' # String | opts = { 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 pulp imports result = api_instance.list(pulp_importer_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ImportersPulpImportsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp_importer_href** | **String**| | **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 [**PaginatedImportResponseList**](PaginatedImportResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > ImportResponse read(pulp_pulp_import_href, opts) Inspect a pulp import ViewSet for PulpImports. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ImportersPulpImportsApi.new pulp_pulp_import_href = 'pulp_pulp_import_href_example' # String | 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 pulp import result = api_instance.read(pulp_pulp_import_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ImportersPulpImportsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pulp_pulp_import_href** | **String**| | **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 [**ImportResponse**](ImportResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json