# PulpRpmClient::PublicationsRpmApi All URIs are relative to *https://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_role**](PublicationsRpmApi.md#add_role) | **POST** {rpm_rpm_publication_href}add_role/ | [**create**](PublicationsRpmApi.md#create) | **POST** /pulp/api/v3/publications/rpm/rpm/ | Create a rpm publication [**delete**](PublicationsRpmApi.md#delete) | **DELETE** {rpm_rpm_publication_href} | Delete a rpm publication [**list**](PublicationsRpmApi.md#list) | **GET** /pulp/api/v3/publications/rpm/rpm/ | List rpm publications [**list_roles**](PublicationsRpmApi.md#list_roles) | **GET** {rpm_rpm_publication_href}list_roles/ | [**my_permissions**](PublicationsRpmApi.md#my_permissions) | **GET** {rpm_rpm_publication_href}my_permissions/ | [**read**](PublicationsRpmApi.md#read) | **GET** {rpm_rpm_publication_href} | Inspect a rpm publication [**remove_role**](PublicationsRpmApi.md#remove_role) | **POST** {rpm_rpm_publication_href}remove_role/ | ## add_role > NestedRoleResponse add_role(rpm_rpm_publication_href, nested_role) Add a role for this object to users/groups. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | nested_role = PulpRpmClient::NestedRole.new # NestedRole | begin result = api_instance.add_role(rpm_rpm_publication_href, nested_role) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->add_role: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | **nested_role** | [**NestedRole**](NestedRole.md)| | ### Return type [**NestedRoleResponse**](NestedRoleResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json ## create > AsyncOperationResponse create(rpm_rpm_publication) Create a rpm publication Trigger an asynchronous task to create a new RPM content publication. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication = PulpRpmClient::RpmRpmPublication.new # RpmRpmPublication | begin #Create a rpm publication result = api_instance.create(rpm_rpm_publication) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication** | [**RpmRpmPublication**](RpmRpmPublication.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json ## delete > delete(rpm_rpm_publication_href) Delete a rpm publication ViewSet for Rpm Publications. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | begin #Delete a rpm publication api_instance.delete(rpm_rpm_publication_href) rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | ### Return type nil (empty response body) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## list > PaginatedrpmRpmPublicationResponseList list(opts) List rpm publications ViewSet for Rpm Publications. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new opts = { content: 'content_example', # String | Content Unit referenced by HREF content__in: 'content__in_example', # String | Content Unit referenced by HREF limit: 56, # Integer | Number of results to return per page. offset: 56, # Integer | The initial index from which to return the results. ordering: ['ordering_example'], # Array | Ordering pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array | Filter results where pulp_created is between two comma separated values repository: 'repository_example', # String | Repository referenced by HREF repository_version: 'repository_version_example', # String | Repository Version referenced by HREF fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin #List rpm publications result = api_instance.list(opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content** | **String**| Content Unit referenced by HREF | [optional] **content__in** | **String**| Content Unit referenced by HREF | [optional] **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **ordering** | [**Array<String>**](String.md)| Ordering | [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__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** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional] **repository** | **String**| Repository referenced by HREF | [optional] **repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional] **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**PaginatedrpmRpmPublicationResponseList**](PaginatedrpmRpmPublicationResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list_roles > ObjectRolesResponse list_roles(rpm_rpm_publication_href, opts) List roles assigned to this object. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | opts = { fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin result = api_instance.list_roles(rpm_rpm_publication_href, opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->list_roles: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**ObjectRolesResponse**](ObjectRolesResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## my_permissions > MyPermissionsResponse my_permissions(rpm_rpm_publication_href, opts) List permissions available to the current user on this object. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | opts = { fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin result = api_instance.my_permissions(rpm_rpm_publication_href, opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->my_permissions: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**MyPermissionsResponse**](MyPermissionsResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > RpmRpmPublicationResponse read(rpm_rpm_publication_href, opts) Inspect a rpm publication ViewSet for Rpm Publications. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | opts = { fields: ['fields_example'], # Array | A list of fields to include in the response. exclude_fields: ['exclude_fields_example'] # Array | A list of fields to exclude from the response. } begin #Inspect a rpm publication result = api_instance.read(rpm_rpm_publication_href, opts) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | **fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional] **exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional] ### Return type [**RpmRpmPublicationResponse**](RpmRpmPublicationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## remove_role > NestedRoleResponse remove_role(rpm_rpm_publication_href, nested_role) Remove a role for this object from users/groups. ### Example ```ruby # load the gem require 'pulp_rpm_client' # setup authorization PulpRpmClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpRpmClient::PublicationsRpmApi.new rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String | nested_role = PulpRpmClient::NestedRole.new # NestedRole | begin result = api_instance.remove_role(rpm_rpm_publication_href, nested_role) p result rescue PulpRpmClient::ApiError => e puts "Exception when calling PublicationsRpmApi->remove_role: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rpm_rpm_publication_href** | **String**| | **nested_role** | [**NestedRole**](NestedRole.md)| | ### Return type [**NestedRoleResponse**](NestedRoleResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json