Sha256: 3f4703457d5265ef2146309f9322ee0dc8380e7adc39fbb55eaab7c30e0d6768

Contents?: true

Size: 1.63 KB

Versions: 17

Compression:

Stored size: 1.63 KB

Contents

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

    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

17 entries across 17 versions & 1 rubygems

Version Path
alula-ruby-1.2.0 lib/alula/resources/oauth_client.rb
alula-ruby-1.1.0 lib/alula/resources/oauth_client.rb
alula-ruby-1.0.2 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.11 lib/alula/resources/oauth_client.rb
alula-ruby-1.0.1 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.10 lib/alula/resources/oauth_client.rb
alula-ruby-1.0.0 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.9 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.8 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.7 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.6 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.5 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.4 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.3 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.2 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.1 lib/alula/resources/oauth_client.rb
alula-ruby-0.69.0 lib/alula/resources/oauth_client.rb