PulpRpmClient::DistributionsRpmApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| create | POST /pulp/api/v3/distributions/rpm/rpm/ | Create a rpm distribution |
| delete | DELETE rpm_rpm_distribution_href | Delete a rpm distribution |
| list | GET /pulp/api/v3/distributions/rpm/rpm/ | List rpm distributions |
| partial_update | PATCH rpm_rpm_distribution_href | Update a rpm distribution |
| read | GET rpm_rpm_distribution_href | Inspect a rpm distribution |
| update | PUT rpm_rpm_distribution_href | Update a rpm distribution |
create
AsyncOperationResponse create(rpm_rpm_distribution)
Create a rpm distribution
Trigger an asynchronous create task
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::DistributionsRpmApi.new
rpm_rpm_distribution = PulpRpmClient::RpmRpmDistribution.new # RpmRpmDistribution |
begin
#Create a rpm distribution
result = api_instance.create(rpm_rpm_distribution)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->create: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution | RpmRpmDistribution |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
delete
AsyncOperationResponse delete(rpm_rpm_distribution_href)
Delete a rpm distribution
Trigger an asynchronous delete task
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::DistributionsRpmApi.new
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
begin
#Delete a rpm distribution
result = api_instance.delete(rpm_rpm_distribution_href)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->delete: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
list
InlineResponse20010 list(opts)
List rpm distributions
ViewSet for RPM Distributions.
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::DistributionsRpmApi.new
opts = {
base_path: 'base_path_example', # String | base_path
base_path__contains: 'base_path__contains_example', # String | base_path__contains
base_path__icontains: 'base_path__icontains_example', # String | base_path__icontains
base_path__in: 'base_path__in_example', # String | base_path__in
limit: 56, # Integer | Number of results to return per page.
name: 'name_example', # String | name
name__in: 'name__in_example', # String | name__in
offset: 56, # Integer | The initial index from which to return the results.
ordering: 'ordering_example', # String | Which field to use when ordering 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 rpm distributions
result = api_instance.list(opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->list: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| base_path | String | base_path | [optional] |
| base_path__contains | String | base_path__contains | [optional] |
| base_path__icontains | String | base_path__icontains | [optional] |
| base_path__in | String | base_path__in | [optional] |
| limit | Integer | Number of results to return per page. | [optional] |
| name | String | name | [optional] |
| name__in | String | name__in | [optional] |
| offset | Integer | The initial index from which to return the results. | [optional] |
| ordering | String | Which field to use when ordering 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
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
partial_update
AsyncOperationResponse partial_update(rpm_rpm_distribution_href, patchedrpm_rpm_distribution)
Update a rpm distribution
Trigger an asynchronous partial update task
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::DistributionsRpmApi.new
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
patchedrpm_rpm_distribution = PulpRpmClient::PatchedrpmRpmDistribution.new # PatchedrpmRpmDistribution |
begin
#Update a rpm distribution
result = api_instance.partial_update(rpm_rpm_distribution_href, patchedrpm_rpm_distribution)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->partial_update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | String | ||
| patchedrpm_rpm_distribution | PatchedrpmRpmDistribution |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
read
RpmRpmDistributionResponse read(rpm_rpm_distribution_href, opts)
Inspect a rpm distribution
ViewSet for RPM Distributions.
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::DistributionsRpmApi.new
rpm_rpm_distribution_href = 'rpm_rpm_distribution_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 distribution
result = api_instance.read(rpm_rpm_distribution_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_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
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
update
AsyncOperationResponse update(rpm_rpm_distribution_href, rpm_rpm_distribution)
Update a rpm distribution
Trigger an asynchronous update task
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::DistributionsRpmApi.new
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
rpm_rpm_distribution = PulpRpmClient::RpmRpmDistribution.new # RpmRpmDistribution |
begin
#Update a rpm distribution
result = api_instance.update(rpm_rpm_distribution_href, rpm_rpm_distribution)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling DistributionsRpmApi->update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | String | ||
| rpm_rpm_distribution | RpmRpmDistribution |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json