Sha256: 62c01ddfdbbd4597e4bbb81487a4c36be157138647e1cc3c4702c77f476a6d78

Contents?: true

Size: 1001 Bytes

Versions: 33

Compression:

Stored size: 1001 Bytes

Contents

module Contentful
  module Management
    # Wrapper for /public API for usage from within Client Wrapper Classes
    # @private
    module ClientAssociationAllPublishedMethodsFactory
      # Gets a collection of published resources.
      #
      # @param [Hash] params
      # @see _ For complete option list: https://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>]
      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
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
contentful-management-2.7.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.6.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.5.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.4.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.3.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.2.2 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.2.1 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.2.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.1.1 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.1.0 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.0.2 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.0.1 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-2.0.0 lib/contentful/management/client_association_all_published_method_factory.rb