PulpRpmClient::ContentModulemdDefaultsApi
All URIs are relative to http://pulp
| Method | HTTP request | Description |
|---|---|---|
| create | POST /pulp/api/v3/content/rpm/modulemd_defaults/ | Create a modulemd defaults |
| list | GET /pulp/api/v3/content/rpm/modulemd_defaults/ | List modulemd defaultss |
| read | GET rpm_modulemd_defaults_href | Inspect a modulemd defaults |
create
AsyncOperationResponse create(relative_path, _module, stream, profiles, opts)
Create a modulemd defaults
Trigger an asynchronous task to create content,optionally create 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::ContentModulemdDefaultsApi.new
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
_module = '_module_example' # String | Modulemd name.
stream = 'stream_example' # String | Modulemd default stream.
profiles = nil # Object | Default profiles for modulemd streams.
opts = {
artifact: 'artifact_example', # String | Artifact file representing the physical content
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
}
begin
#Create a modulemd defaults
result = api_instance.create(relative_path, _module, stream, profiles, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentModulemdDefaultsApi->create: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| relative_path | String | Path where the artifact is located relative to distributions base_path | |
| _module | String | Modulemd name. | |
| stream | String | Modulemd default stream. | |
| profiles | Object | Default profiles for modulemd streams. | |
| artifact | String | Artifact file representing the physical content | [optional] |
| file | File | An uploaded file that may be turned into the artifact of the content unit. | [optional] |
| repository | String | A URI of a repository the new content unit should be associated with. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
list
InlineResponse2002 list(opts)
List modulemd defaultss
ViewSet for Modulemd.
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::ContentModulemdDefaultsApi.new
opts = {
limit: 56, # Integer | Number of results to return per page.
_module: '_module_example', # String | module
module__in: 'module__in_example', # String | module__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.
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
sha256: 'sha256_example', # String | sha256
stream: 'stream_example', # String | stream
stream__in: 'stream__in_example', # String | stream__in
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 modulemd defaultss
result = api_instance.list(opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentModulemdDefaultsApi->list: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | Number of results to return per page. | [optional] |
| _module | String | module | [optional] |
| module__in | String | module__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] |
| repository_version | String | repository_version | [optional] |
| repository_version_added | String | repository_version_added | [optional] |
| repository_version_removed | String | repository_version_removed | [optional] |
| sha256 | String | sha256 | [optional] |
| stream | String | stream | [optional] |
| stream__in | String | stream__in | [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
RpmModulemdDefaultsResponse read(rpm_modulemd_defaults_href, opts)
Inspect a modulemd defaults
ViewSet for Modulemd.
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::ContentModulemdDefaultsApi.new
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_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 modulemd defaults
result = api_instance.read(rpm_modulemd_defaults_href, opts)
p result
rescue PulpRpmClient::ApiError => e
puts "Exception when calling ContentModulemdDefaultsApi->read: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_defaults_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