PulpRpmClient::PublicationsRpmApi

All URIs are relative to http://pulp

Method HTTP request Description
create POST /pulp/api/v3/publications/rpm/rpm/ Create a rpm publication
delete DELETE rpm_rpm_publication_href Delete a rpm publication
list GET /pulp/api/v3/publications/rpm/rpm/ List rpm publications
read GET rpm_rpm_publication_href Inspect a rpm publication

create

AsyncOperationResponse create(rpm_rpm_publication)

Create a rpm publication

Trigger an asynchronous task to create a new RPM content publication.

Example

# 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::PublicationsRpmApi.new
rpm_rpm_publication = PulpRpmClient::RpmRpmPublication.new # RpmRpmPublication | 

begin
  #Create a rpm publication
  result = api_instance.create(rpm_rpm_publication)
  p result
rescue PulpRpmClient::ApiError => e
  puts "Exception when calling PublicationsRpmApi->create: #{e}"
end

Parameters

Name Type Description Notes
rpm_rpm_publication RpmRpmPublication

Return type

AsyncOperationResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json

delete

delete(rpm_rpm_publication_href)

Delete a rpm publication

ViewSet for Rpm Publications.

Example

# 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::PublicationsRpmApi.new
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | 

begin
  #Delete a rpm publication
  api_instance.delete(rpm_rpm_publication_href)
rescue PulpRpmClient::ApiError => e
  puts "Exception when calling PublicationsRpmApi->delete: #{e}"
end

Parameters

Name Type Description Notes
rpm_rpm_publication_href String

Return type

nil (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

list

InlineResponse20011 list(opts)

List rpm publications

ViewSet for Rpm Publications.

Example

# 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::PublicationsRpmApi.new
opts = {
  limit: 56, # Integer | Number of results to return per page.
  offset: 56, # Integer | The initial index from which to return the results.
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
  pulp_created: 'pulp_created_example', # String | pulp_created
  pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
  pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
  pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
  pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
  pulp_created__range: 'pulp_created__range_example', # String | pulp_created__range
  repository_version: 'repository_version_example', # String | repository_version
  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 rpm publications
  result = api_instance.list(opts)
  p result
rescue PulpRpmClient::ApiError => e
  puts "Exception when calling PublicationsRpmApi->list: #{e}"
end

Parameters

Name Type Description Notes
limit Integer Number of results to return per page. [optional]
offset Integer The initial index from which to return the results. [optional]
ordering String Which field to use when ordering the results. [optional]
pulp_created String pulp_created [optional]
pulp_created__gt String pulp_created__gt [optional]
pulp_created__gte String pulp_created__gte [optional]
pulp_created__lt String pulp_created__lt [optional]
pulp_created__lte String pulp_created__lte [optional]
pulp_created__range String pulp_created__range [optional]
repository_version String repository_version [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

InlineResponse20011

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

read

RpmRpmPublicationResponse read(rpm_rpm_publication_href, opts)

Inspect a rpm publication

ViewSet for Rpm Publications.

Example

# 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::PublicationsRpmApi.new
rpm_rpm_publication_href = 'rpm_rpm_publication_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 rpm publication
  result = api_instance.read(rpm_rpm_publication_href, opts)
  p result
rescue PulpRpmClient::ApiError => e
  puts "Exception when calling PublicationsRpmApi->read: #{e}"
end

Parameters

Name Type Description Notes
rpm_rpm_publication_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

RpmRpmPublicationResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json