module Contentful::Management::ClientAssociationAllPublishedMethodsFactory

Wrapper for /public API for usage from within Client Wrapper Classes @private

Public Instance Methods

all_published(params = {}) click to toggle source

Gets a collection of published resources.

@param [Hash] params @see _ For complete option list: www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters @deprecated This call will be soon removed from the API except for Content Types

@return [Contentful::Management::Array<Contentful::Management::Resource>]

# File lib/contentful/management/client_association_all_published_method_factory.rb, line 13
def all_published(params = {})
  warn('This call will soon be removed from the API except for Content Types') unless params.key?(:suppress_warning)
  params.delete(:suppress_warning) if params.key?(:suppress_warning)

  @resource_requester.all(
    { space_id: @space_id, environment_id: @environment_id, public: true },
    params
  )
end