Pulp 3 API
Project description
pulpcore.client.pulp_rpm.AcsRpmApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_rpm_alternate_content_source_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/acs/rpm/rpm/ | Create a rpm alternate content source |
| delete | DELETE {rpm_rpm_alternate_content_source_href} | Delete a rpm alternate content source |
| list | GET /api/pulp/{pulp_domain}/api/v3/acs/rpm/rpm/ | List rpm alternate content sources |
| list_roles | GET {rpm_rpm_alternate_content_source_href}list_roles/ | List roles |
| my_permissions | GET {rpm_rpm_alternate_content_source_href}my_permissions/ | List user permissions |
| partial_update | PATCH {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source |
| read | GET {rpm_rpm_alternate_content_source_href} | Inspect a rpm alternate content source |
| refresh | POST {rpm_rpm_alternate_content_source_href}refresh/ | |
| remove_role | POST {rpm_rpm_alternate_content_source_href}remove_role/ | Remove a role |
| update | PUT {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source |
add_role
NestedRoleResponse add_role(rpm_rpm_alternate_content_source_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_rpm_alternate_content_source_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
RpmRpmAlternateContentSourceResponse create(pulp_domain, rpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
Create a rpm alternate content source
ViewSet for ACS.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source import RpmRpmAlternateContentSource
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source_response import RpmRpmAlternateContentSourceResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_rpm_alternate_content_source = pulpcore.client.pulp_rpm.RpmRpmAlternateContentSource() # RpmRpmAlternateContentSource |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a rpm alternate content source
api_response = api_instance.create(pulp_domain, rpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_rpm_alternate_content_source | RpmRpmAlternateContentSource | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
RpmRpmAlternateContentSourceResponse
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
AsyncOperationResponse delete(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics)
Delete a rpm alternate content source
Trigger an asynchronous delete ACS task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a rpm alternate content source
api_response = api_instance.delete(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmRpmAlternateContentSourceResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, q=q, fields=fields, exclude_fields=exclude_fields)
List rpm alternate content sources
ViewSet for ACS.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_alternate_content_source_response_list import PaginatedrpmRpmAlternateContentSourceResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List rpm alternate content sources
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, q=q, fields=fields, exclude_fields=exclude_fields)
print("The response of AcsRpmApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__icontains | str | Filter results where name contains value | [optional] |
| name__iexact | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__iregex | str | Filter results where name matches regex value | [optional] |
| name__istartswith | str | Filter results where name starts with value | [optional] |
| name__regex | str | Filter results where name matches regex value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRpmAlternateContentSourceResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of AcsRpmApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of AcsRpmApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
partial_update
RpmRpmAlternateContentSourceResponse partial_update(rpm_rpm_alternate_content_source_href, patchedrpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
Update a rpm alternate content source
Update the entity partially and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_alternate_content_source import PatchedrpmRpmAlternateContentSource
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source_response import RpmRpmAlternateContentSourceResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
patchedrpm_rpm_alternate_content_source = pulpcore.client.pulp_rpm.PatchedrpmRpmAlternateContentSource() # PatchedrpmRpmAlternateContentSource |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm alternate content source
api_response = api_instance.partial_update(rpm_rpm_alternate_content_source_href, patchedrpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->partial_update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| patchedrpm_rpm_alternate_content_source | PatchedrpmRpmAlternateContentSource | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
RpmRpmAlternateContentSourceResponse
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRpmAlternateContentSourceResponse read(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a rpm alternate content source
ViewSet for ACS.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source_response import RpmRpmAlternateContentSourceResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a rpm alternate content source
api_response = api_instance.read(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of AcsRpmApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
RpmRpmAlternateContentSourceResponse
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
refresh
TaskGroupOperationResponse refresh(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics)
Trigger an asynchronous task to create Alternate Content Source content.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.task_group_operation_response import TaskGroupOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
api_response = api_instance.refresh(rpm_rpm_alternate_content_source_href, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->refresh:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->refresh: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_rpm_alternate_content_source_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_rpm_alternate_content_source_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update
RpmRpmAlternateContentSourceResponse update(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
Update a rpm alternate content source
Update the entity and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source import RpmRpmAlternateContentSource
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source_response import RpmRpmAlternateContentSourceResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str |
rpm_rpm_alternate_content_source = pulpcore.client.pulp_rpm.RpmRpmAlternateContentSource() # RpmRpmAlternateContentSource |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm alternate content source
api_response = api_instance.update(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source, x_task_diagnostics=x_task_diagnostics)
print("The response of AcsRpmApi->update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AcsRpmApi->update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_alternate_content_source_href | str | ||
| rpm_rpm_alternate_content_source | RpmRpmAlternateContentSource | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
RpmRpmAlternateContentSourceResponse
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddonResponse
Addon serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| addon_id | str | Addon id. | |
| uid | str | Addon uid. | |
| name | str | Addon name. | |
| type | str | Addon type. | |
| packages | str | Relative path to directory with binary RPMs. |
Example
from pulpcore.client.pulp_rpm.models.addon_response import AddonResponse
# TODO update the JSON string below
json = "{}"
# create an instance of AddonResponse from a JSON string
addon_response_instance = AddonResponse.from_json(json)
# print the JSON string representation of the object
print(AddonResponse.to_json())
# convert the object into a dict
addon_response_dict = addon_response_instance.to_dict()
# create an instance of AddonResponse from a dict
addon_response_from_dict = AddonResponse.from_dict(addon_response_dict)
[Back to Model list] [Back to API list] [Back to README]
ArtifactResponse
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ref_name attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| file | str | The stored file. | |
| size | int | The size of the file in bytes. | [optional] |
| md5 | str | The MD5 checksum of the file if available. | [optional] |
| sha1 | str | The SHA-1 checksum of the file if available. | [optional] |
| sha224 | str | The SHA-224 checksum of the file if available. | [optional] |
| sha256 | str | The SHA-256 checksum of the file if available. | [optional] |
| sha384 | str | The SHA-384 checksum of the file if available. | [optional] |
| sha512 | str | The SHA-512 checksum of the file if available. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.artifact_response import ArtifactResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ArtifactResponse from a JSON string
artifact_response_instance = ArtifactResponse.from_json(json)
# print the JSON string representation of the object
print(ArtifactResponse.to_json())
# convert the object into a dict
artifact_response_dict = artifact_response_instance.to_dict()
# create an instance of ArtifactResponse from a dict
artifact_response_from_dict = ArtifactResponse.from_dict(artifact_response_dict)
[Back to Model list] [Back to API list] [Back to README]
AsyncOperationResponse
Serializer for asynchronous operations.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| task | str | The href of the task. |
Example
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
# TODO update the JSON string below
json = "{}"
# create an instance of AsyncOperationResponse from a JSON string
async_operation_response_instance = AsyncOperationResponse.from_json(json)
# print the JSON string representation of the object
print(AsyncOperationResponse.to_json())
# convert the object into a dict
async_operation_response_dict = async_operation_response_instance.to_dict()
# create an instance of AsyncOperationResponse from a dict
async_operation_response_from_dict = AsyncOperationResponse.from_dict(async_operation_response_dict)
[Back to Model list] [Back to API list] [Back to README]
ChecksumResponse
Checksum serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| path | str | File path. | |
| checksum | str | Checksum for the file. |
Example
from pulpcore.client.pulp_rpm.models.checksum_response import ChecksumResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ChecksumResponse from a JSON string
checksum_response_instance = ChecksumResponse.from_json(json)
# print the JSON string representation of the object
print(ChecksumResponse.to_json())
# convert the object into a dict
checksum_response_dict = checksum_response_instance.to_dict()
# create an instance of ChecksumResponse from a dict
checksum_response_from_dict = ChecksumResponse.from_dict(checksum_response_dict)
[Back to Model list] [Back to API list] [Back to README]
CompressionTypeEnum
zstd- zstd *gz- gz
Enum
-
ZSTD(value:'zstd') -
GZ(value:'gz')
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.ContentAdvisoriesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/advisories/ | Create an update record |
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/advisories/ | List update records |
| read | GET {rpm_update_record_href} | Inspect an update record |
| set_label | POST {rpm_update_record_href}set_label/ | Set a label |
| unset_label | POST {rpm_update_record_href}unset_label/ | Unset a label |
create
AsyncOperationResponse create(pulp_domain, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, file=file, upload=upload, file_url=file_url)
Create an update record
Trigger an asynchronous task to create content,optionally create new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentAdvisoriesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
try:
# Create an update record
api_response = api_instance.create(pulp_domain, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, file=file, upload=upload, file_url=file_url)
print("The response of ContentAdvisoriesApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentAdvisoriesApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| repository | str | A URI of a repository the new content unit should be associated with. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| file | bytearray | An uploaded file that may be turned into the content unit. | [optional] |
| upload | str | An uncommitted upload that may be turned into the content unit. | [optional] |
| file_url | str | A url that Pulp can download and turn into the content unit. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmUpdateRecordResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, id=id, id__in=id__in, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, severity=severity, severity__in=severity__in, severity__ne=severity__ne, status=status, status__in=status__in, status__ne=status__ne, type=type, type__in=type__in, type__ne=type__ne, fields=fields, exclude_fields=exclude_fields)
List update records
A ViewSet for UpdateRecord. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_update_record_response_list import PaginatedrpmUpdateRecordResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentAdvisoriesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
id = 'id_example' # str | Filter results where id matches value (optional)
id__in = ['id__in_example'] # List[str] | Filter results where id is in a comma-separated list of values (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
severity = 'severity_example' # str | Filter results where severity matches value (optional)
severity__in = ['severity__in_example'] # List[str] | Filter results where severity is in a comma-separated list of values (optional)
severity__ne = 'severity__ne_example' # str | Filter results where severity not equal to value (optional)
status = 'status_example' # str | Filter results where status matches value (optional)
status__in = ['status__in_example'] # List[str] | Filter results where status is in a comma-separated list of values (optional)
status__ne = 'status__ne_example' # str | Filter results where status not equal to value (optional)
type = 'type_example' # str | Filter results where type matches value (optional)
type__in = ['type__in_example'] # List[str] | Filter results where type is in a comma-separated list of values (optional)
type__ne = 'type__ne_example' # str | Filter results where type not equal to value (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List update records
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, id=id, id__in=id__in, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, severity=severity, severity__in=severity__in, severity__ne=severity__ne, status=status, status__in=status__in, status__ne=status__ne, type=type, type__in=type__in, type__ne=type__ne, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentAdvisoriesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentAdvisoriesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| id | str | Filter results where id matches value | [optional] |
| id__in | List[str] | Filter results where id is in a comma-separated list of values | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| severity | str | Filter results where severity matches value | [optional] |
| severity__in | List[str] | Filter results where severity is in a comma-separated list of values | [optional] |
| severity__ne | str | Filter results where severity not equal to value | [optional] |
| status | str | Filter results where status matches value | [optional] |
| status__in | List[str] | Filter results where status is in a comma-separated list of values | [optional] |
| status__ne | str | Filter results where status not equal to value | [optional] |
| type | str | Filter results where type matches value | [optional] |
| type__in | List[str] | Filter results where type is in a comma-separated list of values | [optional] |
| type__ne | str | Filter results where type not equal to value | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmUpdateRecordResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmUpdateRecordResponse read(rpm_update_record_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect an update record
A ViewSet for UpdateRecord. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_update_record_response import RpmUpdateRecordResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentAdvisoriesApi(api_client)
rpm_update_record_href = 'rpm_update_record_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect an update record
api_response = api_instance.read(rpm_update_record_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentAdvisoriesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentAdvisoriesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_update_record_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_update_record_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentAdvisoriesApi(api_client)
rpm_update_record_href = 'rpm_update_record_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_update_record_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentAdvisoriesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentAdvisoriesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_update_record_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_update_record_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentAdvisoriesApi(api_client)
rpm_update_record_href = 'rpm_update_record_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_update_record_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentAdvisoriesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentAdvisoriesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_update_record_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentDistributionTreesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/distribution_trees/ | List distribution trees |
| read | GET {rpm_distribution_tree_href} | Inspect a distribution tree |
| set_label | POST {rpm_distribution_tree_href}set_label/ | Set a label |
| unset_label | POST {rpm_distribution_tree_href}unset_label/ | Unset a label |
list
PaginatedrpmDistributionTreeResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List distribution trees
Distribution Tree Viewset.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_distribution_tree_response_list import PaginatedrpmDistributionTreeResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentDistributionTreesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List distribution trees
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentDistributionTreesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentDistributionTreesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmDistributionTreeResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmDistributionTreeResponse read(rpm_distribution_tree_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a distribution tree
Distribution Tree Viewset.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_distribution_tree_response import RpmDistributionTreeResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentDistributionTreesApi(api_client)
rpm_distribution_tree_href = 'rpm_distribution_tree_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a distribution tree
api_response = api_instance.read(rpm_distribution_tree_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentDistributionTreesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentDistributionTreesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_distribution_tree_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_distribution_tree_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentDistributionTreesApi(api_client)
rpm_distribution_tree_href = 'rpm_distribution_tree_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_distribution_tree_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentDistributionTreesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentDistributionTreesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_distribution_tree_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_distribution_tree_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentDistributionTreesApi(api_client)
rpm_distribution_tree_href = 'rpm_distribution_tree_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_distribution_tree_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentDistributionTreesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentDistributionTreesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_distribution_tree_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemd_defaults/ | Create a modulemd defaults |
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemd_defaults/ | List modulemd defaultss |
| read | GET {rpm_modulemd_defaults_href} | Inspect a modulemd defaults |
| set_label | POST {rpm_modulemd_defaults_href}set_label/ | Set a label |
| unset_label | POST {rpm_modulemd_defaults_href}unset_label/ | Unset a label |
create
AsyncOperationResponse create(pulp_domain, rpm_modulemd_defaults, x_task_diagnostics=x_task_diagnostics)
Create a modulemd defaults
Trigger an asynchronous task to create content,optionally create new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_modulemd_defaults import RpmModulemdDefaults
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_modulemd_defaults = pulpcore.client.pulp_rpm.RpmModulemdDefaults() # RpmModulemdDefaults |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a modulemd defaults
api_response = api_instance.create(pulp_domain, rpm_modulemd_defaults, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdDefaultsApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdDefaultsApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_modulemd_defaults | RpmModulemdDefaults | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmModulemdDefaultsResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, module=module, module__in=module__in, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, stream=stream, stream__in=stream__in, fields=fields, exclude_fields=exclude_fields)
List modulemd defaultss
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_defaults_response_list import PaginatedrpmModulemdDefaultsResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
module = 'module_example' # str | Filter results where module matches value (optional)
module__in = ['module__in_example'] # List[str] | Filter results where module is in a comma-separated list of values (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
sha256 = 'sha256_example' # str | (optional)
stream = 'stream_example' # str | Filter results where stream matches value (optional)
stream__in = ['stream__in_example'] # List[str] | Filter results where stream is in a comma-separated list of values (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List modulemd defaultss
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, module=module, module__in=module__in, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, stream=stream, stream__in=stream__in, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdDefaultsApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdDefaultsApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| module | str | Filter results where module matches value | [optional] |
| module__in | List[str] | Filter results where module is in a comma-separated list of values | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| sha256 | str | [optional] | |
| stream | str | Filter results where stream matches value | [optional] |
| stream__in | List[str] | Filter results where stream is in a comma-separated list of values | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmModulemdDefaultsResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmModulemdDefaultsResponse read(rpm_modulemd_defaults_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a modulemd defaults
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_modulemd_defaults_response import RpmModulemdDefaultsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi(api_client)
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a modulemd defaults
api_response = api_instance.read(rpm_modulemd_defaults_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdDefaultsApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdDefaultsApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_defaults_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_modulemd_defaults_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi(api_client)
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_modulemd_defaults_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdDefaultsApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdDefaultsApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_defaults_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_modulemd_defaults_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdDefaultsApi(api_client)
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_modulemd_defaults_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdDefaultsApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdDefaultsApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_defaults_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemd_obsoletes/ | Create a modulemd obsolete |
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemd_obsoletes/ | List modulemd obsoletes |
| read | GET {rpm_modulemd_obsolete_href} | Inspect a modulemd obsolete |
| set_label | POST {rpm_modulemd_obsolete_href}set_label/ | Set a label |
| unset_label | POST {rpm_modulemd_obsolete_href}unset_label/ | Unset a label |
create
AsyncOperationResponse create(pulp_domain, rpm_modulemd_obsolete, x_task_diagnostics=x_task_diagnostics)
Create a modulemd obsolete
Trigger an asynchronous task to create content,optionally create new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_modulemd_obsolete import RpmModulemdObsolete
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_modulemd_obsolete = pulpcore.client.pulp_rpm.RpmModulemdObsolete() # RpmModulemdObsolete |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a modulemd obsolete
api_response = api_instance.create(pulp_domain, rpm_modulemd_obsolete, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdObsoletesApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdObsoletesApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_modulemd_obsolete | RpmModulemdObsolete | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmModulemdObsoleteResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List modulemd obsoletes
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_obsolete_response_list import PaginatedrpmModulemdObsoleteResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List modulemd obsoletes
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdObsoletesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdObsoletesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmModulemdObsoleteResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmModulemdObsoleteResponse read(rpm_modulemd_obsolete_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a modulemd obsolete
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_modulemd_obsolete_response import RpmModulemdObsoleteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi(api_client)
rpm_modulemd_obsolete_href = 'rpm_modulemd_obsolete_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a modulemd obsolete
api_response = api_instance.read(rpm_modulemd_obsolete_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdObsoletesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdObsoletesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_obsolete_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_modulemd_obsolete_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi(api_client)
rpm_modulemd_obsolete_href = 'rpm_modulemd_obsolete_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_modulemd_obsolete_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdObsoletesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdObsoletesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_obsolete_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_modulemd_obsolete_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdObsoletesApi(api_client)
rpm_modulemd_obsolete_href = 'rpm_modulemd_obsolete_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_modulemd_obsolete_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdObsoletesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdObsoletesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_obsolete_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentModulemdsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemds/ | Create a modulemd |
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/modulemds/ | List modulemds |
| read | GET {rpm_modulemd_href} | Inspect a modulemd |
| set_label | POST {rpm_modulemd_href}set_label/ | Set a label |
| unset_label | POST {rpm_modulemd_href}unset_label/ | Unset a label |
create
AsyncOperationResponse create(pulp_domain, rpm_modulemd, x_task_diagnostics=x_task_diagnostics)
Create a modulemd
Trigger an asynchronous task to create content,optionally create new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_modulemd import RpmModulemd
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_modulemd = pulpcore.client.pulp_rpm.RpmModulemd() # RpmModulemd |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a modulemd
api_response = api_instance.create(pulp_domain, rpm_modulemd, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdsApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdsApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_modulemd | RpmModulemd | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmModulemdResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, arch=arch, arch__in=arch__in, context=context, context__in=context__in, limit=limit, name=name, name__in=name__in, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, stream=stream, stream__in=stream__in, version=version, version__in=version__in, fields=fields, exclude_fields=exclude_fields)
List modulemds
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_response_list import PaginatedrpmModulemdResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
arch = 'arch_example' # str | Filter results where arch matches value (optional)
arch__in = ['arch__in_example'] # List[str] | Filter results where arch is in a comma-separated list of values (optional)
context = 'context_example' # str | Filter results where context matches value (optional)
context__in = ['context__in_example'] # List[str] | Filter results where context is in a comma-separated list of values (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
sha256 = 'sha256_example' # str | (optional)
stream = 'stream_example' # str | Filter results where stream matches value (optional)
stream__in = ['stream__in_example'] # List[str] | Filter results where stream is in a comma-separated list of values (optional)
version = 'version_example' # str | Filter results where version matches value (optional)
version__in = ['version__in_example'] # List[str] | Filter results where version is in a comma-separated list of values (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List modulemds
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, arch=arch, arch__in=arch__in, context=context, context__in=context__in, limit=limit, name=name, name__in=name__in, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, stream=stream, stream__in=stream__in, version=version, version__in=version__in, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdsApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdsApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| arch | str | Filter results where arch matches value | [optional] |
| arch__in | List[str] | Filter results where arch is in a comma-separated list of values | [optional] |
| context | str | Filter results where context matches value | [optional] |
| context__in | List[str] | Filter results where context is in a comma-separated list of values | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| sha256 | str | [optional] | |
| stream | str | Filter results where stream matches value | [optional] |
| stream__in | List[str] | Filter results where stream is in a comma-separated list of values | [optional] |
| version | str | Filter results where version matches value | [optional] |
| version__in | List[str] | Filter results where version is in a comma-separated list of values | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmModulemdResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmModulemdResponse read(rpm_modulemd_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a modulemd
ViewSet for Modulemd.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_modulemd_response import RpmModulemdResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdsApi(api_client)
rpm_modulemd_href = 'rpm_modulemd_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a modulemd
api_response = api_instance.read(rpm_modulemd_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentModulemdsApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdsApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_modulemd_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdsApi(api_client)
rpm_modulemd_href = 'rpm_modulemd_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_modulemd_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdsApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdsApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_modulemd_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentModulemdsApi(api_client)
rpm_modulemd_href = 'rpm_modulemd_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_modulemd_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentModulemdsApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentModulemdsApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_modulemd_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentPackagecategoriesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/packagecategories/ | List package categorys |
| read | GET {rpm_package_category_href} | Inspect a package category |
| set_label | POST {rpm_package_category_href}set_label/ | Set a label |
| unset_label | POST {rpm_package_category_href}unset_label/ | Unset a label |
list
PaginatedrpmPackageCategoryResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List package categorys
PackageCategory ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_category_response_list import PaginatedrpmPackageCategoryResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagecategoriesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List package categorys
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagecategoriesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagecategoriesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmPackageCategoryResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmPackageCategoryResponse read(rpm_package_category_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a package category
PackageCategory ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_category_response import RpmPackageCategoryResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagecategoriesApi(api_client)
rpm_package_category_href = 'rpm_package_category_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a package category
api_response = api_instance.read(rpm_package_category_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagecategoriesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagecategoriesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_category_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_package_category_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagecategoriesApi(api_client)
rpm_package_category_href = 'rpm_package_category_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_package_category_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagecategoriesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagecategoriesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_category_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_package_category_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagecategoriesApi(api_client)
rpm_package_category_href = 'rpm_package_category_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_package_category_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagecategoriesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagecategoriesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_category_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentPackageenvironmentsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/packageenvironments/ | List package environments |
| read | GET {rpm_package_environment_href} | Inspect a package environment |
| set_label | POST {rpm_package_environment_href}set_label/ | Set a label |
| unset_label | POST {rpm_package_environment_href}unset_label/ | Unset a label |
list
PaginatedrpmPackageEnvironmentResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List package environments
PackageEnvironment ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_environment_response_list import PaginatedrpmPackageEnvironmentResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackageenvironmentsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List package environments
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackageenvironmentsApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackageenvironmentsApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmPackageEnvironmentResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmPackageEnvironmentResponse read(rpm_package_environment_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a package environment
PackageEnvironment ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_environment_response import RpmPackageEnvironmentResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackageenvironmentsApi(api_client)
rpm_package_environment_href = 'rpm_package_environment_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a package environment
api_response = api_instance.read(rpm_package_environment_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackageenvironmentsApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackageenvironmentsApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_environment_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_package_environment_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackageenvironmentsApi(api_client)
rpm_package_environment_href = 'rpm_package_environment_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_package_environment_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackageenvironmentsApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackageenvironmentsApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_environment_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_package_environment_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackageenvironmentsApi(api_client)
rpm_package_environment_href = 'rpm_package_environment_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_package_environment_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackageenvironmentsApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackageenvironmentsApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_environment_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentPackagegroupsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/packagegroups/ | List package groups |
| read | GET {rpm_package_group_href} | Inspect a package group |
| set_label | POST {rpm_package_group_href}set_label/ | Set a label |
| unset_label | POST {rpm_package_group_href}unset_label/ | Unset a label |
list
PaginatedrpmPackageGroupResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List package groups
PackageGroup ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_group_response_list import PaginatedrpmPackageGroupResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagegroupsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List package groups
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagegroupsApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagegroupsApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmPackageGroupResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmPackageGroupResponse read(rpm_package_group_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a package group
PackageGroup ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_group_response import RpmPackageGroupResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagegroupsApi(api_client)
rpm_package_group_href = 'rpm_package_group_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a package group
api_response = api_instance.read(rpm_package_group_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagegroupsApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagegroupsApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_group_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_package_group_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagegroupsApi(api_client)
rpm_package_group_href = 'rpm_package_group_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_package_group_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagegroupsApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagegroupsApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_group_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_package_group_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagegroupsApi(api_client)
rpm_package_group_href = 'rpm_package_group_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_package_group_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagegroupsApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagegroupsApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_group_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentPackagelangpacksApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/packagelangpacks/ | List package langpackss |
| read | GET {rpm_package_langpacks_href} | Inspect a package langpacks |
| set_label | POST {rpm_package_langpacks_href}set_label/ | Set a label |
| unset_label | POST {rpm_package_langpacks_href}unset_label/ | Unset a label |
list
PaginatedrpmPackageLangpacksResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List package langpackss
PackageLangpacks ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_langpacks_response_list import PaginatedrpmPackageLangpacksResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagelangpacksApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List package langpackss
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagelangpacksApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagelangpacksApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmPackageLangpacksResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmPackageLangpacksResponse read(rpm_package_langpacks_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a package langpacks
PackageLangpacks ViewSet.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_langpacks_response import RpmPackageLangpacksResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagelangpacksApi(api_client)
rpm_package_langpacks_href = 'rpm_package_langpacks_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a package langpacks
api_response = api_instance.read(rpm_package_langpacks_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagelangpacksApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagelangpacksApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_langpacks_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_package_langpacks_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagelangpacksApi(api_client)
rpm_package_langpacks_href = 'rpm_package_langpacks_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_package_langpacks_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagelangpacksApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagelangpacksApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_langpacks_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_package_langpacks_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagelangpacksApi(api_client)
rpm_package_langpacks_href = 'rpm_package_langpacks_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_package_langpacks_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagelangpacksApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagelangpacksApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_langpacks_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentPackagesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/packages/ | Create a package |
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/packages/ | List packages |
| read | GET {rpm_package_href} | Inspect a package |
| set_label | POST {rpm_package_href}set_label/ | Set a label |
| unset_label | POST {rpm_package_href}unset_label/ | Unset a label |
| upload | POST /api/pulp/{pulp_domain}/api/v3/content/rpm/packages/upload/ | Upload an RPM package synchronously. |
create
AsyncOperationResponse create(pulp_domain, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, relative_path=relative_path, file=file, upload=upload, file_url=file_url)
Create a package
Trigger an asynchronous task to create an RPM package,optionally create new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path (optional)
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
try:
# Create a package
api_response = api_instance.create(pulp_domain, x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, relative_path=relative_path, file=file, upload=upload, file_url=file_url)
print("The response of ContentPackagesApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| repository | str | A URI of a repository the new content unit should be associated with. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| artifact | str | Artifact file representing the physical content | [optional] |
| relative_path | str | Path where the artifact is located relative to distributions base_path | [optional] |
| file | bytearray | An uploaded file that may be turned into the content unit. | [optional] |
| upload | str | An uncommitted upload that may be turned into the content unit. | [optional] |
| file_url | str | A url that Pulp can download and turn into the content unit. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmPackageResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, arch=arch, arch__contains=arch__contains, arch__in=arch__in, arch__ne=arch__ne, arch__startswith=arch__startswith, checksum_type=checksum_type, checksum_type__in=checksum_type__in, checksum_type__ne=checksum_type__ne, epoch=epoch, epoch__in=epoch__in, epoch__ne=epoch__ne, filename=filename, limit=limit, name=name, name__contains=name__contains, name__in=name__in, name__ne=name__ne, name__startswith=name__startswith, offset=offset, ordering=ordering, orphaned_for=orphaned_for, pkg_id=pkg_id, pkg_id__in=pkg_id__in, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, release=release, release__contains=release__contains, release__in=release__in, release__ne=release__ne, release__startswith=release__startswith, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, version=version, version__in=version__in, version__ne=version__ne, fields=fields, exclude_fields=exclude_fields)
List packages
A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_response_list import PaginatedrpmPackageResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
arch = 'arch_example' # str | Filter results where arch matches value (optional)
arch__contains = 'arch__contains_example' # str | Filter results where arch contains value (optional)
arch__in = ['arch__in_example'] # List[str] | Filter results where arch is in a comma-separated list of values (optional)
arch__ne = 'arch__ne_example' # str | Filter results where arch not equal to value (optional)
arch__startswith = 'arch__startswith_example' # str | Filter results where arch starts with value (optional)
checksum_type = 'checksum_type_example' # str | Filter results where checksum_type matches value * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 (optional)
checksum_type__in = ['checksum_type__in_example'] # List[str] | Filter results where checksum_type is in a comma-separated list of values (optional)
checksum_type__ne = 'checksum_type__ne_example' # str | Filter results where checksum_type not equal to value (optional)
epoch = 'epoch_example' # str | Filter results where epoch matches value (optional)
epoch__in = ['epoch__in_example'] # List[str] | Filter results where epoch is in a comma-separated list of values (optional)
epoch__ne = 'epoch__ne_example' # str | Filter results where epoch not equal to value (optional)
filename = 'filename_example' # str | (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__ne = 'name__ne_example' # str | Filter results where name not equal to value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
pkg_id = 'pkg_id_example' # str | Filter results where pkgId matches value (optional)
pkg_id__in = ['pkg_id__in_example'] # List[str] | Filter results where pkgId is in a comma-separated list of values (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
release = 'release_example' # str | Filter results where release matches value (optional)
release__contains = 'release__contains_example' # str | Filter results where release contains value (optional)
release__in = ['release__in_example'] # List[str] | Filter results where release is in a comma-separated list of values (optional)
release__ne = 'release__ne_example' # str | Filter results where release not equal to value (optional)
release__startswith = 'release__startswith_example' # str | Filter results where release starts with value (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
sha256 = 'sha256_example' # str | (optional)
version = 'version_example' # str | Filter results where version matches value (optional)
version__in = ['version__in_example'] # List[str] | Filter results where version is in a comma-separated list of values (optional)
version__ne = 'version__ne_example' # str | Filter results where version not equal to value (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List packages
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, arch=arch, arch__contains=arch__contains, arch__in=arch__in, arch__ne=arch__ne, arch__startswith=arch__startswith, checksum_type=checksum_type, checksum_type__in=checksum_type__in, checksum_type__ne=checksum_type__ne, epoch=epoch, epoch__in=epoch__in, epoch__ne=epoch__ne, filename=filename, limit=limit, name=name, name__contains=name__contains, name__in=name__in, name__ne=name__ne, name__startswith=name__startswith, offset=offset, ordering=ordering, orphaned_for=orphaned_for, pkg_id=pkg_id, pkg_id__in=pkg_id__in, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, release=release, release__contains=release__contains, release__in=release__in, release__ne=release__ne, release__startswith=release__startswith, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, sha256=sha256, version=version, version__in=version__in, version__ne=version__ne, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| arch | str | Filter results where arch matches value | [optional] |
| arch__contains | str | Filter results where arch contains value | [optional] |
| arch__in | List[str] | Filter results where arch is in a comma-separated list of values | [optional] |
| arch__ne | str | Filter results where arch not equal to value | [optional] |
| arch__startswith | str | Filter results where arch starts with value | [optional] |
| checksum_type | str | Filter results where checksum_type matches value * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| checksum_type__in | List[str] | Filter results where checksum_type is in a comma-separated list of values | [optional] |
| checksum_type__ne | str | Filter results where checksum_type not equal to value | [optional] |
| epoch | str | Filter results where epoch matches value | [optional] |
| epoch__in | List[str] | Filter results where epoch is in a comma-separated list of values | [optional] |
| epoch__ne | str | Filter results where epoch not equal to value | [optional] |
| filename | str | [optional] | |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__ne | str | Filter results where name not equal to value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| pkg_id | str | Filter results where pkgId matches value | [optional] |
| pkg_id__in | List[str] | Filter results where pkgId is in a comma-separated list of values | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| release | str | Filter results where release matches value | [optional] |
| release__contains | str | Filter results where release contains value | [optional] |
| release__in | List[str] | Filter results where release is in a comma-separated list of values | [optional] |
| release__ne | str | Filter results where release not equal to value | [optional] |
| release__startswith | str | Filter results where release starts with value | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| sha256 | str | [optional] | |
| version | str | Filter results where version matches value | [optional] |
| version__in | List[str] | Filter results where version is in a comma-separated list of values | [optional] |
| version__ne | str | Filter results where version not equal to value | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmPackageResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmPackageResponse read(rpm_package_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a package
A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_response import RpmPackageResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
rpm_package_href = 'rpm_package_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a package
api_response = api_instance.read(rpm_package_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentPackagesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_package_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
rpm_package_href = 'rpm_package_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_package_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_package_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
rpm_package_href = 'rpm_package_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_package_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentPackagesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_package_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
upload
RpmPackageResponse upload(pulp_domain, x_task_diagnostics=x_task_diagnostics, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url)
Upload an RPM package synchronously.
Synchronously upload an RPM package.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_package_response import RpmPackageResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentPackagesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
file = None # bytearray | An uploaded file that may be turned into the content unit. (optional)
upload = 'upload_example' # str | An uncommitted upload that may be turned into the content unit. (optional)
file_url = 'file_url_example' # str | A url that Pulp can download and turn into the content unit. (optional)
try:
# Upload an RPM package synchronously.
api_response = api_instance.upload(pulp_domain, x_task_diagnostics=x_task_diagnostics, pulp_labels=pulp_labels, artifact=artifact, file=file, upload=upload, file_url=file_url)
print("The response of ContentPackagesApi->upload:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentPackagesApi->upload: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| artifact | str | Artifact file representing the physical content | [optional] |
| file | bytearray | An uploaded file that may be turned into the content unit. | [optional] |
| upload | str | An uncommitted upload that may be turned into the content unit. | [optional] |
| file_url | str | A url that Pulp can download and turn into the content unit. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.ContentRepoMetadataFilesApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/pulp/{pulp_domain}/api/v3/content/rpm/repo_metadata_files/ | List repo metadata files |
| read | GET {rpm_repo_metadata_file_href} | Inspect a repo metadata file |
| set_label | POST {rpm_repo_metadata_file_href}set_label/ | Set a label |
| unset_label | POST {rpm_repo_metadata_file_href}unset_label/ | Unset a label |
list
PaginatedrpmRepoMetadataFileResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
List repo metadata files
RepoMetadataFile Viewset.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_repo_metadata_file_response_list import PaginatedrpmRepoMetadataFileResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentRepoMetadataFilesApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) (optional)
orphaned_for = 3.4 # float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_added = 'repository_version_added_example' # str | Repository Version referenced by HREF/PRN (optional)
repository_version_removed = 'repository_version_removed_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List repo metadata files
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, offset=offset, ordering=ordering, orphaned_for=orphaned_for, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository_version=repository_version, repository_version_added=repository_version_added, repository_version_removed=repository_version_removed, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentRepoMetadataFilesApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentRepoMetadataFilesApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| orphaned_for | float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_added | str | Repository Version referenced by HREF/PRN | [optional] |
| repository_version_removed | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRepoMetadataFileResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRepoMetadataFileResponse read(rpm_repo_metadata_file_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a repo metadata file
RepoMetadataFile Viewset.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_repo_metadata_file_response import RpmRepoMetadataFileResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentRepoMetadataFilesApi(api_client)
rpm_repo_metadata_file_href = 'rpm_repo_metadata_file_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a repo metadata file
api_response = api_instance.read(rpm_repo_metadata_file_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of ContentRepoMetadataFilesApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentRepoMetadataFilesApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_repo_metadata_file_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_repo_metadata_file_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentRepoMetadataFilesApi(api_client)
rpm_repo_metadata_file_href = 'rpm_repo_metadata_file_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_repo_metadata_file_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentRepoMetadataFilesApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentRepoMetadataFilesApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_repo_metadata_file_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_repo_metadata_file_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.ContentRepoMetadataFilesApi(api_client)
rpm_repo_metadata_file_href = 'rpm_repo_metadata_file_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_repo_metadata_file_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of ContentRepoMetadataFilesApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentRepoMetadataFilesApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_repo_metadata_file_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContentSummaryResponse
Serializer for the RepositoryVersion content summary
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| added | Dict[str, object] | ||
| removed | Dict[str, object] | ||
| present | Dict[str, object] |
Example
from pulpcore.client.pulp_rpm.models.content_summary_response import ContentSummaryResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ContentSummaryResponse from a JSON string
content_summary_response_instance = ContentSummaryResponse.from_json(json)
# print the JSON string representation of the object
print(ContentSummaryResponse.to_json())
# convert the object into a dict
content_summary_response_dict = content_summary_response_instance.to_dict()
# create an instance of ContentSummaryResponse from a dict
content_summary_response_from_dict = ContentSummaryResponse.from_dict(content_summary_response_dict)
[Back to Model list] [Back to API list] [Back to README]
Copy
A serializer for Content Copy API.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| config | object | Content to be copied into the given destinations from the given sources. Its a list of dictionaries with the following available fields: ```json [ { "source_repo_version": <RepositoryVersion [pulp_href | prn]>, "dest_repo": <RpmRepository [pulp_href |
| dependency_solving | bool | Also copy dependencies of the content being copied. | [optional] [default to True] |
Example
from pulpcore.client.pulp_rpm.models.copy import Copy
# TODO update the JSON string below
json = "{}"
# create an instance of Copy from a JSON string
copy_instance = Copy.from_json(json)
# print the JSON string representation of the object
print(Copy.to_json())
# convert the object into a dict
copy_dict = copy_instance.to_dict()
# create an instance of Copy from a dict
copy_from_dict = Copy.from_dict(copy_dict)
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.DistributionsRpmApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_rpm_distribution_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/distributions/rpm/rpm/ | Create a rpm distribution |
| delete | DELETE {rpm_rpm_distribution_href} | Delete a rpm distribution |
| list | GET /api/pulp/{pulp_domain}/api/v3/distributions/rpm/rpm/ | List rpm distributions |
| list_roles | GET {rpm_rpm_distribution_href}list_roles/ | List roles |
| my_permissions | GET {rpm_rpm_distribution_href}my_permissions/ | List user permissions |
| partial_update | PATCH {rpm_rpm_distribution_href} | Update a rpm distribution |
| read | GET {rpm_rpm_distribution_href} | Inspect a rpm distribution |
| remove_role | POST {rpm_rpm_distribution_href}remove_role/ | Remove a role |
| set_label | POST {rpm_rpm_distribution_href}set_label/ | Set a label |
| unset_label | POST {rpm_rpm_distribution_href}unset_label/ | Unset a label |
| update | PUT {rpm_rpm_distribution_href} | Update a rpm distribution |
add_role
NestedRoleResponse add_role(rpm_rpm_distribution_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_rpm_distribution_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
AsyncOperationResponse create(pulp_domain, rpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
Create a rpm distribution
Trigger an asynchronous create task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution import RpmRpmDistribution
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_rpm_distribution = pulpcore.client.pulp_rpm.RpmRpmDistribution() # RpmRpmDistribution |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a rpm distribution
api_response = api_instance.create(pulp_domain, rpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_rpm_distribution | RpmRpmDistribution | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
AsyncOperationResponse delete(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics)
Delete a rpm distribution
Trigger an asynchronous delete task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a rpm distribution
api_response = api_instance.delete(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmRpmDistributionResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, base_path=base_path, base_path__contains=base_path__contains, base_path__icontains=base_path__icontains, base_path__in=base_path__in, checkpoint=checkpoint, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository=repository, repository__in=repository__in, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
List rpm distributions
ViewSet for RPM Distributions.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_distribution_response_list import PaginatedrpmRpmDistributionResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
base_path = 'base_path_example' # str | Filter results where base_path matches value (optional)
base_path__contains = 'base_path__contains_example' # str | Filter results where base_path contains value (optional)
base_path__icontains = 'base_path__icontains_example' # str | Filter results where base_path contains value (optional)
base_path__in = ['base_path__in_example'] # List[str] | Filter results where base_path is in a comma-separated list of values (optional)
checkpoint = True # bool | Filter results where checkpoint matches value (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository = 'repository_example' # str | Filter results where repository matches value (optional)
repository__in = ['repository__in_example'] # List[str] | Filter results where repository is in a comma-separated list of values (optional)
with_content = 'with_content_example' # str | Filter distributions based on the content served by them (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List rpm distributions
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, base_path=base_path, base_path__contains=base_path__contains, base_path__icontains=base_path__icontains, base_path__in=base_path__in, checkpoint=checkpoint, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, repository=repository, repository__in=repository__in, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
print("The response of DistributionsRpmApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| base_path | str | Filter results where base_path matches value | [optional] |
| base_path__contains | str | Filter results where base_path contains value | [optional] |
| base_path__icontains | str | Filter results where base_path contains value | [optional] |
| base_path__in | List[str] | Filter results where base_path is in a comma-separated list of values | [optional] |
| checkpoint | bool | Filter results where checkpoint matches value | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__icontains | str | Filter results where name contains value | [optional] |
| name__iexact | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__iregex | str | Filter results where name matches regex value | [optional] |
| name__istartswith | str | Filter results where name starts with value | [optional] |
| name__regex | str | Filter results where name matches regex value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository | str | Filter results where repository matches value | [optional] |
| repository__in | List[str] | Filter results where repository is in a comma-separated list of values | [optional] |
| with_content | str | Filter distributions based on the content served by them | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRpmDistributionResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of DistributionsRpmApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of DistributionsRpmApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
partial_update
RpmRpmDistributionResponse partial_update(rpm_rpm_distribution_href, patchedrpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
Update a rpm distribution
Update the entity partially and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_distribution import PatchedrpmRpmDistribution
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution_response import RpmRpmDistributionResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
patchedrpm_rpm_distribution = pulpcore.client.pulp_rpm.PatchedrpmRpmDistribution() # PatchedrpmRpmDistribution |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm distribution
api_response = api_instance.partial_update(rpm_rpm_distribution_href, patchedrpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->partial_update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| patchedrpm_rpm_distribution | PatchedrpmRpmDistribution | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRpmDistributionResponse read(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a rpm distribution
ViewSet for RPM Distributions.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution_response import RpmRpmDistributionResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a rpm distribution
api_response = api_instance.read(rpm_rpm_distribution_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of DistributionsRpmApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_rpm_distribution_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_rpm_distribution_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_rpm_distribution_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_rpm_distribution_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_rpm_distribution_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_rpm_distribution_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update
RpmRpmDistributionResponse update(rpm_rpm_distribution_href, rpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
Update a rpm distribution
Update the entity and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution import RpmRpmDistribution
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution_response import RpmRpmDistributionResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.DistributionsRpmApi(api_client)
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # str |
rpm_rpm_distribution = pulpcore.client.pulp_rpm.RpmRpmDistribution() # RpmRpmDistribution |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm distribution
api_response = api_instance.update(rpm_rpm_distribution_href, rpm_rpm_distribution, x_task_diagnostics=x_task_diagnostics)
print("The response of DistributionsRpmApi->update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DistributionsRpmApi->update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_distribution_href | str | ||
| rpm_rpm_distribution | RpmRpmDistribution | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImageResponse
Image serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | File name. | |
| path | str | File path. | |
| platforms | str | Compatible platforms. | |
| artifact | ArtifactResponse |
Example
from pulpcore.client.pulp_rpm.models.image_response import ImageResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ImageResponse from a JSON string
image_response_instance = ImageResponse.from_json(json)
# print the JSON string representation of the object
print(ImageResponse.to_json())
# convert the object into a dict
image_response_dict = image_response_instance.to_dict()
# create an instance of ImageResponse from a dict
image_response_from_dict = ImageResponse.from_dict(image_response_dict)
[Back to Model list] [Back to API list] [Back to README]
LayoutEnum
nested_alphabetically- nested_alphabetically *flat- flat
Enum
-
NESTED_ALPHABETICALLY(value:'nested_alphabetically') -
FLAT(value:'flat')
[Back to Model list] [Back to API list] [Back to README]
MyPermissionsResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| permissions | List[str] |
Example
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
# TODO update the JSON string below
json = "{}"
# create an instance of MyPermissionsResponse from a JSON string
my_permissions_response_instance = MyPermissionsResponse.from_json(json)
# print the JSON string representation of the object
print(MyPermissionsResponse.to_json())
# convert the object into a dict
my_permissions_response_dict = my_permissions_response_instance.to_dict()
# create an instance of MyPermissionsResponse from a dict
my_permissions_response_from_dict = MyPermissionsResponse.from_dict(my_permissions_response_dict)
[Back to Model list] [Back to API list] [Back to README]
NestedRole
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with pulpcore.app.viewsets.base.RolesMixin and requires the underlying object to be passed as content_object in the context.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| users | List[str] | [optional] [default to []] | |
| groups | List[str] | [optional] [default to []] | |
| role | str |
Example
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
# TODO update the JSON string below
json = "{}"
# create an instance of NestedRole from a JSON string
nested_role_instance = NestedRole.from_json(json)
# print the JSON string representation of the object
print(NestedRole.to_json())
# convert the object into a dict
nested_role_dict = nested_role_instance.to_dict()
# create an instance of NestedRole from a dict
nested_role_from_dict = NestedRole.from_dict(nested_role_dict)
[Back to Model list] [Back to API list] [Back to README]
NestedRoleResponse
Serializer to add/remove object roles to/from users/groups. This is used in conjunction with pulpcore.app.viewsets.base.RolesMixin and requires the underlying object to be passed as content_object in the context.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| users | List[str] | [optional] [default to []] | |
| groups | List[str] | [optional] [default to []] | |
| role | str |
Example
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
# TODO update the JSON string below
json = "{}"
# create an instance of NestedRoleResponse from a JSON string
nested_role_response_instance = NestedRoleResponse.from_json(json)
# print the JSON string representation of the object
print(NestedRoleResponse.to_json())
# convert the object into a dict
nested_role_response_dict = nested_role_response_instance.to_dict()
# create an instance of NestedRoleResponse from a dict
nested_role_response_from_dict = NestedRoleResponse.from_dict(nested_role_response_dict)
[Back to Model list] [Back to API list] [Back to README]
ObjectRolesResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| roles | List[NestedRoleResponse] |
Example
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ObjectRolesResponse from a JSON string
object_roles_response_instance = ObjectRolesResponse.from_json(json)
# print the JSON string representation of the object
print(ObjectRolesResponse.to_json())
# convert the object into a dict
object_roles_response_dict = object_roles_response_instance.to_dict()
# create an instance of ObjectRolesResponse from a dict
object_roles_response_from_dict = ObjectRolesResponse.from_dict(object_roles_response_dict)
[Back to Model list] [Back to API list] [Back to README]
PackageChecksumTypeEnum
unknown- unknown *md5- md5 *sha1- sha1 *sha224- sha224 *sha256- sha256 *sha384- sha384 *sha512- sha512
Enum
-
UNKNOWN(value:'unknown') -
MD5(value:'md5') -
SHA1(value:'sha1') -
SHA224(value:'sha224') -
SHA256(value:'sha256') -
SHA384(value:'sha384') -
SHA512(value:'sha512')
[Back to Model list] [Back to API list] [Back to README]
PaginatedRepositoryVersionResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RepositoryVersionResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedRepositoryVersionResponseList from a JSON string
paginated_repository_version_response_list_instance = PaginatedRepositoryVersionResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedRepositoryVersionResponseList.to_json())
# convert the object into a dict
paginated_repository_version_response_list_dict = paginated_repository_version_response_list_instance.to_dict()
# create an instance of PaginatedRepositoryVersionResponseList from a dict
paginated_repository_version_response_list_from_dict = PaginatedRepositoryVersionResponseList.from_dict(paginated_repository_version_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmDistributionTreeResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmDistributionTreeResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_distribution_tree_response_list import PaginatedrpmDistributionTreeResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmDistributionTreeResponseList from a JSON string
paginatedrpm_distribution_tree_response_list_instance = PaginatedrpmDistributionTreeResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmDistributionTreeResponseList.to_json())
# convert the object into a dict
paginatedrpm_distribution_tree_response_list_dict = paginatedrpm_distribution_tree_response_list_instance.to_dict()
# create an instance of PaginatedrpmDistributionTreeResponseList from a dict
paginatedrpm_distribution_tree_response_list_from_dict = PaginatedrpmDistributionTreeResponseList.from_dict(paginatedrpm_distribution_tree_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmModulemdDefaultsResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmModulemdDefaultsResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_defaults_response_list import PaginatedrpmModulemdDefaultsResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmModulemdDefaultsResponseList from a JSON string
paginatedrpm_modulemd_defaults_response_list_instance = PaginatedrpmModulemdDefaultsResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmModulemdDefaultsResponseList.to_json())
# convert the object into a dict
paginatedrpm_modulemd_defaults_response_list_dict = paginatedrpm_modulemd_defaults_response_list_instance.to_dict()
# create an instance of PaginatedrpmModulemdDefaultsResponseList from a dict
paginatedrpm_modulemd_defaults_response_list_from_dict = PaginatedrpmModulemdDefaultsResponseList.from_dict(paginatedrpm_modulemd_defaults_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmModulemdObsoleteResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmModulemdObsoleteResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_obsolete_response_list import PaginatedrpmModulemdObsoleteResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmModulemdObsoleteResponseList from a JSON string
paginatedrpm_modulemd_obsolete_response_list_instance = PaginatedrpmModulemdObsoleteResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmModulemdObsoleteResponseList.to_json())
# convert the object into a dict
paginatedrpm_modulemd_obsolete_response_list_dict = paginatedrpm_modulemd_obsolete_response_list_instance.to_dict()
# create an instance of PaginatedrpmModulemdObsoleteResponseList from a dict
paginatedrpm_modulemd_obsolete_response_list_from_dict = PaginatedrpmModulemdObsoleteResponseList.from_dict(paginatedrpm_modulemd_obsolete_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmModulemdResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmModulemdResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_modulemd_response_list import PaginatedrpmModulemdResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmModulemdResponseList from a JSON string
paginatedrpm_modulemd_response_list_instance = PaginatedrpmModulemdResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmModulemdResponseList.to_json())
# convert the object into a dict
paginatedrpm_modulemd_response_list_dict = paginatedrpm_modulemd_response_list_instance.to_dict()
# create an instance of PaginatedrpmModulemdResponseList from a dict
paginatedrpm_modulemd_response_list_from_dict = PaginatedrpmModulemdResponseList.from_dict(paginatedrpm_modulemd_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmPackageCategoryResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmPackageCategoryResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_category_response_list import PaginatedrpmPackageCategoryResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmPackageCategoryResponseList from a JSON string
paginatedrpm_package_category_response_list_instance = PaginatedrpmPackageCategoryResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmPackageCategoryResponseList.to_json())
# convert the object into a dict
paginatedrpm_package_category_response_list_dict = paginatedrpm_package_category_response_list_instance.to_dict()
# create an instance of PaginatedrpmPackageCategoryResponseList from a dict
paginatedrpm_package_category_response_list_from_dict = PaginatedrpmPackageCategoryResponseList.from_dict(paginatedrpm_package_category_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmPackageEnvironmentResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmPackageEnvironmentResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_environment_response_list import PaginatedrpmPackageEnvironmentResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmPackageEnvironmentResponseList from a JSON string
paginatedrpm_package_environment_response_list_instance = PaginatedrpmPackageEnvironmentResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmPackageEnvironmentResponseList.to_json())
# convert the object into a dict
paginatedrpm_package_environment_response_list_dict = paginatedrpm_package_environment_response_list_instance.to_dict()
# create an instance of PaginatedrpmPackageEnvironmentResponseList from a dict
paginatedrpm_package_environment_response_list_from_dict = PaginatedrpmPackageEnvironmentResponseList.from_dict(paginatedrpm_package_environment_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmPackageGroupResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmPackageGroupResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_group_response_list import PaginatedrpmPackageGroupResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmPackageGroupResponseList from a JSON string
paginatedrpm_package_group_response_list_instance = PaginatedrpmPackageGroupResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmPackageGroupResponseList.to_json())
# convert the object into a dict
paginatedrpm_package_group_response_list_dict = paginatedrpm_package_group_response_list_instance.to_dict()
# create an instance of PaginatedrpmPackageGroupResponseList from a dict
paginatedrpm_package_group_response_list_from_dict = PaginatedrpmPackageGroupResponseList.from_dict(paginatedrpm_package_group_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmPackageLangpacksResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmPackageLangpacksResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_langpacks_response_list import PaginatedrpmPackageLangpacksResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmPackageLangpacksResponseList from a JSON string
paginatedrpm_package_langpacks_response_list_instance = PaginatedrpmPackageLangpacksResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmPackageLangpacksResponseList.to_json())
# convert the object into a dict
paginatedrpm_package_langpacks_response_list_dict = paginatedrpm_package_langpacks_response_list_instance.to_dict()
# create an instance of PaginatedrpmPackageLangpacksResponseList from a dict
paginatedrpm_package_langpacks_response_list_from_dict = PaginatedrpmPackageLangpacksResponseList.from_dict(paginatedrpm_package_langpacks_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmPackageResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmPackageResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_package_response_list import PaginatedrpmPackageResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmPackageResponseList from a JSON string
paginatedrpm_package_response_list_instance = PaginatedrpmPackageResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmPackageResponseList.to_json())
# convert the object into a dict
paginatedrpm_package_response_list_dict = paginatedrpm_package_response_list_instance.to_dict()
# create an instance of PaginatedrpmPackageResponseList from a dict
paginatedrpm_package_response_list_from_dict = PaginatedrpmPackageResponseList.from_dict(paginatedrpm_package_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRepoMetadataFileResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRepoMetadataFileResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_repo_metadata_file_response_list import PaginatedrpmRepoMetadataFileResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRepoMetadataFileResponseList from a JSON string
paginatedrpm_repo_metadata_file_response_list_instance = PaginatedrpmRepoMetadataFileResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRepoMetadataFileResponseList.to_json())
# convert the object into a dict
paginatedrpm_repo_metadata_file_response_list_dict = paginatedrpm_repo_metadata_file_response_list_instance.to_dict()
# create an instance of PaginatedrpmRepoMetadataFileResponseList from a dict
paginatedrpm_repo_metadata_file_response_list_from_dict = PaginatedrpmRepoMetadataFileResponseList.from_dict(paginatedrpm_repo_metadata_file_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRpmAlternateContentSourceResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRpmAlternateContentSourceResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_alternate_content_source_response_list import PaginatedrpmRpmAlternateContentSourceResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRpmAlternateContentSourceResponseList from a JSON string
paginatedrpm_rpm_alternate_content_source_response_list_instance = PaginatedrpmRpmAlternateContentSourceResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRpmAlternateContentSourceResponseList.to_json())
# convert the object into a dict
paginatedrpm_rpm_alternate_content_source_response_list_dict = paginatedrpm_rpm_alternate_content_source_response_list_instance.to_dict()
# create an instance of PaginatedrpmRpmAlternateContentSourceResponseList from a dict
paginatedrpm_rpm_alternate_content_source_response_list_from_dict = PaginatedrpmRpmAlternateContentSourceResponseList.from_dict(paginatedrpm_rpm_alternate_content_source_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRpmDistributionResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRpmDistributionResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_distribution_response_list import PaginatedrpmRpmDistributionResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRpmDistributionResponseList from a JSON string
paginatedrpm_rpm_distribution_response_list_instance = PaginatedrpmRpmDistributionResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRpmDistributionResponseList.to_json())
# convert the object into a dict
paginatedrpm_rpm_distribution_response_list_dict = paginatedrpm_rpm_distribution_response_list_instance.to_dict()
# create an instance of PaginatedrpmRpmDistributionResponseList from a dict
paginatedrpm_rpm_distribution_response_list_from_dict = PaginatedrpmRpmDistributionResponseList.from_dict(paginatedrpm_rpm_distribution_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRpmPublicationResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRpmPublicationResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_publication_response_list import PaginatedrpmRpmPublicationResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRpmPublicationResponseList from a JSON string
paginatedrpm_rpm_publication_response_list_instance = PaginatedrpmRpmPublicationResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRpmPublicationResponseList.to_json())
# convert the object into a dict
paginatedrpm_rpm_publication_response_list_dict = paginatedrpm_rpm_publication_response_list_instance.to_dict()
# create an instance of PaginatedrpmRpmPublicationResponseList from a dict
paginatedrpm_rpm_publication_response_list_from_dict = PaginatedrpmRpmPublicationResponseList.from_dict(paginatedrpm_rpm_publication_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRpmRemoteResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRpmRemoteResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_remote_response_list import PaginatedrpmRpmRemoteResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRpmRemoteResponseList from a JSON string
paginatedrpm_rpm_remote_response_list_instance = PaginatedrpmRpmRemoteResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRpmRemoteResponseList.to_json())
# convert the object into a dict
paginatedrpm_rpm_remote_response_list_dict = paginatedrpm_rpm_remote_response_list_instance.to_dict()
# create an instance of PaginatedrpmRpmRemoteResponseList from a dict
paginatedrpm_rpm_remote_response_list_from_dict = PaginatedrpmRpmRemoteResponseList.from_dict(paginatedrpm_rpm_remote_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmRpmRepositoryResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmRpmRepositoryResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_repository_response_list import PaginatedrpmRpmRepositoryResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmRpmRepositoryResponseList from a JSON string
paginatedrpm_rpm_repository_response_list_instance = PaginatedrpmRpmRepositoryResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmRpmRepositoryResponseList.to_json())
# convert the object into a dict
paginatedrpm_rpm_repository_response_list_dict = paginatedrpm_rpm_repository_response_list_instance.to_dict()
# create an instance of PaginatedrpmRpmRepositoryResponseList from a dict
paginatedrpm_rpm_repository_response_list_from_dict = PaginatedrpmRpmRepositoryResponseList.from_dict(paginatedrpm_rpm_repository_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmUlnRemoteResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmUlnRemoteResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_uln_remote_response_list import PaginatedrpmUlnRemoteResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmUlnRemoteResponseList from a JSON string
paginatedrpm_uln_remote_response_list_instance = PaginatedrpmUlnRemoteResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmUlnRemoteResponseList.to_json())
# convert the object into a dict
paginatedrpm_uln_remote_response_list_dict = paginatedrpm_uln_remote_response_list_instance.to_dict()
# create an instance of PaginatedrpmUlnRemoteResponseList from a dict
paginatedrpm_uln_remote_response_list_from_dict = PaginatedrpmUlnRemoteResponseList.from_dict(paginatedrpm_uln_remote_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PaginatedrpmUpdateRecordResponseList
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| count | int | ||
| next | str | [optional] | |
| previous | str | [optional] | |
| results | List[RpmUpdateRecordResponse] |
Example
from pulpcore.client.pulp_rpm.models.paginatedrpm_update_record_response_list import PaginatedrpmUpdateRecordResponseList
# TODO update the JSON string below
json = "{}"
# create an instance of PaginatedrpmUpdateRecordResponseList from a JSON string
paginatedrpm_update_record_response_list_instance = PaginatedrpmUpdateRecordResponseList.from_json(json)
# print the JSON string representation of the object
print(PaginatedrpmUpdateRecordResponseList.to_json())
# convert the object into a dict
paginatedrpm_update_record_response_list_dict = paginatedrpm_update_record_response_list_instance.to_dict()
# create an instance of PaginatedrpmUpdateRecordResponseList from a dict
paginatedrpm_update_record_response_list_from_dict = PaginatedrpmUpdateRecordResponseList.from_dict(paginatedrpm_update_record_response_list_dict)
[Back to Model list] [Back to API list] [Back to README]
PatchedrpmRpmAlternateContentSource
Serializer for RPM alternate content source.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Name of Alternate Content Source. | [optional] |
| last_refreshed | datetime | Date of last refresh of AlternateContentSource. | [optional] |
| paths | List[str] | List of paths that will be appended to the Remote url when searching for content. | [optional] |
| remote | str | The remote to provide alternate content source. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_alternate_content_source import PatchedrpmRpmAlternateContentSource
# TODO update the JSON string below
json = "{}"
# create an instance of PatchedrpmRpmAlternateContentSource from a JSON string
patchedrpm_rpm_alternate_content_source_instance = PatchedrpmRpmAlternateContentSource.from_json(json)
# print the JSON string representation of the object
print(PatchedrpmRpmAlternateContentSource.to_json())
# convert the object into a dict
patchedrpm_rpm_alternate_content_source_dict = patchedrpm_rpm_alternate_content_source_instance.to_dict()
# create an instance of PatchedrpmRpmAlternateContentSource from a dict
patchedrpm_rpm_alternate_content_source_from_dict = PatchedrpmRpmAlternateContentSource.from_dict(patchedrpm_rpm_alternate_content_source_dict)
[Back to Model list] [Back to API list] [Back to README]
PatchedrpmRpmDistribution
Serializer for RPM Distributions.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| base_path | str | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") | [optional] |
| content_guard | str | An optional content-guard. | [optional] |
| hidden | bool | Whether this distribution should be shown in the content app. | [optional] [default to False] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| name | str | A unique name. Ex, `rawhide` and `stable`. | [optional] |
| repository | str | The latest RepositoryVersion for this Repository will be served. | [optional] |
| publication | str | Publication to be served | [optional] |
| generate_repo_config | bool | An option specifying whether Pulp should generate *.repo files. | [optional] [default to False] |
| checkpoint | bool | [optional] |
Example
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_distribution import PatchedrpmRpmDistribution
# TODO update the JSON string below
json = "{}"
# create an instance of PatchedrpmRpmDistribution from a JSON string
patchedrpm_rpm_distribution_instance = PatchedrpmRpmDistribution.from_json(json)
# print the JSON string representation of the object
print(PatchedrpmRpmDistribution.to_json())
# convert the object into a dict
patchedrpm_rpm_distribution_dict = patchedrpm_rpm_distribution_instance.to_dict()
# create an instance of PatchedrpmRpmDistribution from a dict
patchedrpm_rpm_distribution_from_dict = PatchedrpmRpmDistribution.from_dict(patchedrpm_rpm_distribution_dict)
[Back to Model list] [Back to API list] [Back to README]
PatchedrpmRpmRemote
A Serializer for RpmRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | A unique name for this remote. | [optional] |
| url | str | The URL of an external content source. | [optional] |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| client_key | str | A PEM encoded private key used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| proxy_username | str | The username to authenticte to the proxy. | [optional] |
| proxy_password | str | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| username | str | The username to be used for authentication when syncing. | [optional] |
| password | str | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| sles_auth_token | str | Authentication token for SLES repositories. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_remote import PatchedrpmRpmRemote
# TODO update the JSON string below
json = "{}"
# create an instance of PatchedrpmRpmRemote from a JSON string
patchedrpm_rpm_remote_instance = PatchedrpmRpmRemote.from_json(json)
# print the JSON string representation of the object
print(PatchedrpmRpmRemote.to_json())
# convert the object into a dict
patchedrpm_rpm_remote_dict = patchedrpm_rpm_remote_instance.to_dict()
# create an instance of PatchedrpmRpmRemote from a dict
patchedrpm_rpm_remote_from_dict = PatchedrpmRpmRemote.from_dict(patchedrpm_rpm_remote_dict)
[Back to Model list] [Back to API list] [Back to README]
PatchedrpmRpmRepository
Serializer for Rpm Repositories.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| name | str | A unique name for this repository. | [optional] |
| description | str | An optional description. | [optional] |
| retain_repo_versions | int | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
| remote | str | An optional remote to use by default when syncing. | [optional] |
| autopublish | bool | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to False] |
| metadata_signing_service | str | A reference to an associated signing service. | [optional] |
| package_signing_service | str | A reference to an associated package signing service. | [optional] |
| package_signing_fingerprint | str | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to ''] |
| retain_package_versions | int | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional] |
| checksum_type | PackageChecksumTypeEnum | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| repo_config | object | A JSON document describing the config.repo file Pulp should generate for this repo | [optional] |
| compression_type | CompressionTypeEnum | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
| layout | LayoutEnum | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
Example
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_repository import PatchedrpmRpmRepository
# TODO update the JSON string below
json = "{}"
# create an instance of PatchedrpmRpmRepository from a JSON string
patchedrpm_rpm_repository_instance = PatchedrpmRpmRepository.from_json(json)
# print the JSON string representation of the object
print(PatchedrpmRpmRepository.to_json())
# convert the object into a dict
patchedrpm_rpm_repository_dict = patchedrpm_rpm_repository_instance.to_dict()
# create an instance of PatchedrpmRpmRepository from a dict
patchedrpm_rpm_repository_from_dict = PatchedrpmRpmRepository.from_dict(patchedrpm_rpm_repository_dict)
[Back to Model list] [Back to API list] [Back to README]
PatchedrpmUlnRemote
A Serializer for UlnRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | A unique name for this remote. | [optional] |
| url | str | The ULN repo URL of the remote content source."This is "uln://" followed by the channel name. E.g.: "uln://ol7_x86_64_oracle" | [optional] |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| client_key | str | A PEM encoded private key used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| proxy_username | str | The username to authenticte to the proxy. | [optional] |
| proxy_password | str | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| username | str | Your ULN account username. | [optional] |
| password | str | Your ULN account password. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| uln_server_base_url | str | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.patchedrpm_uln_remote import PatchedrpmUlnRemote
# TODO update the JSON string below
json = "{}"
# create an instance of PatchedrpmUlnRemote from a JSON string
patchedrpm_uln_remote_instance = PatchedrpmUlnRemote.from_json(json)
# print the JSON string representation of the object
print(PatchedrpmUlnRemote.to_json())
# convert the object into a dict
patchedrpm_uln_remote_dict = patchedrpm_uln_remote_instance.to_dict()
# create an instance of PatchedrpmUlnRemote from a dict
patchedrpm_uln_remote_from_dict = PatchedrpmUlnRemote.from_dict(patchedrpm_uln_remote_dict)
[Back to Model list] [Back to API list] [Back to README]
PolicyEnum
immediate- When syncing, download all metadata and content now. *on_demand- When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. *streamed- When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
Enum
-
IMMEDIATE(value:'immediate') -
ON_DEMAND(value:'on_demand') -
STREAMED(value:'streamed')
[Back to Model list] [Back to API list] [Back to README]
PrunePackages
Serializer for prune-old-Packages operation.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| repo_hrefs | List[str] | Will prune old packages from the specified list of repos. Use ['*'] to specify all repos. Will prune based on the specified repositories' latest_versions. | |
| keep_days | int | Prune packages introduced prior-to this many days ago. Default is 14. A value of 0 implies 'keep latest package only.' | [optional] [default to 14] |
| dry_run | bool | Determine what would-be-pruned and log the list of packages. Intended as a debugging aid. | [optional] [default to False] |
Example
from pulpcore.client.pulp_rpm.models.prune_packages import PrunePackages
# TODO update the JSON string below
json = "{}"
# create an instance of PrunePackages from a JSON string
prune_packages_instance = PrunePackages.from_json(json)
# print the JSON string representation of the object
print(PrunePackages.to_json())
# convert the object into a dict
prune_packages_dict = prune_packages_instance.to_dict()
# create an instance of PrunePackages from a dict
prune_packages_from_dict = PrunePackages.from_dict(prune_packages_dict)
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.PublicationsRpmApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_rpm_publication_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/publications/rpm/rpm/ | Create a rpm publication |
| delete | DELETE {rpm_rpm_publication_href} | Delete a rpm publication |
| list | GET /api/pulp/{pulp_domain}/api/v3/publications/rpm/rpm/ | List rpm publications |
| list_roles | GET {rpm_rpm_publication_href}list_roles/ | List roles |
| my_permissions | GET {rpm_rpm_publication_href}my_permissions/ | List user permissions |
| read | GET {rpm_rpm_publication_href} | Inspect a rpm publication |
| remove_role | POST {rpm_rpm_publication_href}remove_role/ | Remove a role |
add_role
NestedRoleResponse add_role(rpm_rpm_publication_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_rpm_publication_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of PublicationsRpmApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
AsyncOperationResponse create(pulp_domain, rpm_rpm_publication, x_task_diagnostics=x_task_diagnostics)
Create a rpm publication
Trigger an asynchronous task to create a new RPM content publication.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_rpm_publication import RpmRpmPublication
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_rpm_publication = pulpcore.client.pulp_rpm.RpmRpmPublication() # RpmRpmPublication |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a rpm publication
api_response = api_instance.create(pulp_domain, rpm_rpm_publication, x_task_diagnostics=x_task_diagnostics)
print("The response of PublicationsRpmApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_rpm_publication | RpmRpmPublication | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
delete(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics)
Delete a rpm publication
ViewSet for Rpm Publications.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a rpm publication
api_instance.delete(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics)
except Exception as e:
print("Exception when calling PublicationsRpmApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
void (empty response body)
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 204 | No response body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmRpmPublicationResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, checkpoint=checkpoint, content=content, content__in=content__in, limit=limit, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, q=q, repository=repository, repository_version=repository_version, fields=fields, exclude_fields=exclude_fields)
List rpm publications
ViewSet for Rpm Publications.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_publication_response_list import PaginatedrpmRpmPublicationResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
checkpoint = True # bool | Filter results where checkpoint matches value (optional)
content = 'content_example' # str | Content Unit referenced by HREF/PRN (optional)
content__in = ['content__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_created = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created matches value (optional)
pulp_created__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than value (optional)
pulp_created__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than or equal to value (optional)
pulp_created__isnull = True # bool | Filter results where pulp_created has a null value (optional)
pulp_created__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than value (optional)
pulp_created__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than or equal to value (optional)
pulp_created__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_created is between two comma separated values (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
repository = 'repository_example' # str | Repository referenced by HREF/PRN (optional)
repository_version = 'repository_version_example' # str | Repository Version referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List rpm publications
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, checkpoint=checkpoint, content=content, content__in=content__in, limit=limit, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, q=q, repository=repository, repository_version=repository_version, fields=fields, exclude_fields=exclude_fields)
print("The response of PublicationsRpmApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| checkpoint | bool | Filter results where checkpoint matches value | [optional] |
| content | str | Content Unit referenced by HREF/PRN | [optional] |
| content__in | List[str] | Multiple values may be separated by commas. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_created | datetime | Filter results where pulp_created matches value | [optional] |
| pulp_created__gt | datetime | Filter results where pulp_created is greater than value | [optional] |
| pulp_created__gte | datetime | Filter results where pulp_created is greater than or equal to value | [optional] |
| pulp_created__isnull | bool | Filter results where pulp_created has a null value | [optional] |
| pulp_created__lt | datetime | Filter results where pulp_created is less than value | [optional] |
| pulp_created__lte | datetime | Filter results where pulp_created is less than or equal to value | [optional] |
| pulp_created__range | List[datetime] | Filter results where pulp_created is between two comma separated values | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| repository | str | Repository referenced by HREF/PRN | [optional] |
| repository_version | str | Repository Version referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRpmPublicationResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of PublicationsRpmApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of PublicationsRpmApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRpmPublicationResponse read(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a rpm publication
ViewSet for Rpm Publications.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_publication_response import RpmRpmPublicationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a rpm publication
api_response = api_instance.read(rpm_rpm_publication_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of PublicationsRpmApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_rpm_publication_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.PublicationsRpmApi(api_client)
rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_rpm_publication_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of PublicationsRpmApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PublicationsRpmApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_publication_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.RemotesRpmApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_rpm_remote_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/remotes/rpm/rpm/ | Create a rpm remote |
| delete | DELETE {rpm_rpm_remote_href} | Delete a rpm remote |
| list | GET /api/pulp/{pulp_domain}/api/v3/remotes/rpm/rpm/ | List rpm remotes |
| list_roles | GET {rpm_rpm_remote_href}list_roles/ | List roles |
| my_permissions | GET {rpm_rpm_remote_href}my_permissions/ | List user permissions |
| partial_update | PATCH {rpm_rpm_remote_href} | Update a rpm remote |
| read | GET {rpm_rpm_remote_href} | Inspect a rpm remote |
| remove_role | POST {rpm_rpm_remote_href}remove_role/ | Remove a role |
| set_label | POST {rpm_rpm_remote_href}set_label/ | Set a label |
| unset_label | POST {rpm_rpm_remote_href}unset_label/ | Unset a label |
| update | PUT {rpm_rpm_remote_href} | Update a rpm remote |
add_role
NestedRoleResponse add_role(rpm_rpm_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_rpm_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
RpmRpmRemoteResponse create(pulp_domain, rpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
Create a rpm remote
A ViewSet for RpmRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote import RpmRpmRemote
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response import RpmRpmRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_rpm_remote = pulpcore.client.pulp_rpm.RpmRpmRemote() # RpmRpmRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a rpm remote
api_response = api_instance.create(pulp_domain, rpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_rpm_remote | RpmRpmRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
AsyncOperationResponse delete(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics)
Delete a rpm remote
Trigger an asynchronous delete task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a rpm remote
api_response = api_instance.delete(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmRpmRemoteResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
List rpm remotes
A ViewSet for RpmRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_remote_response_list import PaginatedrpmRpmRemoteResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
pulp_last_updated = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated matches value (optional)
pulp_last_updated__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than value (optional)
pulp_last_updated__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than or equal to value (optional)
pulp_last_updated__isnull = True # bool | Filter results where pulp_last_updated has a null value (optional)
pulp_last_updated__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than value (optional)
pulp_last_updated__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than or equal to value (optional)
pulp_last_updated__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_last_updated is between two comma separated values (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List rpm remotes
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesRpmApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__icontains | str | Filter results where name contains value | [optional] |
| name__iexact | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__iregex | str | Filter results where name matches regex value | [optional] |
| name__istartswith | str | Filter results where name starts with value | [optional] |
| name__regex | str | Filter results where name matches regex value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| pulp_last_updated | datetime | Filter results where pulp_last_updated matches value | [optional] |
| pulp_last_updated__gt | datetime | Filter results where pulp_last_updated is greater than value | [optional] |
| pulp_last_updated__gte | datetime | Filter results where pulp_last_updated is greater than or equal to value | [optional] |
| pulp_last_updated__isnull | bool | Filter results where pulp_last_updated has a null value | [optional] |
| pulp_last_updated__lt | datetime | Filter results where pulp_last_updated is less than value | [optional] |
| pulp_last_updated__lte | datetime | Filter results where pulp_last_updated is less than or equal to value | [optional] |
| pulp_last_updated__range | List[datetime] | Filter results where pulp_last_updated is between two comma separated values | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRpmRemoteResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesRpmApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesRpmApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
partial_update
RpmRpmRemoteResponse partial_update(rpm_rpm_remote_href, patchedrpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
Update a rpm remote
Update the entity partially and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_remote import PatchedrpmRpmRemote
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response import RpmRpmRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
patchedrpm_rpm_remote = pulpcore.client.pulp_rpm.PatchedrpmRpmRemote() # PatchedrpmRpmRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm remote
api_response = api_instance.partial_update(rpm_rpm_remote_href, patchedrpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->partial_update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| patchedrpm_rpm_remote | PatchedrpmRpmRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRpmRemoteResponse read(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a rpm remote
A ViewSet for RpmRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response import RpmRpmRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a rpm remote
api_response = api_instance.read(rpm_rpm_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesRpmApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_rpm_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_rpm_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_rpm_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_rpm_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_rpm_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_rpm_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update
RpmRpmRemoteResponse update(rpm_rpm_remote_href, rpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
Update a rpm remote
Update the entity and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote import RpmRpmRemote
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response import RpmRpmRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesRpmApi(api_client)
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # str |
rpm_rpm_remote = pulpcore.client.pulp_rpm.RpmRpmRemote() # RpmRpmRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm remote
api_response = api_instance.update(rpm_rpm_remote_href, rpm_rpm_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesRpmApi->update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesRpmApi->update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_remote_href | str | ||
| rpm_rpm_remote | RpmRpmRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.RemotesUlnApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_uln_remote_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/remotes/rpm/uln/ | Create an uln remote |
| delete | DELETE {rpm_uln_remote_href} | Delete an uln remote |
| list | GET /api/pulp/{pulp_domain}/api/v3/remotes/rpm/uln/ | List uln remotes |
| list_roles | GET {rpm_uln_remote_href}list_roles/ | List roles |
| my_permissions | GET {rpm_uln_remote_href}my_permissions/ | List user permissions |
| partial_update | PATCH {rpm_uln_remote_href} | Update an uln remote |
| read | GET {rpm_uln_remote_href} | Inspect an uln remote |
| remove_role | POST {rpm_uln_remote_href}remove_role/ | Remove a role |
| set_label | POST {rpm_uln_remote_href}set_label/ | Set a label |
| unset_label | POST {rpm_uln_remote_href}unset_label/ | Unset a label |
| update | PUT {rpm_uln_remote_href} | Update an uln remote |
add_role
NestedRoleResponse add_role(rpm_uln_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_uln_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
RpmUlnRemoteResponse create(pulp_domain, rpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
Create an uln remote
A ViewSet for UlnRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_uln_remote import RpmUlnRemote
from pulpcore.client.pulp_rpm.models.rpm_uln_remote_response import RpmUlnRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_uln_remote = pulpcore.client.pulp_rpm.RpmUlnRemote() # RpmUlnRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create an uln remote
api_response = api_instance.create(pulp_domain, rpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_uln_remote | RpmUlnRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
AsyncOperationResponse delete(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics)
Delete an uln remote
Trigger an asynchronous delete task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete an uln remote
api_response = api_instance.delete(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmUlnRemoteResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
List uln remotes
A ViewSet for UlnRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_uln_remote_response_list import PaginatedrpmUlnRemoteResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
pulp_last_updated = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated matches value (optional)
pulp_last_updated__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than value (optional)
pulp_last_updated__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is greater than or equal to value (optional)
pulp_last_updated__isnull = True # bool | Filter results where pulp_last_updated has a null value (optional)
pulp_last_updated__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than value (optional)
pulp_last_updated__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_last_updated is less than or equal to value (optional)
pulp_last_updated__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_last_updated is between two comma separated values (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List uln remotes
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, pulp_last_updated=pulp_last_updated, pulp_last_updated__gt=pulp_last_updated__gt, pulp_last_updated__gte=pulp_last_updated__gte, pulp_last_updated__isnull=pulp_last_updated__isnull, pulp_last_updated__lt=pulp_last_updated__lt, pulp_last_updated__lte=pulp_last_updated__lte, pulp_last_updated__range=pulp_last_updated__range, q=q, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesUlnApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__icontains | str | Filter results where name contains value | [optional] |
| name__iexact | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__iregex | str | Filter results where name matches regex value | [optional] |
| name__istartswith | str | Filter results where name starts with value | [optional] |
| name__regex | str | Filter results where name matches regex value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| pulp_last_updated | datetime | Filter results where pulp_last_updated matches value | [optional] |
| pulp_last_updated__gt | datetime | Filter results where pulp_last_updated is greater than value | [optional] |
| pulp_last_updated__gte | datetime | Filter results where pulp_last_updated is greater than or equal to value | [optional] |
| pulp_last_updated__isnull | bool | Filter results where pulp_last_updated has a null value | [optional] |
| pulp_last_updated__lt | datetime | Filter results where pulp_last_updated is less than value | [optional] |
| pulp_last_updated__lte | datetime | Filter results where pulp_last_updated is less than or equal to value | [optional] |
| pulp_last_updated__range | List[datetime] | Filter results where pulp_last_updated is between two comma separated values | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmUlnRemoteResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesUlnApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesUlnApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
partial_update
RpmUlnRemoteResponse partial_update(rpm_uln_remote_href, patchedrpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
Update an uln remote
Update the entity partially and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.patchedrpm_uln_remote import PatchedrpmUlnRemote
from pulpcore.client.pulp_rpm.models.rpm_uln_remote_response import RpmUlnRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
patchedrpm_uln_remote = pulpcore.client.pulp_rpm.PatchedrpmUlnRemote() # PatchedrpmUlnRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update an uln remote
api_response = api_instance.partial_update(rpm_uln_remote_href, patchedrpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->partial_update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| patchedrpm_uln_remote | PatchedrpmUlnRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmUlnRemoteResponse read(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect an uln remote
A ViewSet for UlnRemote.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_uln_remote_response import RpmUlnRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect an uln remote
api_response = api_instance.read(rpm_uln_remote_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RemotesUlnApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_uln_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_uln_remote_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_uln_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_uln_remote_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_uln_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_uln_remote_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update
RpmUlnRemoteResponse update(rpm_uln_remote_href, rpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
Update an uln remote
Update the entity and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_uln_remote import RpmUlnRemote
from pulpcore.client.pulp_rpm.models.rpm_uln_remote_response import RpmUlnRemoteResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RemotesUlnApi(api_client)
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # str |
rpm_uln_remote = pulpcore.client.pulp_rpm.RpmUlnRemote() # RpmUlnRemote |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update an uln remote
api_response = api_instance.update(rpm_uln_remote_href, rpm_uln_remote, x_task_diagnostics=x_task_diagnostics)
print("The response of RemotesUlnApi->update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RemotesUlnApi->update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_uln_remote_href | str | ||
| rpm_uln_remote | RpmUlnRemote | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Repair
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| verify_checksums | bool | Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default | [optional] [default to True] |
Example
from pulpcore.client.pulp_rpm.models.repair import Repair
# TODO update the JSON string below
json = "{}"
# create an instance of Repair from a JSON string
repair_instance = Repair.from_json(json)
# print the JSON string representation of the object
print(Repair.to_json())
# convert the object into a dict
repair_dict = repair_instance.to_dict()
# create an instance of Repair from a dict
repair_from_dict = Repair.from_dict(repair_dict)
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.RepositoriesRpmApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| add_role | POST {rpm_rpm_repository_href}add_role/ | Add a role |
| create | POST /api/pulp/{pulp_domain}/api/v3/repositories/rpm/rpm/ | Create a rpm repository |
| delete | DELETE {rpm_rpm_repository_href} | Delete a rpm repository |
| list | GET /api/pulp/{pulp_domain}/api/v3/repositories/rpm/rpm/ | List rpm repositorys |
| list_roles | GET {rpm_rpm_repository_href}list_roles/ | List roles |
| modify | POST {rpm_rpm_repository_href}modify/ | Modify Repository Content |
| my_permissions | GET {rpm_rpm_repository_href}my_permissions/ | List user permissions |
| partial_update | PATCH {rpm_rpm_repository_href} | Update a rpm repository |
| read | GET {rpm_rpm_repository_href} | Inspect a rpm repository |
| remove_role | POST {rpm_rpm_repository_href}remove_role/ | Remove a role |
| set_label | POST {rpm_rpm_repository_href}set_label/ | Set a label |
| sync | POST {rpm_rpm_repository_href}sync/ | Sync from remote |
| unset_label | POST {rpm_rpm_repository_href}unset_label/ | Unset a label |
| update | PUT {rpm_rpm_repository_href} | Update a rpm repository |
add_role
NestedRoleResponse add_role(rpm_rpm_repository_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Add a role
Add a role for this object to users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Add a role
api_response = api_instance.add_role(rpm_rpm_repository_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->add_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->add_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create
RpmRpmRepositoryResponse create(pulp_domain, rpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
Create a rpm repository
A ViewSet for RpmRepository.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository import RpmRpmRepository
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository_response import RpmRpmRepositoryResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
rpm_rpm_repository = pulpcore.client.pulp_rpm.RpmRpmRepository() # RpmRpmRepository |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Create a rpm repository
api_response = api_instance.create(pulp_domain, rpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->create: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| rpm_rpm_repository | RpmRpmRepository | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete
AsyncOperationResponse delete(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics)
Delete a rpm repository
Trigger an asynchronous delete task
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a rpm repository
api_response = api_instance.delete(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedrpmRpmRepositoryResponseList list(pulp_domain, x_task_diagnostics=x_task_diagnostics, latest_with_content=latest_with_content, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, remote=remote, retain_repo_versions=retain_repo_versions, retain_repo_versions__gt=retain_repo_versions__gt, retain_repo_versions__gte=retain_repo_versions__gte, retain_repo_versions__isnull=retain_repo_versions__isnull, retain_repo_versions__lt=retain_repo_versions__lt, retain_repo_versions__lte=retain_repo_versions__lte, retain_repo_versions__ne=retain_repo_versions__ne, retain_repo_versions__range=retain_repo_versions__range, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
List rpm repositorys
A ViewSet for RpmRepository.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginatedrpm_rpm_repository_response_list import PaginatedrpmRpmRepositoryResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
latest_with_content = 'latest_with_content_example' # str | Content Unit referenced by HREF/PRN (optional)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | Filter results where name matches value (optional)
name__contains = 'name__contains_example' # str | Filter results where name contains value (optional)
name__icontains = 'name__icontains_example' # str | Filter results where name contains value (optional)
name__iexact = 'name__iexact_example' # str | Filter results where name matches value (optional)
name__in = ['name__in_example'] # List[str] | Filter results where name is in a comma-separated list of values (optional)
name__iregex = 'name__iregex_example' # str | Filter results where name matches regex value (optional)
name__istartswith = 'name__istartswith_example' # str | Filter results where name starts with value (optional)
name__regex = 'name__regex_example' # str | Filter results where name matches regex value (optional)
name__startswith = 'name__startswith_example' # str | Filter results where name starts with value (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_id__in = ['pulp_id__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_label_select = 'pulp_label_select_example' # str | Filter labels by search string (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
remote = 'remote_example' # str | Foreign Key referenced by HREF (optional)
retain_repo_versions = 56 # int | Filter results where retain_repo_versions matches value (optional)
retain_repo_versions__gt = 56 # int | Filter results where retain_repo_versions is greater than value (optional)
retain_repo_versions__gte = 56 # int | Filter results where retain_repo_versions is greater than or equal to value (optional)
retain_repo_versions__isnull = True # bool | Filter results where retain_repo_versions has a null value (optional)
retain_repo_versions__lt = 56 # int | Filter results where retain_repo_versions is less than value (optional)
retain_repo_versions__lte = 56 # int | Filter results where retain_repo_versions is less than or equal to value (optional)
retain_repo_versions__ne = 56 # int | Filter results where retain_repo_versions not equal to value (optional)
retain_repo_versions__range = [56] # List[int] | Filter results where retain_repo_versions is between two comma separated values (optional)
with_content = 'with_content_example' # str | Content Unit referenced by HREF/PRN (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List rpm repositorys
api_response = api_instance.list(pulp_domain, x_task_diagnostics=x_task_diagnostics, latest_with_content=latest_with_content, limit=limit, name=name, name__contains=name__contains, name__icontains=name__icontains, name__iexact=name__iexact, name__in=name__in, name__iregex=name__iregex, name__istartswith=name__istartswith, name__regex=name__regex, name__startswith=name__startswith, offset=offset, ordering=ordering, prn__in=prn__in, pulp_href__in=pulp_href__in, pulp_id__in=pulp_id__in, pulp_label_select=pulp_label_select, q=q, remote=remote, retain_repo_versions=retain_repo_versions, retain_repo_versions__gt=retain_repo_versions__gt, retain_repo_versions__gte=retain_repo_versions__gte, retain_repo_versions__isnull=retain_repo_versions__isnull, retain_repo_versions__lt=retain_repo_versions__lt, retain_repo_versions__lte=retain_repo_versions__lte, retain_repo_versions__ne=retain_repo_versions__ne, retain_repo_versions__range=retain_repo_versions__range, with_content=with_content, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| latest_with_content | str | Content Unit referenced by HREF/PRN | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| name | str | Filter results where name matches value | [optional] |
| name__contains | str | Filter results where name contains value | [optional] |
| name__icontains | str | Filter results where name contains value | [optional] |
| name__iexact | str | Filter results where name matches value | [optional] |
| name__in | List[str] | Filter results where name is in a comma-separated list of values | [optional] |
| name__iregex | str | Filter results where name matches regex value | [optional] |
| name__istartswith | str | Filter results where name starts with value | [optional] |
| name__regex | str | Filter results where name matches regex value | [optional] |
| name__startswith | str | Filter results where name starts with value | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_id__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_label_select | str | Filter labels by search string | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| remote | str | Foreign Key referenced by HREF | [optional] |
| retain_repo_versions | int | Filter results where retain_repo_versions matches value | [optional] |
| retain_repo_versions__gt | int | Filter results where retain_repo_versions is greater than value | [optional] |
| retain_repo_versions__gte | int | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
| retain_repo_versions__isnull | bool | Filter results where retain_repo_versions has a null value | [optional] |
| retain_repo_versions__lt | int | Filter results where retain_repo_versions is less than value | [optional] |
| retain_repo_versions__lte | int | Filter results where retain_repo_versions is less than or equal to value | [optional] |
| retain_repo_versions__ne | int | Filter results where retain_repo_versions not equal to value | [optional] |
| retain_repo_versions__range | List[int] | Filter results where retain_repo_versions is between two comma separated values | [optional] |
| with_content | str | Content Unit referenced by HREF/PRN | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedrpmRpmRepositoryResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_roles
ObjectRolesResponse list_roles(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List roles
List roles assigned to this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.object_roles_response import ObjectRolesResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List roles
api_response = api_instance.list_roles(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmApi->list_roles:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->list_roles: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
modify
AsyncOperationResponse modify(rpm_rpm_repository_href, repository_add_remove_content, x_task_diagnostics=x_task_diagnostics)
Modify Repository Content
Trigger an asynchronous task to create a new repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.repository_add_remove_content import RepositoryAddRemoveContent
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
repository_add_remove_content = pulpcore.client.pulp_rpm.RepositoryAddRemoveContent() # RepositoryAddRemoveContent |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Modify Repository Content
api_response = api_instance.modify(rpm_rpm_repository_href, repository_add_remove_content, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->modify:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->modify: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| repository_add_remove_content | RepositoryAddRemoveContent | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
my_permissions
MyPermissionsResponse my_permissions(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
List user permissions
List permissions available to the current user on this object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.my_permissions_response import MyPermissionsResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List user permissions
api_response = api_instance.my_permissions(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmApi->my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->my_permissions: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
partial_update
RpmRpmRepositoryResponse partial_update(rpm_rpm_repository_href, patchedrpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
Update a rpm repository
Update the entity partially and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.patchedrpm_rpm_repository import PatchedrpmRpmRepository
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository_response import RpmRpmRepositoryResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
patchedrpm_rpm_repository = pulpcore.client.pulp_rpm.PatchedrpmRpmRepository() # PatchedrpmRpmRepository |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm repository
api_response = api_instance.partial_update(rpm_rpm_repository_href, patchedrpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->partial_update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| patchedrpm_rpm_repository | PatchedrpmRpmRepository | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RpmRpmRepositoryResponse read(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a rpm repository
A ViewSet for RpmRepository.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository_response import RpmRpmRepositoryResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a rpm repository
api_response = api_instance.read(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_role
NestedRoleResponse remove_role(rpm_rpm_repository_href, nested_role, x_task_diagnostics=x_task_diagnostics)
Remove a role
Remove a role for this object from users/groups.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.nested_role import NestedRole
from pulpcore.client.pulp_rpm.models.nested_role_response import NestedRoleResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Remove a role
api_response = api_instance.remove_role(rpm_rpm_repository_href, nested_role, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->remove_role:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->remove_role: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| nested_role | NestedRole | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_label
SetLabelResponse set_label(rpm_rpm_repository_href, set_label, x_task_diagnostics=x_task_diagnostics)
Set a label
Set a single pulp_label on the object to a specific value or null.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
set_label = pulpcore.client.pulp_rpm.SetLabel() # SetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Set a label
api_response = api_instance.set_label(rpm_rpm_repository_href, set_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->set_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->set_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| set_label | SetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sync
AsyncOperationResponse sync(rpm_rpm_repository_href, rpm_repository_sync_url, x_task_diagnostics=x_task_diagnostics)
Sync from remote
Trigger an asynchronous task to sync RPM content.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.rpm_repository_sync_url import RpmRepositorySyncURL
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
rpm_repository_sync_url = pulpcore.client.pulp_rpm.RpmRepositorySyncURL() # RpmRepositorySyncURL |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Sync from remote
api_response = api_instance.sync(rpm_rpm_repository_href, rpm_repository_sync_url, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->sync:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->sync: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| rpm_repository_sync_url | RpmRepositorySyncURL | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
unset_label
UnsetLabelResponse unset_label(rpm_rpm_repository_href, unset_label, x_task_diagnostics=x_task_diagnostics)
Unset a label
Unset a single pulp_label on the object.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
unset_label = pulpcore.client.pulp_rpm.UnsetLabel() # UnsetLabel |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Unset a label
api_response = api_instance.unset_label(rpm_rpm_repository_href, unset_label, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->unset_label:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->unset_label: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| unset_label | UnsetLabel | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update
RpmRpmRepositoryResponse update(rpm_rpm_repository_href, rpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
Update a rpm repository
Update the entity and trigger an asynchronous task if necessary
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository import RpmRpmRepository
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository_response import RpmRpmRepositoryResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
rpm_rpm_repository = pulpcore.client.pulp_rpm.RpmRpmRepository() # RpmRpmRepository |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Update a rpm repository
api_response = api_instance.update(rpm_rpm_repository_href, rpm_rpm_repository, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmApi->update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmApi->update: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| rpm_rpm_repository | RpmRpmRepository | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.RepositoriesRpmVersionsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| delete | DELETE {rpm_rpm_repository_version_href} | Delete a repository version |
| list | GET {rpm_rpm_repository_href}versions/ | List repository versions |
| read | GET {rpm_rpm_repository_version_href} | Inspect a repository version |
| repair | POST {rpm_rpm_repository_version_href}repair/ |
delete
AsyncOperationResponse delete(rpm_rpm_repository_version_href, x_task_diagnostics=x_task_diagnostics)
Delete a repository version
Trigger an asynchronous task to delete a repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmVersionsApi(api_client)
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Delete a repository version
api_response = api_instance.delete(rpm_rpm_repository_version_href, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmVersionsApi->delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmVersionsApi->delete: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list
PaginatedRepositoryVersionResponseList list(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, content=content, content__in=content__in, limit=limit, number=number, number__gt=number__gt, number__gte=number__gte, number__lt=number__lt, number__lte=number__lte, number__range=number__range, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, q=q, fields=fields, exclude_fields=exclude_fields)
List repository versions
RpmRepositoryVersion represents a single rpm repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.paginated_repository_version_response_list import PaginatedRepositoryVersionResponseList
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmVersionsApi(api_client)
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
content = 'content_example' # str | Content Unit referenced by HREF/PRN (optional)
content__in = ['content__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
limit = 56 # int | Number of results to return per page. (optional)
number = 56 # int | Filter results where number matches value (optional)
number__gt = 56 # int | Filter results where number is greater than value (optional)
number__gte = 56 # int | Filter results where number is greater than or equal to value (optional)
number__lt = 56 # int | Filter results where number is less than value (optional)
number__lte = 56 # int | Filter results where number is less than or equal to value (optional)
number__range = [56] # List[int] | Filter results where number is between two comma separated values (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = ['ordering_example'] # List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) (optional)
prn__in = ['prn__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
pulp_created = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created matches value (optional)
pulp_created__gt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than value (optional)
pulp_created__gte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is greater than or equal to value (optional)
pulp_created__isnull = True # bool | Filter results where pulp_created has a null value (optional)
pulp_created__lt = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than value (optional)
pulp_created__lte = '2013-10-20T19:20:30+01:00' # datetime | Filter results where pulp_created is less than or equal to value (optional)
pulp_created__range = ['2013-10-20T19:20:30+01:00'] # List[datetime] | Filter results where pulp_created is between two comma separated values (optional)
pulp_href__in = ['pulp_href__in_example'] # List[str] | Multiple values may be separated by commas. (optional)
q = 'q_example' # str | Filter results by using NOT, AND and OR operations on other filters (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# List repository versions
api_response = api_instance.list(rpm_rpm_repository_href, x_task_diagnostics=x_task_diagnostics, content=content, content__in=content__in, limit=limit, number=number, number__gt=number__gt, number__gte=number__gte, number__lt=number__lt, number__lte=number__lte, number__range=number__range, offset=offset, ordering=ordering, prn__in=prn__in, pulp_created=pulp_created, pulp_created__gt=pulp_created__gt, pulp_created__gte=pulp_created__gte, pulp_created__isnull=pulp_created__isnull, pulp_created__lt=pulp_created__lt, pulp_created__lte=pulp_created__lte, pulp_created__range=pulp_created__range, pulp_href__in=pulp_href__in, q=q, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmVersionsApi->list:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmVersionsApi->list: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| content | str | Content Unit referenced by HREF/PRN | [optional] |
| content__in | List[str] | Multiple values may be separated by commas. | [optional] |
| limit | int | Number of results to return per page. | [optional] |
| number | int | Filter results where number matches value | [optional] |
| number__gt | int | Filter results where number is greater than value | [optional] |
| number__gte | int | Filter results where number is greater than or equal to value | [optional] |
| number__lt | int | Filter results where number is less than value | [optional] |
| number__lte | int | Filter results where number is less than or equal to value | [optional] |
| number__range | List[int] | Filter results where number is between two comma separated values | [optional] |
| offset | int | The initial index from which to return the results. | [optional] |
| ordering | List[str] | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
| prn__in | List[str] | Multiple values may be separated by commas. | [optional] |
| pulp_created | datetime | Filter results where pulp_created matches value | [optional] |
| pulp_created__gt | datetime | Filter results where pulp_created is greater than value | [optional] |
| pulp_created__gte | datetime | Filter results where pulp_created is greater than or equal to value | [optional] |
| pulp_created__isnull | bool | Filter results where pulp_created has a null value | [optional] |
| pulp_created__lt | datetime | Filter results where pulp_created is less than value | [optional] |
| pulp_created__lte | datetime | Filter results where pulp_created is less than or equal to value | [optional] |
| pulp_created__range | List[datetime] | Filter results where pulp_created is between two comma separated values | [optional] |
| pulp_href__in | List[str] | Multiple values may be separated by commas. | [optional] |
| q | str | Filter results by using NOT, AND and OR operations on other filters | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
PaginatedRepositoryVersionResponseList
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read
RepositoryVersionResponse read(rpm_rpm_repository_version_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
Inspect a repository version
RpmRepositoryVersion represents a single rpm repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.repository_version_response import RepositoryVersionResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmVersionsApi(api_client)
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_href_example' # str |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
fields = ['fields_example'] # List[str] | A list of fields to include in the response. (optional)
exclude_fields = ['exclude_fields_example'] # List[str] | A list of fields to exclude from the response. (optional)
try:
# Inspect a repository version
api_response = api_instance.read(rpm_rpm_repository_version_href, x_task_diagnostics=x_task_diagnostics, fields=fields, exclude_fields=exclude_fields)
print("The response of RepositoriesRpmVersionsApi->read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmVersionsApi->read: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_href | str | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| fields | List[str] | A list of fields to include in the response. | [optional] |
| exclude_fields | List[str] | A list of fields to exclude from the response. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
repair
AsyncOperationResponse repair(rpm_rpm_repository_version_href, repair, x_task_diagnostics=x_task_diagnostics)
Trigger an asynchronous task to repair a repository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.repair import Repair
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RepositoriesRpmVersionsApi(api_client)
rpm_rpm_repository_version_href = 'rpm_rpm_repository_version_href_example' # str |
repair = pulpcore.client.pulp_rpm.Repair() # Repair |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
api_response = api_instance.repair(rpm_rpm_repository_version_href, repair, x_task_diagnostics=x_task_diagnostics)
print("The response of RepositoriesRpmVersionsApi->repair:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RepositoriesRpmVersionsApi->repair: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| rpm_rpm_repository_version_href | str | ||
| repair | Repair | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RepositoryAddRemoveContent
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ref_name attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| add_content_units | List[str] | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
| remove_content_units | List[str] | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
| base_version | str | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
Example
from pulpcore.client.pulp_rpm.models.repository_add_remove_content import RepositoryAddRemoveContent
# TODO update the JSON string below
json = "{}"
# create an instance of RepositoryAddRemoveContent from a JSON string
repository_add_remove_content_instance = RepositoryAddRemoveContent.from_json(json)
# print the JSON string representation of the object
print(RepositoryAddRemoveContent.to_json())
# convert the object into a dict
repository_add_remove_content_dict = repository_add_remove_content_instance.to_dict()
# create an instance of RepositoryAddRemoveContent from a dict
repository_add_remove_content_from_dict = RepositoryAddRemoveContent.from_dict(repository_add_remove_content_dict)
[Back to Model list] [Back to API list] [Back to README]
RepositoryVersionResponse
Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ref_name attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| number | int | [optional] [readonly] | |
| repository | str | [optional] [readonly] | |
| base_version | str | A repository version whose content was used as the initial set of content for this repository version | [optional] |
| content_summary | ContentSummaryResponse | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly] |
| vuln_report | str | [optional] [readonly] |
Example
from pulpcore.client.pulp_rpm.models.repository_version_response import RepositoryVersionResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RepositoryVersionResponse from a JSON string
repository_version_response_instance = RepositoryVersionResponse.from_json(json)
# print the JSON string representation of the object
print(RepositoryVersionResponse.to_json())
# convert the object into a dict
repository_version_response_dict = repository_version_response_instance.to_dict()
# create an instance of RepositoryVersionResponse from a dict
repository_version_response_from_dict = RepositoryVersionResponse.from_dict(repository_version_response_dict)
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.RpmCompsApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| rpm_comps_upload | POST /api/pulp/{pulp_domain}/api/v3/rpm/comps/ | Upload comps.xml |
rpm_comps_upload
AsyncOperationResponse rpm_comps_upload(pulp_domain, file, x_task_diagnostics=x_task_diagnostics, repository=repository, replace=replace)
Upload comps.xml
Trigger an asynchronous task to upload a comps.xml file.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RpmCompsApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
file = None # bytearray | Full path of a comps.xml file that may be parsed into comps.xml Content units.
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
repository = 'repository_example' # str | URI of an RPM repository the comps.xml content units should be associated to. (optional)
replace = True # bool | If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. (optional)
try:
# Upload comps.xml
api_response = api_instance.rpm_comps_upload(pulp_domain, file, x_task_diagnostics=x_task_diagnostics, repository=repository, replace=replace)
print("The response of RpmCompsApi->rpm_comps_upload:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RpmCompsApi->rpm_comps_upload: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| file | bytearray | Full path of a comps.xml file that may be parsed into comps.xml Content units. | |
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
| repository | str | URI of an RPM repository the comps.xml content units should be associated to. | [optional] |
| replace | bool | If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: multipart/form-data, application/x-www-form-urlencoded
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pulpcore.client.pulp_rpm.RpmCopyApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| copy_content | POST /api/pulp/{pulp_domain}/api/v3/rpm/copy/ | Copy content |
copy_content
AsyncOperationResponse copy_content(pulp_domain, copy, x_task_diagnostics=x_task_diagnostics)
Copy content
Trigger an asynchronous task to copy RPM contentfrom one repository into another, creating a newrepository version.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.async_operation_response import AsyncOperationResponse
from pulpcore.client.pulp_rpm.models.copy import Copy
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RpmCopyApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
copy = pulpcore.client.pulp_rpm.Copy() # Copy |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
# Copy content
api_response = api_instance.copy_content(pulp_domain, copy, x_task_diagnostics=x_task_diagnostics)
print("The response of RpmCopyApi->copy_content:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RpmCopyApi->copy_content: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| copy | Copy | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RpmDistributionTreeResponse
DistributionTree serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| header_version | str | Header Version. | |
| release_name | str | Release name. | |
| release_short | str | Release short name. | |
| release_version | str | Release version. | |
| release_is_layered | bool | Typically False for an operating system, True otherwise. | |
| base_product_name | str | Base Product name. | |
| base_product_short | str | Base Product short name. | |
| base_product_version | str | Base Product version. | |
| arch | str | Tree architecturerch. | |
| build_timestamp | float | Tree build time timestamp. | |
| instimage | str | Relative path to Anaconda instimage. | |
| mainimage | str | Relative path to Anaconda stage2 image. | |
| discnum | int | Disc number. | |
| totaldiscs | int | Number of discs in media set. | |
| addons | List[AddonResponse] | ||
| checksums | List[ChecksumResponse] | ||
| images | List[ImageResponse] | ||
| variants | List[VariantResponse] |
Example
from pulpcore.client.pulp_rpm.models.rpm_distribution_tree_response import RpmDistributionTreeResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmDistributionTreeResponse from a JSON string
rpm_distribution_tree_response_instance = RpmDistributionTreeResponse.from_json(json)
# print the JSON string representation of the object
print(RpmDistributionTreeResponse.to_json())
# convert the object into a dict
rpm_distribution_tree_response_dict = rpm_distribution_tree_response_instance.to_dict()
# create an instance of RpmDistributionTreeResponse from a dict
rpm_distribution_tree_response_from_dict = RpmDistributionTreeResponse.from_dict(rpm_distribution_tree_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemdDefaults
ModulemdDefaults serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| repository | str | A URI of a repository the new content unit should be associated with. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| module | str | Modulemd name. | |
| stream | str | Modulemd default stream. | |
| profiles | object | Default profiles for modulemd streams. | |
| snippet | str | Modulemd default snippet |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd_defaults import RpmModulemdDefaults
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemdDefaults from a JSON string
rpm_modulemd_defaults_instance = RpmModulemdDefaults.from_json(json)
# print the JSON string representation of the object
print(RpmModulemdDefaults.to_json())
# convert the object into a dict
rpm_modulemd_defaults_dict = rpm_modulemd_defaults_instance.to_dict()
# create an instance of RpmModulemdDefaults from a dict
rpm_modulemd_defaults_from_dict = RpmModulemdDefaults.from_dict(rpm_modulemd_defaults_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemdDefaultsResponse
ModulemdDefaults serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| module | str | Modulemd name. | |
| stream | str | Modulemd default stream. | |
| profiles | object | Default profiles for modulemd streams. |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd_defaults_response import RpmModulemdDefaultsResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemdDefaultsResponse from a JSON string
rpm_modulemd_defaults_response_instance = RpmModulemdDefaultsResponse.from_json(json)
# print the JSON string representation of the object
print(RpmModulemdDefaultsResponse.to_json())
# convert the object into a dict
rpm_modulemd_defaults_response_dict = rpm_modulemd_defaults_response_instance.to_dict()
# create an instance of RpmModulemdDefaultsResponse from a dict
rpm_modulemd_defaults_response_from_dict = RpmModulemdDefaultsResponse.from_dict(rpm_modulemd_defaults_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemd
Modulemd serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| repository | str | A URI of a repository the new content unit should be associated with. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| name | str | Modulemd name. | |
| stream | str | Stream name. | |
| version | str | Modulemd version. | |
| static_context | bool | Modulemd static-context flag. | [optional] |
| context | str | Modulemd context. | |
| arch | str | Modulemd architecture. | |
| artifacts | object | Modulemd artifacts. | |
| dependencies | object | Modulemd dependencies. | |
| packages | List[Optional[str]] | Modulemd artifacts' packages. | [optional] |
| snippet | str | Modulemd snippet | |
| profiles | object | Modulemd profiles. | |
| description | str | Description of module. |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd import RpmModulemd
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemd from a JSON string
rpm_modulemd_instance = RpmModulemd.from_json(json)
# print the JSON string representation of the object
print(RpmModulemd.to_json())
# convert the object into a dict
rpm_modulemd_dict = rpm_modulemd_instance.to_dict()
# create an instance of RpmModulemd from a dict
rpm_modulemd_from_dict = RpmModulemd.from_dict(rpm_modulemd_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemdObsolete
ModulemdObsolete serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| repository | str | A URI of a repository the new content unit should be associated with. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| modified | str | Obsolete modified time. | |
| module_name | str | Modulemd name. | |
| module_stream | str | Modulemd's stream. | |
| message | str | Obsolete description. | |
| override_previous | str | Reset previous obsoletes. | |
| module_context | str | Modulemd's context. | |
| eol_date | str | End of Life date. | |
| obsoleted_by_module_name | str | Obsolete by module name. | |
| obsoleted_by_module_stream | str | Obsolete by module stream. | |
| snippet | str | Module Obsolete snippet. |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd_obsolete import RpmModulemdObsolete
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemdObsolete from a JSON string
rpm_modulemd_obsolete_instance = RpmModulemdObsolete.from_json(json)
# print the JSON string representation of the object
print(RpmModulemdObsolete.to_json())
# convert the object into a dict
rpm_modulemd_obsolete_dict = rpm_modulemd_obsolete_instance.to_dict()
# create an instance of RpmModulemdObsolete from a dict
rpm_modulemd_obsolete_from_dict = RpmModulemdObsolete.from_dict(rpm_modulemd_obsolete_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemdObsoleteResponse
ModulemdObsolete serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| modified | str | Obsolete modified time. | |
| module_name | str | Modulemd name. | |
| module_stream | str | Modulemd's stream. | |
| message | str | Obsolete description. | |
| override_previous | str | Reset previous obsoletes. | |
| module_context | str | Modulemd's context. | |
| eol_date | str | End of Life date. | |
| obsoleted_by_module_name | str | Obsolete by module name. | |
| obsoleted_by_module_stream | str | Obsolete by module stream. |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd_obsolete_response import RpmModulemdObsoleteResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemdObsoleteResponse from a JSON string
rpm_modulemd_obsolete_response_instance = RpmModulemdObsoleteResponse.from_json(json)
# print the JSON string representation of the object
print(RpmModulemdObsoleteResponse.to_json())
# convert the object into a dict
rpm_modulemd_obsolete_response_dict = rpm_modulemd_obsolete_response_instance.to_dict()
# create an instance of RpmModulemdObsoleteResponse from a dict
rpm_modulemd_obsolete_response_from_dict = RpmModulemdObsoleteResponse.from_dict(rpm_modulemd_obsolete_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmModulemdResponse
Modulemd serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| name | str | Modulemd name. | |
| stream | str | Stream name. | |
| version | str | Modulemd version. | |
| static_context | bool | Modulemd static-context flag. | [optional] |
| context | str | Modulemd context. | |
| arch | str | Modulemd architecture. | |
| artifacts | object | Modulemd artifacts. | |
| dependencies | object | Modulemd dependencies. | |
| packages | List[Optional[str]] | Modulemd artifacts' packages. | [optional] |
| profiles | object | Modulemd profiles. | |
| description | str | Description of module. |
Example
from pulpcore.client.pulp_rpm.models.rpm_modulemd_response import RpmModulemdResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmModulemdResponse from a JSON string
rpm_modulemd_response_instance = RpmModulemdResponse.from_json(json)
# print the JSON string representation of the object
print(RpmModulemdResponse.to_json())
# convert the object into a dict
rpm_modulemd_response_dict = rpm_modulemd_response_instance.to_dict()
# create an instance of RpmModulemdResponse from a dict
rpm_modulemd_response_from_dict = RpmModulemdResponse.from_dict(rpm_modulemd_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmPackageCategoryResponse
PackageCategory serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| id | str | Category id. | |
| name | str | Category name. | |
| description | str | Category description. | |
| display_order | int | Category display order. | |
| group_ids | object | Category group list. | |
| desc_by_lang | object | Category description by language. | |
| name_by_lang | object | Category name by language. | |
| digest | str | Category digest. |
Example
from pulpcore.client.pulp_rpm.models.rpm_package_category_response import RpmPackageCategoryResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmPackageCategoryResponse from a JSON string
rpm_package_category_response_instance = RpmPackageCategoryResponse.from_json(json)
# print the JSON string representation of the object
print(RpmPackageCategoryResponse.to_json())
# convert the object into a dict
rpm_package_category_response_dict = rpm_package_category_response_instance.to_dict()
# create an instance of RpmPackageCategoryResponse from a dict
rpm_package_category_response_from_dict = RpmPackageCategoryResponse.from_dict(rpm_package_category_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmPackageEnvironmentResponse
PackageEnvironment serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| id | str | Environment id. | |
| name | str | Environment name. | |
| description | str | Environment description. | |
| display_order | int | Environment display order. | |
| group_ids | object | Environment group list. | |
| option_ids | object | Environment option ids | |
| desc_by_lang | object | Environment description by language. | |
| name_by_lang | object | Environment name by language. | |
| digest | str | Environment digest. |
Example
from pulpcore.client.pulp_rpm.models.rpm_package_environment_response import RpmPackageEnvironmentResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmPackageEnvironmentResponse from a JSON string
rpm_package_environment_response_instance = RpmPackageEnvironmentResponse.from_json(json)
# print the JSON string representation of the object
print(RpmPackageEnvironmentResponse.to_json())
# convert the object into a dict
rpm_package_environment_response_dict = rpm_package_environment_response_instance.to_dict()
# create an instance of RpmPackageEnvironmentResponse from a dict
rpm_package_environment_response_from_dict = RpmPackageEnvironmentResponse.from_dict(rpm_package_environment_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmPackageGroupResponse
PackageGroup serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| id | str | PackageGroup id. | |
| default | bool | PackageGroup default. | [optional] |
| user_visible | bool | PackageGroup user visibility. | [optional] |
| display_order | int | PackageGroup display order. | |
| name | str | PackageGroup name. | |
| description | str | PackageGroup description. | |
| packages | object | PackageGroup package list. | |
| biarch_only | bool | PackageGroup biarch only. | [optional] |
| desc_by_lang | object | PackageGroup description by language. | |
| name_by_lang | object | PackageGroup name by language. | |
| digest | str | PackageGroup digest. |
Example
from pulpcore.client.pulp_rpm.models.rpm_package_group_response import RpmPackageGroupResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmPackageGroupResponse from a JSON string
rpm_package_group_response_instance = RpmPackageGroupResponse.from_json(json)
# print the JSON string representation of the object
print(RpmPackageGroupResponse.to_json())
# convert the object into a dict
rpm_package_group_response_dict = rpm_package_group_response_instance.to_dict()
# create an instance of RpmPackageGroupResponse from a dict
rpm_package_group_response_from_dict = RpmPackageGroupResponse.from_dict(rpm_package_group_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmPackageLangpacksResponse
PackageLangpacks serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| matches | object | Langpacks matches. | |
| digest | str | Langpacks digest. |
Example
from pulpcore.client.pulp_rpm.models.rpm_package_langpacks_response import RpmPackageLangpacksResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmPackageLangpacksResponse from a JSON string
rpm_package_langpacks_response_instance = RpmPackageLangpacksResponse.from_json(json)
# print the JSON string representation of the object
print(RpmPackageLangpacksResponse.to_json())
# convert the object into a dict
rpm_package_langpacks_response_dict = rpm_package_langpacks_response_instance.to_dict()
# create an instance of RpmPackageLangpacksResponse from a dict
rpm_package_langpacks_response_from_dict = RpmPackageLangpacksResponse.from_dict(rpm_package_langpacks_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmPackageResponse
A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| md5 | str | The MD5 checksum if available. | [optional] [readonly] |
| sha1 | str | The SHA-1 checksum if available. | [optional] [readonly] |
| sha224 | str | The SHA-224 checksum if available. | [optional] [readonly] |
| sha256 | str | The SHA-256 checksum if available. | [optional] [readonly] |
| sha384 | str | The SHA-384 checksum if available. | [optional] [readonly] |
| sha512 | str | The SHA-512 checksum if available. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| artifact | str | Artifact file representing the physical content | [optional] |
| name | str | Name of the package | [optional] [readonly] |
| epoch | str | The package's epoch | [optional] [readonly] |
| version | str | The version of the package. For example, '2.8.0' | [optional] [readonly] |
| release | str | The release of a particular version of the package. e.g. '1.el7' or '3.f24' | [optional] [readonly] |
| arch | str | The target architecture for a package.For example, 'x86_64', 'i686', or 'noarch' | [optional] [readonly] |
| pkg_id | str | Checksum of the package file | [optional] [readonly] |
| checksum_type | str | Type of checksum, e.g. 'sha256', 'md5' | [optional] [readonly] |
| summary | str | Short description of the packaged software | [optional] [readonly] |
| description | str | In-depth description of the packaged software | [optional] [readonly] |
| url | str | URL with more information about the packaged software | [optional] [readonly] |
| changelogs | object | Changelogs that package contains | [optional] [readonly] |
| files | object | Files that package contains | [optional] [readonly] |
| requires | object | Capabilities the package requires | [optional] [readonly] |
| provides | object | Capabilities the package provides | [optional] [readonly] |
| conflicts | object | Capabilities the package conflicts | [optional] [readonly] |
| obsoletes | object | Capabilities the package obsoletes | [optional] [readonly] |
| suggests | object | Capabilities the package suggests | [optional] [readonly] |
| enhances | object | Capabilities the package enhances | [optional] [readonly] |
| recommends | object | Capabilities the package recommends | [optional] [readonly] |
| supplements | object | Capabilities the package supplements | [optional] [readonly] |
| location_base | str | DEPRECATED: Base location of this package. This field will be removed in a future release of pulp_rpm. | [optional] [readonly] |
| location_href | str | DEPRECATED: Relative location of package to the repodata. This field will be removed in a future release of pulp_rpm. | [optional] [readonly] |
| rpm_buildhost | str | Hostname of the system that built the package | [optional] [readonly] |
| rpm_group | str | RPM group (See: http://fedoraproject.org/wiki/RPMGroups) | [optional] [readonly] |
| rpm_license | str | License term applicable to the package software (GPLv2, etc.) | [optional] [readonly] |
| rpm_packager | str | Person or persons responsible for creating the package | [optional] [readonly] |
| rpm_sourcerpm | str | Name of the source package (srpm) the package was built from | [optional] [readonly] |
| rpm_vendor | str | Name of the organization that produced the package | [optional] [readonly] |
| rpm_header_start | int | First byte of the header | [optional] [readonly] |
| rpm_header_end | int | Last byte of the header | [optional] [readonly] |
| is_modular | bool | Flag to identify if the package is modular | [optional] [readonly] |
| size_archive | int | Size, in bytes, of the archive portion of the original package file | [optional] [readonly] |
| size_installed | int | Total size, in bytes, of every file installed by this package | [optional] [readonly] |
| size_package | int | Size, in bytes, of the package | [optional] [readonly] |
| time_build | int | Time the package was built in seconds since the epoch | [optional] [readonly] |
| time_file | int | The 'file' time attribute in the primary XML - file mtime in seconds since the epoch. | [optional] [readonly] |
Example
from pulpcore.client.pulp_rpm.models.rpm_package_response import RpmPackageResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmPackageResponse from a JSON string
rpm_package_response_instance = RpmPackageResponse.from_json(json)
# print the JSON string representation of the object
print(RpmPackageResponse.to_json())
# convert the object into a dict
rpm_package_response_dict = rpm_package_response_instance.to_dict()
# create an instance of RpmPackageResponse from a dict
rpm_package_response_from_dict = RpmPackageResponse.from_dict(rpm_package_response_dict)
[Back to Model list] [Back to API list] [Back to README]
pulpcore.client.pulp_rpm.RpmPruneApi
All URIs are relative to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
| Method | HTTP request | Description |
|---|---|---|
| prune_packages | POST /api/pulp/{pulp_domain}/api/v3/rpm/prune/ |
prune_packages
TaskGroupOperationResponse prune_packages(pulp_domain, prune_packages, x_task_diagnostics=x_task_diagnostics)
Trigger an asynchronous old-Package-prune operation.
Example
- OAuth Authentication (json_header_remote_authentication):
- Basic Authentication (basicAuth):
- Api Key Authentication (cookieAuth):
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.models.prune_packages import PrunePackages
from pulpcore.client.pulp_rpm.models.task_group_operation_response import TaskGroupOperationResponse
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
host = "https://env-ephemeral-am9igp.apps.crc-eph.r9lp.p1.openshiftapps.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_rpm.RpmPruneApi(api_client)
pulp_domain = 'pulp_domain_example' # str |
prune_packages = pulpcore.client.pulp_rpm.PrunePackages() # PrunePackages |
x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
try:
api_response = api_instance.prune_packages(pulp_domain, prune_packages, x_task_diagnostics=x_task_diagnostics)
print("The response of RpmPruneApi->prune_packages:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RpmPruneApi->prune_packages: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_domain | str | ||
| prune_packages | PrunePackages | ||
| x_task_diagnostics | List[str] | List of profilers to use on tasks. | [optional] |
Return type
Authorization
json_header_remote_authentication, basicAuth, cookieAuth
HTTP request headers
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 202 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RpmRepoMetadataFileResponse
RepoMetadataFile serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| md5 | str | The MD5 checksum if available. | [optional] [readonly] |
| sha1 | str | The SHA-1 checksum if available. | [optional] [readonly] |
| sha224 | str | The SHA-224 checksum if available. | [optional] [readonly] |
| sha256 | str | The SHA-256 checksum if available. | [optional] [readonly] |
| sha384 | str | The SHA-384 checksum if available. | [optional] [readonly] |
| sha512 | str | The SHA-512 checksum if available. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| artifact | str | Artifact file representing the physical content | [optional] |
| relative_path | str | Relative path of the file. | |
| data_type | str | Metadata type. | |
| checksum_type | str | Checksum type for the file. | |
| checksum | str | Checksum for the file. |
Example
from pulpcore.client.pulp_rpm.models.rpm_repo_metadata_file_response import RpmRepoMetadataFileResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRepoMetadataFileResponse from a JSON string
rpm_repo_metadata_file_response_instance = RpmRepoMetadataFileResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRepoMetadataFileResponse.to_json())
# convert the object into a dict
rpm_repo_metadata_file_response_dict = rpm_repo_metadata_file_response_instance.to_dict()
# create an instance of RpmRepoMetadataFileResponse from a dict
rpm_repo_metadata_file_response_from_dict = RpmRepoMetadataFileResponse.from_dict(rpm_repo_metadata_file_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRepositorySyncURL
Serializer for RPM Sync.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| remote | str | A remote to sync from. This will override a remote set on repository. | [optional] |
| mirror | bool | DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'. | [optional] |
| sync_policy | SyncPolicyEnum | Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced. * `additive` - additive * `mirror_complete` - mirror_complete * `mirror_content_only` - mirror_content_only | [optional] |
| skip_types | List[SkipTypesEnum] | List of content types to skip during sync. | [optional] [default to []] |
| optimize | bool | Whether or not to optimize sync. | [optional] [default to True] |
Example
from pulpcore.client.pulp_rpm.models.rpm_repository_sync_url import RpmRepositorySyncURL
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRepositorySyncURL from a JSON string
rpm_repository_sync_url_instance = RpmRepositorySyncURL.from_json(json)
# print the JSON string representation of the object
print(RpmRepositorySyncURL.to_json())
# convert the object into a dict
rpm_repository_sync_url_dict = rpm_repository_sync_url_instance.to_dict()
# create an instance of RpmRepositorySyncURL from a dict
rpm_repository_sync_url_from_dict = RpmRepositorySyncURL.from_dict(rpm_repository_sync_url_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmAlternateContentSource
Serializer for RPM alternate content source.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Name of Alternate Content Source. | |
| last_refreshed | datetime | Date of last refresh of AlternateContentSource. | [optional] |
| paths | List[str] | List of paths that will be appended to the Remote url when searching for content. | [optional] |
| remote | str | The remote to provide alternate content source. |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source import RpmRpmAlternateContentSource
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmAlternateContentSource from a JSON string
rpm_rpm_alternate_content_source_instance = RpmRpmAlternateContentSource.from_json(json)
# print the JSON string representation of the object
print(RpmRpmAlternateContentSource.to_json())
# convert the object into a dict
rpm_rpm_alternate_content_source_dict = rpm_rpm_alternate_content_source_instance.to_dict()
# create an instance of RpmRpmAlternateContentSource from a dict
rpm_rpm_alternate_content_source_from_dict = RpmRpmAlternateContentSource.from_dict(rpm_rpm_alternate_content_source_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmAlternateContentSourceResponse
Serializer for RPM alternate content source.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| name | str | Name of Alternate Content Source. | |
| last_refreshed | datetime | Date of last refresh of AlternateContentSource. | [optional] |
| paths | List[str] | List of paths that will be appended to the Remote url when searching for content. | [optional] |
| remote | str | The remote to provide alternate content source. |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_alternate_content_source_response import RpmRpmAlternateContentSourceResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmAlternateContentSourceResponse from a JSON string
rpm_rpm_alternate_content_source_response_instance = RpmRpmAlternateContentSourceResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRpmAlternateContentSourceResponse.to_json())
# convert the object into a dict
rpm_rpm_alternate_content_source_response_dict = rpm_rpm_alternate_content_source_response_instance.to_dict()
# create an instance of RpmRpmAlternateContentSourceResponse from a dict
rpm_rpm_alternate_content_source_response_from_dict = RpmRpmAlternateContentSourceResponse.from_dict(rpm_rpm_alternate_content_source_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmDistribution
Serializer for RPM Distributions.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| base_path | str | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") | |
| content_guard | str | An optional content-guard. | [optional] |
| hidden | bool | Whether this distribution should be shown in the content app. | [optional] [default to False] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| name | str | A unique name. Ex, `rawhide` and `stable`. | |
| repository | str | The latest RepositoryVersion for this Repository will be served. | [optional] |
| publication | str | Publication to be served | [optional] |
| generate_repo_config | bool | An option specifying whether Pulp should generate *.repo files. | [optional] [default to False] |
| checkpoint | bool | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution import RpmRpmDistribution
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmDistribution from a JSON string
rpm_rpm_distribution_instance = RpmRpmDistribution.from_json(json)
# print the JSON string representation of the object
print(RpmRpmDistribution.to_json())
# convert the object into a dict
rpm_rpm_distribution_dict = rpm_rpm_distribution_instance.to_dict()
# create an instance of RpmRpmDistribution from a dict
rpm_rpm_distribution_from_dict = RpmRpmDistribution.from_dict(rpm_rpm_distribution_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmDistributionResponse
Serializer for RPM Distributions.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| base_path | str | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. "foo" and "foo/bar") | |
| base_url | str | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] |
| content_guard | str | An optional content-guard. | [optional] |
| no_content_change_since | str | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly] |
| hidden | bool | Whether this distribution should be shown in the content app. | [optional] [default to False] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| name | str | A unique name. Ex, `rawhide` and `stable`. | |
| repository | str | The latest RepositoryVersion for this Repository will be served. | [optional] |
| publication | str | Publication to be served | [optional] |
| generate_repo_config | bool | An option specifying whether Pulp should generate *.repo files. | [optional] [default to False] |
| checkpoint | bool | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_distribution_response import RpmRpmDistributionResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmDistributionResponse from a JSON string
rpm_rpm_distribution_response_instance = RpmRpmDistributionResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRpmDistributionResponse.to_json())
# convert the object into a dict
rpm_rpm_distribution_response_dict = rpm_rpm_distribution_response_instance.to_dict()
# create an instance of RpmRpmDistributionResponse from a dict
rpm_rpm_distribution_response_from_dict = RpmRpmDistributionResponse.from_dict(rpm_rpm_distribution_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmPublication
A Serializer for RpmPublication.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| repository_version | str | [optional] | |
| repository | str | A URI of the repository to be published. | [optional] |
| checkpoint | bool | [optional] | |
| checksum_type | PackageChecksumTypeEnum | The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| repo_config | object | A JSON document describing the config.repo file Pulp should generate for this repo | [optional] |
| compression_type | CompressionTypeEnum | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
| layout | LayoutEnum | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_publication import RpmRpmPublication
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmPublication from a JSON string
rpm_rpm_publication_instance = RpmRpmPublication.from_json(json)
# print the JSON string representation of the object
print(RpmRpmPublication.to_json())
# convert the object into a dict
rpm_rpm_publication_dict = rpm_rpm_publication_instance.to_dict()
# create an instance of RpmRpmPublication from a dict
rpm_rpm_publication_from_dict = RpmRpmPublication.from_dict(rpm_rpm_publication_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmPublicationResponse
A Serializer for RpmPublication.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| repository_version | str | [optional] | |
| repository | str | A URI of the repository to be published. | [optional] |
| checkpoint | bool | [optional] | |
| checksum_type | PackageChecksumTypeEnum | The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| metadata_checksum_type | PackageChecksumTypeEnum | REMOVED: The checksum type for metadata. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] [readonly] |
| package_checksum_type | PackageChecksumTypeEnum | REMOVED: The checksum type for packages. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] [readonly] |
| gpgcheck | int | REMOVED: An option specifying whether a client should perform a GPG signature check on packages. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead. | [optional] [readonly] |
| repo_gpgcheck | int | REMOVED: An option specifying whether a client should perform a GPG signature check on the repodata. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead. | [optional] [readonly] |
| sqlite_metadata | bool | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operational since pulp_rpm 3.25.0 release | [optional] [readonly] [default to False] |
| repo_config | object | A JSON document describing the config.repo file Pulp should generate for this repo | [optional] |
| compression_type | CompressionTypeEnum | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
| layout | LayoutEnum | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_publication_response import RpmRpmPublicationResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmPublicationResponse from a JSON string
rpm_rpm_publication_response_instance = RpmRpmPublicationResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRpmPublicationResponse.to_json())
# convert the object into a dict
rpm_rpm_publication_response_dict = rpm_rpm_publication_response_instance.to_dict()
# create an instance of RpmRpmPublicationResponse from a dict
rpm_rpm_publication_response_from_dict = RpmRpmPublicationResponse.from_dict(rpm_rpm_publication_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmRemote
A Serializer for RpmRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | A unique name for this remote. | |
| url | str | The URL of an external content source. | |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| client_key | str | A PEM encoded private key used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| proxy_username | str | The username to authenticte to the proxy. | [optional] |
| proxy_password | str | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| username | str | The username to be used for authentication when syncing. | [optional] |
| password | str | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| sles_auth_token | str | Authentication token for SLES repositories. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote import RpmRpmRemote
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmRemote from a JSON string
rpm_rpm_remote_instance = RpmRpmRemote.from_json(json)
# print the JSON string representation of the object
print(RpmRpmRemote.to_json())
# convert the object into a dict
rpm_rpm_remote_dict = rpm_rpm_remote_instance.to_dict()
# create an instance of RpmRpmRemote from a dict
rpm_rpm_remote_from_dict = RpmRpmRemote.from_dict(rpm_rpm_remote_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmRemoteResponseHiddenFieldsInner
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | ||
| is_set | bool |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response_hidden_fields_inner import RpmRpmRemoteResponseHiddenFieldsInner
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmRemoteResponseHiddenFieldsInner from a JSON string
rpm_rpm_remote_response_hidden_fields_inner_instance = RpmRpmRemoteResponseHiddenFieldsInner.from_json(json)
# print the JSON string representation of the object
print(RpmRpmRemoteResponseHiddenFieldsInner.to_json())
# convert the object into a dict
rpm_rpm_remote_response_hidden_fields_inner_dict = rpm_rpm_remote_response_hidden_fields_inner_instance.to_dict()
# create an instance of RpmRpmRemoteResponseHiddenFieldsInner from a dict
rpm_rpm_remote_response_hidden_fields_inner_from_dict = RpmRpmRemoteResponseHiddenFieldsInner.from_dict(rpm_rpm_remote_response_hidden_fields_inner_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmRemoteResponse
A Serializer for RpmRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the most recent update of the remote. | [optional] [readonly] |
| name | str | A unique name for this remote. | |
| url | str | The URL of an external content source. | |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| hidden_fields | List[RpmRpmRemoteResponseHiddenFieldsInner] | List of hidden (write only) fields | [optional] [readonly] |
| sles_auth_token | str | Authentication token for SLES repositories. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_remote_response import RpmRpmRemoteResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmRemoteResponse from a JSON string
rpm_rpm_remote_response_instance = RpmRpmRemoteResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRpmRemoteResponse.to_json())
# convert the object into a dict
rpm_rpm_remote_response_dict = rpm_rpm_remote_response_instance.to_dict()
# create an instance of RpmRpmRemoteResponse from a dict
rpm_rpm_remote_response_from_dict = RpmRpmRemoteResponse.from_dict(rpm_rpm_remote_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmRepository
Serializer for Rpm Repositories.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| name | str | A unique name for this repository. | |
| description | str | An optional description. | [optional] |
| retain_repo_versions | int | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
| remote | str | An optional remote to use by default when syncing. | [optional] |
| autopublish | bool | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to False] |
| metadata_signing_service | str | A reference to an associated signing service. | [optional] |
| package_signing_service | str | A reference to an associated package signing service. | [optional] |
| package_signing_fingerprint | str | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to ''] |
| retain_package_versions | int | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional] |
| checksum_type | PackageChecksumTypeEnum | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| repo_config | object | A JSON document describing the config.repo file Pulp should generate for this repo | [optional] |
| compression_type | CompressionTypeEnum | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
| layout | LayoutEnum | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository import RpmRpmRepository
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmRepository from a JSON string
rpm_rpm_repository_instance = RpmRpmRepository.from_json(json)
# print the JSON string representation of the object
print(RpmRpmRepository.to_json())
# convert the object into a dict
rpm_rpm_repository_dict = rpm_rpm_repository_instance.to_dict()
# create an instance of RpmRpmRepository from a dict
rpm_rpm_repository_from_dict = RpmRpmRepository.from_dict(rpm_rpm_repository_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmRpmRepositoryResponse
Serializer for Rpm Repositories.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| versions_href | str | [optional] [readonly] | |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| latest_version_href | str | [optional] [readonly] | |
| name | str | A unique name for this repository. | |
| description | str | An optional description. | [optional] |
| retain_repo_versions | int | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
| remote | str | An optional remote to use by default when syncing. | [optional] |
| autopublish | bool | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to False] |
| metadata_signing_service | str | A reference to an associated signing service. | [optional] |
| package_signing_service | str | A reference to an associated package signing service. | [optional] |
| package_signing_fingerprint | str | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to ''] |
| retain_package_versions | int | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional] |
| checksum_type | PackageChecksumTypeEnum | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] |
| metadata_checksum_type | PackageChecksumTypeEnum | REMOVED: The checksum type to use for metadata. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] [readonly] |
| package_checksum_type | PackageChecksumTypeEnum | REMOVED: The checksum type for packages. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional] [readonly] |
| gpgcheck | int | REMOVED: An option specifying whether a client should perform a GPG signature check on packages. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead. | [optional] [readonly] |
| repo_gpgcheck | int | REMOVED: An option specifying whether a client should perform a GPG signature check on the repodata. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead. | [optional] [readonly] |
| sqlite_metadata | bool | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release | [optional] [readonly] [default to False] |
| repo_config | object | A JSON document describing the config.repo file Pulp should generate for this repo | [optional] |
| compression_type | CompressionTypeEnum | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
| layout | LayoutEnum | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_rpm_repository_response import RpmRpmRepositoryResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmRpmRepositoryResponse from a JSON string
rpm_rpm_repository_response_instance = RpmRpmRepositoryResponse.from_json(json)
# print the JSON string representation of the object
print(RpmRpmRepositoryResponse.to_json())
# convert the object into a dict
rpm_rpm_repository_response_dict = rpm_rpm_repository_response_instance.to_dict()
# create an instance of RpmRpmRepositoryResponse from a dict
rpm_rpm_repository_response_from_dict = RpmRpmRepositoryResponse.from_dict(rpm_rpm_repository_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmUlnRemote
A Serializer for UlnRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | A unique name for this remote. | |
| url | str | The ULN repo URL of the remote content source."This is "uln://" followed by the channel name. E.g.: "uln://ol7_x86_64_oracle" | |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| client_key | str | A PEM encoded private key used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| proxy_username | str | The username to authenticte to the proxy. | [optional] |
| proxy_password | str | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
| username | str | Your ULN account username. | |
| password | str | Your ULN account password. | |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| uln_server_base_url | str | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_uln_remote import RpmUlnRemote
# TODO update the JSON string below
json = "{}"
# create an instance of RpmUlnRemote from a JSON string
rpm_uln_remote_instance = RpmUlnRemote.from_json(json)
# print the JSON string representation of the object
print(RpmUlnRemote.to_json())
# convert the object into a dict
rpm_uln_remote_dict = rpm_uln_remote_instance.to_dict()
# create an instance of RpmUlnRemote from a dict
rpm_uln_remote_from_dict = RpmUlnRemote.from_dict(rpm_uln_remote_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmUlnRemoteResponse
A Serializer for UlnRemote.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the most recent update of the remote. | [optional] [readonly] |
| name | str | A unique name for this remote. | |
| url | str | The ULN repo URL of the remote content source."This is "uln://" followed by the channel name. E.g.: "uln://ol7_x86_64_oracle" | |
| ca_cert | str | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
| client_cert | str | A PEM encoded client certificate used for authentication. | [optional] |
| tls_validation | bool | If True, TLS peer validation must be performed. | [optional] |
| proxy_url | str | The proxy URL. Format: scheme://host:port | [optional] |
| pulp_labels | Dict[str, Optional[str]] | [optional] | |
| download_concurrency | int | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
| max_retries | int | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
| policy | PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional] |
| total_timeout | float | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| connect_timeout | float | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_connect_timeout | float | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| sock_read_timeout | float | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
| headers | List[object] | Headers for aiohttp.Clientsession | [optional] |
| rate_limit | int | Limits requests per second for each concurrent downloader | [optional] |
| hidden_fields | List[RpmRpmRemoteResponseHiddenFieldsInner] | List of hidden (write only) fields | [optional] [readonly] |
| uln_server_base_url | str | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional] |
Example
from pulpcore.client.pulp_rpm.models.rpm_uln_remote_response import RpmUlnRemoteResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmUlnRemoteResponse from a JSON string
rpm_uln_remote_response_instance = RpmUlnRemoteResponse.from_json(json)
# print the JSON string representation of the object
print(RpmUlnRemoteResponse.to_json())
# convert the object into a dict
rpm_uln_remote_response_dict = rpm_uln_remote_response_instance.to_dict()
# create an instance of RpmUlnRemoteResponse from a dict
rpm_uln_remote_response_from_dict = RpmUlnRemoteResponse.from_dict(rpm_uln_remote_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmUpdateCollection
A Serializer for UpdateCollection.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Collection name. | |
| shortname | str | Collection short name. | |
| module | object | Collection modular NSVCA. |
Example
from pulpcore.client.pulp_rpm.models.rpm_update_collection import RpmUpdateCollection
# TODO update the JSON string below
json = "{}"
# create an instance of RpmUpdateCollection from a JSON string
rpm_update_collection_instance = RpmUpdateCollection.from_json(json)
# print the JSON string representation of the object
print(RpmUpdateCollection.to_json())
# convert the object into a dict
rpm_update_collection_dict = rpm_update_collection_instance.to_dict()
# create an instance of RpmUpdateCollection from a dict
rpm_update_collection_from_dict = RpmUpdateCollection.from_dict(rpm_update_collection_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmUpdateCollectionResponse
A Serializer for UpdateCollection.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Collection name. | |
| shortname | str | Collection short name. | |
| module | object | Collection modular NSVCA. | |
| packages | List[object] | List of packages | [optional] [readonly] |
Example
from pulpcore.client.pulp_rpm.models.rpm_update_collection_response import RpmUpdateCollectionResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmUpdateCollectionResponse from a JSON string
rpm_update_collection_response_instance = RpmUpdateCollectionResponse.from_json(json)
# print the JSON string representation of the object
print(RpmUpdateCollectionResponse.to_json())
# convert the object into a dict
rpm_update_collection_response_dict = rpm_update_collection_response_instance.to_dict()
# create an instance of RpmUpdateCollectionResponse from a dict
rpm_update_collection_response_from_dict = RpmUpdateCollectionResponse.from_dict(rpm_update_collection_response_dict)
[Back to Model list] [Back to API list] [Back to README]
RpmUpdateRecordResponse
A Serializer for UpdateRecord.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| pulp_href | str | [optional] [readonly] | |
| prn | str | The Pulp Resource Name (PRN). | [optional] [readonly] |
| pulp_created | datetime | Timestamp of creation. | [optional] [readonly] |
| pulp_last_updated | datetime | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly] |
| pulp_labels | Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
| vuln_report | str | [optional] [readonly] | |
| id | str | Update id (short update name, e.g. RHEA-2013:1777) | [optional] [readonly] |
| updated_date | str | Date when the update was updated (e.g. '2013-12-02 00:00:00') | [optional] [readonly] |
| description | str | Update description | [optional] [readonly] |
| issued_date | str | Date when the update was issued (e.g. '2013-12-02 00:00:00') | [optional] [readonly] |
| fromstr | str | Source of the update (e.g. security@redhat.com) | [optional] [readonly] |
| status | str | Update status ('final', ...) | [optional] [readonly] |
| title | str | Update name | [optional] [readonly] |
| summary | str | Short summary | [optional] [readonly] |
| version | str | Update version (probably always an integer number) | [optional] [readonly] |
| type | str | Update type ('enhancement', 'bugfix', ...) | [optional] [readonly] |
| severity | str | Severity | [optional] [readonly] |
| solution | str | Solution | [optional] [readonly] |
| release | str | Update release | [optional] [readonly] |
| rights | str | Copyrights | [optional] [readonly] |
| pushcount | str | Push count | [optional] [readonly] |
| pkglist | List[RpmUpdateCollectionResponse] | List of packages | [optional] [readonly] |
| references | List[object] | List of references | [optional] [readonly] |
| reboot_suggested | bool | Reboot suggested | [optional] [readonly] |
Example
from pulpcore.client.pulp_rpm.models.rpm_update_record_response import RpmUpdateRecordResponse
# TODO update the JSON string below
json = "{}"
# create an instance of RpmUpdateRecordResponse from a JSON string
rpm_update_record_response_instance = RpmUpdateRecordResponse.from_json(json)
# print the JSON string representation of the object
print(RpmUpdateRecordResponse.to_json())
# convert the object into a dict
rpm_update_record_response_dict = rpm_update_record_response_instance.to_dict()
# create an instance of RpmUpdateRecordResponse from a dict
rpm_update_record_response_from_dict = RpmUpdateRecordResponse.from_dict(rpm_update_record_response_dict)
[Back to Model list] [Back to API list] [Back to README]
SetLabel
Serializer for synchronously setting a label.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| key | str | ||
| value | str |
Example
from pulpcore.client.pulp_rpm.models.set_label import SetLabel
# TODO update the JSON string below
json = "{}"
# create an instance of SetLabel from a JSON string
set_label_instance = SetLabel.from_json(json)
# print the JSON string representation of the object
print(SetLabel.to_json())
# convert the object into a dict
set_label_dict = set_label_instance.to_dict()
# create an instance of SetLabel from a dict
set_label_from_dict = SetLabel.from_dict(set_label_dict)
[Back to Model list] [Back to API list] [Back to README]
SetLabelResponse
Serializer for synchronously setting a label.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| key | str | ||
| value | str |
Example
from pulpcore.client.pulp_rpm.models.set_label_response import SetLabelResponse
# TODO update the JSON string below
json = "{}"
# create an instance of SetLabelResponse from a JSON string
set_label_response_instance = SetLabelResponse.from_json(json)
# print the JSON string representation of the object
print(SetLabelResponse.to_json())
# convert the object into a dict
set_label_response_dict = set_label_response_instance.to_dict()
# create an instance of SetLabelResponse from a dict
set_label_response_from_dict = SetLabelResponse.from_dict(set_label_response_dict)
[Back to Model list] [Back to API list] [Back to README]
SkipTypesEnum
srpm- srpm *treeinfo- treeinfo
Enum
-
SRPM(value:'srpm') -
TREEINFO(value:'treeinfo')
[Back to Model list] [Back to API list] [Back to README]
SyncPolicyEnum
additive- additive *mirror_complete- mirror_complete *mirror_content_only- mirror_content_only
Enum
-
ADDITIVE(value:'additive') -
MIRROR_COMPLETE(value:'mirror_complete') -
MIRROR_CONTENT_ONLY(value:'mirror_content_only')
[Back to Model list] [Back to API list] [Back to README]
TaskGroupOperationResponse
Serializer for asynchronous operations that return a task group.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| task_group | str | The href of the task group. |
Example
from pulpcore.client.pulp_rpm.models.task_group_operation_response import TaskGroupOperationResponse
# TODO update the JSON string below
json = "{}"
# create an instance of TaskGroupOperationResponse from a JSON string
task_group_operation_response_instance = TaskGroupOperationResponse.from_json(json)
# print the JSON string representation of the object
print(TaskGroupOperationResponse.to_json())
# convert the object into a dict
task_group_operation_response_dict = task_group_operation_response_instance.to_dict()
# create an instance of TaskGroupOperationResponse from a dict
task_group_operation_response_from_dict = TaskGroupOperationResponse.from_dict(task_group_operation_response_dict)
[Back to Model list] [Back to API list] [Back to README]
UnsetLabel
Serializer for synchronously UNsetting a label.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| key | str |
Example
from pulpcore.client.pulp_rpm.models.unset_label import UnsetLabel
# TODO update the JSON string below
json = "{}"
# create an instance of UnsetLabel from a JSON string
unset_label_instance = UnsetLabel.from_json(json)
# print the JSON string representation of the object
print(UnsetLabel.to_json())
# convert the object into a dict
unset_label_dict = unset_label_instance.to_dict()
# create an instance of UnsetLabel from a dict
unset_label_from_dict = UnsetLabel.from_dict(unset_label_dict)
[Back to Model list] [Back to API list] [Back to README]
UnsetLabelResponse
Serializer for synchronously UNsetting a label.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| key | str | ||
| value | str | [optional] [readonly] |
Example
from pulpcore.client.pulp_rpm.models.unset_label_response import UnsetLabelResponse
# TODO update the JSON string below
json = "{}"
# create an instance of UnsetLabelResponse from a JSON string
unset_label_response_instance = UnsetLabelResponse.from_json(json)
# print the JSON string representation of the object
print(UnsetLabelResponse.to_json())
# convert the object into a dict
unset_label_response_dict = unset_label_response_instance.to_dict()
# create an instance of UnsetLabelResponse from a dict
unset_label_response_from_dict = UnsetLabelResponse.from_dict(unset_label_response_dict)
[Back to Model list] [Back to API list] [Back to README]
VariantResponse
Variant serializer.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| variant_id | str | Variant id. | |
| uid | str | Variant uid. | |
| name | str | Variant name. | |
| type | str | Variant type. | |
| packages | str | Relative path to directory with binary RPMs. | |
| source_packages | str | Relative path to directory with source RPMs. | |
| source_repository | str | Relative path to YUM repository with source RPMs. | |
| debug_packages | str | Relative path to directory with debug RPMs. | |
| debug_repository | str | Relative path to YUM repository with debug RPMs. | |
| identity | str | Relative path to a pem file that identifies a product. |
Example
from pulpcore.client.pulp_rpm.models.variant_response import VariantResponse
# TODO update the JSON string below
json = "{}"
# create an instance of VariantResponse from a JSON string
variant_response_instance = VariantResponse.from_json(json)
# print the JSON string representation of the object
print(VariantResponse.to_json())
# convert the object into a dict
variant_response_dict = variant_response_instance.to_dict()
# create an instance of VariantResponse from a dict
variant_response_from_dict = VariantResponse.from_dict(variant_response_dict)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crc_pulp_rpm_client-20260115.3.tar.gz.
File metadata
- Download URL: crc_pulp_rpm_client-20260115.3.tar.gz
- Upload date:
- Size: 255.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0620773bb4b52d441b8a332a66dd997d1009adbf1169d09ebffb4aa204931396
|
|
| MD5 |
9bd7b45b1bf2edac0559c5e9267ca8f8
|
|
| BLAKE2b-256 |
cbd21cf56ae67586017c46af2ee861eab6c83b261986cf3877f149f4642c3191
|
File details
Details for the file crc_pulp_rpm_client-20260115.3-py3-none-any.whl.
File metadata
- Download URL: crc_pulp_rpm_client-20260115.3-py3-none-any.whl
- Upload date:
- Size: 331.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f684078797efde23c473f945b3ea0fd6accbdbe71630bf127c041d10ab9a2911
|
|
| MD5 |
abc060ea29d0efcb48fb89552fdef0bc
|
|
| BLAKE2b-256 |
e465ee45223ee5e5b290c95ac0a2db20523b49ce6771612c2dc7e9a48c67f700
|