Sha256: e14406d97fab0b0c2b5ae0bbe75187b7171f59a3aa9cdcccb9767e2d36b3b495
Contents?: true
Size: 1.97 KB
Versions: 5
Compression:
Stored size: 1.97 KB
Contents
module Auth0 module Api module V1 # https://auth0.com/docs/api#rules module Rules # https://auth0.com/docs/api#!#get--api-rules # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2 def rules warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2" path = '/api/rules' get(path) end alias get_rules rules # https://auth0.com/docs/api#!#post--api-rules # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2 def create_rule(name, script, order = nil, status = true) warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2" path = '/api/rules' request_params = { name: name, status: status, script: script, order: order } post(path, request_params) end # https://auth0.com/docs/api#!#put--api-rules--rule-name- # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2 def update_rule(name, script, order = nil, status = true) warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2" path = "/api/rules/#{name}" request_params = { status: status, script: script, order: order } put(path, request_params) end # https://auth0.com/docs/api#!#delete--api-rules--rule-name- # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2 def delete_rule(name) warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2" path = "/api/rules/#{name}" delete(path) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems