PulpRpmClient::ContentPackagegroupsApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| delete | DELETE rpm_package_group_href | Delete a package group |
| list | GET /pulp/api/v3/content/rpm/packagegroups/ | List package groups |
| read | GET rpm_package_group_href | Inspect a package group |
delete
delete(rpm_package_group_href)
Delete a package group
PackageGroup ViewSet.
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::ContentPackagegroupsApi.new
rpm_package_group_href = 'rpm_package_group_href_example' # String |
begin
#Delete a package group
api_instance.delete(rpm_package_group_href)
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentPackagegroupsApi->delete: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_group_href | String |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
list
InlineResponse2006 list(opts)
List package groups
PackageGroup ViewSet.
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::ContentPackagegroupsApi.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.
repository_version: 'repository_version_example', # String | repository_version
repository_version_added: 'repository_version_added_example', # String | repository_version_added
repository_version_removed: 'repository_version_removed_example', # String | repository_version_removed
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 package groups
result = api_instance.list(opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentPackagegroupsApi->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] |
| repository_version | String | repository_version | [optional] |
| repository_version_added | String | repository_version_added | [optional] |
| repository_version_removed | String | repository_version_removed | [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
RpmPackageGroupResponse read(rpm_package_group_href, opts)
Inspect a package group
PackageGroup ViewSet.
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::ContentPackagegroupsApi.new
rpm_package_group_href = 'rpm_package_group_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 package group
result = api_instance.read(rpm_package_group_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentPackagegroupsApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_group_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