PulpRpmClient::RepositoriesRpmApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| create | POST /pulp/api/v3/repositories/rpm/rpm/ | Create a rpm repository |
| delete | DELETE rpm_rpm_repository_href | Delete a rpm repository |
| list | GET /pulp/api/v3/repositories/rpm/rpm/ | List rpm repositorys |
| modify | POST rpm_rpm_repository_hrefmodify/ | Modify Repository Content |
| partial_update | PATCH rpm_rpm_repository_href | Update a rpm repository |
| read | GET rpm_rpm_repository_href | Inspect a rpm repository |
| sync | POST rpm_rpm_repository_hrefsync/ | Sync from remote |
| update | PUT rpm_rpm_repository_href | Update a rpm repository |
create
RpmRpmRepositoryResponse create(rpm_rpm_repository)
Create a rpm repository
A ViewSet for RpmRepository.
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::RepositoriesRpmApi.new
rpm_rpm_repository = PulpRpmClient::RpmRpmRepository.new # RpmRpmRepository |
begin
#Create a rpm repository
result = api_instance.create(rpm_rpm_repository)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->create: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository | RpmRpmRepository |
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_repository_href)
Delete a rpm repository
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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
begin
#Delete a rpm repository
result = api_instance.delete(rpm_rpm_repository_href)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->delete: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
list
InlineResponse20013 list(opts)
List rpm repositorys
A ViewSet for RpmRepository.
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::RepositoriesRpmApi.new
opts = {
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 repositorys
result = api_instance.list(opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->list: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| 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
modify
AsyncOperationResponse modify(rpm_rpm_repository_href, repository_add_remove_content)
Modify Repository Content
Trigger an asynchronous task to create a new 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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
repository_add_remove_content = PulpRpmClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
begin
#Modify Repository Content
result = api_instance.modify(rpm_rpm_repository_href, repository_add_remove_content)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->modify: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String | ||
| repository_add_remove_content | RepositoryAddRemoveContent |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
partial_update
AsyncOperationResponse partial_update(rpm_rpm_repository_href, patchedrpm_rpm_repository)
Update a rpm repository
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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
patchedrpm_rpm_repository = PulpRpmClient::PatchedrpmRpmRepository.new # PatchedrpmRpmRepository |
begin
#Update a rpm repository
result = api_instance.partial_update(rpm_rpm_repository_href, patchedrpm_rpm_repository)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->partial_update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String | ||
| patchedrpm_rpm_repository | PatchedrpmRpmRepository |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
read
RpmRpmRepositoryResponse read(rpm_rpm_repository_href, opts)
Inspect a rpm repository
A ViewSet for RpmRepository.
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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_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 repository
result = api_instance.read(rpm_rpm_repository_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_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
sync
AsyncOperationResponse sync(rpm_rpm_repository_href, rpm_repository_sync_url)
Sync from remote
Trigger an asynchronous task to sync RPM content.
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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
rpm_repository_sync_url = PulpRpmClient::RpmRepositorySyncURL.new # RpmRepositorySyncURL |
begin
#Sync from remote
result = api_instance.sync(rpm_rpm_repository_href, rpm_repository_sync_url)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->sync: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String | ||
| rpm_repository_sync_url | RpmRepositorySyncURL |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
update
AsyncOperationResponse update(rpm_rpm_repository_href, rpm_rpm_repository)
Update a rpm repository
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::RepositoriesRpmApi.new
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
rpm_rpm_repository = PulpRpmClient::RpmRpmRepository.new # RpmRpmRepository |
begin
#Update a rpm repository
result = api_instance.update(rpm_rpm_repository_href, rpm_rpm_repository)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RepositoriesRpmApi->update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | String | ||
| rpm_rpm_repository | RpmRpmRepository |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json