Sha256: 0d7cb33defea0217edc20496cc95c679add01949796e9baf0577d8ff6c7b6802

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

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

    resource_path 'oauth/clients'
    type 'oauth-clients'

    # 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],
          patchable_by: [:system]

    field :client_secret,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [:system],
          patchable_by: [:system]
    
    field :redirect_uri,
          type: :array,
          sortable: false,
          filterable: false,
          creatable_by: [:system],
          patchable_by: [:system]

    field :client_name,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [:system],
          patchable_by: [:system]

    field :client_author,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [:system],
          patchable_by: [:system]
    
    field :scope,
          type: :date,
          sortable: false,
          filterable: false,
          creatable_by: [:system],
          patchable_by: [:system]
    
    field :user_id,
          type: :date,
          sortable: false,
          filterable: true,
          creatable_by: [:system],
          patchable_by: [:system]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alula-ruby-0.68.0 lib/alula/resources/oauth_client.rb
alula-ruby-0.67.0 lib/alula/resources/oauth_client.rb
alula-ruby-0.66.0 lib/alula/resources/oauth_client.rb
alula-ruby-0.65.0 lib/alula/resources/oauth_client.rb