Sha256: a1899e1f7b83dc2f77b09beb223d74c77f9ba1c0494e11a8a4dd864730859358
Contents?: true
Size: 1.73 KB
Versions: 13
Compression:
Stored size: 1.73 KB
Contents
require_relative 'resource' module Contentful module Management # Resource class for OrganizationPeriodicUsage. # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/usage/organization-usage/get-organization-usage/console/curl class OrganizationPeriodicUsage include Contentful::Management::Resource include Contentful::Management::Resource::Refresher include Contentful::Management::Resource::SystemProperties property :metric, :string property :usage, :integer property :usagePerDay, :object property :unitOfMeasure, :string property :dateRange, :object # @private def self.build_endpoint(endpoint_options) organization_id = endpoint_options[:organization_id] "organizations/#{organization_id}/organization_periodic_usages" end # Gets all organization periodic usages for a given organization. # # @param [Contentful::Management::Client] client # @param [String] organization_id # @param [Hash] params # # @return [Contentful::Management::Array<Contentful::Management::OrganizationPeriodicUsage>] def self.all(client, organization_id, params = {}) ClientOrganizationPeriodicUsageMethodsFactory.new(client, organization_id).all(params) end # Not supported def self.find(*) fail 'Not supported' end # @private def self.endpoint 'usages' end # Not supported def self.create(*) fail 'Not supported' end # Not supported def destroy fail 'Not supported' end # Not supported def update(*) fail 'Not supported' end end end end
Version data entries
13 entries across 13 versions & 1 rubygems