Class: Sisense::ElasticubeDatasecurity
Constant Summary
collapse
- RESOURCE_NAME =
"datasecurity".freeze
- PARENT_CLASS =
Sisense::Elasticube
Class Method Summary
collapse
resource_base_path
api_client, class_name, descendants, #initialize, resource_base_path, #to_h
Class Method Details
.create(params:) ⇒ Object
14
15
16
17
18
|
# 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: {}) ⇒ Object
6
7
8
9
10
11
12
|
# 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:) ⇒ Object
20
21
22
23
24
|
# 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
|