# PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**list**](PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ | [**read**](PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ | [**update**](PulpAnsibleGalaxyApiCollectionsApi.md#update) | **PUT** /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::PulpAnsibleGalaxyApiCollectionsApi.new path = 'path_example' # String | opts = { limit: 56, # Integer | Number of results to return per page. 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 PulpAnsibleGalaxyApiCollectionsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **path** | **String**| | **limit** | **Integer**| Number of results to return per page. | [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::PulpAnsibleGalaxyApiCollectionsApi.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 PulpAnsibleGalaxyApiCollectionsApi->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 > CollectionResponse update(name, namespace, path, collection) Update a Collection object. ### Example ```ruby # load the gem require 'pulp_ansible_client' api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new name = 'name_example' # String | namespace = 'namespace_example' # String | path = 'path_example' # String | collection = PulpAnsibleClient::Collection.new # Collection | begin result = api_instance.update(name, namespace, path, collection) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| | **namespace** | **String**| | **path** | **String**| | **collection** | [**Collection**](Collection.md)| | ### Return type [**CollectionResponse**](CollectionResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data - **Accept**: application/json