# PulpcoreClient::ContentguardsContentRedirectApi All URIs are relative to *http://localhost:24817* Method | HTTP request | Description ------------- | ------------- | ------------- [**contentguards_core_content_redirect_add_role**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_add_role) | **POST** {content_redirect_content_guard_href}add_role/ | [**contentguards_core_content_redirect_create**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_create) | **POST** /pulp/api/v3/contentguards/core/content_redirect/ | Create a content redirect content guard [**contentguards_core_content_redirect_delete**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_delete) | **DELETE** {content_redirect_content_guard_href} | Delete a content redirect content guard [**contentguards_core_content_redirect_list**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_list) | **GET** /pulp/api/v3/contentguards/core/content_redirect/ | List content redirect content guards [**contentguards_core_content_redirect_list_roles**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_list_roles) | **GET** {content_redirect_content_guard_href}list_roles/ | [**contentguards_core_content_redirect_my_permissions**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_my_permissions) | **GET** {content_redirect_content_guard_href}my_permissions/ | [**contentguards_core_content_redirect_partial_update**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_partial_update) | **PATCH** {content_redirect_content_guard_href} | Update a content redirect content guard [**contentguards_core_content_redirect_read**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_read) | **GET** {content_redirect_content_guard_href} | Inspect a content redirect content guard [**contentguards_core_content_redirect_remove_role**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_remove_role) | **POST** {content_redirect_content_guard_href}remove_role/ | [**contentguards_core_content_redirect_update**](ContentguardsContentRedirectApi.md#contentguards_core_content_redirect_update) | **PUT** {content_redirect_content_guard_href} | Update a content redirect content guard ## contentguards_core_content_redirect_add_role > NestedRoleResponse contentguards_core_content_redirect_add_role(content_redirect_content_guard_href, nested_role) Add a role for this object to users/groups. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String | nested_role = PulpcoreClient::NestedRole.new # NestedRole | begin result = api_instance.contentguards_core_content_redirect_add_role(content_redirect_content_guard_href, nested_role) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_add_role: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_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 ## contentguards_core_content_redirect_create > ContentRedirectContentGuardResponse contentguards_core_content_redirect_create(content_redirect_content_guard) Create a content redirect content guard Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard = PulpcoreClient::ContentRedirectContentGuard.new # ContentRedirectContentGuard | begin #Create a content redirect content guard result = api_instance.contentguards_core_content_redirect_create(content_redirect_content_guard) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard** | [**ContentRedirectContentGuard**](ContentRedirectContentGuard.md)| | ### Return type [**ContentRedirectContentGuardResponse**](ContentRedirectContentGuardResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json ## contentguards_core_content_redirect_delete > contentguards_core_content_redirect_delete(content_redirect_content_guard_href) Delete a content redirect content guard Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String | begin #Delete a content redirect content guard api_instance.contentguards_core_content_redirect_delete(content_redirect_content_guard_href) rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_href** | **String**| | ### Return type nil (empty response body) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## contentguards_core_content_redirect_list > PaginatedContentRedirectContentGuardResponseList contentguards_core_content_redirect_list(opts) List content redirect content guards Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new opts = { limit: 56, # Integer | Number of results to return per page. name: 'name_example', # String | name__contains: 'name__contains_example', # String | Filter results where name contains value name__icontains: 'name__icontains_example', # String | Filter results where name contains value name__in: ['name__in_example'], # Array | Filter results where name is in a comma-separated list of values name__startswith: 'name__startswith_example', # String | Filter results where name starts with value offset: 56, # Integer | The initial index from which to return the results. ordering: ['ordering_example'], # Array | Ordering 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 content redirect content guards result = api_instance.contentguards_core_content_redirect_list(opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **Integer**| Number of results to return per page. | [optional] **name** | **String**| | [optional] **name__contains** | **String**| Filter results where name contains value | [optional] **name__icontains** | **String**| Filter results where name contains value | [optional] **name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional] **name__startswith** | **String**| Filter results where name starts with value | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **ordering** | [**Array<String>**](String.md)| Ordering | [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 [**PaginatedContentRedirectContentGuardResponseList**](PaginatedContentRedirectContentGuardResponseList.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## contentguards_core_content_redirect_list_roles > ObjectRolesResponse contentguards_core_content_redirect_list_roles(content_redirect_content_guard_href, opts) List roles assigned to this object. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_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.contentguards_core_content_redirect_list_roles(content_redirect_content_guard_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_list_roles: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_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 ## contentguards_core_content_redirect_my_permissions > MyPermissionsResponse contentguards_core_content_redirect_my_permissions(content_redirect_content_guard_href, opts) List permissions available to the current user on this object. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_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.contentguards_core_content_redirect_my_permissions(content_redirect_content_guard_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_my_permissions: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_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 ## contentguards_core_content_redirect_partial_update > ContentRedirectContentGuardResponse contentguards_core_content_redirect_partial_update(content_redirect_content_guard_href, patched_content_redirect_content_guard) Update a content redirect content guard Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String | patched_content_redirect_content_guard = PulpcoreClient::PatchedContentRedirectContentGuard.new # PatchedContentRedirectContentGuard | begin #Update a content redirect content guard result = api_instance.contentguards_core_content_redirect_partial_update(content_redirect_content_guard_href, patched_content_redirect_content_guard) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_partial_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_href** | **String**| | **patched_content_redirect_content_guard** | [**PatchedContentRedirectContentGuard**](PatchedContentRedirectContentGuard.md)| | ### Return type [**ContentRedirectContentGuardResponse**](ContentRedirectContentGuardResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json ## contentguards_core_content_redirect_read > ContentRedirectContentGuardResponse contentguards_core_content_redirect_read(content_redirect_content_guard_href, opts) Inspect a content redirect content guard Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_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 content redirect content guard result = api_instance.contentguards_core_content_redirect_read(content_redirect_content_guard_href, opts) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_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 [**ContentRedirectContentGuardResponse**](ContentRedirectContentGuardResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## contentguards_core_content_redirect_remove_role > NestedRoleResponse contentguards_core_content_redirect_remove_role(content_redirect_content_guard_href, nested_role) Remove a role for this object from users/groups. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String | nested_role = PulpcoreClient::NestedRole.new # NestedRole | begin result = api_instance.contentguards_core_content_redirect_remove_role(content_redirect_content_guard_href, nested_role) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_remove_role: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_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 ## contentguards_core_content_redirect_update > ContentRedirectContentGuardResponse contentguards_core_content_redirect_update(content_redirect_content_guard_href, content_redirect_content_guard) Update a content redirect content guard Content guard to protect preauthenticated redirects to the content app. ### Example ```ruby # load the gem require 'pulpcore_client' # setup authorization PulpcoreClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String | content_redirect_content_guard = PulpcoreClient::ContentRedirectContentGuard.new # ContentRedirectContentGuard | begin #Update a content redirect content guard result = api_instance.contentguards_core_content_redirect_update(content_redirect_content_guard_href, content_redirect_content_guard) p result rescue PulpcoreClient::ApiError => e puts "Exception when calling ContentguardsContentRedirectApi->contentguards_core_content_redirect_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_redirect_content_guard_href** | **String**| | **content_redirect_content_guard** | [**ContentRedirectContentGuard**](ContentRedirectContentGuard.md)| | ### Return type [**ContentRedirectContentGuardResponse**](ContentRedirectContentGuardResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json