class Sisense::ElasticubeDatasecurity

Constants

PARENT_CLASS
RESOURCE_NAME

Public Class Methods

create(params:) click to toggle source
# File lib/sisense/elasticube_datasecurity.rb, line 14
def self.create(params:)
  path = [resource_base_path(use_legacy_api: true), "datasecurity"].join("/")
  response = api_client.post(path, params: params)
  api_client.parsed_response(response, object_class: self)
end
list(params: {}) click to toggle source
# File lib/sisense/elasticube_datasecurity.rb, line 6
def self.list(params: {})
  server = params[:server]
  title = params[:elasticube_title]
  path = [resource_base_path(use_legacy_api: true), server, title, "datasecurity"].join("/")
  response = api_client.get(path)
  api_client.parsed_response(response, object_class: self)
end
update(id:, params:) click to toggle source
# File lib/sisense/elasticube_datasecurity.rb, line 20
def self.update(id:, params:)
  path = [resource_base_path(use_legacy_api: true), "datasecurity", id].join("/")
  response = api_client.put(path, params: params)
  api_client.parsed_response(response, object_class: self)
end