PulpRpmClient::RepositoriesRpmVersionsApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| delete | DELETE rpm_rpm_repository_version_href | Delete a repository version |
| list | GET rpm_rpm_repository_hrefversions/ | List repository versions |
| read | GET rpm_rpm_repository_version_href | Inspect a repository version |
| repair | POST rpm_rpm_repository_version_hrefrepair/ |
delete
AsyncOperationResponse delete(rpm_rpm_repository_version_href)
Delete a repository version
Trigger an asynchronous task to delete a repositroy version.
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::RepositoriesRpmVersionsApi.new
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_href_example' # String |
begin
#Delete a repository version
result = api_instance.delete(rpm_rpm_repository_version_href)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmVersionsApi->delete: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_href | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
list
InlineResponse20014 list(rpm_rpm_repository_href, opts)
List repository versions
RpmRepositoryVersion represents a single rpm repository version.
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::RepositoriesRpmVersionsApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
opts = {
content: 'content_example', # String | content
content__in: 'content__in_example', # String | content__in
limit: 56, # Integer | Number of results to return per page.
number: 'number_example', # String | number
number__gt: 'number__gt_example', # String | number__gt
number__gte: 'number__gte_example', # String | number__gte
number__lt: 'number__lt_example', # String | number__lt
number__lte: 'number__lte_example', # String | number__lte
number__range: 'number__range_example', # String | number__range
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
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 repository versions
result = api_instance.list(rpm_rpm_repository_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmVersionsApi->list: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String | ||
| content | String | content | [optional] |
| content__in | String | content__in | [optional] |
| limit | Integer | Number of results to return per page. | [optional] |
| number | String | number | [optional] |
| number__gt | String | number__gt | [optional] |
| number__gte | String | number__gte | [optional] |
| number__lt | String | number__lt | [optional] |
| number__lte | String | number__lte | [optional] |
| number__range | String | number__range | [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] |
| 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
read
RepositoryVersionResponse read(rpm_rpm_repository_version_href, opts)
Inspect a repository version
RpmRepositoryVersion represents a single rpm repository version.
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::RepositoriesRpmVersionsApi.new
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_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 repository version
result = api_instance.read(rpm_rpm_repository_version_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmVersionsApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_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
repair
AsyncOperationResponse repair(rpm_rpm_repository_version_href, repository_version)
Trigger an asynchronous task to repair a repositroy version.
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::RepositoriesRpmVersionsApi.new
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_href_example' # String |
repository_version = PulpRpmClient::RepositoryVersion.new # RepositoryVersion |
begin
result = api_instance.repair(rpm_rpm_repository_version_href, repository_version)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmVersionsApi->repair: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_href | String | ||
| repository_version | RepositoryVersion |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json