PulpRpmClient::RemotesRpmApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| create | POST /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote |
| delete | DELETE rpm_rpm_remote_href | Delete a rpm remote |
| list | GET /pulp/api/v3/remotes/rpm/rpm/ | List rpm remotes |
| partial_update | PATCH rpm_rpm_remote_href | Update a rpm remote |
| read | GET rpm_rpm_remote_href | Inspect a rpm remote |
| update | PUT rpm_rpm_remote_href | Update a rpm remote |
create
RpmRpmRemoteResponse create(rpm_rpm_remote)
Create a rpm remote
A ViewSet for RpmRemote.
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::RemotesRpmApi.new
rpm_rpm_remote = PulpRpmClient::RpmRpmRemote.new # RpmRpmRemote |
begin
#Create a rpm remote
result = api_instance.create(rpm_rpm_remote)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->create: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote | RpmRpmRemote |
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_remote_href)
Delete a rpm remote
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::RemotesRpmApi.new
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
begin
#Delete a rpm remote
result = api_instance.delete(rpm_rpm_remote_href)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->delete: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
list
InlineResponse20012 list(opts)
List rpm remotes
A ViewSet for RpmRemote.
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::RemotesRpmApi.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.
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | pulp_last_updated__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 rpm remotes
result = api_instance.list(opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->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] |
| pulp_last_updated | String | pulp_last_updated | [optional] |
| pulp_last_updated__gt | String | pulp_last_updated__gt | [optional] |
| pulp_last_updated__gte | String | pulp_last_updated__gte | [optional] |
| pulp_last_updated__lt | String | pulp_last_updated__lt | [optional] |
| pulp_last_updated__lte | String | pulp_last_updated__lte | [optional] |
| pulp_last_updated__range | String | pulp_last_updated__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
partial_update
AsyncOperationResponse partial_update(rpm_rpm_remote_href, patchedrpm_rpm_remote)
Update a rpm remote
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::RemotesRpmApi.new
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
patchedrpm_rpm_remote = PulpRpmClient::PatchedrpmRpmRemote.new # PatchedrpmRpmRemote |
begin
#Update a rpm remote
result = api_instance.partial_update(rpm_rpm_remote_href, patchedrpm_rpm_remote)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->partial_update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | String | ||
| patchedrpm_rpm_remote | PatchedrpmRpmRemote |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
read
RpmRpmRemoteResponse read(rpm_rpm_remote_href, opts)
Inspect a rpm remote
A ViewSet for RpmRemote.
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::RemotesRpmApi.new
rpm_rpm_remote_href = 'rpm_rpm_remote_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 remote
result = api_instance.read(rpm_rpm_remote_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_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_remote_href, rpm_rpm_remote)
Update a rpm remote
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::RemotesRpmApi.new
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
rpm_rpm_remote = PulpRpmClient::RpmRpmRemote.new # RpmRpmRemote |
begin
#Update a rpm remote
result = api_instance.update(rpm_rpm_remote_href, rpm_rpm_remote)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling RemotesRpmApi->update: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | String | ||
| rpm_rpm_remote | RpmRpmRemote |
Return type
Authorization
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json