Sha256: 5cc21a60a46b8e14f4ef2f3536496eb7cd82ffb10a0fb7f94f676574d1f216d0

Contents?: true

Size: 729 Bytes

Versions: 14

Compression:

Stored size: 729 Bytes

Contents

require_relative 'resource'

module Contentful
  module Management
    # Resource class for ApiKey.
    # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/api-keys
    class ApiKey
      include Contentful::Management::Resource
      include Contentful::Management::Resource::SystemProperties
      include Contentful::Management::Resource::Refresher

      property :name
      property :description
      property :accessToken
      property :policies

      # @private
      def self.create_attributes(_client, attributes)
        {
          'name' => attributes.fetch(:name),
          'description' => attributes.fetch(:description, nil)
        }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
contentful-management-1.10.1 lib/contentful/management/api_key.rb
contentful-management-1.10.0 lib/contentful/management/api_key.rb
contentful-management-1.9.0 lib/contentful/management/api_key.rb
contentful-management-1.8.1 lib/contentful/management/api_key.rb
contentful-management-1.8.0 lib/contentful/management/api_key.rb
contentful-management-1.7.0 lib/contentful/management/api_key.rb
contentful-management-1.6.0 lib/contentful/management/api_key.rb
contentful-management-1.5.0 lib/contentful/management/api_key.rb
contentful-management-1.4.0 lib/contentful/management/api_key.rb
contentful-management-1.3.0 lib/contentful/management/api_key.rb
contentful-management-1.2.0 lib/contentful/management/api_key.rb
contentful-management-1.1.0 lib/contentful/management/api_key.rb
contentful-management-1.0.1 lib/contentful/management/api_key.rb
contentful-management-1.0.0 lib/contentful/management/api_key.rb