Sha256: b2d35d7b48df3483606338935d4c5323762eb2bbdb11dd60b2c75ccd38182e8e

Contents?: true

Size: 1.29 KB

Versions: 83

Compression:

Stored size: 1.29 KB

Contents

module Alula
  class EventWebhook < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::List
    extend Alula::ApiOperations::Save

    # You should update this to be a slash-separated, literal path to the resource
    # without the prefix /api/v1 or the suffix of an ID
    resource_path 'events/webhooks'

    # Relationships
    # None

    # Resource Fields
    # Not all params are used at the moment. See Alula::ResourceAttributes for details
    # on how params are parsed,
    field :id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :dealer],
          patchable_by: [:system, :dealer]

    field :reference,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: [:system, :dealer],
          patchable_by: [:system, :dealer]

    field :url,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :dealer],
          patchable_by: [:system, :dealer]

    field :secret,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system, :dealer],
          patchable_by: [:system, :dealer]

  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
alula-ruby-0.52.0 lib/alula/resources/event_webhook.rb
alula-ruby-0.51.0 lib/alula/resources/event_webhook.rb
alula-ruby-0.50.1 lib/alula/resources/event_webhook.rb