# PulpAnsibleClient::PulpAnsibleApiV3CollectionsApi All URIs are relative to *https://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**list**](PulpAnsibleApiV3CollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ | [**read**](PulpAnsibleApiV3CollectionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ | [**update**](PulpAnsibleApiV3CollectionsApi.md#update) | **PATCH** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ | ## list > PaginatedCollectionResponseList list(path, opts) ViewSet for Collections. ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::PulpAnsibleApiV3CollectionsApi.new path = 'path_example' # String | opts = { deprecated: true, # Boolean | limit: 56, # Integer | Number of results to return per page. name: 'name_example', # String | namespace: 'namespace_example', # String | offset: 56, # Integer | The initial index from which to return the results. fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin result = api_instance.list(path, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleApiV3CollectionsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path** | **String**| | **deprecated** | **Boolean**| | [optional] **limit** | **Integer**| Number of results to return per page. | [optional] **name** | **String**| | [optional] **namespace** | **String**| | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**PaginatedCollectionResponseList**](PaginatedCollectionResponseList.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > CollectionResponse read(name, namespace, path, opts) ViewSet for Collections. ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::PulpAnsibleApiV3CollectionsApi.new name = 'name_example' # String | namespace = 'namespace_example' # String | path = 'path_example' # String | opts = { fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin result = api_instance.read(name, namespace, path, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleApiV3CollectionsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| | **namespace** | **String**| | **path** | **String**| | **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**CollectionResponse**](CollectionResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## update > AsyncOperationResponse update(name, namespace, path, body) Trigger an asynchronous update task ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::PulpAnsibleApiV3CollectionsApi.new name = 'name_example' # String | namespace = 'namespace_example' # String | path = 'path_example' # String | body = nil # Object | begin result = api_instance.update(name, namespace, path, body) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleApiV3CollectionsApi->update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| | **namespace** | **String**| | **path** | **String**| | **body** | **Object**| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json