@looker/sdk
Version:
1,453 lines • 134 kB
JavaScript
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { APIMethods, encodeParam } from '@looker/sdk-rtl';
import { sdkVersion } from '../constants';
export class Looker40SDK extends APIMethods {
constructor(authSession) {
super(authSession, sdkVersion);
this.apiVersion = Looker40SDK.ApiVersion;
this.apiPath = authSession.settings.base_url === '' ? '' : authSession.settings.base_url + '/api/' + this.apiVersion;
}
follow_alert(alert_id, options) {
var _this = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this.post("/alerts/".concat(alert_id, "/follow"), null, null, options);
})();
}
unfollow_alert(alert_id, options) {
var _this2 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this2.delete("/alerts/".concat(alert_id, "/follow"), null, null, options);
})();
}
search_alerts(request, options) {
var _this3 = this;
return _asyncToGenerator(function* () {
return _this3.get('/alerts/search', {
limit: request.limit,
offset: request.offset,
group_by: request.group_by,
fields: request.fields,
disabled: request.disabled,
frequency: request.frequency,
condition_met: request.condition_met,
last_run_start: request.last_run_start,
last_run_end: request.last_run_end,
all_owners: request.all_owners
}, null, options);
})();
}
get_alert(alert_id, options) {
var _this4 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this4.get("/alerts/".concat(alert_id), null, null, options);
})();
}
update_alert(alert_id, body, options) {
var _this5 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this5.put("/alerts/".concat(alert_id), null, body, options);
})();
}
update_alert_field(alert_id, body, options) {
var _this6 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this6.patch("/alerts/".concat(alert_id), null, body, options);
})();
}
delete_alert(alert_id, options) {
var _this7 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this7.delete("/alerts/".concat(alert_id), null, null, options);
})();
}
create_alert(body, options) {
var _this8 = this;
return _asyncToGenerator(function* () {
return _this8.post('/alerts', null, body, options);
})();
}
enqueue_alert(alert_id, force, options) {
var _this9 = this;
return _asyncToGenerator(function* () {
alert_id = encodeParam(alert_id);
return _this9.post("/alerts/".concat(alert_id, "/enqueue"), {
force
}, null, options);
})();
}
alert_notifications(request, options) {
var _this10 = this;
return _asyncToGenerator(function* () {
return _this10.get('/alert_notifications', {
limit: request.limit,
offset: request.offset
}, null, options);
})();
}
read_alert_notification(alert_notification_id, options) {
var _this11 = this;
return _asyncToGenerator(function* () {
alert_notification_id = encodeParam(alert_notification_id);
return _this11.patch("/alert_notifications/".concat(alert_notification_id), null, null, options);
})();
}
login(request, options) {
var _this12 = this;
return _asyncToGenerator(function* () {
return _this12.post('/login', {
client_id: request.client_id,
client_secret: request.client_secret
}, null, options);
})();
}
login_user(user_id, associative, options) {
var _this13 = this;
return _asyncToGenerator(function* () {
user_id = encodeParam(user_id);
return _this13.post("/login/".concat(user_id), {
associative
}, null, options);
})();
}
logout(options) {
var _this14 = this;
return _asyncToGenerator(function* () {
return _this14.delete('/logout', null, null, options);
})();
}
artifact_usage(fields, options) {
var _this15 = this;
return _asyncToGenerator(function* () {
return _this15.get('/artifact/usage', {
fields
}, null, options);
})();
}
artifact_namespaces(request, options) {
var _this16 = this;
return _asyncToGenerator(function* () {
return _this16.get('/artifact/namespaces', {
fields: request.fields,
limit: request.limit,
offset: request.offset
}, null, options);
})();
}
artifact_value(namespace, key, options) {
var _this17 = this;
return _asyncToGenerator(function* () {
namespace = encodeParam(namespace);
return _this17.get("/artifact/".concat(namespace, "/value"), {
key
}, null, options);
})();
}
purge_artifacts(namespace, options) {
var _this18 = this;
return _asyncToGenerator(function* () {
namespace = encodeParam(namespace);
return _this18.delete("/artifact/".concat(namespace, "/purge"), null, null, options);
})();
}
search_artifacts(request, options) {
var _this19 = this;
return _asyncToGenerator(function* () {
request.namespace = encodeParam(request.namespace);
return _this19.get("/artifact/".concat(request.namespace, "/search"), {
fields: request.fields,
key: request.key,
user_ids: request.user_ids,
min_size: request.min_size,
max_size: request.max_size,
limit: request.limit,
offset: request.offset,
tally: request.tally
}, null, options);
})();
}
artifact(request, options) {
var _this20 = this;
return _asyncToGenerator(function* () {
request.namespace = encodeParam(request.namespace);
return _this20.get("/artifact/".concat(request.namespace), {
key: request.key,
fields: request.fields,
limit: request.limit,
offset: request.offset,
tally: request.tally
}, null, options);
})();
}
delete_artifact(namespace, key, options) {
var _this21 = this;
return _asyncToGenerator(function* () {
namespace = encodeParam(namespace);
return _this21.delete("/artifact/".concat(namespace), {
key
}, null, options);
})();
}
update_artifacts(namespace, body, fields, options) {
var _this22 = this;
return _asyncToGenerator(function* () {
namespace = encodeParam(namespace);
return _this22.put("/artifacts/".concat(namespace), {
fields
}, body, options);
})();
}
create_embed_secret(body, options) {
var _this23 = this;
return _asyncToGenerator(function* () {
return _this23.post('/embed_config/secrets', null, body, options);
})();
}
delete_embed_secret(embed_secret_id, options) {
var _this24 = this;
return _asyncToGenerator(function* () {
embed_secret_id = encodeParam(embed_secret_id);
return _this24.delete("/embed_config/secrets/".concat(embed_secret_id), null, null, options);
})();
}
create_sso_embed_url(body, options) {
var _this25 = this;
return _asyncToGenerator(function* () {
return _this25.post('/embed/sso_url', null, body, options);
})();
}
create_embed_url_as_me(body, options) {
var _this26 = this;
return _asyncToGenerator(function* () {
return _this26.post('/embed/token_url/me', null, body, options);
})();
}
validate_embed_url(url, options) {
var _this27 = this;
return _asyncToGenerator(function* () {
return _this27.get('/embed/sso/validate', {
url
}, null, options);
})();
}
acquire_embed_cookieless_session(body, options) {
var _this28 = this;
return _asyncToGenerator(function* () {
return _this28.post('/embed/cookieless_session/acquire', null, body, options);
})();
}
delete_embed_cookieless_session(session_reference_token, options) {
var _this29 = this;
return _asyncToGenerator(function* () {
session_reference_token = encodeParam(session_reference_token);
return _this29.delete("/embed/cookieless_session/".concat(session_reference_token), null, null, options);
})();
}
generate_tokens_for_cookieless_session(body, options) {
var _this30 = this;
return _asyncToGenerator(function* () {
return _this30.put('/embed/cookieless_session/generate_tokens', null, body, options);
})();
}
ldap_config(options) {
var _this31 = this;
return _asyncToGenerator(function* () {
return _this31.get('/ldap_config', null, null, options);
})();
}
update_ldap_config(body, options) {
var _this32 = this;
return _asyncToGenerator(function* () {
return _this32.patch('/ldap_config', null, body, options);
})();
}
test_ldap_config_connection(body, options) {
var _this33 = this;
return _asyncToGenerator(function* () {
return _this33.put('/ldap_config/test_connection', null, body, options);
})();
}
test_ldap_config_auth(body, options) {
var _this34 = this;
return _asyncToGenerator(function* () {
return _this34.put('/ldap_config/test_auth', null, body, options);
})();
}
test_ldap_config_user_info(body, options) {
var _this35 = this;
return _asyncToGenerator(function* () {
return _this35.put('/ldap_config/test_user_info', null, body, options);
})();
}
test_ldap_config_user_auth(body, options) {
var _this36 = this;
return _asyncToGenerator(function* () {
return _this36.put('/ldap_config/test_user_auth', null, body, options);
})();
}
register_mobile_device(body, options) {
var _this37 = this;
return _asyncToGenerator(function* () {
return _this37.post('/mobile/device', null, body, options);
})();
}
update_mobile_device_registration(device_id, options) {
var _this38 = this;
return _asyncToGenerator(function* () {
device_id = encodeParam(device_id);
return _this38.patch("/mobile/device/".concat(device_id), null, null, options);
})();
}
deregister_mobile_device(device_id, options) {
var _this39 = this;
return _asyncToGenerator(function* () {
device_id = encodeParam(device_id);
return _this39.delete("/mobile/device/".concat(device_id), null, null, options);
})();
}
all_oauth_client_apps(fields, options) {
var _this40 = this;
return _asyncToGenerator(function* () {
return _this40.get('/oauth_client_apps', {
fields
}, null, options);
})();
}
oauth_client_app(client_guid, fields, options) {
var _this41 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
return _this41.get("/oauth_client_apps/".concat(client_guid), {
fields
}, null, options);
})();
}
register_oauth_client_app(client_guid, body, fields, options) {
var _this42 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
return _this42.post("/oauth_client_apps/".concat(client_guid), {
fields
}, body, options);
})();
}
update_oauth_client_app(client_guid, body, fields, options) {
var _this43 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
return _this43.patch("/oauth_client_apps/".concat(client_guid), {
fields
}, body, options);
})();
}
delete_oauth_client_app(client_guid, options) {
var _this44 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
return _this44.delete("/oauth_client_apps/".concat(client_guid), null, null, options);
})();
}
invalidate_tokens(client_guid, options) {
var _this45 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
return _this45.delete("/oauth_client_apps/".concat(client_guid, "/tokens"), null, null, options);
})();
}
activate_app_user(client_guid, user_id, fields, options) {
var _this46 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
user_id = encodeParam(user_id);
return _this46.post("/oauth_client_apps/".concat(client_guid, "/users/").concat(user_id), {
fields
}, null, options);
})();
}
deactivate_app_user(client_guid, user_id, fields, options) {
var _this47 = this;
return _asyncToGenerator(function* () {
client_guid = encodeParam(client_guid);
user_id = encodeParam(user_id);
return _this47.delete("/oauth_client_apps/".concat(client_guid, "/users/").concat(user_id), {
fields
}, null, options);
})();
}
oidc_config(options) {
var _this48 = this;
return _asyncToGenerator(function* () {
return _this48.get('/oidc_config', null, null, options);
})();
}
update_oidc_config(body, options) {
var _this49 = this;
return _asyncToGenerator(function* () {
return _this49.patch('/oidc_config', null, body, options);
})();
}
oidc_test_config(test_slug, options) {
var _this50 = this;
return _asyncToGenerator(function* () {
test_slug = encodeParam(test_slug);
return _this50.get("/oidc_test_configs/".concat(test_slug), null, null, options);
})();
}
delete_oidc_test_config(test_slug, options) {
var _this51 = this;
return _asyncToGenerator(function* () {
test_slug = encodeParam(test_slug);
return _this51.delete("/oidc_test_configs/".concat(test_slug), null, null, options);
})();
}
create_oidc_test_config(body, options) {
var _this52 = this;
return _asyncToGenerator(function* () {
return _this52.post('/oidc_test_configs', null, body, options);
})();
}
password_config(options) {
var _this53 = this;
return _asyncToGenerator(function* () {
return _this53.get('/password_config', null, null, options);
})();
}
update_password_config(body, options) {
var _this54 = this;
return _asyncToGenerator(function* () {
return _this54.patch('/password_config', null, body, options);
})();
}
force_password_reset_at_next_login_for_all_users(options) {
var _this55 = this;
return _asyncToGenerator(function* () {
return _this55.put('/password_config/force_password_reset_at_next_login_for_all_users', null, null, options);
})();
}
saml_config(options) {
var _this56 = this;
return _asyncToGenerator(function* () {
return _this56.get('/saml_config', null, null, options);
})();
}
update_saml_config(body, options) {
var _this57 = this;
return _asyncToGenerator(function* () {
return _this57.patch('/saml_config', null, body, options);
})();
}
saml_test_config(test_slug, options) {
var _this58 = this;
return _asyncToGenerator(function* () {
test_slug = encodeParam(test_slug);
return _this58.get("/saml_test_configs/".concat(test_slug), null, null, options);
})();
}
delete_saml_test_config(test_slug, options) {
var _this59 = this;
return _asyncToGenerator(function* () {
test_slug = encodeParam(test_slug);
return _this59.delete("/saml_test_configs/".concat(test_slug), null, null, options);
})();
}
create_saml_test_config(body, options) {
var _this60 = this;
return _asyncToGenerator(function* () {
return _this60.post('/saml_test_configs', null, body, options);
})();
}
parse_saml_idp_metadata(body, options) {
var _this61 = this;
return _asyncToGenerator(function* () {
return _this61.post('/parse_saml_idp_metadata', null, body, options);
})();
}
fetch_and_parse_saml_idp_metadata(body, options) {
var _this62 = this;
return _asyncToGenerator(function* () {
return _this62.post('/fetch_and_parse_saml_idp_metadata', null, body, options);
})();
}
session_config(options) {
var _this63 = this;
return _asyncToGenerator(function* () {
return _this63.get('/session_config', null, null, options);
})();
}
update_session_config(body, options) {
var _this64 = this;
return _asyncToGenerator(function* () {
return _this64.patch('/session_config', null, body, options);
})();
}
get_support_access_allowlist_entries(fields, options) {
var _this65 = this;
return _asyncToGenerator(function* () {
return _this65.get('/support_access/allowlist', {
fields
}, null, options);
})();
}
add_support_access_allowlist_entries(body, options) {
var _this66 = this;
return _asyncToGenerator(function* () {
return _this66.post('/support_access/allowlist', null, body, options);
})();
}
delete_support_access_allowlist_entry(entry_id, options) {
var _this67 = this;
return _asyncToGenerator(function* () {
entry_id = encodeParam(entry_id);
return _this67.delete("/support_access/allowlist/".concat(entry_id), null, null, options);
})();
}
enable_support_access(body, options) {
var _this68 = this;
return _asyncToGenerator(function* () {
return _this68.put('/support_access/enable', null, body, options);
})();
}
disable_support_access(options) {
var _this69 = this;
return _asyncToGenerator(function* () {
return _this69.put('/support_access/disable', null, null, options);
})();
}
support_access_status(options) {
var _this70 = this;
return _asyncToGenerator(function* () {
return _this70.get('/support_access/status', null, null, options);
})();
}
all_user_login_lockouts(fields, options) {
var _this71 = this;
return _asyncToGenerator(function* () {
return _this71.get('/user_login_lockouts', {
fields
}, null, options);
})();
}
search_user_login_lockouts(request, options) {
var _this72 = this;
return _asyncToGenerator(function* () {
return _this72.get('/user_login_lockouts/search', {
fields: request.fields,
page: request.page,
per_page: request.per_page,
limit: request.limit,
offset: request.offset,
sorts: request.sorts,
auth_type: request.auth_type,
full_name: request.full_name,
email: request.email,
remote_id: request.remote_id,
filter_or: request.filter_or
}, null, options);
})();
}
delete_user_login_lockout(key, options) {
var _this73 = this;
return _asyncToGenerator(function* () {
key = encodeParam(key);
return _this73.delete("/user_login_lockout/".concat(key), null, null, options);
})();
}
all_boards(fields, options) {
var _this74 = this;
return _asyncToGenerator(function* () {
return _this74.get('/boards', {
fields
}, null, options);
})();
}
create_board(body, fields, options) {
var _this75 = this;
return _asyncToGenerator(function* () {
return _this75.post('/boards', {
fields
}, body, options);
})();
}
search_boards(request, options) {
var _this76 = this;
return _asyncToGenerator(function* () {
return _this76.get('/boards/search', {
title: request.title,
created_at: request.created_at,
first_name: request.first_name,
last_name: request.last_name,
fields: request.fields,
favorited: request.favorited,
creator_id: request.creator_id,
sorts: request.sorts,
page: request.page,
per_page: request.per_page,
offset: request.offset,
limit: request.limit,
filter_or: request.filter_or,
permission: request.permission
}, null, options);
})();
}
board(board_id, fields, options) {
var _this77 = this;
return _asyncToGenerator(function* () {
board_id = encodeParam(board_id);
return _this77.get("/boards/".concat(board_id), {
fields
}, null, options);
})();
}
update_board(board_id, body, fields, options) {
var _this78 = this;
return _asyncToGenerator(function* () {
board_id = encodeParam(board_id);
return _this78.patch("/boards/".concat(board_id), {
fields
}, body, options);
})();
}
delete_board(board_id, options) {
var _this79 = this;
return _asyncToGenerator(function* () {
board_id = encodeParam(board_id);
return _this79.delete("/boards/".concat(board_id), null, null, options);
})();
}
all_board_items(request, options) {
var _this80 = this;
return _asyncToGenerator(function* () {
return _this80.get('/board_items', {
fields: request.fields,
sorts: request.sorts,
board_section_id: request.board_section_id
}, null, options);
})();
}
create_board_item(body, fields, options) {
var _this81 = this;
return _asyncToGenerator(function* () {
return _this81.post('/board_items', {
fields
}, body, options);
})();
}
board_item(board_item_id, fields, options) {
var _this82 = this;
return _asyncToGenerator(function* () {
board_item_id = encodeParam(board_item_id);
return _this82.get("/board_items/".concat(board_item_id), {
fields
}, null, options);
})();
}
update_board_item(board_item_id, body, fields, options) {
var _this83 = this;
return _asyncToGenerator(function* () {
board_item_id = encodeParam(board_item_id);
return _this83.patch("/board_items/".concat(board_item_id), {
fields
}, body, options);
})();
}
delete_board_item(board_item_id, options) {
var _this84 = this;
return _asyncToGenerator(function* () {
board_item_id = encodeParam(board_item_id);
return _this84.delete("/board_items/".concat(board_item_id), null, null, options);
})();
}
all_board_sections(request, options) {
var _this85 = this;
return _asyncToGenerator(function* () {
return _this85.get('/board_sections', {
fields: request.fields,
sorts: request.sorts
}, null, options);
})();
}
create_board_section(body, fields, options) {
var _this86 = this;
return _asyncToGenerator(function* () {
return _this86.post('/board_sections', {
fields
}, body, options);
})();
}
board_section(board_section_id, fields, options) {
var _this87 = this;
return _asyncToGenerator(function* () {
board_section_id = encodeParam(board_section_id);
return _this87.get("/board_sections/".concat(board_section_id), {
fields
}, null, options);
})();
}
update_board_section(board_section_id, body, fields, options) {
var _this88 = this;
return _asyncToGenerator(function* () {
board_section_id = encodeParam(board_section_id);
return _this88.patch("/board_sections/".concat(board_section_id), {
fields
}, body, options);
})();
}
delete_board_section(board_section_id, options) {
var _this89 = this;
return _asyncToGenerator(function* () {
board_section_id = encodeParam(board_section_id);
return _this89.delete("/board_sections/".concat(board_section_id), null, null, options);
})();
}
all_color_collections(fields, options) {
var _this90 = this;
return _asyncToGenerator(function* () {
return _this90.get('/color_collections', {
fields
}, null, options);
})();
}
create_color_collection(body, options) {
var _this91 = this;
return _asyncToGenerator(function* () {
return _this91.post('/color_collections', null, body, options);
})();
}
color_collections_custom(fields, options) {
var _this92 = this;
return _asyncToGenerator(function* () {
return _this92.get('/color_collections/custom', {
fields
}, null, options);
})();
}
color_collections_standard(fields, options) {
var _this93 = this;
return _asyncToGenerator(function* () {
return _this93.get('/color_collections/standard', {
fields
}, null, options);
})();
}
default_color_collection(options) {
var _this94 = this;
return _asyncToGenerator(function* () {
return _this94.get('/color_collections/default', null, null, options);
})();
}
set_default_color_collection(collection_id, options) {
var _this95 = this;
return _asyncToGenerator(function* () {
return _this95.put('/color_collections/default', {
collection_id
}, null, options);
})();
}
color_collection(collection_id, fields, options) {
var _this96 = this;
return _asyncToGenerator(function* () {
collection_id = encodeParam(collection_id);
return _this96.get("/color_collections/".concat(collection_id), {
fields
}, null, options);
})();
}
update_color_collection(collection_id, body, options) {
var _this97 = this;
return _asyncToGenerator(function* () {
collection_id = encodeParam(collection_id);
return _this97.patch("/color_collections/".concat(collection_id), null, body, options);
})();
}
delete_color_collection(collection_id, options) {
var _this98 = this;
return _asyncToGenerator(function* () {
collection_id = encodeParam(collection_id);
return _this98.delete("/color_collections/".concat(collection_id), null, null, options);
})();
}
cloud_storage_configuration(options) {
var _this99 = this;
return _asyncToGenerator(function* () {
return _this99.get('/cloud_storage', null, null, options);
})();
}
update_cloud_storage_configuration(body, options) {
var _this100 = this;
return _asyncToGenerator(function* () {
return _this100.patch('/cloud_storage', null, body, options);
})();
}
custom_welcome_email(options) {
var _this101 = this;
return _asyncToGenerator(function* () {
return _this101.get('/custom_welcome_email', null, null, options);
})();
}
update_custom_welcome_email(body, send_test_welcome_email, options) {
var _this102 = this;
return _asyncToGenerator(function* () {
return _this102.patch('/custom_welcome_email', {
send_test_welcome_email
}, body, options);
})();
}
update_custom_welcome_email_test(body, options) {
var _this103 = this;
return _asyncToGenerator(function* () {
return _this103.put('/custom_welcome_email_test', null, body, options);
})();
}
digest_emails_enabled(options) {
var _this104 = this;
return _asyncToGenerator(function* () {
return _this104.get('/digest_emails_enabled', null, null, options);
})();
}
update_digest_emails_enabled(body, options) {
var _this105 = this;
return _asyncToGenerator(function* () {
return _this105.patch('/digest_emails_enabled', null, body, options);
})();
}
create_digest_email_send(options) {
var _this106 = this;
return _asyncToGenerator(function* () {
return _this106.post('/digest_email_send', null, null, options);
})();
}
public_egress_ip_addresses(options) {
var _this107 = this;
return _asyncToGenerator(function* () {
return _this107.get('/public_egress_ip_addresses', null, null, options);
})();
}
internal_help_resources_content(options) {
var _this108 = this;
return _asyncToGenerator(function* () {
return _this108.get('/internal_help_resources_content', null, null, options);
})();
}
update_internal_help_resources_content(body, options) {
var _this109 = this;
return _asyncToGenerator(function* () {
return _this109.patch('/internal_help_resources_content', null, body, options);
})();
}
internal_help_resources(options) {
var _this110 = this;
return _asyncToGenerator(function* () {
return _this110.get('/internal_help_resources_enabled', null, null, options);
})();
}
update_internal_help_resources(body, options) {
var _this111 = this;
return _asyncToGenerator(function* () {
return _this111.patch('/internal_help_resources', null, body, options);
})();
}
all_legacy_features(options) {
var _this112 = this;
return _asyncToGenerator(function* () {
return _this112.get('/legacy_features', null, null, options);
})();
}
legacy_feature(legacy_feature_id, options) {
var _this113 = this;
return _asyncToGenerator(function* () {
legacy_feature_id = encodeParam(legacy_feature_id);
return _this113.get("/legacy_features/".concat(legacy_feature_id), null, null, options);
})();
}
update_legacy_feature(legacy_feature_id, body, options) {
var _this114 = this;
return _asyncToGenerator(function* () {
legacy_feature_id = encodeParam(legacy_feature_id);
return _this114.patch("/legacy_features/".concat(legacy_feature_id), null, body, options);
})();
}
all_locales(options) {
var _this115 = this;
return _asyncToGenerator(function* () {
return _this115.get('/locales', null, null, options);
})();
}
mobile_settings(options) {
var _this116 = this;
return _asyncToGenerator(function* () {
return _this116.get('/mobile/settings', null, null, options);
})();
}
get_setting(fields, options) {
var _this117 = this;
return _asyncToGenerator(function* () {
return _this117.get('/setting', {
fields
}, null, options);
})();
}
set_setting(body, fields, options) {
var _this118 = this;
return _asyncToGenerator(function* () {
return _this118.patch('/setting', {
fields
}, body, options);
})();
}
set_smtp_settings(body, options) {
var _this119 = this;
return _asyncToGenerator(function* () {
return _this119.post('/smtp_settings', null, body, options);
})();
}
smtp_status(fields, options) {
var _this120 = this;
return _asyncToGenerator(function* () {
return _this120.get('/smtp_status', {
fields
}, null, options);
})();
}
all_timezones(options) {
var _this121 = this;
return _asyncToGenerator(function* () {
return _this121.get('/timezones', null, null, options);
})();
}
versions(fields, options) {
var _this122 = this;
return _asyncToGenerator(function* () {
return _this122.get('/versions', {
fields
}, null, options);
})();
}
api_spec(api_version, specification, options) {
var _this123 = this;
return _asyncToGenerator(function* () {
api_version = encodeParam(api_version);
specification = encodeParam(specification);
return _this123.get("/api_spec/".concat(api_version, "/").concat(specification), null, null, options);
})();
}
whitelabel_configuration(fields, options) {
var _this124 = this;
return _asyncToGenerator(function* () {
return _this124.get('/whitelabel_configuration', {
fields
}, null, options);
})();
}
update_whitelabel_configuration(body, options) {
var _this125 = this;
return _asyncToGenerator(function* () {
return _this125.put('/whitelabel_configuration', null, body, options);
})();
}
all_connections(fields, options) {
var _this126 = this;
return _asyncToGenerator(function* () {
return _this126.get('/connections', {
fields
}, null, options);
})();
}
create_connection(body, options) {
var _this127 = this;
return _asyncToGenerator(function* () {
return _this127.post('/connections', null, body, options);
})();
}
connection(connection_name, fields, options) {
var _this128 = this;
return _asyncToGenerator(function* () {
connection_name = encodeParam(connection_name);
return _this128.get("/connections/".concat(connection_name), {
fields
}, null, options);
})();
}
update_connection(connection_name, body, options) {
var _this129 = this;
return _asyncToGenerator(function* () {
connection_name = encodeParam(connection_name);
return _this129.patch("/connections/".concat(connection_name), null, body, options);
})();
}
delete_connection(connection_name, options) {
var _this130 = this;
return _asyncToGenerator(function* () {
connection_name = encodeParam(connection_name);
return _this130.delete("/connections/".concat(connection_name), null, null, options);
})();
}
delete_connection_override(connection_name, override_context, options) {
var _this131 = this;
return _asyncToGenerator(function* () {
connection_name = encodeParam(connection_name);
override_context = encodeParam(override_context);
return _this131.delete("/connections/".concat(connection_name, "/connection_override/").concat(override_context), null, null, options);
})();
}
test_connection(connection_name, tests, options) {
var _this132 = this;
return _asyncToGenerator(function* () {
connection_name = encodeParam(connection_name);
return _this132.put("/connections/".concat(connection_name, "/test"), {
tests
}, null, options);
})();
}
test_connection_config(body, tests, options) {
var _this133 = this;
return _asyncToGenerator(function* () {
return _this133.put('/connections/test', {
tests
}, body, options);
})();
}
all_dialect_infos(fields, options) {
var _this134 = this;
return _asyncToGenerator(function* () {
return _this134.get('/dialect_info', {
fields
}, null, options);
})();
}
all_external_oauth_applications(request, options) {
var _this135 = this;
return _asyncToGenerator(function* () {
return _this135.get('/external_oauth_applications', {
name: request.name,
client_id: request.client_id
}, null, options);
})();
}
create_external_oauth_application(body, options) {
var _this136 = this;
return _asyncToGenerator(function* () {
return _this136.post('/external_oauth_applications', null, body, options);
})();
}
update_external_oauth_application(client_id, body, options) {
var _this137 = this;
return _asyncToGenerator(function* () {
client_id = encodeParam(client_id);
return _this137.patch("/external_oauth_applications/".concat(client_id), null, body, options);
})();
}
create_oauth_application_user_state(body, options) {
var _this138 = this;
return _asyncToGenerator(function* () {
return _this138.post('/external_oauth_applications/user_state', null, body, options);
})();
}
all_ssh_servers(fields, options) {
var _this139 = this;
return _asyncToGenerator(function* () {
return _this139.get('/ssh_servers', {
fields
}, null, options);
})();
}
create_ssh_server(body, options) {
var _this140 = this;
return _asyncToGenerator(function* () {
return _this140.post('/ssh_servers', null, body, options);
})();
}
ssh_server(ssh_server_id, options) {
var _this141 = this;
return _asyncToGenerator(function* () {
ssh_server_id = encodeParam(ssh_server_id);
return _this141.get("/ssh_server/".concat(ssh_server_id), null, null, options);
})();
}
update_ssh_server(ssh_server_id, body, options) {
var _this142 = this;
return _asyncToGenerator(function* () {
ssh_server_id = encodeParam(ssh_server_id);
return _this142.patch("/ssh_server/".concat(ssh_server_id), null, body, options);
})();
}
delete_ssh_server(ssh_server_id, options) {
var _this143 = this;
return _asyncToGenerator(function* () {
ssh_server_id = encodeParam(ssh_server_id);
return _this143.delete("/ssh_server/".concat(ssh_server_id), null, null, options);
})();
}
test_ssh_server(ssh_server_id, options) {
var _this144 = this;
return _asyncToGenerator(function* () {
ssh_server_id = encodeParam(ssh_server_id);
return _this144.get("/ssh_server/".concat(ssh_server_id, "/test"), null, null, options);
})();
}
all_ssh_tunnels(fields, options) {
var _this145 = this;
return _asyncToGenerator(function* () {
return _this145.get('/ssh_tunnels', {
fields
}, null, options);
})();
}
create_ssh_tunnel(body, options) {
var _this146 = this;
return _asyncToGenerator(function* () {
return _this146.post('/ssh_tunnels', null, body, options);
})();
}
ssh_tunnel(ssh_tunnel_id, options) {
var _this147 = this;
return _asyncToGenerator(function* () {
ssh_tunnel_id = encodeParam(ssh_tunnel_id);
return _this147.get("/ssh_tunnel/".concat(ssh_tunnel_id), null, null, options);
})();
}
update_ssh_tunnel(ssh_tunnel_id, body, options) {
var _this148 = this;
return _asyncToGenerator(function* () {
ssh_tunnel_id = encodeParam(ssh_tunnel_id);
return _this148.patch("/ssh_tunnel/".concat(ssh_tunnel_id), null, body, options);
})();
}
delete_ssh_tunnel(ssh_tunnel_id, options) {
var _this149 = this;
return _asyncToGenerator(function* () {
ssh_tunnel_id = encodeParam(ssh_tunnel_id);
return _this149.delete("/ssh_tunnel/".concat(ssh_tunnel_id), null, null, options);
})();
}
test_ssh_tunnel(ssh_tunnel_id, options) {
var _this150 = this;
return _asyncToGenerator(function* () {
ssh_tunnel_id = encodeParam(ssh_tunnel_id);
return _this150.get("/ssh_tunnel/".concat(ssh_tunnel_id, "/test"), null, null, options);
})();
}
ssh_public_key(options) {
var _this151 = this;
return _asyncToGenerator(function* () {
return _this151.get('/ssh_public_key', null, null, options);
})();
}
search_content_favorites(request, options) {
var _this152 = this;
return _asyncToGenerator(function* () {
return _this152.get('/content_favorite/search', {
id: request.id,
user_id: request.user_id,
content_metadata_id: request.content_metadata_id,
dashboard_id: request.dashboard_id,
look_id: request.look_id,
board_id: request.board_id,
limit: request.limit,
offset: request.offset,
sorts: request.sorts,
fields: request.fields,
filter_or: request.filter_or
}, null, options);
})();
}
content_favorite(content_favorite_id, fields, options) {
var _this153 = this;
return _asyncToGenerator(function* () {
content_favorite_id = encodeParam(content_favorite_id);
return _this153.get("/content_favorite/".concat(content_favorite_id), {
fields
}, null, options);
})();
}
delete_content_favorite(content_favorite_id, options) {
var _this154 = this;
return _asyncToGenerator(function* () {
content_favorite_id = encodeParam(content_favorite_id);
return _this154.delete("/content_favorite/".concat(content_favorite_id), null, null, options);
})();
}
create_content_favorite(body, options) {
var _this155 = this;
return _asyncToGenerator(function* () {
return _this155.post('/content_favorite', null, body, options);
})();
}
all_content_metadatas(parent_id, fields, options) {
var _this156 = this;
return _asyncToGenerator(function* () {
return _this156.get('/content_metadata', {
parent_id,
fields
}, null, options);
})();
}
content_metadata(content_metadata_id, fields, options) {
var _this157 = this;
return _asyncToGenerator(function* () {
content_metadata_id = encodeParam(content_metadata_id);
return _this157.get("/content_metadata/".concat(content_metadata_id), {
fields
}, null, options);
})();
}
update_content_metadata(content_metadata_id, body, options) {
var _this158 = this;
return _asyncToGenerator(function* () {
content_metadata_id = encodeParam(content_metadata_id);
return _this158.patch("/content_metadata/".concat(content_metadata_id), null, body, options);
})();
}
all_content_metadata_accesses(content_metadata_id, fields, options) {
var _this159 = this;
return _asyncToGenerator(function* () {
return _this159.get('/content_metadata_access', {
content_metadata_id,
fields
}, null, options);
})();
}
create_content_metadata_access(body, send_boards_notification_email, options) {
var _this160 = this;
return _asyncToGenerator(function* () {
return _this160.post('/content_metadata_access', {
send_boards_notification_email
}, body, options);
})();
}
update_content_metadata_access(content_metadata_access_id, body, options) {
var _this161 = this;
return _asyncToGenerator(function* () {
content_metadata_access_id = encodeParam(content_metadata_access_id);
return _this161.put("/content_metadata_access/".concat(content_metadata_access_id), null, body, options);
})();
}
delete_content_metadata_access(content_metadata_access_id, options) {
var _this162 = this;
return _asyncToGenerator(function* () {
content_metadata_access_id = encodeParam(content_metadata_access_id);
return _this162.delete("/content_metadata_access/".concat(content_metadata_access_id), null, null, options);
})();
}
search_content(request, options) {
var _this163 = this;
return _asyncToGenerator(function* () {
request.terms = encodeParam(request.terms);
return _this163.get("/content/".concat(request.terms), {
fields: request.fields,
types: request.types,
limit: request.limit,
offset: request.offset,
page: request.page,
per_page: request.per_page
}, null, options);
})();
}
content_summary(request, options) {
var _this164 = this;
return _asyncToGenerator(function* () {
return _this164.get('/content_summary', {
fields: request.fields,
limit: request.limit,
offset: request.offset,
target_group_id: request.target_group_id,
target_user_id: request.target_user_id,
target_content_type: request.target_content_type,
sorts: request.sorts
}, null, options);
})();
}
content_thumbnail(request, options) {
var _this165 = this;
return _asyncToGenerator(function* () {
request.type = encodeParam(request.type);
request.resource_id = encodeParam(request.resource_id);
return _this165.get("/content_thumbnail/".concat(request.type, "/").concat(request.resource_id), {
reload: request.reload,
theme: request.theme,
format: request.format,
width: request.width,
height: request.height
}, null, options);
})();
}
content_validation(request, options) {
var _this166 = this;
return _asyncToGenerator(function* () {
return _this166.get('/content_validation', {
fields: request.fields,
project_names: request.project_names,
space_ids: request.space_ids
}, null, options);
})();
}
search_content_views(request, options) {
var _this167 = this;
return _asyncToGenerator(function* () {
return _this167.get('/content_view/search', {
view_count: request.view_count,
group_id: request.group_id,
look_id: request.look_id,
dashboard_id: request.dashboard_id,
content_metadata_id: request.content_metadata_id,
start_of_week_date: request.start_of_week_date,
all_time: request.all_time,
user_id: request.user_id,
fields: request.fields,
limit: request.limit,
offset: request.offset,
sorts: request.sorts,
filter_or: request.filter_or
}, null, options);
})();
}
vector_thumbnail(type, resource_id, reload, options) {
var _this168 = this;
return _asyncToGenerator(function* () {
type = encodeParam(type);
resource_id = encodeParam(resource_id);
return _this168.get("/vector_thumbnail/".concat(type, "/").concat(resource_id), {
reload
}, null, options);
})();
}
all_dashboards(fields, options) {
var _this169 = this;
return _asyncToGenerator(function* () {
return _this169.get('/dashboards', {
fields
}, null, options);
})();
}
create_dashboard(body, options) {
var _this170 = this;
return _asyncToGenerator(function* () {
return _this170.post('/dashboards', null, body, options);
})();
}
search_dashboards(request, options) {
var _this171 = this;
return _asyncToGenerator(function* () {
return _this171.get('/dashboards/search', {
id: request.id,
slug: request.slug,
title: request.title,
description: request.description,
content_favorite_id: request.content_favorite_id,
folder_id: request.folder_id,
deleted: request.deleted,
user_id: request.user_id,
view_count: request.view_count,
content_metadata_id: request.content_metadata_id,
curate: request.curate,
last_viewed_at: request.last_viewed_at,
fields: request.fields,
page: request.page,
per_page: request.per_page,
limit: request.limit,
offset: request.offset,
sorts: request.sorts,
filter_or: request.filter_or,
not_owned_by: request.not_owned_by
}, null, options);
})();
}
import_lookml_dashboard(lookml_dashboard_id, space_id, body, raw_locale, options) {
var _this172 = this;
return _asyncToGenerator(function* () {
lookml_dashboard_id = encodeParam(lookml_dashboard_id);
space_id = encodeParam(space_id);
return _this172.post("/dashboards/".concat(lookml_dashboard_id, "/import/").concat(space_id), {
raw_locale
}, body, options);
})();
}
sync_lookml_dashboard(request, options) {
var _this173 = this;
return _asyncToGenerator(function* () {
request.lookml_dashboard_id = encodeParam(request.lookml_dashboard_id);
return _this173.patch("/dashboards/".concat(request.lookml_dashboard_id, "/sync"), {
raw_locale: request.raw_locale,
dashboard_ids: request.dashboard_ids
}, null, options);
})();
}
dashboard(dashboard_id, fields, options) {
var _this174 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this174.get("/dashboards/".concat(dashboard_id), {
fields
}, null, options);
})();
}
update_dashboard(dashboard_id, body, options) {
var _this175 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this175.patch("/dashboards/".concat(dashboard_id), null, body, options);
})();
}
delete_dashboard(dashboard_id, options) {
var _this176 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this176.delete("/dashboards/".concat(dashboard_id), null, null, options);
})();
}
dashboard_aggregate_table_lookml(dashboard_id, options) {
var _this177 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this177.get("/dashboards/aggregate_table_lookml/".concat(dashboard_id), null, null, options);
})();
}
dashboard_lookml(dashboard_id, options) {
var _this178 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this178.get("/dashboards/lookml/".concat(dashboard_id), null, null, options);
})();
}
move_dashboard(dashboard_id, folder_id, options) {
var _this179 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this179.patch("/dashboards/".concat(dashboard_id, "/move"), {
folder_id
}, null, options);
})();
}
import_dashboard_from_lookml(body, options) {
var _this180 = this;
return _asyncToGenerator(function* () {
return _this180.post('/dashboards/lookml', null, body, options);
})();
}
create_dashboard_from_lookml(body, options) {
var _this181 = this;
return _asyncToGenerator(function* () {
return _this181.post('/dashboards/from_lookml', null, body, options);
})();
}
copy_dashboard(dashboard_id, folder_id, options) {
var _this182 = this;
return _asyncToGenerator(function* () {
dashboard_id = encodeParam(dashboard_id);
return _this182.post("/dashboards/".concat(dashboard_id, "/copy"), {
folder_id
}, null, options);
})();
}
search_dashboard_elements(request, options) {
var _this183 = this;
return _asyncToGenerator(function* () {
return _this18