Sha256: 2b4e6a65117f3198266affdec27c59b7c76787f4c520a7ee74c109d8df774ff7
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
# PulpRpmClient::RpmCopyApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](RpmCopyApi.md#create) | **POST** /pulp/api/v3/rpm/copy/ | Copy content ## create > AsyncOperationResponse create(copy) Copy content Trigger an asynchronous task to copy RPM contentfrom one repository into another, creating a newrepository 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::RpmCopyApi.new copy = PulpRpmClient::Copy.new # Copy | begin #Copy content result = api_instance.create(copy) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling RpmCopyApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **copy** | [**Copy**](Copy.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pulp_rpm_client-3.6.1 | docs/RpmCopyApi.md |
pulp_rpm_client-3.6.0 | docs/RpmCopyApi.md |