diff --git a/kotlin/build.gradle b/kotlin/build.gradle deleted file mode 100644 index 3f6f7be91..000000000 --- a/kotlin/build.gradle +++ /dev/null @@ -1,83 +0,0 @@ -buildscript { - repositories { - mavenCentral() - } -} - -plugins { - id 'com.diffplug.spotless' version '5.7.0' - id 'org.jetbrains.kotlin.jvm' -} - -group = "com.looker.sdk" - -defaultTasks 'jar' - -repositories { - mavenCentral() - maven { url "https://dl.bintray.com/kotlin/ktor" } - maven { url "https://dl.bintray.com/kotlin/kotlinx" } - maven { url "https://jitpack.io" } -} - - -sourceSets { - main.kotlin.srcDirs += 'src/main/' - test.kotlin.srcDirs += 'src/test' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" - - implementation "io.github.cdimascio:dotenv-kotlin:6.2.2" - implementation "org.ini4j:ini4j:0.5.4" - - implementation "io.ktor:ktor-client:$ktorVersion" - implementation "io.ktor:ktor-client-okhttp:$ktorVersion" - implementation "io.ktor:ktor-client-json:$ktorVersion" - implementation "io.ktor:ktor-client-gson:$ktorVersion" - - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-RC' - implementation 'com.google.code.gson:gson:2.8.5' - - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1' - testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion" -} - -compileKotlin { - kotlinOptions { - jvmTarget = "1.8" - } -} - -compileTestKotlin { - kotlinOptions { - jvmTarget = "1.8" - } -} - -compileJava { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} - -spotless { - kotlin { - ktlint("0.39.0").userData(["disabled_rules": "no-wildcard-imports"]) - } -} - -test { - testLogging { - exceptionFormat "full" - } -} - - -//android { -// compileOptions { -// sourceCompatibility JavaVersion.VERSION_1_8 -// targetCompatibility JavaVersion.VERSION_1_8 -// } -//} diff --git a/kotlin/build.gradle.kts b/kotlin/build.gradle.kts new file mode 100644 index 000000000..e3b4fb34e --- /dev/null +++ b/kotlin/build.gradle.kts @@ -0,0 +1,60 @@ +group = "com.looker.sdk" +defaultTasks "jar" + +val kotlinVersion = providers.gradleProperty("kotlinVersion").get() +val ktorVersion = providers.gradleProperty("ktorVersion").get() + +plugins { + kotlin("jvm") + id("org.jmailen.kotlinter") +} + +sourceSets { + main { + kotlin { + setSrcDirs(listOf("src/main/")) + } + } + test { + kotlin { + setSrcDirs(listOf("src/test")) + } + } +} + +repositories { + mavenCentral() + maven { url = uri("https://dl.bintray.com/kotlin/ktor") } + maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") } + maven { url = uri("https://jitpack.io") } +} + +dependencies { + implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") + + implementation("io.github.cdimascio:dotenv-kotlin:6.2.2") + implementation("org.ini4j:ini4j:0.5.4") + + implementation("io.ktor:ktor-client:$ktorVersion") + implementation("io.ktor:ktor-client-okhttp:$ktorVersion") + implementation("io.ktor:ktor-client-json:$ktorVersion") + implementation("io.ktor:ktor-client-gson:$ktorVersion") + + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") + implementation("com.google.code.gson:gson:2.8.5") + + testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion") +} + +kotlin { + jvmToolchain(8) +} + +tasks.test { + testLogging { + exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL + } +} + diff --git a/kotlin/gradle.properties b/kotlin/gradle.properties index 4fd8664aa..7dcc8ccb2 100644 --- a/kotlin/gradle.properties +++ b/kotlin/gradle.properties @@ -1,2 +1,2 @@ -kotlinVersion=1.7.10 +kotlinVersion=1.8.20 ktorVersion=1.5.4 diff --git a/kotlin/gradle/wrapper/gradle-wrapper.jar b/kotlin/gradle/wrapper/gradle-wrapper.jar index 62d4c0535..ccebba771 100644 Binary files a/kotlin/gradle/wrapper/gradle-wrapper.jar and b/kotlin/gradle/wrapper/gradle-wrapper.jar differ diff --git a/kotlin/gradle/wrapper/gradle-wrapper.properties b/kotlin/gradle/wrapper/gradle-wrapper.properties index 4d9ca1649..bdc9a83b1 100644 --- a/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/kotlin/gradlew b/kotlin/gradlew index fbd7c5158..79a61d421 100755 --- a/kotlin/gradlew +++ b/kotlin/gradlew @@ -1,7 +1,7 @@ -#!/usr/bin/env sh +#!/bin/sh # -# Copyright 2015 the original author or authors. +# Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,67 +17,101 @@ # ############################################################################## -## -## Gradle start up script for UN*X -## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# ############################################################################## # Attempt to set APP_HOME + # Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" +MAX_FD=maximum warn () { echo "$*" -} +} >&2 die () { echo echo "$*" echo exit 1 -} +} >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -87,9 +121,9 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACMD=$JAVA_HOME/jre/sh/java else - JAVACMD="$JAVA_HOME/bin/java" + JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME @@ -98,7 +132,7 @@ Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else - JAVACMD="java" + JAVACMD=java which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the @@ -106,80 +140,105 @@ location of your Java installation." fi # Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac fi -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) fi - i=`expr $i + 1` + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac fi -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' exec "$JAVACMD" "$@" diff --git a/kotlin/gradlew.bat b/kotlin/gradlew.bat index a9f778a7a..6689b85be 100644 --- a/kotlin/gradlew.bat +++ b/kotlin/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init +if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -54,7 +55,7 @@ goto fail set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe -if exist "%JAVA_EXE%" goto init +if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% @@ -64,21 +65,6 @@ echo location of your Java installation. goto fail -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - :execute @rem Setup the command line @@ -86,17 +72,19 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/kotlin/settings.gradle b/kotlin/settings.gradle deleted file mode 100644 index 877acadd5..000000000 --- a/kotlin/settings.gradle +++ /dev/null @@ -1,7 +0,0 @@ -pluginManagement { - plugins { - id 'org.jetbrains.kotlin.jvm' version kotlinVersion - } -} - -rootProject.name = 'looker-kotlin-sdk' diff --git a/kotlin/settings.gradle.kts b/kotlin/settings.gradle.kts new file mode 100644 index 000000000..69db2f680 --- /dev/null +++ b/kotlin/settings.gradle.kts @@ -0,0 +1,9 @@ +rootProject.name = "looker-kotlin-sdk" + +pluginManagement { + val kotlinVersion = providers.gradleProperty("kotlinVersion").get() + plugins { + kotlin("jvm") version kotlinVersion + id("org.jmailen.kotlinter") version "3.14.0" + } +} diff --git a/kotlin/src/main/com/looker/rtl/AuthSession.kt b/kotlin/src/main/com/looker/rtl/AuthSession.kt index 42967d193..9856cbe82 100644 --- a/kotlin/src/main/com/looker/rtl/AuthSession.kt +++ b/kotlin/src/main/com/looker/rtl/AuthSession.kt @@ -29,7 +29,7 @@ import io.ktor.http.* open class AuthSession( open val apiSettings: ConfigurationProvider, - open val transport: Transport = Transport(apiSettings) + open val transport: Transport = Transport(apiSettings), ) { var authToken: AuthToken = AuthToken() @@ -148,15 +148,15 @@ open class AuthSession( Parameters.build { append(client_id, clientId) append(client_secret, clientSecret) - } + }, ) val token = ok( transport.request( HttpMethod.POST, "$apiPath/login", emptyMap(), - body - ) + body, + ), ) authToken = token } @@ -165,7 +165,7 @@ open class AuthSession( val token = activeToken() val sudoToken = transport.request( HttpMethod.POST, - "/login/$newId" + "/login/$newId", ) { requestSettings -> val headers = requestSettings.headers.toMutableMap() if (token.accessToken.isNotBlank()) { diff --git a/kotlin/src/main/com/looker/rtl/AuthToken.kt b/kotlin/src/main/com/looker/rtl/AuthToken.kt index 4a05e51d9..a0a80c7eb 100644 --- a/kotlin/src/main/com/looker/rtl/AuthToken.kt +++ b/kotlin/src/main/com/looker/rtl/AuthToken.kt @@ -40,7 +40,7 @@ data class AuthToken( @SerializedName("expires_in") var expiresIn: Long = 0L, @SerializedName("refresh_token") - var refreshToken: String? = null + var refreshToken: String? = null, ) { var expiresAt: LocalDateTime = LocalDateTime.now() @@ -53,7 +53,7 @@ data class AuthToken( token.access_token!!, token.token_type!!, token.expires_in!!.toLong(), - token.refresh_token + token.refresh_token, ) init { diff --git a/kotlin/src/main/com/looker/rtl/Constants.kt b/kotlin/src/main/com/looker/rtl/Constants.kt index f9a0f1887..6310f9c08 100644 --- a/kotlin/src/main/com/looker/rtl/Constants.kt +++ b/kotlin/src/main/com/looker/rtl/Constants.kt @@ -95,7 +95,7 @@ fun unQuote(value: String?): String { enum class ResponseMode { String, Binary, - Unknown + Unknown, } fun responseMode(contentType: String): ResponseMode { diff --git a/kotlin/src/main/com/looker/rtl/ErrorDoc.kt b/kotlin/src/main/com/looker/rtl/ErrorDoc.kt index fe9e451c5..79b7a5531 100644 --- a/kotlin/src/main/com/looker/rtl/ErrorDoc.kt +++ b/kotlin/src/main/com/looker/rtl/ErrorDoc.kt @@ -30,18 +30,21 @@ class ErrorDocItem(var url: String) /** Structure of the error code document index */ typealias ErrorCodeIndex = HashMap - interface IErrorDocLink { +interface IErrorDocLink { /** base redirector url */ var redirector: String + /** api version of the error link */ var apiVersion: String + /** HTTP status code */ var statusCode: String + /** REST API Path */ var apiPath: String - } +} - interface IErrorDoc { +interface IErrorDoc { /** Index of all known error codes. Call load() to populate it */ var index: ErrorCodeIndex? @@ -103,10 +106,10 @@ typealias ErrorCodeIndex = HashMap * @param errorMdUrl url for the error document */ fun methodName(errorMdUrl: String): String - } +} /** Class to process Looker API error payloads and retrieve error documentation */ -class ErrorDoc(val sdk: APIMethods, val cdnUrl: String = ErrorCodesUrl): IErrorDoc { +class ErrorDoc(val sdk: APIMethods, val cdnUrl: String = ErrorCodesUrl) : IErrorDoc { companion object { /** Location of the public CDN for Looker API Error codes */ const val ErrorCodesUrl = "https://marketplace-api.looker.com/errorcodes/" @@ -143,7 +146,7 @@ class ErrorDoc(val sdk: APIMethods, val cdnUrl: String = ErrorCodesUrl): IErrorD match.groupValues[1], match.groupValues[2], match.groupValues[3], - match.groupValues[4] + match.groupValues[4], ) } @@ -220,5 +223,5 @@ class ErrorDocLink( override var redirector: String = "", override var apiVersion: String = "", override var statusCode: String = "", - override var apiPath: String = "" + override var apiPath: String = "", ) : IErrorDocLink diff --git a/kotlin/src/main/com/looker/rtl/OAuthSession.kt b/kotlin/src/main/com/looker/rtl/OAuthSession.kt index e36f22e42..8592c8287 100644 --- a/kotlin/src/main/com/looker/rtl/OAuthSession.kt +++ b/kotlin/src/main/com/looker/rtl/OAuthSession.kt @@ -36,7 +36,7 @@ fun base64UrlEncode(bytes: ByteArray): String { @ExperimentalUnsignedTypes class OAuthSession( override val apiSettings: ConfigurationProvider, - override val transport: Transport = Transport(apiSettings) + override val transport: Transport = Transport(apiSettings), ) : AuthSession(apiSettings, transport) { private var random = SecureRandom() @@ -52,7 +52,7 @@ class OAuthSession( HttpMethod.POST, "/api/token", emptyMap(), - body + body, ) val token = this.ok(response) this.authToken.setToken(token) @@ -69,8 +69,8 @@ class OAuthSession( "grant_type" to "refresh_token", "refresh_token" to this.activeToken().refreshToken, "client_id" to config["client_id"], - "redirect_uri" to config["redirect_uri"] - ) + "redirect_uri" to config["redirect_uri"], + ), ) } } @@ -94,8 +94,8 @@ class OAuthSession( "scope" to scope, "state" to state, "code_challenge_method" to "S256", - "code_challenge" to codeChallenge - ) + "code_challenge" to codeChallenge, + ), ) } @@ -107,7 +107,7 @@ class OAuthSession( "code" to authCode, "code_verifier" to verifier, "client_id" to (config["client_id"] ?: error("")), - "redirect_uri" to (config["redirect_uri"] ?: error("")) + "redirect_uri" to (config["redirect_uri"] ?: error("")), ) } diff --git a/kotlin/src/main/com/looker/rtl/Transport.kt b/kotlin/src/main/com/looker/rtl/Transport.kt index 4dfb93e14..5bbf81e69 100644 --- a/kotlin/src/main/com/looker/rtl/Transport.kt +++ b/kotlin/src/main/com/looker/rtl/Transport.kt @@ -57,7 +57,7 @@ sealed class SDKResponse { /** A successful SDK call. */ data class SDKSuccessResponse( /** The object returned by the SDK call. */ - val value: T + val value: T, ) : SDKResponse() { /** Whether the SDK call was successful. */ val ok: Boolean = true @@ -66,7 +66,7 @@ sealed class SDKResponse { /** An erroring SDK call. */ data class SDKErrorResponse( /** The error object returned by the SDK call. */ - val value: T + val value: T, ) : SDKResponse() { /** Whether the SDK call was successful. */ val ok: Boolean = false @@ -96,14 +96,14 @@ enum class HttpMethod(val value: io.ktor.http.HttpMethod) { PUT(io.ktor.http.HttpMethod.Put), DELETE(io.ktor.http.HttpMethod.Delete), PATCH(io.ktor.http.HttpMethod.Patch), - HEAD(io.ktor.http.HttpMethod.Head) + HEAD(io.ktor.http.HttpMethod.Head), // TODO: Using the ktor-client-apache may support TRACE? } data class RequestSettings( val method: HttpMethod, val url: String, - val headers: Map = emptyMap() + val headers: Map = emptyMap(), ) typealias Authenticator = (init: RequestSettings) -> RequestSettings @@ -209,14 +209,14 @@ fun customClient(options: TransportOptions): HttpClient { @Throws(CertificateException::class) override fun checkClientTrusted( certs: Array?, - authType: String? + authType: String?, ) { } @Throws(CertificateException::class) override fun checkServerTrusted( certs: Array?, - authType: String? + authType: String?, ) { } } @@ -225,7 +225,8 @@ fun customClient(options: TransportOptions): HttpClient { sslContext.init(null, trustAllCerts, SecureRandom()) val sslSocketFactory: SSLSocketFactory = sslContext.socketFactory sslSocketFactory( - sslSocketFactory, tm + sslSocketFactory, + tm, ) val hostnameVerifier = HostnameVerifier { _, _ -> @@ -252,7 +253,7 @@ class Transport(val options: TransportOptions) { fun makeUrl( path: String, queryParams: Values = emptyMap(), - authenticator: Authenticator? = null // TODO figure out why ::defaultAuthenticator is matching when it shouldn't + authenticator: Authenticator? = null, // TODO figure out why ::defaultAuthenticator is matching when it shouldn't ): String { return if (path.startsWith("http://", true) || path.startsWith("https://", true) @@ -272,7 +273,7 @@ class Transport(val options: TransportOptions) { path: String, queryParams: Values = emptyMap(), body: Any? = null, - noinline authenticator: Authenticator? = null + noinline authenticator: Authenticator? = null, ): SDKResponse { // TODO get overrides parameter to work without causing compilation errors in UserSession // overrides: TransportOptions? = null): SDKResponse { @@ -293,7 +294,7 @@ class Transport(val options: TransportOptions) { SDKResponse.SDKSuccessResponse( client.request(builder).execute { response: HttpResponse -> response.receive() - } + }, ) } } catch (e: Exception) { @@ -310,7 +311,7 @@ class Transport(val options: TransportOptions) { path: String, queryParams: Values, authenticator: Authenticator?, - body: Any? + body: Any?, ): HttpRequestBuilder { val builder = HttpRequestBuilder() // Set the request method @@ -323,7 +324,8 @@ class Transport(val options: TransportOptions) { var auth = authenticator ?: ::defaultAuthenticator if (path.startsWith("http://", true) || - path.startsWith("https://", true)) { + path.startsWith("https://", true) + ) { // if a full path is passed in, this is a straight fetch, not an API call // so don't authenticate auth = ::defaultAuthenticator diff --git a/kotlin/src/main/com/looker/sdk/4.0/methods.kt b/kotlin/src/main/com/looker/sdk/4.0/methods.kt index ecdbca820..bdc19f57a 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/methods.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/methods.kt @@ -28,7 +28,6 @@ * 459 API methods */ - // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 package com.looker.sdk @@ -37,11 +36,10 @@ import java.util.* class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { - val stream by lazy { LookerSDKStream(this.authSession) } + val stream by lazy { LookerSDKStream(this.authSession) } //region Alert: Alert - /** * Follow an alert. * @@ -50,13 +48,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /alerts/{alert_id}/follow -> Void */ fun follow_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.post("/alerts/${path_alert_id}/follow", mapOf()) + return this.post("/alerts/$path_alert_id/follow", mapOf()) } - /** * Unfollow an alert. * @@ -65,13 +62,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /alerts/{alert_id}/follow -> Void */ fun unfollow_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.delete("/alerts/${path_alert_id}/follow", mapOf()) + return this.delete("/alerts/$path_alert_id/follow", mapOf()) } - /** * ### Search Alerts * @@ -98,22 +94,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { condition_met: Boolean? = null, last_run_start: String? = null, last_run_end: String? = null, - all_owners: Boolean? = null - ) : SDKResponse { - return this.get>("/alerts/search", - mapOf("limit" to limit, - "offset" to offset, - "group_by" to group_by, - "fields" to fields, - "disabled" to disabled, - "frequency" to frequency, - "condition_met" to condition_met, - "last_run_start" to last_run_start, - "last_run_end" to last_run_end, - "all_owners" to all_owners)) + all_owners: Boolean? = null, + ): SDKResponse { + return this.get>( + "/alerts/search", + mapOf( + "limit" to limit, + "offset" to offset, + "group_by" to group_by, + "fields" to fields, + "disabled" to disabled, + "frequency" to frequency, + "condition_met" to condition_met, + "last_run_start" to last_run_start, + "last_run_end" to last_run_end, + "all_owners" to all_owners, + ), + ) } - /** * ### Get an alert by a given alert ID * @@ -122,13 +121,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /alerts/{alert_id} -> Alert */ fun get_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.get("/alerts/${path_alert_id}", mapOf()) + return this.get("/alerts/$path_alert_id", mapOf()) } - /** * ### Update an alert * # Required fields: `owner_id`, `field`, `destinations`, `comparison_type`, `threshold`, `cron` @@ -141,13 +139,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_alert( alert_id: String, - body: WriteAlert - ) : SDKResponse { + body: WriteAlert, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.put("/alerts/${path_alert_id}", mapOf(), body) + return this.put("/alerts/$path_alert_id", mapOf(), body) } - /** * ### Update select alert fields * # Available fields: `owner_id`, `is_disabled`, `disabled_reason`, `is_public`, `threshold` @@ -160,13 +157,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_alert_field( alert_id: String, - body: AlertPatch - ) : SDKResponse { + body: AlertPatch, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.patch("/alerts/${path_alert_id}", mapOf(), body) + return this.patch("/alerts/$path_alert_id", mapOf(), body) } - /** * ### Delete an alert by a given alert ID * @@ -175,13 +171,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /alerts/{alert_id} -> Void */ fun delete_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.delete("/alerts/${path_alert_id}", mapOf()) + return this.delete("/alerts/$path_alert_id", mapOf()) } - /** * ### Create a new alert and return details of the newly created object * @@ -224,12 +219,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /alerts -> Alert */ fun create_alert( - body: WriteAlert - ) : SDKResponse { + body: WriteAlert, + ): SDKResponse { return this.post("/alerts", mapOf(), body) } - /** * ### Enqueue an Alert by ID * @@ -240,14 +234,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun enqueue_alert( alert_id: String, - force: Boolean? = null - ) : SDKResponse { + force: Boolean? = null, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.post("/alerts/${path_alert_id}/enqueue", - mapOf("force" to force)) + return this.post( + "/alerts/$path_alert_id/enqueue", + mapOf("force" to force), + ) } - /** * # Alert Notifications. * The endpoint returns all the alert notifications received by the user on email in the past 7 days. It also returns whether the notifications have been read by the user. @@ -259,14 +254,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun alert_notifications( limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get>("/alert_notifications", - mapOf("limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get>( + "/alert_notifications", + mapOf( + "limit" to limit, + "offset" to offset, + ), + ) } - /** * # Reads a Notification * The endpoint marks a given alert notification as read by the user, in case it wasn't already read. The AlertNotification model is updated for this purpose. It returns the notification as a response. @@ -276,17 +274,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /alert_notifications/{alert_notification_id} -> AlertNotifications */ fun read_alert_notification( - alert_notification_id: String - ) : SDKResponse { + alert_notification_id: String, + ): SDKResponse { val path_alert_notification_id = encodeParam(alert_notification_id) - return this.patch("/alert_notifications/${path_alert_notification_id}", mapOf()) + return this.patch("/alert_notifications/$path_alert_notification_id", mapOf()) } //endregion Alert: Alert //region ApiAuth: API Authentication - /** * ### Present client credentials to obtain an authorization token * @@ -324,14 +321,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun login( client_id: String? = null, - client_secret: String? = null - ) : SDKResponse { - return this.post("/login", - mapOf("client_id" to client_id, - "client_secret" to client_secret)) + client_secret: String? = null, + ): SDKResponse { + return this.post( + "/login", + mapOf( + "client_id" to client_id, + "client_secret" to client_secret, + ), + ) } - /** * ### Create an access token that runs as a given user. * @@ -357,22 +357,21 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun login_user( user_id: String, - associative: Boolean? = null - ) : SDKResponse { + associative: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/login/${path_user_id}", - mapOf("associative" to associative)) + return this.post( + "/login/$path_user_id", + mapOf("associative" to associative), + ) } - /** * ### Logout of the API and invalidate the current access token. * * DELETE /logout -> String */ - fun logout( - - ) : SDKResponse { + fun logout(): SDKResponse { return this.delete("/logout", mapOf()) } @@ -380,7 +379,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Artifact: Artifact Storage - /** * Get the maximum configured size of the entire artifact store, and the currently used storage in bytes. * @@ -391,13 +389,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /artifact/usage -> ArtifactUsage */ @JvmOverloads fun artifact_usage( - fields: String? = null - ) : SDKResponse { - return this.get("/artifact/usage", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/artifact/usage", + mapOf("fields" to fields), + ) } - /** * Get all artifact namespaces and the count of artifacts in each namespace * @@ -412,15 +411,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun artifact_namespaces( fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get>("/artifact/namespaces", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get>( + "/artifact/namespaces", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Return the value of an artifact * @@ -435,14 +437,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun artifact_value( namespace: String, - key: String? = null - ) : SDKResponse { + key: String? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get("/artifact/${path_namespace}/value", - mapOf("key" to key)) + return this.get( + "/artifact/$path_namespace/value", + mapOf("key" to key), + ) } - /** * Remove *all* artifacts from a namespace. Purged artifacts are permanently deleted * @@ -453,13 +456,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /artifact/{namespace}/purge -> Void */ fun purge_artifacts( - namespace: String - ) : SDKResponse { + namespace: String, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.delete("/artifact/${path_namespace}/purge", mapOf()) + return this.delete("/artifact/$path_namespace/purge", mapOf()) } - /** * ### Search all key/value pairs in a namespace for matching criteria. * @@ -498,20 +500,23 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { min_size: Long? = null, max_size: Long? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { + offset: Long? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get>("/artifact/${path_namespace}/search", - mapOf("fields" to fields, - "key" to key, - "user_ids" to user_ids, - "min_size" to min_size, - "max_size" to max_size, - "limit" to limit, - "offset" to offset)) + return this.get>( + "/artifact/$path_namespace/search", + mapOf( + "fields" to fields, + "key" to key, + "user_ids" to user_ids, + "min_size" to min_size, + "max_size" to max_size, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Get one or more artifacts * @@ -532,17 +537,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { key: String, fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { + offset: Long? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get>("/artifact/${path_namespace}", - mapOf("key" to key, - "fields" to fields, - "limit" to limit, - "offset" to offset)) + return this.get>( + "/artifact/$path_namespace", + mapOf( + "key" to key, + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Delete one or more artifacts * @@ -557,14 +565,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_artifact( namespace: String, - key: String - ) : SDKResponse { + key: String, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.delete("/artifact/${path_namespace}", - mapOf("key" to key)) + return this.delete( + "/artifact/$path_namespace", + mapOf("key" to key), + ) } - /** * ### Create or update one or more artifacts * @@ -602,18 +611,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_artifacts( namespace: String, body: Array, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.put>("/artifacts/${path_namespace}", - mapOf("fields" to fields), body) + return this.put>( + "/artifacts/$path_namespace", + mapOf("fields" to fields), + body, + ) } //endregion Artifact: Artifact Storage //region Auth: Manage User Authentication Configuration - /** * ### Create an embed secret using the specified information. * @@ -624,12 +635,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /embed_config/secrets -> EmbedSecret */ @JvmOverloads fun create_embed_secret( - body: WriteEmbedSecret? = null - ) : SDKResponse { + body: WriteEmbedSecret? = null, + ): SDKResponse { return this.post("/embed_config/secrets", mapOf(), body) } - /** * ### Delete an embed secret. * @@ -638,13 +648,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /embed_config/secrets/{embed_secret_id} -> String */ fun delete_embed_secret( - embed_secret_id: String - ) : SDKResponse { + embed_secret_id: String, + ): SDKResponse { val path_embed_secret_id = encodeParam(embed_secret_id) - return this.delete("/embed_config/secrets/${path_embed_secret_id}", mapOf()) + return this.delete("/embed_config/secrets/$path_embed_secret_id", mapOf()) } - /** * ### Create SSO Embed URL * @@ -686,12 +695,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/sso_url -> EmbedUrlResponse */ fun create_sso_embed_url( - body: EmbedSsoParams - ) : SDKResponse { + body: EmbedSsoParams, + ): SDKResponse { return this.post("/embed/sso_url", mapOf(), body) } - /** * ### Create an Embed URL * @@ -724,12 +732,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/token_url/me -> EmbedUrlResponse */ fun create_embed_url_as_me( - body: EmbedParams - ) : SDKResponse { + body: EmbedParams, + ): SDKResponse { return this.post("/embed/token_url/me", mapOf(), body) } - /** * ### Acquire a cookieless embed session. * @@ -767,12 +774,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/cookieless_session/acquire -> EmbedCookielessSessionAcquireResponse */ fun acquire_embed_cookieless_session( - body: EmbedCookielessSessionAcquire - ) : SDKResponse { + body: EmbedCookielessSessionAcquire, + ): SDKResponse { return this.post("/embed/cookieless_session/acquire", mapOf(), body) } - /** * ### Delete cookieless embed session * @@ -785,13 +791,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /embed/cookieless_session/{session_reference_token} -> String */ fun delete_embed_cookieless_session( - session_reference_token: String - ) : SDKResponse { + session_reference_token: String, + ): SDKResponse { val path_session_reference_token = encodeParam(session_reference_token) - return this.delete("/embed/cookieless_session/${path_session_reference_token}", mapOf()) + return this.delete("/embed/cookieless_session/$path_session_reference_token", mapOf()) } - /** * ### Generate api and navigation tokens for a cookieless embed session * @@ -806,12 +811,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /embed/cookieless_session/generate_tokens -> EmbedCookielessSessionGenerateTokensResponse */ fun generate_tokens_for_cookieless_session( - body: EmbedCookielessSessionGenerateTokens - ) : SDKResponse { + body: EmbedCookielessSessionGenerateTokens, + ): SDKResponse { return this.put("/embed/cookieless_session/generate_tokens", mapOf(), body) } - /** * ### Get the LDAP configuration. * @@ -832,13 +836,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /ldap_config -> LDAPConfig */ - fun ldap_config( - - ) : SDKResponse { + fun ldap_config(): SDKResponse { return this.get("/ldap_config", mapOf()) } - /** * ### Update the LDAP configuration. * @@ -857,12 +858,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /ldap_config -> LDAPConfig */ fun update_ldap_config( - body: WriteLDAPConfig - ) : SDKResponse { + body: WriteLDAPConfig, + ): SDKResponse { return this.patch("/ldap_config", mapOf(), body) } - /** * ### Test the connection settings for an LDAP configuration. * @@ -888,12 +888,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_connection -> LDAPConfigTestResult */ fun test_ldap_config_connection( - body: WriteLDAPConfig - ) : SDKResponse { + body: WriteLDAPConfig, + ): SDKResponse { return this.put("/ldap_config/test_connection", mapOf(), body) } - /** * ### Test the connection authentication settings for an LDAP configuration. * @@ -921,12 +920,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_auth -> LDAPConfigTestResult */ fun test_ldap_config_auth( - body: WriteLDAPConfig - ) : SDKResponse { + body: WriteLDAPConfig, + ): SDKResponse { return this.put("/ldap_config/test_auth", mapOf(), body) } - /** * ### Test the user authentication settings for an LDAP configuration without authenticating the user. * @@ -943,12 +941,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_user_info -> LDAPConfigTestResult */ fun test_ldap_config_user_info( - body: WriteLDAPConfig - ) : SDKResponse { + body: WriteLDAPConfig, + ): SDKResponse { return this.put("/ldap_config/test_user_info", mapOf(), body) } - /** * ### Test the user authentication settings for an LDAP configuration. * @@ -965,12 +962,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_user_auth -> LDAPConfigTestResult */ fun test_ldap_config_user_auth( - body: WriteLDAPConfig - ) : SDKResponse { + body: WriteLDAPConfig, + ): SDKResponse { return this.put("/ldap_config/test_user_auth", mapOf(), body) } - /** * ### Registers a mobile device. * # Required fields: [:device_token, :device_type] @@ -980,12 +976,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /mobile/device -> MobileToken */ fun register_mobile_device( - body: WriteMobileToken - ) : SDKResponse { + body: WriteMobileToken, + ): SDKResponse { return this.post("/mobile/device", mapOf(), body) } - /** * ### Updates the mobile device registration * @@ -994,13 +989,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /mobile/device/{device_id} -> MobileToken */ fun update_mobile_device_registration( - device_id: String - ) : SDKResponse { + device_id: String, + ): SDKResponse { val path_device_id = encodeParam(device_id) - return this.patch("/mobile/device/${path_device_id}", mapOf()) + return this.patch("/mobile/device/$path_device_id", mapOf()) } - /** * ### Deregister a mobile device. * @@ -1009,13 +1003,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /mobile/device/{device_id} -> Void */ fun deregister_mobile_device( - device_id: String - ) : SDKResponse { + device_id: String, + ): SDKResponse { val path_device_id = encodeParam(device_id) - return this.delete("/mobile/device/${path_device_id}", mapOf()) + return this.delete("/mobile/device/$path_device_id", mapOf()) } - /** * ### List All OAuth Client Apps * @@ -1030,13 +1023,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /oauth_client_apps -> Array */ @JvmOverloads fun all_oauth_client_apps( - fields: String? = null - ) : SDKResponse { - return this.get>("/oauth_client_apps", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/oauth_client_apps", + mapOf("fields" to fields), + ) } - /** * ### Get Oauth Client App * @@ -1049,14 +1043,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun oauth_client_app( client_guid: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.get("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields)) + return this.get( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + ) } - /** * ### Register an OAuth2 Client App * @@ -1074,14 +1069,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun register_oauth_client_app( client_guid: String, body: WriteOauthClientApp, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.post("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields), body) + return this.post( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + body, + ) } - /** * ### Update OAuth2 Client App Details * @@ -1096,14 +1093,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_oauth_client_app( client_guid: String, body: WriteOauthClientApp, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.patch("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields), body) + return this.patch( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete OAuth Client App * @@ -1120,13 +1119,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oauth_client_apps/{client_guid} -> String */ fun delete_oauth_client_app( - client_guid: String - ) : SDKResponse { + client_guid: String, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.delete("/oauth_client_apps/${path_client_guid}", mapOf()) + return this.delete("/oauth_client_apps/$path_client_guid", mapOf()) } - /** * ### Invalidate All Issued Tokens * @@ -1138,13 +1136,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oauth_client_apps/{client_guid}/tokens -> String */ fun invalidate_tokens( - client_guid: String - ) : SDKResponse { + client_guid: String, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.delete("/oauth_client_apps/${path_client_guid}/tokens", mapOf()) + return this.delete("/oauth_client_apps/$path_client_guid/tokens", mapOf()) } - /** * ### Activate an app for a user * @@ -1163,15 +1160,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun activate_app_user( client_guid: String, user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) val path_user_id = encodeParam(user_id) - return this.post("/oauth_client_apps/${path_client_guid}/users/${path_user_id}", - mapOf("fields" to fields)) + return this.post( + "/oauth_client_apps/$path_client_guid/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Deactivate an app for a user * @@ -1193,15 +1191,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun deactivate_app_user( client_guid: String, user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) val path_user_id = encodeParam(user_id) - return this.delete("/oauth_client_apps/${path_client_guid}/users/${path_user_id}", - mapOf("fields" to fields)) + return this.delete( + "/oauth_client_apps/$path_client_guid/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Get the OIDC configuration. * @@ -1218,13 +1217,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /oidc_config -> OIDCConfig */ - fun oidc_config( - - ) : SDKResponse { + fun oidc_config(): SDKResponse { return this.get("/oidc_config", mapOf()) } - /** * ### Update the OIDC configuration. * @@ -1241,12 +1237,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /oidc_config -> OIDCConfig */ fun update_oidc_config( - body: WriteOIDCConfig - ) : SDKResponse { + body: WriteOIDCConfig, + ): SDKResponse { return this.patch("/oidc_config", mapOf(), body) } - /** * ### Get a OIDC test configuration by test_slug. * @@ -1255,13 +1250,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /oidc_test_configs/{test_slug} -> OIDCConfig */ fun oidc_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.get("/oidc_test_configs/${path_test_slug}", mapOf()) + return this.get("/oidc_test_configs/$path_test_slug", mapOf()) } - /** * ### Delete a OIDC test configuration. * @@ -1270,13 +1264,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oidc_test_configs/{test_slug} -> String */ fun delete_oidc_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.delete("/oidc_test_configs/${path_test_slug}", mapOf()) + return this.delete("/oidc_test_configs/$path_test_slug", mapOf()) } - /** * ### Create a OIDC test configuration. * @@ -1285,24 +1278,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /oidc_test_configs -> OIDCConfig */ fun create_oidc_test_config( - body: WriteOIDCConfig - ) : SDKResponse { + body: WriteOIDCConfig, + ): SDKResponse { return this.post("/oidc_test_configs", mapOf(), body) } - /** * ### Get password config. * * GET /password_config -> PasswordConfig */ - fun password_config( - - ) : SDKResponse { + fun password_config(): SDKResponse { return this.get("/password_config", mapOf()) } - /** * ### Update password config. * @@ -1311,24 +1300,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /password_config -> PasswordConfig */ fun update_password_config( - body: WritePasswordConfig - ) : SDKResponse { + body: WritePasswordConfig, + ): SDKResponse { return this.patch("/password_config", mapOf(), body) } - /** * ### Force all credentials_email users to reset their login passwords upon their next login. * * PUT /password_config/force_password_reset_at_next_login_for_all_users -> String */ - fun force_password_reset_at_next_login_for_all_users( - - ) : SDKResponse { + fun force_password_reset_at_next_login_for_all_users(): SDKResponse { return this.put("/password_config/force_password_reset_at_next_login_for_all_users", mapOf()) } - /** * ### Get the SAML configuration. * @@ -1345,13 +1330,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /saml_config -> SamlConfig */ - fun saml_config( - - ) : SDKResponse { + fun saml_config(): SDKResponse { return this.get("/saml_config", mapOf()) } - /** * ### Update the SAML configuration. * @@ -1368,12 +1350,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /saml_config -> SamlConfig */ fun update_saml_config( - body: WriteSamlConfig - ) : SDKResponse { + body: WriteSamlConfig, + ): SDKResponse { return this.patch("/saml_config", mapOf(), body) } - /** * ### Get a SAML test configuration by test_slug. * @@ -1382,13 +1363,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /saml_test_configs/{test_slug} -> SamlConfig */ fun saml_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.get("/saml_test_configs/${path_test_slug}", mapOf()) + return this.get("/saml_test_configs/$path_test_slug", mapOf()) } - /** * ### Delete a SAML test configuration. * @@ -1397,13 +1377,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /saml_test_configs/{test_slug} -> String */ fun delete_saml_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.delete("/saml_test_configs/${path_test_slug}", mapOf()) + return this.delete("/saml_test_configs/$path_test_slug", mapOf()) } - /** * ### Create a SAML test configuration. * @@ -1412,12 +1391,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /saml_test_configs -> SamlConfig */ fun create_saml_test_config( - body: WriteSamlConfig - ) : SDKResponse { + body: WriteSamlConfig, + ): SDKResponse { return this.post("/saml_test_configs", mapOf(), body) } - /** * ### Parse the given xml as a SAML IdP metadata document and return the result. * @@ -1426,12 +1404,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /parse_saml_idp_metadata -> SamlMetadataParseResult */ fun parse_saml_idp_metadata( - body: String - ) : SDKResponse { + body: String, + ): SDKResponse { return this.post("/parse_saml_idp_metadata", mapOf(), body) } - /** * ### Fetch the given url and parse it as a SAML IdP metadata document and return the result. * Note that this requires that the url be public or at least at a location where the Looker instance @@ -1442,24 +1419,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /fetch_and_parse_saml_idp_metadata -> SamlMetadataParseResult */ fun fetch_and_parse_saml_idp_metadata( - body: String - ) : SDKResponse { + body: String, + ): SDKResponse { return this.post("/fetch_and_parse_saml_idp_metadata", mapOf(), body) } - /** * ### Get session config. * * GET /session_config -> SessionConfig */ - fun session_config( - - ) : SDKResponse { + fun session_config(): SDKResponse { return this.get("/session_config", mapOf()) } - /** * ### Update session config. * @@ -1468,12 +1441,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /session_config -> SessionConfig */ fun update_session_config( - body: WriteSessionConfig - ) : SDKResponse { + body: WriteSessionConfig, + ): SDKResponse { return this.patch("/session_config", mapOf(), body) } - /** * ### Get Support Access Allowlist Users * @@ -1484,13 +1456,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /support_access/allowlist -> Array */ @JvmOverloads fun get_support_access_allowlist_entries( - fields: String? = null - ) : SDKResponse { - return this.get>("/support_access/allowlist", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/support_access/allowlist", + mapOf("fields" to fields), + ) } - /** * ### Add Support Access Allowlist Users * @@ -1501,12 +1474,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /support_access/allowlist -> Array */ fun add_support_access_allowlist_entries( - body: SupportAccessAddEntries - ) : SDKResponse { + body: SupportAccessAddEntries, + ): SDKResponse { return this.post>("/support_access/allowlist", mapOf(), body) } - /** * ### Delete Support Access Allowlist User * @@ -1517,13 +1489,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /support_access/allowlist/{entry_id} -> String */ fun delete_support_access_allowlist_entry( - entry_id: String - ) : SDKResponse { + entry_id: String, + ): SDKResponse { val path_entry_id = encodeParam(entry_id) - return this.delete("/support_access/allowlist/${path_entry_id}", mapOf()) + return this.delete("/support_access/allowlist/$path_entry_id", mapOf()) } - /** * ### Enable Support Access * @@ -1534,12 +1505,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /support_access/enable -> SupportAccessStatus */ fun enable_support_access( - body: SupportAccessEnable - ) : SDKResponse { + body: SupportAccessEnable, + ): SDKResponse { return this.put("/support_access/enable", mapOf(), body) } - /** * ### Disable Support Access * @@ -1547,13 +1517,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * PUT /support_access/disable -> SupportAccessStatus */ - fun disable_support_access( - - ) : SDKResponse { + fun disable_support_access(): SDKResponse { return this.put("/support_access/disable", mapOf()) } - /** * ### Support Access Status * @@ -1561,13 +1528,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /support_access/status -> SupportAccessStatus */ - fun support_access_status( - - ) : SDKResponse { + fun support_access_status(): SDKResponse { return this.get("/support_access/status", mapOf()) } - /** * ### Get currently locked-out users. * @@ -1576,13 +1540,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /user_login_lockouts -> Array */ @JvmOverloads fun all_user_login_lockouts( - fields: String? = null - ) : SDKResponse { - return this.get>("/user_login_lockouts", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/user_login_lockouts", + mapOf("fields" to fields), + ) } - /** * ### Search currently locked-out users. * @@ -1611,23 +1576,26 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { full_name: String? = null, email: String? = null, remote_id: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/user_login_lockouts/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "auth_type" to auth_type, - "full_name" to full_name, - "email" to email, - "remote_id" to remote_id, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/user_login_lockouts/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "auth_type" to auth_type, + "full_name" to full_name, + "email" to email, + "remote_id" to remote_id, + "filter_or" to filter_or, + ), + ) } - /** * ### Removes login lockout for the associated user. * @@ -1636,17 +1604,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /user_login_lockout/{key} -> String */ fun delete_user_login_lockout( - key: String - ) : SDKResponse { + key: String, + ): SDKResponse { val path_key = encodeParam(key) - return this.delete("/user_login_lockout/${path_key}", mapOf()) + return this.delete("/user_login_lockout/$path_key", mapOf()) } //endregion Auth: Manage User Authentication Configuration //region Board: Manage Boards - /** * ### Get information about all boards. * @@ -1655,13 +1622,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /boards -> Array */ @JvmOverloads fun all_boards( - fields: String? = null - ) : SDKResponse { - return this.get>("/boards", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/boards", + mapOf("fields" to fields), + ) } - /** * ### Create a new board. * @@ -1672,13 +1640,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board( body: WriteBoard, - fields: String? = null - ) : SDKResponse { - return this.post("/boards", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/boards", + mapOf("fields" to fields), + body, + ) } - /** * ### Search Boards * @@ -1734,26 +1704,29 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, limit: Long? = null, filter_or: Boolean? = null, - permission: String? = null - ) : SDKResponse { - return this.get>("/boards/search", - mapOf("title" to title, - "created_at" to created_at, - "first_name" to first_name, - "last_name" to last_name, - "fields" to fields, - "favorited" to favorited, - "creator_id" to creator_id, - "sorts" to sorts, - "page" to page, - "per_page" to per_page, - "offset" to offset, - "limit" to limit, - "filter_or" to filter_or, - "permission" to permission)) + permission: String? = null, + ): SDKResponse { + return this.get>( + "/boards/search", + mapOf( + "title" to title, + "created_at" to created_at, + "first_name" to first_name, + "last_name" to last_name, + "fields" to fields, + "favorited" to favorited, + "creator_id" to creator_id, + "sorts" to sorts, + "page" to page, + "per_page" to per_page, + "offset" to offset, + "limit" to limit, + "filter_or" to filter_or, + "permission" to permission, + ), + ) } - /** * ### Get information about a board. * @@ -1764,14 +1737,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board( board_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.get("/boards/${path_board_id}", - mapOf("fields" to fields)) + return this.get( + "/boards/$path_board_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board definition. * @@ -1784,14 +1758,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board( board_id: String, body: WriteBoard, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.patch("/boards/${path_board_id}", - mapOf("fields" to fields), body) + return this.patch( + "/boards/$path_board_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board. * @@ -1800,13 +1776,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /boards/{board_id} -> String */ fun delete_board( - board_id: String - ) : SDKResponse { + board_id: String, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.delete("/boards/${path_board_id}", mapOf()) + return this.delete("/boards/$path_board_id", mapOf()) } - /** * ### Get information about all board items. * @@ -1819,15 +1794,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_board_items( fields: String? = null, sorts: String? = null, - board_section_id: String? = null - ) : SDKResponse { - return this.get>("/board_items", - mapOf("fields" to fields, - "sorts" to sorts, - "board_section_id" to board_section_id)) + board_section_id: String? = null, + ): SDKResponse { + return this.get>( + "/board_items", + mapOf( + "fields" to fields, + "sorts" to sorts, + "board_section_id" to board_section_id, + ), + ) } - /** * ### Create a new board item. * @@ -1838,13 +1816,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board_item( body: WriteBoardItem, - fields: String? = null - ) : SDKResponse { - return this.post("/board_items", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/board_items", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a board item. * @@ -1855,14 +1835,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board_item( board_item_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.get("/board_items/${path_board_item_id}", - mapOf("fields" to fields)) + return this.get( + "/board_items/$path_board_item_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board item definition. * @@ -1875,14 +1856,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board_item( board_item_id: String, body: WriteBoardItem, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.patch("/board_items/${path_board_item_id}", - mapOf("fields" to fields), body) + return this.patch( + "/board_items/$path_board_item_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board item. * @@ -1891,13 +1874,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /board_items/{board_item_id} -> String */ fun delete_board_item( - board_item_id: String - ) : SDKResponse { + board_item_id: String, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.delete("/board_items/${path_board_item_id}", mapOf()) + return this.delete("/board_items/$path_board_item_id", mapOf()) } - /** * ### Get information about all board sections. * @@ -1908,14 +1890,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_board_sections( fields: String? = null, - sorts: String? = null - ) : SDKResponse { - return this.get>("/board_sections", - mapOf("fields" to fields, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get>( + "/board_sections", + mapOf( + "fields" to fields, + "sorts" to sorts, + ), + ) } - /** * ### Create a new board section. * @@ -1926,13 +1911,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board_section( body: WriteBoardSection, - fields: String? = null - ) : SDKResponse { - return this.post("/board_sections", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/board_sections", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a board section. * @@ -1943,14 +1930,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board_section( board_section_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.get("/board_sections/${path_board_section_id}", - mapOf("fields" to fields)) + return this.get( + "/board_sections/$path_board_section_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board section definition. * @@ -1963,14 +1951,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board_section( board_section_id: String, body: WriteBoardSection, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.patch("/board_sections/${path_board_section_id}", - mapOf("fields" to fields), body) + return this.patch( + "/board_sections/$path_board_section_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board section. * @@ -1979,17 +1969,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /board_sections/{board_section_id} -> String */ fun delete_board_section( - board_section_id: String - ) : SDKResponse { + board_section_id: String, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.delete("/board_sections/${path_board_section_id}", mapOf()) + return this.delete("/board_sections/$path_board_section_id", mapOf()) } //endregion Board: Manage Boards //region ColorCollection: Manage Color Collections - /** * ### Get an array of all existing Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2005,13 +1994,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections -> Array */ @JvmOverloads fun all_color_collections( - fields: String? = null - ) : SDKResponse { - return this.get>("/color_collections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/color_collections", + mapOf("fields" to fields), + ) } - /** * ### Create a custom color collection with the specified information * @@ -2028,12 +2018,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /color_collections -> ColorCollection */ fun create_color_collection( - body: WriteColorCollection - ) : SDKResponse { + body: WriteColorCollection, + ): SDKResponse { return this.post("/color_collections", mapOf(), body) } - /** * ### Get an array of all existing **Custom** Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2047,13 +2036,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections/custom -> Array */ @JvmOverloads fun color_collections_custom( - fields: String? = null - ) : SDKResponse { - return this.get>("/color_collections/custom", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/color_collections/custom", + mapOf("fields" to fields), + ) } - /** * ### Get an array of all existing **Standard** Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2067,13 +2057,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections/standard -> Array */ @JvmOverloads fun color_collections_standard( - fields: String? = null - ) : SDKResponse { - return this.get>("/color_collections/standard", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/color_collections/standard", + mapOf("fields" to fields), + ) } - /** * ### Get the default color collection * @@ -2083,13 +2074,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /color_collections/default -> ColorCollection */ - fun default_color_collection( - - ) : SDKResponse { + fun default_color_collection(): SDKResponse { return this.get("/color_collections/default", mapOf()) } - /** * ### Set the global default Color Collection by ID * @@ -2101,13 +2089,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /color_collections/default -> ColorCollection */ fun set_default_color_collection( - collection_id: String - ) : SDKResponse { - return this.put("/color_collections/default", - mapOf("collection_id" to collection_id)) + collection_id: String, + ): SDKResponse { + return this.put( + "/color_collections/default", + mapOf("collection_id" to collection_id), + ) } - /** * ### Get a Color Collection by ID * @@ -2127,14 +2116,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun color_collection( collection_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.get("/color_collections/${path_collection_id}", - mapOf("fields" to fields)) + return this.get( + "/color_collections/$path_collection_id", + mapOf("fields" to fields), + ) } - /** * ### Update a custom color collection by id. * **Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors. @@ -2146,13 +2136,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_color_collection( collection_id: String, - body: WriteColorCollection - ) : SDKResponse { + body: WriteColorCollection, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.patch("/color_collections/${path_collection_id}", mapOf(), body) + return this.patch("/color_collections/$path_collection_id", mapOf(), body) } - /** * ### Delete a custom color collection by id * @@ -2168,29 +2157,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /color_collections/{collection_id} -> String */ fun delete_color_collection( - collection_id: String - ) : SDKResponse { + collection_id: String, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.delete("/color_collections/${path_collection_id}", mapOf()) + return this.delete("/color_collections/$path_collection_id", mapOf()) } //endregion ColorCollection: Manage Color Collections //region Config: Manage General Configuration - /** * Get the current Cloud Storage Configuration. * * GET /cloud_storage -> BackupConfiguration */ - fun cloud_storage_configuration( - - ) : SDKResponse { + fun cloud_storage_configuration(): SDKResponse { return this.get("/cloud_storage", mapOf()) } - /** * Update the current Cloud Storage Configuration. * @@ -2199,25 +2184,21 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /cloud_storage -> BackupConfiguration */ fun update_cloud_storage_configuration( - body: WriteBackupConfiguration - ) : SDKResponse { + body: WriteBackupConfiguration, + ): SDKResponse { return this.patch("/cloud_storage", mapOf(), body) } - /** * ### Get the current status and content of custom welcome emails * * GET /custom_welcome_email -> CustomWelcomeEmail */ @Deprecated(message = "Deprecated method") - fun custom_welcome_email( - - ) : SDKResponse { + fun custom_welcome_email(): SDKResponse { return this.get("/custom_welcome_email", mapOf()) } - /** * Update custom welcome email setting and values. Optionally send a test email with the new content to the currently logged in user. * @@ -2227,15 +2208,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /custom_welcome_email -> CustomWelcomeEmail */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun update_custom_welcome_email( + @JvmOverloads + fun update_custom_welcome_email( body: CustomWelcomeEmail, - send_test_welcome_email: Boolean? = null - ) : SDKResponse { - return this.patch("/custom_welcome_email", - mapOf("send_test_welcome_email" to send_test_welcome_email), body) + send_test_welcome_email: Boolean? = null, + ): SDKResponse { + return this.patch( + "/custom_welcome_email", + mapOf("send_test_welcome_email" to send_test_welcome_email), + body, + ) } - /** * Requests to this endpoint will send a welcome email with the custom content provided in the body to the currently logged in user. * @@ -2244,24 +2228,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /custom_welcome_email_test -> WelcomeEmailTest */ fun update_custom_welcome_email_test( - body: WelcomeEmailTest - ) : SDKResponse { + body: WelcomeEmailTest, + ): SDKResponse { return this.put("/custom_welcome_email_test", mapOf(), body) } - /** * ### Retrieve the value for whether or not digest emails is enabled * * GET /digest_emails_enabled -> DigestEmails */ - fun digest_emails_enabled( - - ) : SDKResponse { + fun digest_emails_enabled(): SDKResponse { return this.get("/digest_emails_enabled", mapOf()) } - /** * ### Update the setting for enabling/disabling digest emails * @@ -2270,12 +2250,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /digest_emails_enabled -> DigestEmails */ fun update_digest_emails_enabled( - body: DigestEmails - ) : SDKResponse { + body: DigestEmails, + ): SDKResponse { return this.patch("/digest_emails_enabled", mapOf(), body) } - /** * ### Trigger the generation of digest email records and send them to Looker's internal system. This does not send * any actual emails, it generates records containing content which may be of interest for users who have become inactive. @@ -2283,13 +2262,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * POST /digest_email_send -> DigestEmailSend */ - fun create_digest_email_send( - - ) : SDKResponse { + fun create_digest_email_send(): SDKResponse { return this.post("/digest_email_send", mapOf()) } - /** * ### Get Egress IP Addresses * @@ -2297,25 +2273,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /public_egress_ip_addresses -> EgressIpAddresses */ - fun public_egress_ip_addresses( - - ) : SDKResponse { + fun public_egress_ip_addresses(): SDKResponse { return this.get("/public_egress_ip_addresses", mapOf()) } - /** * ### Set the menu item name and content for internal help resources * * GET /internal_help_resources_content -> InternalHelpResourcesContent */ - fun internal_help_resources_content( - - ) : SDKResponse { + fun internal_help_resources_content(): SDKResponse { return this.get("/internal_help_resources_content", mapOf()) } - /** * Update internal help resources content * @@ -2324,24 +2294,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /internal_help_resources_content -> InternalHelpResourcesContent */ fun update_internal_help_resources_content( - body: WriteInternalHelpResourcesContent - ) : SDKResponse { + body: WriteInternalHelpResourcesContent, + ): SDKResponse { return this.patch("/internal_help_resources_content", mapOf(), body) } - /** * ### Get and set the options for internal help resources * * GET /internal_help_resources_enabled -> InternalHelpResources */ - fun internal_help_resources( - - ) : SDKResponse { + fun internal_help_resources(): SDKResponse { return this.get("/internal_help_resources_enabled", mapOf()) } - /** * Update internal help resources settings * @@ -2350,24 +2316,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /internal_help_resources -> InternalHelpResources */ fun update_internal_help_resources( - body: WriteInternalHelpResources - ) : SDKResponse { + body: WriteInternalHelpResources, + ): SDKResponse { return this.patch("/internal_help_resources", mapOf(), body) } - /** * ### Get all legacy features. * * GET /legacy_features -> Array */ - fun all_legacy_features( - - ) : SDKResponse { + fun all_legacy_features(): SDKResponse { return this.get>("/legacy_features", mapOf()) } - /** * ### Get information about the legacy feature with a specific id. * @@ -2376,13 +2338,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /legacy_features/{legacy_feature_id} -> LegacyFeature */ fun legacy_feature( - legacy_feature_id: String - ) : SDKResponse { + legacy_feature_id: String, + ): SDKResponse { val path_legacy_feature_id = encodeParam(legacy_feature_id) - return this.get("/legacy_features/${path_legacy_feature_id}", mapOf()) + return this.get("/legacy_features/$path_legacy_feature_id", mapOf()) } - /** * ### Update information about the legacy feature with a specific id. * @@ -2393,37 +2354,30 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_legacy_feature( legacy_feature_id: String, - body: WriteLegacyFeature - ) : SDKResponse { + body: WriteLegacyFeature, + ): SDKResponse { val path_legacy_feature_id = encodeParam(legacy_feature_id) - return this.patch("/legacy_features/${path_legacy_feature_id}", mapOf(), body) + return this.patch("/legacy_features/$path_legacy_feature_id", mapOf(), body) } - /** * ### Get a list of locales that Looker supports. * * GET /locales -> Array */ - fun all_locales( - - ) : SDKResponse { + fun all_locales(): SDKResponse { return this.get>("/locales", mapOf()) } - /** * ### Get all mobile settings. * * GET /mobile/settings -> MobileSettings */ - fun mobile_settings( - - ) : SDKResponse { + fun mobile_settings(): SDKResponse { return this.get("/mobile/settings", mapOf()) } - /** * ### Get Looker Settings * @@ -2446,13 +2400,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /setting -> Setting */ @JvmOverloads fun get_setting( - fields: String? = null - ) : SDKResponse { - return this.get("/setting", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/setting", + mapOf("fields" to fields), + ) } - /** * ### Configure Looker Settings * @@ -2479,13 +2434,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun set_setting( body: WriteSetting, - fields: String? = null - ) : SDKResponse { - return this.patch("/setting", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.patch( + "/setting", + mapOf("fields" to fields), + body, + ) } - /** * ### Configure SMTP Settings * This API allows users to configure the SMTP settings on the Looker instance. @@ -2496,12 +2453,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /smtp_settings -> Void */ fun set_smtp_settings( - body: SmtpSettings - ) : SDKResponse { + body: SmtpSettings, + ): SDKResponse { return this.post("/smtp_settings", mapOf(), body) } - /** * ### Get current SMTP status. * @@ -2510,25 +2466,23 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /smtp_status -> SmtpStatus */ @JvmOverloads fun smtp_status( - fields: String? = null - ) : SDKResponse { - return this.get("/smtp_status", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/smtp_status", + mapOf("fields" to fields), + ) } - /** * ### Get a list of timezones that Looker supports (e.g. useful for scheduling tasks). * * GET /timezones -> Array */ - fun all_timezones( - - ) : SDKResponse { + fun all_timezones(): SDKResponse { return this.get>("/timezones", mapOf()) } - /** * ### Get information about all API versions supported by this Looker instance. * @@ -2537,13 +2491,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /versions -> ApiVersion */ @JvmOverloads fun versions( - fields: String? = null - ) : SDKResponse { - return this.get("/versions", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/versions", + mapOf("fields" to fields), + ) } - /** * ### Get an API specification for this Looker instance. * @@ -2556,14 +2511,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun api_spec( api_version: String, - specification: String - ) : SDKResponse { + specification: String, + ): SDKResponse { val path_api_version = encodeParam(api_version) val path_specification = encodeParam(specification) - return this.get("/api_spec/${path_api_version}/${path_specification}", mapOf()) + return this.get("/api_spec/$path_api_version/$path_specification", mapOf()) } - /** * ### This feature is enabled only by special license. * ### Gets the whitelabel configuration, which includes hiding documentation links, custom favicon uploading, etc. @@ -2573,14 +2527,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /whitelabel_configuration -> WhitelabelConfiguration */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun whitelabel_configuration( - fields: String? = null - ) : SDKResponse { - return this.get("/whitelabel_configuration", - mapOf("fields" to fields)) + @JvmOverloads + fun whitelabel_configuration( + fields: String? = null, + ): SDKResponse { + return this.get( + "/whitelabel_configuration", + mapOf("fields" to fields), + ) } - /** * ### Update the whitelabel configuration * @@ -2590,8 +2546,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @Deprecated(message = "Deprecated method") fun update_whitelabel_configuration( - body: WriteWhitelabelConfiguration - ) : SDKResponse { + body: WriteWhitelabelConfiguration, + ): SDKResponse { return this.put("/whitelabel_configuration", mapOf(), body) } @@ -2599,7 +2555,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Connection: Manage Database Connections - /** * ### Get information about all connections. * @@ -2608,13 +2563,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /connections -> Array */ @JvmOverloads fun all_connections( - fields: String? = null - ) : SDKResponse { - return this.get>("/connections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/connections", + mapOf("fields" to fields), + ) } - /** * ### Create a connection using the specified configuration. * @@ -2623,12 +2579,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /connections -> DBConnection */ fun create_connection( - body: WriteDBConnection - ) : SDKResponse { + body: WriteDBConnection, + ): SDKResponse { return this.post("/connections", mapOf(), body) } - /** * ### Get information about a connection. * @@ -2639,14 +2594,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun connection( connection_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}", - mapOf("fields" to fields)) + return this.get( + "/connections/$path_connection_name", + mapOf("fields" to fields), + ) } - /** * ### Update a connection using the specified configuration. * @@ -2657,13 +2613,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_connection( connection_name: String, - body: WriteDBConnection - ) : SDKResponse { + body: WriteDBConnection, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.patch("/connections/${path_connection_name}", mapOf(), body) + return this.patch("/connections/$path_connection_name", mapOf(), body) } - /** * ### Delete a connection. * @@ -2672,13 +2627,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /connections/{connection_name} -> String */ fun delete_connection( - connection_name: String - ) : SDKResponse { + connection_name: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.delete("/connections/${path_connection_name}", mapOf()) + return this.delete("/connections/$path_connection_name", mapOf()) } - /** * ### Delete a connection override. * @@ -2689,14 +2643,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_connection_override( connection_name: String, - override_context: String - ) : SDKResponse { + override_context: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) val path_override_context = encodeParam(override_context) - return this.delete("/connections/${path_connection_name}/connection_override/${path_override_context}", mapOf()) + return this.delete("/connections/$path_connection_name/connection_override/$path_override_context", mapOf()) } - /** * ### Test an existing connection. * @@ -2714,14 +2667,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun test_connection( connection_name: String, - tests: DelimArray? = null - ) : SDKResponse { + tests: DelimArray? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.put>("/connections/${path_connection_name}/test", - mapOf("tests" to tests)) + return this.put>( + "/connections/$path_connection_name/test", + mapOf("tests" to tests), + ) } - /** * ### Test a connection configuration. * @@ -2739,13 +2693,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun test_connection_config( body: WriteDBConnection, - tests: DelimArray? = null - ) : SDKResponse { - return this.put>("/connections/test", - mapOf("tests" to tests), body) + tests: DelimArray? = null, + ): SDKResponse { + return this.put>( + "/connections/test", + mapOf("tests" to tests), + body, + ) } - /** * ### Get information about all dialects. * @@ -2754,13 +2710,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /dialect_info -> Array */ @JvmOverloads fun all_dialect_infos( - fields: String? = null - ) : SDKResponse { - return this.get>("/dialect_info", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/dialect_info", + mapOf("fields" to fields), + ) } - /** * ### Get all External OAuth Applications. * @@ -2773,14 +2730,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_external_oauth_applications( name: String? = null, - client_id: String? = null - ) : SDKResponse { - return this.get>("/external_oauth_applications", - mapOf("name" to name, - "client_id" to client_id)) + client_id: String? = null, + ): SDKResponse { + return this.get>( + "/external_oauth_applications", + mapOf( + "name" to name, + "client_id" to client_id, + ), + ) } - /** * ### Create an OAuth Application using the specified configuration. * @@ -2791,12 +2751,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /external_oauth_applications -> ExternalOauthApplication */ fun create_external_oauth_application( - body: WriteExternalOauthApplication - ) : SDKResponse { + body: WriteExternalOauthApplication, + ): SDKResponse { return this.post("/external_oauth_applications", mapOf(), body) } - /** * ### Create OAuth User state. * @@ -2805,12 +2764,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /external_oauth_applications/user_state -> CreateOAuthApplicationUserStateResponse */ fun create_oauth_application_user_state( - body: CreateOAuthApplicationUserStateRequest - ) : SDKResponse { + body: CreateOAuthApplicationUserStateRequest, + ): SDKResponse { return this.post("/external_oauth_applications/user_state", mapOf(), body) } - /** * ### Get information about all SSH Servers. * @@ -2819,13 +2777,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_servers -> Array */ @JvmOverloads fun all_ssh_servers( - fields: String? = null - ) : SDKResponse { - return this.get>("/ssh_servers", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/ssh_servers", + mapOf("fields" to fields), + ) } - /** * ### Create an SSH Server. * @@ -2834,12 +2793,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /ssh_servers -> SshServer */ fun create_ssh_server( - body: WriteSshServer - ) : SDKResponse { + body: WriteSshServer, + ): SDKResponse { return this.post("/ssh_servers", mapOf(), body) } - /** * ### Get information about an SSH Server. * @@ -2848,13 +2806,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_server/{ssh_server_id} -> SshServer */ fun ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.get("/ssh_server/${path_ssh_server_id}", mapOf()) + return this.get("/ssh_server/$path_ssh_server_id", mapOf()) } - /** * ### Update an SSH Server. * @@ -2865,13 +2822,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_ssh_server( ssh_server_id: String, - body: WriteSshServer - ) : SDKResponse { + body: WriteSshServer, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.patch("/ssh_server/${path_ssh_server_id}", mapOf(), body) + return this.patch("/ssh_server/$path_ssh_server_id", mapOf(), body) } - /** * ### Delete an SSH Server. * @@ -2880,13 +2836,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /ssh_server/{ssh_server_id} -> String */ fun delete_ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.delete("/ssh_server/${path_ssh_server_id}", mapOf()) + return this.delete("/ssh_server/$path_ssh_server_id", mapOf()) } - /** * ### Test the SSH Server * @@ -2895,13 +2850,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_server/{ssh_server_id}/test -> SshServer */ fun test_ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.get("/ssh_server/${path_ssh_server_id}/test", mapOf()) + return this.get("/ssh_server/$path_ssh_server_id/test", mapOf()) } - /** * ### Get information about all SSH Tunnels. * @@ -2910,13 +2864,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnels -> Array */ @JvmOverloads fun all_ssh_tunnels( - fields: String? = null - ) : SDKResponse { - return this.get>("/ssh_tunnels", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/ssh_tunnels", + mapOf("fields" to fields), + ) } - /** * ### Create an SSH Tunnel * @@ -2925,12 +2880,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /ssh_tunnels -> SshTunnel */ fun create_ssh_tunnel( - body: WriteSshTunnel - ) : SDKResponse { + body: WriteSshTunnel, + ): SDKResponse { return this.post("/ssh_tunnels", mapOf(), body) } - /** * ### Get information about an SSH Tunnel. * @@ -2939,13 +2893,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnel/{ssh_tunnel_id} -> SshTunnel */ fun ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.get("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf()) + return this.get("/ssh_tunnel/$path_ssh_tunnel_id", mapOf()) } - /** * ### Update an SSH Tunnel * @@ -2956,13 +2909,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_ssh_tunnel( ssh_tunnel_id: String, - body: WriteSshTunnel - ) : SDKResponse { + body: WriteSshTunnel, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.patch("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf(), body) + return this.patch("/ssh_tunnel/$path_ssh_tunnel_id", mapOf(), body) } - /** * ### Delete an SSH Tunnel * @@ -2971,13 +2923,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /ssh_tunnel/{ssh_tunnel_id} -> String */ fun delete_ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.delete("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf()) + return this.delete("/ssh_tunnel/$path_ssh_tunnel_id", mapOf()) } - /** * ### Test the SSH Tunnel * @@ -2986,13 +2937,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnel/{ssh_tunnel_id}/test -> SshTunnel */ fun test_ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.get("/ssh_tunnel/${path_ssh_tunnel_id}/test", mapOf()) + return this.get("/ssh_tunnel/$path_ssh_tunnel_id/test", mapOf()) } - /** * ### Get the SSH public key * @@ -3000,9 +2950,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /ssh_public_key -> SshPublicKey */ - fun ssh_public_key( - - ) : SDKResponse { + fun ssh_public_key(): SDKResponse { return this.get("/ssh_public_key", mapOf()) } @@ -3010,7 +2958,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Content: Manage Content - /** * ### Search Favorite Content * @@ -3060,23 +3007,26 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, fields: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/content_favorite/search", - mapOf("id" to id, - "user_id" to user_id, - "content_metadata_id" to content_metadata_id, - "dashboard_id" to dashboard_id, - "look_id" to look_id, - "board_id" to board_id, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "fields" to fields, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/content_favorite/search", + mapOf( + "id" to id, + "user_id" to user_id, + "content_metadata_id" to content_metadata_id, + "dashboard_id" to dashboard_id, + "look_id" to look_id, + "board_id" to board_id, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "fields" to fields, + "filter_or" to filter_or, + ), + ) } - /** * ### Get favorite content by its id * @@ -3087,14 +3037,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun content_favorite( content_favorite_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_content_favorite_id = encodeParam(content_favorite_id) - return this.get("/content_favorite/${path_content_favorite_id}", - mapOf("fields" to fields)) + return this.get( + "/content_favorite/$path_content_favorite_id", + mapOf("fields" to fields), + ) } - /** * ### Delete favorite content * @@ -3103,13 +3054,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /content_favorite/{content_favorite_id} -> String */ fun delete_content_favorite( - content_favorite_id: String - ) : SDKResponse { + content_favorite_id: String, + ): SDKResponse { val path_content_favorite_id = encodeParam(content_favorite_id) - return this.delete("/content_favorite/${path_content_favorite_id}", mapOf()) + return this.delete("/content_favorite/$path_content_favorite_id", mapOf()) } - /** * ### Create favorite content * @@ -3118,12 +3068,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /content_favorite -> ContentFavorite */ fun create_content_favorite( - body: WriteContentFavorite - ) : SDKResponse { + body: WriteContentFavorite, + ): SDKResponse { return this.post("/content_favorite", mapOf(), body) } - /** * ### Get information about all content metadata in a space. * @@ -3134,14 +3083,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_content_metadatas( parent_id: String, - fields: String? = null - ) : SDKResponse { - return this.get>("/content_metadata", - mapOf("parent_id" to parent_id, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/content_metadata", + mapOf( + "parent_id" to parent_id, + "fields" to fields, + ), + ) } - /** * ### Get information about an individual content metadata record. * @@ -3152,14 +3104,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun content_metadata( content_metadata_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_content_metadata_id = encodeParam(content_metadata_id) - return this.get("/content_metadata/${path_content_metadata_id}", - mapOf("fields" to fields)) + return this.get( + "/content_metadata/$path_content_metadata_id", + mapOf("fields" to fields), + ) } - /** * ### Move a piece of content. * @@ -3170,13 +3123,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_content_metadata( content_metadata_id: String, - body: WriteContentMeta - ) : SDKResponse { + body: WriteContentMeta, + ): SDKResponse { val path_content_metadata_id = encodeParam(content_metadata_id) - return this.patch("/content_metadata/${path_content_metadata_id}", mapOf(), body) + return this.patch("/content_metadata/$path_content_metadata_id", mapOf(), body) } - /** * ### All content metadata access records for a content metadata item. * @@ -3187,14 +3139,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_content_metadata_accesses( content_metadata_id: String, - fields: String? = null - ) : SDKResponse { - return this.get>("/content_metadata_access", - mapOf("content_metadata_id" to content_metadata_id, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/content_metadata_access", + mapOf( + "content_metadata_id" to content_metadata_id, + "fields" to fields, + ), + ) } - /** * ### Create content metadata access. * @@ -3205,13 +3160,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_content_metadata_access( body: ContentMetaGroupUser, - send_boards_notification_email: Boolean? = null - ) : SDKResponse { - return this.post("/content_metadata_access", - mapOf("send_boards_notification_email" to send_boards_notification_email), body) + send_boards_notification_email: Boolean? = null, + ): SDKResponse { + return this.post( + "/content_metadata_access", + mapOf("send_boards_notification_email" to send_boards_notification_email), + body, + ) } - /** * ### Update type of access for content metadata. * @@ -3222,13 +3179,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_content_metadata_access( content_metadata_access_id: String, - body: ContentMetaGroupUser - ) : SDKResponse { + body: ContentMetaGroupUser, + ): SDKResponse { val path_content_metadata_access_id = encodeParam(content_metadata_access_id) - return this.put("/content_metadata_access/${path_content_metadata_access_id}", mapOf(), body) + return this.put("/content_metadata_access/$path_content_metadata_access_id", mapOf(), body) } - /** * ### Remove content metadata access. * @@ -3237,13 +3193,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /content_metadata_access/{content_metadata_access_id} -> String */ fun delete_content_metadata_access( - content_metadata_access_id: String - ) : SDKResponse { + content_metadata_access_id: String, + ): SDKResponse { val path_content_metadata_access_id = encodeParam(content_metadata_access_id) - return this.delete("/content_metadata_access/${path_content_metadata_access_id}", mapOf()) + return this.delete("/content_metadata_access/$path_content_metadata_access_id", mapOf()) } - /** * ### Search across looks, dashboards, and lookml dashboards. The terms field will be matched against the * title and description of the content and the closest results are returned. Content that has been frequently @@ -3272,19 +3227,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, page: Long? = null, - per_page: Long? = null - ) : SDKResponse { + per_page: Long? = null, + ): SDKResponse { val path_terms = encodeParam(terms) - return this.get>("/content/${path_terms}", - mapOf("fields" to fields, - "types" to types, - "limit" to limit, - "offset" to offset, - "page" to page, - "per_page" to per_page)) + return this.get>( + "/content/$path_terms", + mapOf( + "fields" to fields, + "types" to types, + "limit" to limit, + "offset" to offset, + "page" to page, + "per_page" to per_page, + ), + ) } - /** * ### Get an image representing the contents of a dashboard or look. * @@ -3308,18 +3266,21 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { reload: String? = null, format: String? = null, width: Long? = null, - height: Long? = null - ) : SDKResponse { + height: Long? = null, + ): SDKResponse { val path_type = encodeParam(type) val path_resource_id = encodeParam(resource_id) - return this.get("/content_thumbnail/${path_type}/${path_resource_id}", - mapOf("reload" to reload, - "format" to format, - "width" to width, - "height" to height)) + return this.get( + "/content_thumbnail/$path_type/$path_resource_id", + mapOf( + "reload" to reload, + "format" to format, + "width" to width, + "height" to height, + ), + ) } - /** * ### Validate All Content * @@ -3331,13 +3292,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /content_validation -> ContentValidation */ @JvmOverloads fun content_validation( - fields: String? = null - ) : SDKResponse { - return this.get("/content_validation", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/content_validation", + mapOf("fields" to fields), + ) } - /** * ### Search Content Views * @@ -3391,25 +3353,28 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/content_view/search", - mapOf("view_count" to view_count, - "group_id" to group_id, - "look_id" to look_id, - "dashboard_id" to dashboard_id, - "content_metadata_id" to content_metadata_id, - "start_of_week_date" to start_of_week_date, - "all_time" to all_time, - "user_id" to user_id, - "fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/content_view/search", + mapOf( + "view_count" to view_count, + "group_id" to group_id, + "look_id" to look_id, + "dashboard_id" to dashboard_id, + "content_metadata_id" to content_metadata_id, + "start_of_week_date" to start_of_week_date, + "all_time" to all_time, + "user_id" to user_id, + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Get a vector image representing the contents of a dashboard or look. * @@ -3425,22 +3390,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /vector_thumbnail/{type}/{resource_id} -> String */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun vector_thumbnail( + @JvmOverloads + fun vector_thumbnail( type: String, resource_id: String, - reload: String? = null - ) : SDKResponse { + reload: String? = null, + ): SDKResponse { val path_type = encodeParam(type) val path_resource_id = encodeParam(resource_id) - return this.get("/vector_thumbnail/${path_type}/${path_resource_id}", - mapOf("reload" to reload)) + return this.get( + "/vector_thumbnail/$path_type/$path_resource_id", + mapOf("reload" to reload), + ) } //endregion Content: Manage Content //region Dashboard: Manage Dashboards - /** * ### Get information about all active dashboards. * @@ -3455,13 +3422,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards -> Array */ @JvmOverloads fun all_dashboards( - fields: String? = null - ) : SDKResponse { - return this.get>("/dashboards", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/dashboards", + mapOf("fields" to fields), + ) } - /** * ### Create a new dashboard * @@ -3483,12 +3451,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards -> Dashboard */ fun create_dashboard( - body: WriteDashboard - ) : SDKResponse { + body: WriteDashboard, + ): SDKResponse { return this.post("/dashboards", mapOf(), body) } - /** * ### Search Dashboards * @@ -3561,31 +3528,34 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/dashboards/search", - mapOf("id" to id, - "slug" to slug, - "title" to title, - "description" to description, - "content_favorite_id" to content_favorite_id, - "folder_id" to folder_id, - "deleted" to deleted, - "user_id" to user_id, - "view_count" to view_count, - "content_metadata_id" to content_metadata_id, - "curate" to curate, - "last_viewed_at" to last_viewed_at, - "fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/dashboards/search", + mapOf( + "id" to id, + "slug" to slug, + "title" to title, + "description" to description, + "content_favorite_id" to content_favorite_id, + "folder_id" to folder_id, + "deleted" to deleted, + "user_id" to user_id, + "view_count" to view_count, + "content_metadata_id" to content_metadata_id, + "curate" to curate, + "last_viewed_at" to last_viewed_at, + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Import a LookML dashboard to a space as a UDD * Creates a UDD (a dashboard which exists in the Looker database rather than as a LookML file) from the LookML dashboard @@ -3611,15 +3581,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { lookml_dashboard_id: String, space_id: String, body: WriteDashboard? = null, - raw_locale: Boolean? = null - ) : SDKResponse { + raw_locale: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) val path_space_id = encodeParam(space_id) - return this.post("/dashboards/${path_lookml_dashboard_id}/import/${path_space_id}", - mapOf("raw_locale" to raw_locale), body) + return this.post( + "/dashboards/$path_lookml_dashboard_id/import/$path_space_id", + mapOf("raw_locale" to raw_locale), + body, + ) } - /** * ### Update all linked dashboards to match the specified LookML dashboard. * @@ -3640,14 +3612,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun sync_lookml_dashboard( lookml_dashboard_id: String, body: WriteDashboard, - raw_locale: Boolean? = null - ) : SDKResponse { + raw_locale: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) - return this.patch>("/dashboards/${path_lookml_dashboard_id}/sync", - mapOf("raw_locale" to raw_locale), body) + return this.patch>( + "/dashboards/$path_lookml_dashboard_id/sync", + mapOf("raw_locale" to raw_locale), + body, + ) } - /** * ### Get information about a dashboard * @@ -3664,14 +3638,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/${path_dashboard_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboards/$path_dashboard_id", + mapOf("fields" to fields), + ) } - /** * ### Update a dashboard * @@ -3691,13 +3666,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_dashboard( dashboard_id: String, - body: WriteDashboard - ) : SDKResponse { + body: WriteDashboard, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.patch("/dashboards/${path_dashboard_id}", mapOf(), body) + return this.patch("/dashboards/$path_dashboard_id", mapOf(), body) } - /** * ### Delete the dashboard with the specified id * @@ -3712,13 +3686,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboards/{dashboard_id} -> String */ fun delete_dashboard( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.delete("/dashboards/${path_dashboard_id}", mapOf()) + return this.delete("/dashboards/$path_dashboard_id", mapOf()) } - /** * ### Get Aggregate Table LookML for Each Query on a Dahboard * @@ -3729,13 +3702,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards/aggregate_table_lookml/{dashboard_id} -> DashboardAggregateTableLookml */ fun dashboard_aggregate_table_lookml( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/aggregate_table_lookml/${path_dashboard_id}", mapOf()) + return this.get("/dashboards/aggregate_table_lookml/$path_dashboard_id", mapOf()) } - /** * ### Get lookml of a UDD * @@ -3746,13 +3718,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards/lookml/{dashboard_id} -> DashboardLookml */ fun dashboard_lookml( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/lookml/${path_dashboard_id}", mapOf()) + return this.get("/dashboards/lookml/$path_dashboard_id", mapOf()) } - /** * ### Move an existing dashboard * @@ -3768,14 +3739,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun move_dashboard( dashboard_id: String, - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.patch("/dashboards/${path_dashboard_id}/move", - mapOf("folder_id" to folder_id)) + return this.patch( + "/dashboards/$path_dashboard_id/move", + mapOf("folder_id" to folder_id), + ) } - /** * ### Creates a dashboard object based on LookML Dashboard YAML, and returns the details of the newly created dashboard. * @@ -3798,12 +3770,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards/lookml -> Dashboard */ fun import_dashboard_from_lookml( - body: WriteDashboardLookml - ) : SDKResponse { + body: WriteDashboardLookml, + ): SDKResponse { return this.post("/dashboards/lookml", mapOf(), body) } - /** * # DEPRECATED: Use [import_dashboard_from_lookml()](#!/Dashboard/import_dashboard_from_lookml) * @@ -3812,12 +3783,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards/from_lookml -> Dashboard */ fun create_dashboard_from_lookml( - body: WriteDashboardLookml - ) : SDKResponse { + body: WriteDashboardLookml, + ): SDKResponse { return this.post("/dashboards/from_lookml", mapOf(), body) } - /** * ### Copy an existing dashboard * @@ -3836,14 +3806,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun copy_dashboard( dashboard_id: String, - folder_id: String? = null - ) : SDKResponse { + folder_id: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.post("/dashboards/${path_dashboard_id}/copy", - mapOf("folder_id" to folder_id)) + return this.post( + "/dashboards/$path_dashboard_id/copy", + mapOf("folder_id" to folder_id), + ) } - /** * ### Search Dashboard Elements * @@ -3887,19 +3858,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { deleted: Boolean? = null, fields: String? = null, filter_or: Boolean? = null, - sorts: String? = null - ) : SDKResponse { - return this.get>("/dashboard_elements/search", - mapOf("dashboard_id" to dashboard_id, - "look_id" to look_id, - "title" to title, - "deleted" to deleted, - "fields" to fields, - "filter_or" to filter_or, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get>( + "/dashboard_elements/search", + mapOf( + "dashboard_id" to dashboard_id, + "look_id" to look_id, + "title" to title, + "deleted" to deleted, + "fields" to fields, + "filter_or" to filter_or, + "sorts" to sorts, + ), + ) } - /** * ### Get information about the dashboard element with a specific id. * @@ -3910,14 +3884,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_element( dashboard_element_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.get("/dashboard_elements/${path_dashboard_element_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_elements/$path_dashboard_element_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard element with a specific id. * @@ -3930,14 +3905,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_element( dashboard_element_id: String, body: WriteDashboardElement, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.patch("/dashboard_elements/${path_dashboard_element_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_elements/$path_dashboard_element_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard element with a specific id. * @@ -3946,13 +3923,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_elements/{dashboard_element_id} -> String */ fun delete_dashboard_element( - dashboard_element_id: String - ) : SDKResponse { + dashboard_element_id: String, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.delete("/dashboard_elements/${path_dashboard_element_id}", mapOf()) + return this.delete("/dashboard_elements/$path_dashboard_element_id", mapOf()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -3963,14 +3939,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_elements( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get>("/dashboards/${path_dashboard_id}/dashboard_elements", - mapOf("fields" to fields)) + return this.get>( + "/dashboards/$path_dashboard_id/dashboard_elements", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard element on the dashboard with a specific id. * @@ -3983,14 +3960,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_dashboard_element( body: WriteDashboardElement, fields: String? = null, - apply_filters: Boolean? = null - ) : SDKResponse { - return this.post("/dashboard_elements", - mapOf("fields" to fields, - "apply_filters" to apply_filters), body) + apply_filters: Boolean? = null, + ): SDKResponse { + return this.post( + "/dashboard_elements", + mapOf( + "fields" to fields, + "apply_filters" to apply_filters, + ), + body, + ) } - /** * ### Get information about the dashboard filters with a specific id. * @@ -4001,14 +3982,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_filter( dashboard_filter_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.get("/dashboard_filters/${path_dashboard_filter_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_filters/$path_dashboard_filter_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard filter with a specific id. * @@ -4021,14 +4003,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_filter( dashboard_filter_id: String, body: WriteDashboardFilter, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.patch("/dashboard_filters/${path_dashboard_filter_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_filters/$path_dashboard_filter_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard filter with a specific id. * @@ -4037,13 +4021,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_filters/{dashboard_filter_id} -> String */ fun delete_dashboard_filter( - dashboard_filter_id: String - ) : SDKResponse { + dashboard_filter_id: String, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.delete("/dashboard_filters/${path_dashboard_filter_id}", mapOf()) + return this.delete("/dashboard_filters/$path_dashboard_filter_id", mapOf()) } - /** * ### Get information about all the dashboard filters on a dashboard with a specific id. * @@ -4054,14 +4037,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_filters( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get>("/dashboards/${path_dashboard_id}/dashboard_filters", - mapOf("fields" to fields)) + return this.get>( + "/dashboards/$path_dashboard_id/dashboard_filters", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard filter on the dashboard with a specific id. * @@ -4072,13 +4056,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_dashboard_filter( body: WriteCreateDashboardFilter, - fields: String? = null - ) : SDKResponse { - return this.post("/dashboard_filters", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/dashboard_filters", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about the dashboard elements with a specific id. * @@ -4089,14 +4075,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout_component( dashboard_layout_component_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_component_id = encodeParam(dashboard_layout_component_id) - return this.get("/dashboard_layout_components/${path_dashboard_layout_component_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_layout_components/$path_dashboard_layout_component_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard element with a specific id. * @@ -4109,14 +4096,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_layout_component( dashboard_layout_component_id: String, body: WriteDashboardLayoutComponent, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_component_id = encodeParam(dashboard_layout_component_id) - return this.patch("/dashboard_layout_components/${path_dashboard_layout_component_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_layout_components/$path_dashboard_layout_component_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about all the dashboard layout components for a dashboard layout with a specific id. * @@ -4127,14 +4116,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout_dashboard_layout_components( dashboard_layout_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.get>("/dashboard_layouts/${path_dashboard_layout_id}/dashboard_layout_components", - mapOf("fields" to fields)) + return this.get>( + "/dashboard_layouts/$path_dashboard_layout_id/dashboard_layout_components", + mapOf("fields" to fields), + ) } - /** * ### Get information about the dashboard layouts with a specific id. * @@ -4145,14 +4135,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout( dashboard_layout_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.get("/dashboard_layouts/${path_dashboard_layout_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_layouts/$path_dashboard_layout_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard layout with a specific id. * @@ -4165,14 +4156,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_layout( dashboard_layout_id: String, body: WriteDashboardLayout, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.patch("/dashboard_layouts/${path_dashboard_layout_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_layouts/$path_dashboard_layout_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard layout with a specific id. * @@ -4181,13 +4174,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_layouts/{dashboard_layout_id} -> String */ fun delete_dashboard_layout( - dashboard_layout_id: String - ) : SDKResponse { + dashboard_layout_id: String, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.delete("/dashboard_layouts/${path_dashboard_layout_id}", mapOf()) + return this.delete("/dashboard_layouts/$path_dashboard_layout_id", mapOf()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -4198,14 +4190,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_layouts( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get>("/dashboards/${path_dashboard_id}/dashboard_layouts", - mapOf("fields" to fields)) + return this.get>( + "/dashboards/$path_dashboard_id/dashboard_layouts", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard layout on the dashboard with a specific id. * @@ -4216,17 +4209,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_dashboard_layout( body: WriteDashboardLayout, - fields: String? = null - ) : SDKResponse { - return this.post("/dashboard_layouts", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/dashboard_layouts", + mapOf("fields" to fields), + body, + ) } //endregion Dashboard: Manage Dashboards //region DataAction: Run Data Actions - /** * Perform a data action. The data action object can be obtained from query results, and used to perform an arbitrary action. * @@ -4235,12 +4230,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /data_actions -> DataActionResponse */ fun perform_data_action( - body: DataActionRequest - ) : SDKResponse { + body: DataActionRequest, + ): SDKResponse { return this.post("/data_actions", mapOf(), body) } - /** * For some data actions, the remote server may supply a form requesting further user input. This endpoint takes a data action, asks the remote server to generate a form for it, and returns that form to you for presentation to the user. * @@ -4249,8 +4243,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /data_actions/form -> DataActionForm */ fun fetch_remote_data_action_form( - body: Map - ) : SDKResponse { + body: Map, + ): SDKResponse { return this.post("/data_actions/form", mapOf(), body) } @@ -4258,19 +4252,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Datagroup: Manage Datagroups - /** * ### Get information about all datagroups. * * GET /datagroups -> Array */ - fun all_datagroups( - - ) : SDKResponse { + fun all_datagroups(): SDKResponse { return this.get>("/datagroups", mapOf()) } - /** * ### Get information about a datagroup. * @@ -4279,13 +4269,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /datagroups/{datagroup_id} -> Datagroup */ fun datagroup( - datagroup_id: String - ) : SDKResponse { + datagroup_id: String, + ): SDKResponse { val path_datagroup_id = encodeParam(datagroup_id) - return this.get("/datagroups/${path_datagroup_id}", mapOf()) + return this.get("/datagroups/$path_datagroup_id", mapOf()) } - /** * ### Update a datagroup using the specified params. * @@ -4296,17 +4285,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_datagroup( datagroup_id: String, - body: WriteDatagroup - ) : SDKResponse { + body: WriteDatagroup, + ): SDKResponse { val path_datagroup_id = encodeParam(datagroup_id) - return this.patch("/datagroups/${path_datagroup_id}", mapOf(), body) + return this.patch("/datagroups/$path_datagroup_id", mapOf(), body) } //endregion Datagroup: Manage Datagroups //region DerivedTable: View Derived Table graphs - /** * ### Discover information about derived tables * @@ -4319,15 +4307,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun graph_derived_tables_for_model( model: String, format: String? = null, - color: String? = null - ) : SDKResponse { + color: String? = null, + ): SDKResponse { val path_model = encodeParam(model) - return this.get("/derived_table/graph/model/${path_model}", - mapOf("format" to format, - "color" to color)) + return this.get( + "/derived_table/graph/model/$path_model", + mapOf( + "format" to format, + "color" to color, + ), + ) } - /** * ### Get the subgraph representing this derived table and its dependencies. * @@ -4340,15 +4331,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun graph_derived_tables_for_view( view: String, models: String? = null, - workspace: String? = null - ) : SDKResponse { + workspace: String? = null, + ): SDKResponse { val path_view = encodeParam(view) - return this.get("/derived_table/graph/view/${path_view}", - mapOf("models" to models, - "workspace" to workspace)) + return this.get( + "/derived_table/graph/view/$path_view", + mapOf( + "models" to models, + "workspace" to workspace, + ), + ) } - /** * Enqueue materialization for a PDT with the given model name and view name * @@ -4367,18 +4361,21 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { force_rebuild: String? = null, force_full_incremental: String? = null, workspace: String? = null, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) - return this.get("/derived_table/${path_model_name}/${path_view_name}/start", - mapOf("force_rebuild" to force_rebuild, - "force_full_incremental" to force_full_incremental, - "workspace" to workspace, - "source" to source)) + return this.get( + "/derived_table/$path_model_name/$path_view_name/start", + mapOf( + "force_rebuild" to force_rebuild, + "force_full_incremental" to force_full_incremental, + "workspace" to workspace, + "source" to source, + ), + ) } - /** * Check status of PDT materialization * @@ -4387,13 +4384,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /derived_table/{materialization_id}/status -> MaterializePDT */ fun check_pdt_build( - materialization_id: String - ) : SDKResponse { + materialization_id: String, + ): SDKResponse { val path_materialization_id = encodeParam(materialization_id) - return this.get("/derived_table/${path_materialization_id}/status", mapOf()) + return this.get("/derived_table/$path_materialization_id/status", mapOf()) } - /** * Stop a PDT materialization * @@ -4404,18 +4400,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun stop_pdt_build( materialization_id: String, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_materialization_id = encodeParam(materialization_id) - return this.get("/derived_table/${path_materialization_id}/stop", - mapOf("source" to source)) + return this.get( + "/derived_table/$path_materialization_id/stop", + mapOf("source" to source), + ) } //endregion DerivedTable: View Derived Table graphs //region Folder: Manage Folders - /** * Search for folders by creator id, parent id, name, etc * @@ -4446,24 +4443,27 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { parent_id: String? = null, creator_id: String? = null, filter_or: Boolean? = null, - is_shared_root: Boolean? = null - ) : SDKResponse { - return this.get>("/folders/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "name" to name, - "id" to id, - "parent_id" to parent_id, - "creator_id" to creator_id, - "filter_or" to filter_or, - "is_shared_root" to is_shared_root)) + is_shared_root: Boolean? = null, + ): SDKResponse { + return this.get>( + "/folders/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "name" to name, + "id" to id, + "parent_id" to parent_id, + "creator_id" to creator_id, + "filter_or" to filter_or, + "is_shared_root" to is_shared_root, + ), + ) } - /** * ### Get information about the folder with a specific id. * @@ -4474,14 +4474,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id", + mapOf("fields" to fields), + ) } - /** * ### Update the folder with a specific id. * @@ -4492,13 +4493,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_folder( folder_id: String, - body: UpdateFolder - ) : SDKResponse { + body: UpdateFolder, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.patch("/folders/${path_folder_id}", mapOf(), body) + return this.patch("/folders/$path_folder_id", mapOf(), body) } - /** * ### Delete the folder with a specific id including any children folders. * **DANGER** this will delete all looks and dashboards in the folder. @@ -4508,13 +4508,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /folders/{folder_id} -> String */ fun delete_folder( - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.delete("/folders/${path_folder_id}", mapOf()) + return this.delete("/folders/$path_folder_id", mapOf()) } - /** * ### Get information about all folders. * @@ -4528,13 +4527,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /folders -> Array */ @JvmOverloads fun all_folders( - fields: String? = null - ) : SDKResponse { - return this.get>("/folders", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/folders", + mapOf("fields" to fields), + ) } - /** * ### Create a folder with specified information. * @@ -4546,12 +4546,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /folders -> Folder */ fun create_folder( - body: CreateFolder - ) : SDKResponse { + body: CreateFolder, + ): SDKResponse { return this.post("/folders", mapOf(), body) } - /** * ### Get the children of a folder. * @@ -4572,19 +4571,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { per_page: Long? = null, limit: Long? = null, offset: Long? = null, - sorts: String? = null - ) : SDKResponse { + sorts: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get>("/folders/${path_folder_id}/children", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts)) + return this.get>( + "/folders/$path_folder_id/children", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + ), + ) } - /** * ### Search the children of a folder * @@ -4599,16 +4601,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { folder_id: String, fields: String? = null, sorts: String? = null, - name: String? = null - ) : SDKResponse { + name: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get>("/folders/${path_folder_id}/children/search", - mapOf("fields" to fields, - "sorts" to sorts, - "name" to name)) + return this.get>( + "/folders/$path_folder_id/children/search", + mapOf( + "fields" to fields, + "sorts" to sorts, + "name" to name, + ), + ) } - /** * ### Get the parent of a folder * @@ -4619,14 +4624,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_parent( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/parent", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id/parent", + mapOf("fields" to fields), + ) } - /** * ### Get the ancestors of a folder * @@ -4637,14 +4643,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_ancestors( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get>("/folders/${path_folder_id}/ancestors", - mapOf("fields" to fields)) + return this.get>( + "/folders/$path_folder_id/ancestors", + mapOf("fields" to fields), + ) } - /** * ### Get all looks in a folder. * In API 3.x, this will return all looks in a folder, including looks in the trash. @@ -4657,14 +4664,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_looks( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get>("/folders/${path_folder_id}/looks", - mapOf("fields" to fields)) + return this.get>( + "/folders/$path_folder_id/looks", + mapOf("fields" to fields), + ) } - /** * ### Get the dashboards in a folder * @@ -4675,18 +4683,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_dashboards( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get>("/folders/${path_folder_id}/dashboards", - mapOf("fields" to fields)) + return this.get>( + "/folders/$path_folder_id/dashboards", + mapOf("fields" to fields), + ) } //endregion Folder: Manage Folders //region Group: Manage Groups - /** * ### Get information about all groups. * @@ -4711,21 +4720,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { sorts: String? = null, ids: DelimArray? = null, content_metadata_id: String? = null, - can_add_to_content_metadata: Boolean? = null - ) : SDKResponse { - return this.get>("/groups", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "ids" to ids, - "content_metadata_id" to content_metadata_id, - "can_add_to_content_metadata" to can_add_to_content_metadata)) + can_add_to_content_metadata: Boolean? = null, + ): SDKResponse { + return this.get>( + "/groups", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "ids" to ids, + "content_metadata_id" to content_metadata_id, + "can_add_to_content_metadata" to can_add_to_content_metadata, + ), + ) } - /** * ### Creates a new group (admin only). * @@ -4736,13 +4748,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_group( body: WriteGroup, - fields: String? = null - ) : SDKResponse { - return this.post("/groups", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/groups", + mapOf("fields" to fields), + body, + ) } - /** * ### Search groups * @@ -4792,22 +4806,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get>("/groups/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get>( + "/groups/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Search groups include roles * @@ -4857,22 +4874,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get>("/groups/search/with_roles", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get>( + "/groups/search/with_roles", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Search groups include hierarchy * @@ -4923,22 +4943,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get>("/groups/search/with_hierarchy", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get>( + "/groups/search/with_hierarchy", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Get information about a group. * @@ -4949,14 +4972,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun group( group_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get("/groups/${path_group_id}", - mapOf("fields" to fields)) + return this.get( + "/groups/$path_group_id", + mapOf("fields" to fields), + ) } - /** * ### Updates the a group (admin only). * @@ -4969,14 +4993,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_group( group_id: String, body: WriteGroup, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.patch("/groups/${path_group_id}", - mapOf("fields" to fields), body) + return this.patch( + "/groups/$path_group_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Deletes a group (admin only). * @@ -4985,13 +5011,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /groups/{group_id} -> String */ fun delete_group( - group_id: String - ) : SDKResponse { + group_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.delete("/groups/${path_group_id}", mapOf()) + return this.delete("/groups/$path_group_id", mapOf()) } - /** * ### Get information about all the groups in a group * @@ -5002,14 +5027,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_group_groups( group_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get>("/groups/${path_group_id}/groups", - mapOf("fields" to fields)) + return this.get>( + "/groups/$path_group_id/groups", + mapOf("fields" to fields), + ) } - /** * ### Adds a new group to a group. * @@ -5020,13 +5046,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun add_group_group( group_id: String, - body: GroupIdForGroupInclusion - ) : SDKResponse { + body: GroupIdForGroupInclusion, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.post("/groups/${path_group_id}/groups", mapOf(), body) + return this.post("/groups/$path_group_id/groups", mapOf(), body) } - /** * ### Get information about all the users directly included in a group. * @@ -5047,19 +5072,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { per_page: Long? = null, limit: Long? = null, offset: Long? = null, - sorts: String? = null - ) : SDKResponse { + sorts: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get>("/groups/${path_group_id}/users", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts)) + return this.get>( + "/groups/$path_group_id/users", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + ), + ) } - /** * ### Adds a new user to a group. * @@ -5070,13 +5098,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun add_group_user( group_id: String, - body: GroupIdForGroupUserInclusion - ) : SDKResponse { + body: GroupIdForGroupUserInclusion, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.post("/groups/${path_group_id}/users", mapOf(), body) + return this.post("/groups/$path_group_id/users", mapOf(), body) } - /** * ### Removes a user from a group. * @@ -5087,14 +5114,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_group_user( group_id: String, - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_id = encodeParam(user_id) - return this.delete("/groups/${path_group_id}/users/${path_user_id}", mapOf()) + return this.delete("/groups/$path_group_id/users/$path_user_id", mapOf()) } - /** * ### Removes a group from a group. * @@ -5105,14 +5131,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_group_from_group( group_id: String, - deleting_group_id: String - ) : SDKResponse { + deleting_group_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_deleting_group_id = encodeParam(deleting_group_id) - return this.delete("/groups/${path_group_id}/groups/${path_deleting_group_id}", mapOf()) + return this.delete("/groups/$path_group_id/groups/$path_deleting_group_id", mapOf()) } - /** * ### Set the value of a user attribute for a group. * @@ -5127,14 +5152,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fun update_user_attribute_group_value( group_id: String, user_attribute_id: String, - body: UserAttributeGroupValue - ) : SDKResponse { + body: UserAttributeGroupValue, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/groups/${path_group_id}/attribute_values/${path_user_attribute_id}", mapOf(), body) + return this.patch("/groups/$path_group_id/attribute_values/$path_user_attribute_id", mapOf(), body) } - /** * ### Remove a user attribute value from a group. * @@ -5145,18 +5169,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_attribute_group_value( group_id: String, - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/groups/${path_group_id}/attribute_values/${path_user_attribute_id}", mapOf()) + return this.delete("/groups/$path_group_id/attribute_values/$path_user_attribute_id", mapOf()) } //endregion Group: Manage Groups //region Homepage: Manage Homepage - /** * ### Get information about the primary homepage's sections. * @@ -5165,17 +5188,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /primary_homepage_sections -> Array */ @JvmOverloads fun all_primary_homepage_sections( - fields: String? = null - ) : SDKResponse { - return this.get>("/primary_homepage_sections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/primary_homepage_sections", + mapOf("fields" to fields), + ) } //endregion Homepage: Manage Homepage //region Integration: Manage Integrations - /** * ### Get information about all Integration Hubs. * @@ -5184,13 +5208,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /integration_hubs -> Array */ @JvmOverloads fun all_integration_hubs( - fields: String? = null - ) : SDKResponse { - return this.get>("/integration_hubs", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/integration_hubs", + mapOf("fields" to fields), + ) } - /** * ### Create a new Integration Hub. * @@ -5203,13 +5228,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_integration_hub( body: WriteIntegrationHub, - fields: String? = null - ) : SDKResponse { - return this.post("/integration_hubs", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/integration_hubs", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a Integration Hub. * @@ -5220,14 +5247,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun integration_hub( integration_hub_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.get("/integration_hubs/${path_integration_hub_id}", - mapOf("fields" to fields)) + return this.get( + "/integration_hubs/$path_integration_hub_id", + mapOf("fields" to fields), + ) } - /** * ### Update a Integration Hub definition. * @@ -5242,14 +5270,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_integration_hub( integration_hub_id: String, body: WriteIntegrationHub, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.patch("/integration_hubs/${path_integration_hub_id}", - mapOf("fields" to fields), body) + return this.patch( + "/integration_hubs/$path_integration_hub_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a Integration Hub. * @@ -5258,13 +5288,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /integration_hubs/{integration_hub_id} -> String */ fun delete_integration_hub( - integration_hub_id: String - ) : SDKResponse { + integration_hub_id: String, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.delete("/integration_hubs/${path_integration_hub_id}", mapOf()) + return this.delete("/integration_hubs/$path_integration_hub_id", mapOf()) } - /** * Accepts the legal agreement for a given integration hub. This only works for integration hubs that have legal_agreement_required set to true and legal_agreement_signed set to false. * @@ -5273,13 +5302,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /integration_hubs/{integration_hub_id}/accept_legal_agreement -> IntegrationHub */ fun accept_integration_hub_legal_agreement( - integration_hub_id: String - ) : SDKResponse { + integration_hub_id: String, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.post("/integration_hubs/${path_integration_hub_id}/accept_legal_agreement", mapOf()) + return this.post("/integration_hubs/$path_integration_hub_id/accept_legal_agreement", mapOf()) } - /** * ### Get information about all Integrations. * @@ -5290,14 +5318,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_integrations( fields: String? = null, - integration_hub_id: String? = null - ) : SDKResponse { - return this.get>("/integrations", - mapOf("fields" to fields, - "integration_hub_id" to integration_hub_id)) + integration_hub_id: String? = null, + ): SDKResponse { + return this.get>( + "/integrations", + mapOf( + "fields" to fields, + "integration_hub_id" to integration_hub_id, + ), + ) } - /** * ### Get information about a Integration. * @@ -5308,14 +5339,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun integration( integration_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.get("/integrations/${path_integration_id}", - mapOf("fields" to fields)) + return this.get( + "/integrations/$path_integration_id", + mapOf("fields" to fields), + ) } - /** * ### Update parameters on a Integration. * @@ -5328,14 +5360,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_integration( integration_id: String, body: WriteIntegration, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.patch("/integrations/${path_integration_id}", - mapOf("fields" to fields), body) + return this.patch( + "/integrations/$path_integration_id", + mapOf("fields" to fields), + body, + ) } - /** * Returns the Integration form for presentation to the user. * @@ -5346,13 +5380,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun fetch_integration_form( integration_id: String, - body: Map? = null - ) : SDKResponse { + body: Map? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.post("/integrations/${path_integration_id}/form", mapOf(), body) + return this.post("/integrations/$path_integration_id/form", mapOf(), body) } - /** * Tests the integration to make sure all the settings are working. * @@ -5361,17 +5394,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /integrations/{integration_id}/test -> IntegrationTestResult */ fun test_integration( - integration_id: String - ) : SDKResponse { + integration_id: String, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.post("/integrations/${path_integration_id}/test", mapOf()) + return this.post("/integrations/$path_integration_id/test", mapOf()) } //endregion Integration: Manage Integrations //region Look: Run and Manage Looks - /** * ### Get information about all active Looks * @@ -5386,13 +5418,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /looks -> Array */ @JvmOverloads fun all_looks( - fields: String? = null - ) : SDKResponse { - return this.get>("/looks", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/looks", + mapOf("fields" to fields), + ) } - /** * ### Create a Look * @@ -5409,13 +5442,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_look( body: WriteLookWithQuery, - fields: String? = null - ) : SDKResponse { - return this.post("/looks", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/looks", + mapOf("fields" to fields), + body, + ) } - /** * ### Search Looks * @@ -5484,30 +5519,33 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/looks/search", - mapOf("id" to id, - "title" to title, - "description" to description, - "content_favorite_id" to content_favorite_id, - "folder_id" to folder_id, - "user_id" to user_id, - "view_count" to view_count, - "deleted" to deleted, - "query_id" to query_id, - "curate" to curate, - "last_viewed_at" to last_viewed_at, - "fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/looks/search", + mapOf( + "id" to id, + "title" to title, + "description" to description, + "content_favorite_id" to content_favorite_id, + "folder_id" to folder_id, + "user_id" to user_id, + "view_count" to view_count, + "deleted" to deleted, + "query_id" to query_id, + "curate" to curate, + "last_viewed_at" to last_viewed_at, + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Get a Look. * @@ -5520,14 +5558,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun look( look_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.get("/looks/${path_look_id}", - mapOf("fields" to fields)) + return this.get( + "/looks/$path_look_id", + mapOf("fields" to fields), + ) } - /** * ### Modify a Look * @@ -5559,14 +5598,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_look( look_id: String, body: WriteLookWithQuery, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.patch("/looks/${path_look_id}", - mapOf("fields" to fields), body) + return this.patch( + "/looks/$path_look_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Permanently Delete a Look * @@ -5581,13 +5622,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /looks/{look_id} -> String */ fun delete_look( - look_id: String - ) : SDKResponse { + look_id: String, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.delete("/looks/${path_look_id}", mapOf()) + return this.delete("/looks/$path_look_id", mapOf()) } - /** * ### Run a Look * @@ -5641,26 +5681,29 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { cache_only: Boolean? = null, path_prefix: String? = null, rebuild_pdts: Boolean? = null, - server_table_calcs: Boolean? = null - ) : SDKResponse { + server_table_calcs: Boolean? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) val path_result_format = encodeParam(result_format) - return this.get("/looks/${path_look_id}/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs)) + return this.get( + "/looks/$path_look_id/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + ), + ) } - /** * ### Copy an existing look * @@ -5677,14 +5720,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun copy_look( look_id: String, - folder_id: String? = null - ) : SDKResponse { + folder_id: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.post("/looks/${path_look_id}/copy", - mapOf("folder_id" to folder_id)) + return this.post( + "/looks/$path_look_id/copy", + mapOf("folder_id" to folder_id), + ) } - /** * ### Move an existing look * @@ -5700,18 +5744,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun move_look( look_id: String, - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.patch("/looks/${path_look_id}/move", - mapOf("folder_id" to folder_id)) + return this.patch( + "/looks/$path_look_id/move", + mapOf("folder_id" to folder_id), + ) } //endregion Look: Run and Manage Looks //region LookmlModel: Manage LookML Models - /** * ### Get information about all lookml models. * @@ -5724,15 +5769,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_lookml_models( fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get>("/lookml_models", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get>( + "/lookml_models", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Create a lookml model using the specified configuration. * @@ -5741,12 +5789,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /lookml_models -> LookmlModel */ fun create_lookml_model( - body: WriteLookmlModel - ) : SDKResponse { + body: WriteLookmlModel, + ): SDKResponse { return this.post("/lookml_models", mapOf(), body) } - /** * ### Get information about a lookml model. * @@ -5757,14 +5804,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun lookml_model( lookml_model_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.get("/lookml_models/${path_lookml_model_name}", - mapOf("fields" to fields)) + return this.get( + "/lookml_models/$path_lookml_model_name", + mapOf("fields" to fields), + ) } - /** * ### Update a lookml model using the specified configuration. * @@ -5775,13 +5823,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_lookml_model( lookml_model_name: String, - body: WriteLookmlModel - ) : SDKResponse { + body: WriteLookmlModel, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.patch("/lookml_models/${path_lookml_model_name}", mapOf(), body) + return this.patch("/lookml_models/$path_lookml_model_name", mapOf(), body) } - /** * ### Delete a lookml model. * @@ -5790,13 +5837,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /lookml_models/{lookml_model_name} -> String */ fun delete_lookml_model( - lookml_model_name: String - ) : SDKResponse { + lookml_model_name: String, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.delete("/lookml_models/${path_lookml_model_name}", mapOf()) + return this.delete("/lookml_models/$path_lookml_model_name", mapOf()) } - /** * ### Get information about a lookml model explore. * @@ -5809,19 +5855,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun lookml_model_explore( lookml_model_name: String, explore_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) val path_explore_name = encodeParam(explore_name) - return this.get("/lookml_models/${path_lookml_model_name}/explores/${path_explore_name}", - mapOf("fields" to fields)) + return this.get( + "/lookml_models/$path_lookml_model_name/explores/$path_explore_name", + mapOf("fields" to fields), + ) } //endregion LookmlModel: Manage LookML Models //region Metadata: Connection Metadata Features - /** * ### Field name suggestions for a model and view * @@ -5856,17 +5903,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { view_name: String, field_name: String, term: String? = null, - filters: Any? = null - ) : SDKResponse { + filters: Any? = null, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) val path_field_name = encodeParam(field_name) - return this.get("/models/${path_model_name}/views/${path_view_name}/fields/${path_field_name}/suggestions", - mapOf("term" to term, - "filters" to filters)) + return this.get( + "/models/$path_model_name/views/$path_view_name/fields/$path_field_name/suggestions", + mapOf( + "term" to term, + "filters" to filters, + ), + ) } - /** * ### Get a single model * @@ -5875,13 +5925,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /models/{model_name} -> Model */ fun get_model( - model_name: String - ) : SDKResponse { + model_name: String, + ): SDKResponse { val path_model_name = encodeParam(model_name) - return this.get("/models/${path_model_name}", mapOf()) + return this.get("/models/$path_model_name", mapOf()) } - /** * ### List databases available to this connection * @@ -5898,13 +5947,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /connections/{connection_name}/databases -> Array */ fun connection_databases( - connection_name: String - ) : SDKResponse { + connection_name: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get>("/connections/${path_connection_name}/databases", mapOf()) + return this.get>("/connections/$path_connection_name/databases", mapOf()) } - /** * ### Retrieve metadata features for this connection * @@ -5917,14 +5965,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun connection_features( connection_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/features", - mapOf("fields" to fields)) + return this.get( + "/connections/$path_connection_name/features", + mapOf("fields" to fields), + ) } - /** * ### Get the list of schemas and tables for a connection * @@ -5939,16 +5988,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { connection_name: String, database: String? = null, cache: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get>("/connections/${path_connection_name}/schemas", - mapOf("database" to database, - "cache" to cache, - "fields" to fields)) + return this.get>( + "/connections/$path_connection_name/schemas", + mapOf( + "database" to database, + "cache" to cache, + "fields" to fields, + ), + ) } - /** * ### Get the list of tables for a schema * @@ -5974,19 +6026,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { cache: Boolean? = null, fields: String? = null, table_filter: String? = null, - table_limit: Long? = null - ) : SDKResponse { + table_limit: Long? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get>("/connections/${path_connection_name}/tables", - mapOf("database" to database, - "schema_name" to schema_name, - "cache" to cache, - "fields" to fields, - "table_filter" to table_filter, - "table_limit" to table_limit)) + return this.get>( + "/connections/$path_connection_name/tables", + mapOf( + "database" to database, + "schema_name" to schema_name, + "cache" to cache, + "fields" to fields, + "table_filter" to table_filter, + "table_limit" to table_limit, + ), + ) } - /** * ### Get the columns (and therefore also the tables) in a specific schema * @@ -6007,19 +6062,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { cache: Boolean? = null, table_limit: Long? = null, table_names: String? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get>("/connections/${path_connection_name}/columns", - mapOf("database" to database, - "schema_name" to schema_name, - "cache" to cache, - "table_limit" to table_limit, - "table_names" to table_names, - "fields" to fields)) + return this.get>( + "/connections/$path_connection_name/columns", + mapOf( + "database" to database, + "schema_name" to schema_name, + "cache" to cache, + "table_limit" to table_limit, + "table_names" to table_names, + "fields" to fields, + ), + ) } - /** * ### Search a connection for columns matching the specified name * @@ -6034,15 +6092,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun connection_search_columns( connection_name: String, column_name: String? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get>("/connections/${path_connection_name}/search_columns", - mapOf("column_name" to column_name, - "fields" to fields)) + return this.get>( + "/connections/$path_connection_name/search_columns", + mapOf( + "column_name" to column_name, + "fields" to fields, + ), + ) } - /** * ### Connection cost estimating * @@ -6059,18 +6120,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun connection_cost_estimate( connection_name: String, body: CreateCostEstimate, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.post("/connections/${path_connection_name}/cost_estimate", - mapOf("fields" to fields), body) + return this.post( + "/connections/$path_connection_name/cost_estimate", + mapOf("fields" to fields), + body, + ) } //endregion Metadata: Connection Metadata Features //region Project: Manage Projects - /** * ### Generate Lockfile for All LookML Dependencies * @@ -6087,14 +6150,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun lock_all( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/manifest/lock_all", - mapOf("fields" to fields)) + return this.post( + "/projects/$path_project_id/manifest/lock_all", + mapOf("fields" to fields), + ) } - /** * ### Get All Git Branches * @@ -6105,13 +6169,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git_branches -> Array */ fun all_git_branches( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get>("/projects/${path_project_id}/git_branches", mapOf()) + return this.get>("/projects/$path_project_id/git_branches", mapOf()) } - /** * ### Get the Current Git Branch * @@ -6122,13 +6185,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git_branch -> GitBranch */ fun git_branch( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git_branch", mapOf()) + return this.get("/projects/$path_project_id/git_branch", mapOf()) } - /** * ### Checkout and/or reset --hard an existing Git Branch * @@ -6147,13 +6209,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_git_branch( project_id: String, - body: WriteGitBranch - ) : SDKResponse { + body: WriteGitBranch, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.put("/projects/${path_project_id}/git_branch", mapOf(), body) + return this.put("/projects/$path_project_id/git_branch", mapOf(), body) } - /** * ### Create and Checkout a Git Branch * @@ -6171,13 +6232,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun create_git_branch( project_id: String, - body: WriteGitBranch - ) : SDKResponse { + body: WriteGitBranch, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/git_branch", mapOf(), body) + return this.post("/projects/$path_project_id/git_branch", mapOf(), body) } - /** * ### Get the specified Git Branch * @@ -6190,14 +6250,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun find_git_branch( project_id: String, - branch_name: String - ) : SDKResponse { + branch_name: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_branch_name = encodeParam(branch_name) - return this.get("/projects/${path_project_id}/git_branch/${path_branch_name}", mapOf()) + return this.get("/projects/$path_project_id/git_branch/$path_branch_name", mapOf()) } - /** * ### Delete the specified Git Branch * @@ -6210,14 +6269,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_git_branch( project_id: String, - branch_name: String - ) : SDKResponse { + branch_name: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_branch_name = encodeParam(branch_name) - return this.delete("/projects/${path_project_id}/git_branch/${path_branch_name}", mapOf()) + return this.delete("/projects/$path_project_id/git_branch/$path_branch_name", mapOf()) } - /** * ### Deploy a Remote Branch or Ref to Production * @@ -6238,15 +6296,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun deploy_ref_to_production( project_id: String, branch: String? = null, - ref: String? = null - ) : SDKResponse { + ref: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/deploy_ref_to_production", - mapOf("branch" to branch, - "ref" to ref)) + return this.post( + "/projects/$path_project_id/deploy_ref_to_production", + mapOf( + "branch" to branch, + "ref" to ref, + ), + ) } - /** * ### Deploy LookML from this Development Mode Project to Production * @@ -6266,13 +6327,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/deploy_to_production -> String */ fun deploy_to_production( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/deploy_to_production", mapOf()) + return this.post("/projects/$path_project_id/deploy_to_production", mapOf()) } - /** * ### Reset a project to the revision of the project that is in production. * @@ -6283,13 +6343,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/reset_to_production -> String */ fun reset_project_to_production( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/reset_to_production", mapOf()) + return this.post("/projects/$path_project_id/reset_to_production", mapOf()) } - /** * ### Reset a project development branch to the revision of the project that is on the remote. * @@ -6300,13 +6359,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/reset_to_remote -> String */ fun reset_project_to_remote( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/reset_to_remote", mapOf()) + return this.post("/projects/$path_project_id/reset_to_remote", mapOf()) } - /** * ### Get All Projects * @@ -6317,13 +6375,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects -> Array */ @JvmOverloads fun all_projects( - fields: String? = null - ) : SDKResponse { - return this.get>("/projects", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/projects", + mapOf("fields" to fields), + ) } - /** * ### Create A Project * @@ -6338,12 +6397,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /projects -> Project */ fun create_project( - body: WriteProject - ) : SDKResponse { + body: WriteProject, + ): SDKResponse { return this.post("/projects", mapOf(), body) } - /** * ### Get A Project * @@ -6356,14 +6414,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id", + mapOf("fields" to fields), + ) } - /** * ### Update Project Configuration * @@ -6397,14 +6456,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_project( project_id: String, body: WriteProject, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.patch("/projects/${path_project_id}", - mapOf("fields" to fields), body) + return this.patch( + "/projects/$path_project_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Get A Projects Manifest object * @@ -6415,13 +6476,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/manifest -> Manifest */ fun manifest( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/manifest", mapOf()) + return this.get("/projects/$path_project_id/manifest", mapOf()) } - /** * ### Git Deploy Key * @@ -6432,13 +6492,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git/deploy_key -> String */ fun git_deploy_key( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git/deploy_key", mapOf()) + return this.get("/projects/$path_project_id/git/deploy_key", mapOf()) } - /** * ### Create Git Deploy Key * @@ -6455,13 +6514,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/git/deploy_key -> String */ fun create_git_deploy_key( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/git/deploy_key", mapOf()) + return this.post("/projects/$path_project_id/git/deploy_key", mapOf()) } - /** * ### Get Cached Project Validation Results * @@ -6483,14 +6541,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project_validation_results( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/validate", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id/validate", + mapOf("fields" to fields), + ) } - /** * ### Validate Project * @@ -6509,14 +6568,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun validate_project( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/validate", - mapOf("fields" to fields)) + return this.post( + "/projects/$path_project_id/validate", + mapOf("fields" to fields), + ) } - /** * ### Get Project Workspace * @@ -6529,14 +6589,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project_workspace( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/current_workspace", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id/current_workspace", + mapOf("fields" to fields), + ) } - /** * ### Get All Project Files * @@ -6549,14 +6610,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_project_files( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get>("/projects/${path_project_id}/files", - mapOf("fields" to fields)) + return this.get>( + "/projects/$path_project_id/files", + mapOf("fields" to fields), + ) } - /** * ### Get Project File Info * @@ -6571,15 +6633,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun project_file( project_id: String, file_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/files/file", - mapOf("file_id" to file_id, - "fields" to fields)) + return this.get( + "/projects/$path_project_id/files/file", + mapOf( + "file_id" to file_id, + "fields" to fields, + ), + ) } - /** * ### Get All Git Connection Tests * @@ -6599,14 +6664,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_git_connection_tests( project_id: String, - remote_url: String? = null - ) : SDKResponse { + remote_url: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get>("/projects/${path_project_id}/git_connection_tests", - mapOf("remote_url" to remote_url)) + return this.get>( + "/projects/$path_project_id/git_connection_tests", + mapOf("remote_url" to remote_url), + ) } - /** * ### Run a git connection test * @@ -6627,16 +6693,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { project_id: String, test_id: String, remote_url: String? = null, - use_production: String? = null - ) : SDKResponse { + use_production: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_test_id = encodeParam(test_id) - return this.get("/projects/${path_project_id}/git_connection_tests/${path_test_id}", - mapOf("remote_url" to remote_url, - "use_production" to use_production)) + return this.get( + "/projects/$path_project_id/git_connection_tests/$path_test_id", + mapOf( + "remote_url" to remote_url, + "use_production" to use_production, + ), + ) } - /** * ### Get All LookML Tests * @@ -6651,14 +6720,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_lookml_tests( project_id: String, - file_id: String? = null - ) : SDKResponse { + file_id: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get>("/projects/${path_project_id}/lookml_tests", - mapOf("file_id" to file_id)) + return this.get>( + "/projects/$path_project_id/lookml_tests", + mapOf("file_id" to file_id), + ) } - /** * ### Run LookML Tests * @@ -6675,16 +6745,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { project_id: String, file_id: String? = null, test: String? = null, - model: String? = null - ) : SDKResponse { + model: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get>("/projects/${path_project_id}/lookml_tests/run", - mapOf("file_id" to file_id, - "test" to test, - "model" to model)) + return this.get>( + "/projects/$path_project_id/lookml_tests/run", + mapOf( + "file_id" to file_id, + "test" to test, + "model" to model, + ), + ) } - /** * ### Creates a tag for the most recent commit, or a specific ref is a SHA is provided * @@ -6703,16 +6776,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { body: WriteProject, commit_sha: String? = null, tag_name: String? = null, - tag_message: String? = null - ) : SDKResponse { + tag_message: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/tag", - mapOf("commit_sha" to commit_sha, - "tag_name" to tag_name, - "tag_message" to tag_message), body) + return this.post( + "/projects/$path_project_id/tag", + mapOf( + "commit_sha" to commit_sha, + "tag_name" to tag_name, + "tag_message" to tag_message, + ), + body, + ) } - /** * ### Configure Repository Credential for a remote dependency * @@ -6730,14 +6807,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fun update_repository_credential( root_project_id: String, credential_id: String, - body: WriteRepositoryCredential - ) : SDKResponse { + body: WriteRepositoryCredential, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) val path_credential_id = encodeParam(credential_id) - return this.put("/projects/${path_root_project_id}/credential/${path_credential_id}", mapOf(), body) + return this.put("/projects/$path_root_project_id/credential/$path_credential_id", mapOf(), body) } - /** * ### Repository Credential for a remote dependency * @@ -6753,14 +6829,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_repository_credential( root_project_id: String, - credential_id: String - ) : SDKResponse { + credential_id: String, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) val path_credential_id = encodeParam(credential_id) - return this.delete("/projects/${path_root_project_id}/credential/${path_credential_id}", mapOf()) + return this.delete("/projects/$path_root_project_id/credential/$path_credential_id", mapOf()) } - /** * ### Get all Repository Credentials for a project * @@ -6771,17 +6846,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{root_project_id}/credentials -> Array */ fun get_all_repository_credentials( - root_project_id: String - ) : SDKResponse { + root_project_id: String, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) - return this.get>("/projects/${path_root_project_id}/credentials", mapOf()) + return this.get>("/projects/$path_root_project_id/credentials", mapOf()) } //endregion Project: Manage Projects //region Query: Run and Manage Queries - /** * ### Create an async query task * @@ -6821,25 +6895,29 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { server_table_calcs: Boolean? = null, image_width: Long? = null, image_height: Long? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/query_tasks", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs, - "image_width" to image_width, - "image_height" to image_height, - "fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/query_tasks", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + "image_width" to image_width, + "image_height" to image_height, + "fields" to fields, + ), + body, + ) } - /** * ### Fetch results of multiple async queries * @@ -6854,13 +6932,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /query_tasks/multi_results -> Map */ fun query_task_multi_results( - query_task_ids: DelimArray - ) : SDKResponse { - return this.get>("/query_tasks/multi_results", - mapOf("query_task_ids" to query_task_ids)) + query_task_ids: DelimArray, + ): SDKResponse { + return this.get>( + "/query_tasks/multi_results", + mapOf("query_task_ids" to query_task_ids), + ) } - /** * ### Get Query Task details * @@ -6877,14 +6956,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query_task( query_task_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.get("/query_tasks/${path_query_task_id}", - mapOf("fields" to fields)) + return this.get( + "/query_tasks/$path_query_task_id", + mapOf("fields" to fields), + ) } - /** * ### Get Async Query Results * @@ -6915,13 +6995,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /query_tasks/{query_task_id}/results -> String */ fun query_task_results( - query_task_id: String - ) : SDKResponse { + query_task_id: String, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.get("/query_tasks/${path_query_task_id}/results", mapOf()) + return this.get("/query_tasks/$path_query_task_id/results", mapOf()) } - /** * ### Get a previously created query by id. * @@ -6948,14 +7027,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query( query_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) - return this.get("/queries/${path_query_id}", - mapOf("fields" to fields)) + return this.get( + "/queries/$path_query_id", + mapOf("fields" to fields), + ) } - /** * ### Get the query for a given query slug. * @@ -6982,14 +7062,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query_for_slug( slug: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_slug = encodeParam(slug) - return this.get("/queries/slug/${path_slug}", - mapOf("fields" to fields)) + return this.get( + "/queries/slug/$path_slug", + mapOf("fields" to fields), + ) } - /** * ### Create a query. * @@ -7007,13 +7088,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_query( body: WriteQuery, - fields: String? = null - ) : SDKResponse { - return this.post("/queries", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/queries", + mapOf("fields" to fields), + body, + ) } - /** * ### Run a saved query. * @@ -7072,27 +7155,30 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { path_prefix: String? = null, rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) - return this.get("/queries/${path_query_id}/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs, - "source" to source)) + return this.get( + "/queries/$path_query_id/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + "source" to source, + ), + ) } - /** * ### Run the query that is specified inline in the posted body. * @@ -7178,25 +7264,29 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { cache_only: Boolean? = null, path_prefix: String? = null, rebuild_pdts: Boolean? = null, - server_table_calcs: Boolean? = null - ) : SDKResponse { + server_table_calcs: Boolean? = null, + ): SDKResponse { val path_result_format = encodeParam(result_format) - return this.post("/queries/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs), body) + return this.post( + "/queries/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + ), + body, + ) } - /** * ### Run an URL encoded query. * @@ -7262,15 +7352,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fun run_url_encoded_query( model_name: String, view_name: String, - result_format: String - ) : SDKResponse { + result_format: String, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) val path_result_format = encodeParam(result_format) - return this.get("/queries/models/${path_model_name}/views/${path_view_name}/run/${path_result_format}", mapOf()) + return this.get("/queries/models/$path_model_name/views/$path_view_name/run/$path_result_format", mapOf()) } - /** * ### Get Merge Query * @@ -7283,14 +7372,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun merge_query( merge_query_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_merge_query_id = encodeParam(merge_query_id) - return this.get("/merge_queries/${path_merge_query_id}", - mapOf("fields" to fields)) + return this.get( + "/merge_queries/$path_merge_query_id", + mapOf("fields" to fields), + ) } - /** * ### Create Merge Query * @@ -7317,25 +7407,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_merge_query( body: WriteMergeQuery? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/merge_queries", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/merge_queries", + mapOf("fields" to fields), + body, + ) } - /** * Get information about all running queries. * * GET /running_queries -> Array */ - fun all_running_queries( - - ) : SDKResponse { + fun all_running_queries(): SDKResponse { return this.get>("/running_queries", mapOf()) } - /** * Kill a query with a specific query_task_id. * @@ -7344,13 +7433,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /running_queries/{query_task_id} -> String */ fun kill_query( - query_task_id: String - ) : SDKResponse { + query_task_id: String, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.delete("/running_queries/${path_query_task_id}", mapOf()) + return this.delete("/running_queries/$path_query_task_id", mapOf()) } - /** * Get a SQL Runner query. * @@ -7359,13 +7447,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /sql_queries/{slug} -> SqlQuery */ fun sql_query( - slug: String - ) : SDKResponse { + slug: String, + ): SDKResponse { val path_slug = encodeParam(slug) - return this.get("/sql_queries/${path_slug}", mapOf()) + return this.get("/sql_queries/$path_slug", mapOf()) } - /** * ### Create a SQL Runner Query * @@ -7376,12 +7463,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /sql_queries -> SqlQuery */ fun create_sql_query( - body: SqlQueryCreate - ) : SDKResponse { + body: SqlQueryCreate, + ): SDKResponse { return this.post("/sql_queries", mapOf(), body) } - /** * Execute a SQL Runner query in a given result_format. * @@ -7396,19 +7482,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun run_sql_query( slug: String, result_format: String, - download: String? = null - ) : SDKResponse { + download: String? = null, + ): SDKResponse { val path_slug = encodeParam(slug) val path_result_format = encodeParam(result_format) - return this.post("/sql_queries/${path_slug}/run/${path_result_format}", - mapOf("download" to download)) + return this.post( + "/sql_queries/$path_slug/run/$path_result_format", + mapOf("download" to download), + ) } //endregion Query: Run and Manage Queries //region RenderTask: Manage Render Tasks - /** * ### Create a new task to render a look to an image. * @@ -7429,17 +7516,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/looks/${path_look_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/looks/$path_look_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } - /** * ### Create a new task to render an existing query to an image. * @@ -7460,17 +7550,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/queries/${path_query_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/queries/$path_query_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } - /** * ### Create a new task to render a dashboard to a document or image. * @@ -7499,20 +7592,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fields: String? = null, pdf_paper_size: String? = null, pdf_landscape: Boolean? = null, - long_tables: Boolean? = null - ) : SDKResponse { + long_tables: Boolean? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/dashboards/${path_dashboard_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields, - "pdf_paper_size" to pdf_paper_size, - "pdf_landscape" to pdf_landscape, - "long_tables" to long_tables), body) + return this.post( + "/render_tasks/dashboards/$path_dashboard_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + "pdf_paper_size" to pdf_paper_size, + "pdf_landscape" to pdf_landscape, + "long_tables" to long_tables, + ), + body, + ) } - /** * ### Get information about a render task. * @@ -7527,14 +7624,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun render_task( render_task_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_render_task_id = encodeParam(render_task_id) - return this.get("/render_tasks/${path_render_task_id}", - mapOf("fields" to fields)) + return this.get( + "/render_tasks/$path_render_task_id", + mapOf("fields" to fields), + ) } - /** * ### Get the document or image produced by a completed render task. * @@ -7561,13 +7659,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * **Note**: Binary content is returned by this method. */ fun render_task_results( - render_task_id: String - ) : SDKResponse { + render_task_id: String, + ): SDKResponse { val path_render_task_id = encodeParam(render_task_id) - return this.get("/render_tasks/${path_render_task_id}/results", mapOf()) + return this.get("/render_tasks/$path_render_task_id/results", mapOf()) } - /** * ### Create a new task to render a dashboard element to an image. * @@ -7588,21 +7685,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/dashboard_elements/${path_dashboard_element_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/dashboard_elements/$path_dashboard_element_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } //endregion RenderTask: Manage Render Tasks //region Role: Manage Roles - /** * ### Search model sets * Returns all model set records that match the given search criteria. @@ -7648,21 +7748,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, all_access: Boolean? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/model_sets/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "all_access" to all_access, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/model_sets/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "all_access" to all_access, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the model set with a specific id. * @@ -7673,14 +7776,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun model_set( model_set_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.get("/model_sets/${path_model_set_id}", - mapOf("fields" to fields)) + return this.get( + "/model_sets/$path_model_set_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the model set with a specific id. * @@ -7691,13 +7795,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_model_set( model_set_id: String, - body: WriteModelSet - ) : SDKResponse { + body: WriteModelSet, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.patch("/model_sets/${path_model_set_id}", mapOf(), body) + return this.patch("/model_sets/$path_model_set_id", mapOf(), body) } - /** * ### Delete the model set with a specific id. * @@ -7706,13 +7809,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /model_sets/{model_set_id} -> String */ fun delete_model_set( - model_set_id: String - ) : SDKResponse { + model_set_id: String, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.delete("/model_sets/${path_model_set_id}", mapOf()) + return this.delete("/model_sets/$path_model_set_id", mapOf()) } - /** * ### Get information about all model sets. * @@ -7721,13 +7823,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /model_sets -> Array */ @JvmOverloads fun all_model_sets( - fields: String? = null - ) : SDKResponse { - return this.get>("/model_sets", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/model_sets", + mapOf("fields" to fields), + ) } - /** * ### Create a model set with the specified information. Model sets are used by Roles. * @@ -7736,24 +7839,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /model_sets -> ModelSet */ fun create_model_set( - body: WriteModelSet - ) : SDKResponse { + body: WriteModelSet, + ): SDKResponse { return this.post("/model_sets", mapOf(), body) } - /** * ### Get all supported permissions. * * GET /permissions -> Array */ - fun all_permissions( - - ) : SDKResponse { + fun all_permissions(): SDKResponse { return this.get>("/permissions", mapOf()) } - /** * ### Search permission sets * Returns all permission set records that match the given search criteria. @@ -7799,21 +7898,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, all_access: Boolean? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/permission_sets/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "all_access" to all_access, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/permission_sets/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "all_access" to all_access, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the permission set with a specific id. * @@ -7824,14 +7926,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun permission_set( permission_set_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.get("/permission_sets/${path_permission_set_id}", - mapOf("fields" to fields)) + return this.get( + "/permission_sets/$path_permission_set_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the permission set with a specific id. * @@ -7842,13 +7945,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_permission_set( permission_set_id: String, - body: WritePermissionSet - ) : SDKResponse { + body: WritePermissionSet, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.patch("/permission_sets/${path_permission_set_id}", mapOf(), body) + return this.patch("/permission_sets/$path_permission_set_id", mapOf(), body) } - /** * ### Delete the permission set with a specific id. * @@ -7857,13 +7959,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /permission_sets/{permission_set_id} -> String */ fun delete_permission_set( - permission_set_id: String - ) : SDKResponse { + permission_set_id: String, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.delete("/permission_sets/${path_permission_set_id}", mapOf()) + return this.delete("/permission_sets/$path_permission_set_id", mapOf()) } - /** * ### Get information about all permission sets. * @@ -7872,13 +7973,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /permission_sets -> Array */ @JvmOverloads fun all_permission_sets( - fields: String? = null - ) : SDKResponse { - return this.get>("/permission_sets", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/permission_sets", + mapOf("fields" to fields), + ) } - /** * ### Create a permission set with the specified information. Permission sets are used by Roles. * @@ -7887,12 +7989,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /permission_sets -> PermissionSet */ fun create_permission_set( - body: WritePermissionSet - ) : SDKResponse { + body: WritePermissionSet, + ): SDKResponse { return this.post("/permission_sets", mapOf(), body) } - /** * ### Get information about all roles. * @@ -7903,14 +8004,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_roles( fields: String? = null, - ids: DelimArray? = null - ) : SDKResponse { - return this.get>("/roles", - mapOf("fields" to fields, - "ids" to ids)) + ids: DelimArray? = null, + ): SDKResponse { + return this.get>( + "/roles", + mapOf( + "fields" to fields, + "ids" to ids, + ), + ) } - /** * ### Create a role with the specified information. * @@ -7919,12 +8023,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /roles -> Role */ fun create_role( - body: WriteRole - ) : SDKResponse { + body: WriteRole, + ): SDKResponse { return this.post("/roles", mapOf(), body) } - /** * ### Search roles * @@ -7970,20 +8073,23 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, name: String? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/roles/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/roles/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Search roles include user count * @@ -8030,20 +8136,23 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, name: String? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/roles/search/with_user_count", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/roles/search/with_user_count", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the role with a specific id. * @@ -8052,13 +8161,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /roles/{role_id} -> Role */ fun role( - role_id: String - ) : SDKResponse { + role_id: String, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get("/roles/${path_role_id}", mapOf()) + return this.get("/roles/$path_role_id", mapOf()) } - /** * ### Update information about the role with a specific id. * @@ -8069,13 +8177,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_role( role_id: String, - body: WriteRole - ) : SDKResponse { + body: WriteRole, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.patch("/roles/${path_role_id}", mapOf(), body) + return this.patch("/roles/$path_role_id", mapOf(), body) } - /** * ### Delete the role with a specific id. * @@ -8084,13 +8191,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /roles/{role_id} -> String */ fun delete_role( - role_id: String - ) : SDKResponse { + role_id: String, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.delete("/roles/${path_role_id}", mapOf()) + return this.delete("/roles/$path_role_id", mapOf()) } - /** * ### Get information about all the groups with the role that has a specific id. * @@ -8101,14 +8207,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun role_groups( role_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get>("/roles/${path_role_id}/groups", - mapOf("fields" to fields)) + return this.get>( + "/roles/$path_role_id/groups", + mapOf("fields" to fields), + ) } - /** * ### Set all groups for a role, removing all existing group associations from that role. * @@ -8119,13 +8226,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun set_role_groups( role_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.put>("/roles/${path_role_id}/groups", mapOf(), body) + return this.put>("/roles/$path_role_id/groups", mapOf(), body) } - /** * ### Get information about all the users with the role that has a specific id. * @@ -8138,15 +8244,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun role_users( role_id: String, fields: String? = null, - direct_association_only: Boolean? = null - ) : SDKResponse { + direct_association_only: Boolean? = null, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get>("/roles/${path_role_id}/users", - mapOf("fields" to fields, - "direct_association_only" to direct_association_only)) + return this.get>( + "/roles/$path_role_id/users", + mapOf( + "fields" to fields, + "direct_association_only" to direct_association_only, + ), + ) } - /** * ### Set all the users of the role with a specific id. * @@ -8157,17 +8266,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun set_role_users( role_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.put>("/roles/${path_role_id}/users", mapOf(), body) + return this.put>("/roles/$path_role_id/users", mapOf(), body) } //endregion Role: Manage Roles //region ScheduledPlan: Manage Scheduled Plans - /** * ### Get Scheduled Plans for a Space * @@ -8180,14 +8288,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plans_for_space( space_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_space_id = encodeParam(space_id) - return this.get>("/scheduled_plans/space/${path_space_id}", - mapOf("fields" to fields)) + return this.get>( + "/scheduled_plans/space/$path_space_id", + mapOf("fields" to fields), + ) } - /** * ### Get Information About a Scheduled Plan * @@ -8200,14 +8309,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plan( scheduled_plan_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.get("/scheduled_plans/${path_scheduled_plan_id}", - mapOf("fields" to fields)) + return this.get( + "/scheduled_plans/$path_scheduled_plan_id", + mapOf("fields" to fields), + ) } - /** * ### Update a Scheduled Plan * @@ -8259,13 +8369,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_scheduled_plan( scheduled_plan_id: String, - body: WriteScheduledPlan - ) : SDKResponse { + body: WriteScheduledPlan, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.patch("/scheduled_plans/${path_scheduled_plan_id}", mapOf(), body) + return this.patch("/scheduled_plans/$path_scheduled_plan_id", mapOf(), body) } - /** * ### Delete a Scheduled Plan * @@ -8278,13 +8387,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /scheduled_plans/{scheduled_plan_id} -> String */ fun delete_scheduled_plan( - scheduled_plan_id: String - ) : SDKResponse { + scheduled_plan_id: String, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.delete("/scheduled_plans/${path_scheduled_plan_id}", mapOf()) + return this.delete("/scheduled_plans/$path_scheduled_plan_id", mapOf()) } - /** * ### List All Scheduled Plans * @@ -8307,15 +8415,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_scheduled_plans( user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { - return this.get>("/scheduled_plans", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + all_users: Boolean? = null, + ): SDKResponse { + return this.get>( + "/scheduled_plans", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Create a Scheduled Plan * @@ -8381,12 +8492,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /scheduled_plans -> ScheduledPlan */ fun create_scheduled_plan( - body: WriteScheduledPlan - ) : SDKResponse { + body: WriteScheduledPlan, + ): SDKResponse { return this.post("/scheduled_plans", mapOf(), body) } - /** * ### Run a Scheduled Plan Immediately * @@ -8431,12 +8541,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /scheduled_plans/run_once -> ScheduledPlan */ fun scheduled_plan_run_once( - body: WriteScheduledPlan - ) : SDKResponse { + body: WriteScheduledPlan, + ): SDKResponse { return this.post("/scheduled_plans/run_once", mapOf(), body) } - /** * ### Get Scheduled Plans for a Look * @@ -8461,16 +8570,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { look_id: String, user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { + all_users: Boolean? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.get>("/scheduled_plans/look/${path_look_id}", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + return this.get>( + "/scheduled_plans/look/$path_look_id", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Get Scheduled Plans for a Dashboard * @@ -8495,16 +8607,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { dashboard_id: String, user_id: String? = null, all_users: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get>("/scheduled_plans/dashboard/${path_dashboard_id}", - mapOf("user_id" to user_id, - "all_users" to all_users, - "fields" to fields)) + return this.get>( + "/scheduled_plans/dashboard/$path_dashboard_id", + mapOf( + "user_id" to user_id, + "all_users" to all_users, + "fields" to fields, + ), + ) } - /** * ### Get Scheduled Plans for a LookML Dashboard * @@ -8529,16 +8644,19 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { lookml_dashboard_id: String, user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { + all_users: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) - return this.get>("/scheduled_plans/lookml_dashboard/${path_lookml_dashboard_id}", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + return this.get>( + "/scheduled_plans/lookml_dashboard/$path_lookml_dashboard_id", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Run a Scheduled Plan By Id Immediately * This function creates a run-once schedule plan based on an existing scheduled plan, @@ -8595,17 +8713,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plan_run_once_by_id( scheduled_plan_id: String, - body: WriteScheduledPlan? = null - ) : SDKResponse { + body: WriteScheduledPlan? = null, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.post("/scheduled_plans/${path_scheduled_plan_id}/run_once", mapOf(), body) + return this.post("/scheduled_plans/$path_scheduled_plan_id/run_once", mapOf(), body) } //endregion ScheduledPlan: Manage Scheduled Plans //region Session: Session Information - /** * ### Get API Session * @@ -8613,13 +8730,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /session -> ApiSession */ - fun session( - - ) : SDKResponse { + fun session(): SDKResponse { return this.get("/session", mapOf()) } - /** * ### Update API Session * @@ -8647,8 +8761,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PATCH /session -> ApiSession */ fun update_session( - body: WriteApiSession - ) : SDKResponse { + body: WriteApiSession, + ): SDKResponse { return this.patch("/session", mapOf(), body) } @@ -8656,7 +8770,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Theme: Manage Themes - /** * ### Get an array of all existing themes * @@ -8671,13 +8784,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /themes -> Array */ @JvmOverloads fun all_themes( - fields: String? = null - ) : SDKResponse { - return this.get>("/themes", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/themes", + mapOf("fields" to fields), + ) } - /** * ### Create a theme * @@ -8700,12 +8814,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /themes -> Theme */ fun create_theme( - body: WriteTheme - ) : SDKResponse { + body: WriteTheme, + ): SDKResponse { return this.post("/themes", mapOf(), body) } - /** * ### Search all themes for matching criteria. * @@ -8767,21 +8880,24 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, fields: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/themes/search", - mapOf("id" to id, - "name" to name, - "begin_at" to begin_at, - "end_at" to end_at, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "fields" to fields, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/themes/search", + mapOf( + "id" to id, + "name" to name, + "begin_at" to begin_at, + "end_at" to end_at, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "fields" to fields, + "filter_or" to filter_or, + ), + ) } - /** * ### Get the default theme * @@ -8796,13 +8912,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /themes/default -> Theme */ @JvmOverloads fun default_theme( - ts: Date? = null - ) : SDKResponse { - return this.get("/themes/default", - mapOf("ts" to ts)) + ts: Date? = null, + ): SDKResponse { + return this.get( + "/themes/default", + mapOf("ts" to ts), + ) } - /** * ### Set the global default theme by theme name * @@ -8821,13 +8938,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * PUT /themes/default -> Theme */ fun set_default_theme( - name: String - ) : SDKResponse { - return this.put("/themes/default", - mapOf("name" to name)) + name: String, + ): SDKResponse { + return this.put( + "/themes/default", + mapOf("name" to name), + ) } - /** * ### Get active themes * @@ -8848,15 +8966,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun active_themes( name: String? = null, ts: Date? = null, - fields: String? = null - ) : SDKResponse { - return this.get>("/themes/active", - mapOf("name" to name, - "ts" to ts, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get>( + "/themes/active", + mapOf( + "name" to name, + "ts" to ts, + "fields" to fields, + ), + ) } - /** * ### Get the named theme if it's active. Otherwise, return the default theme * @@ -8872,14 +8993,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun theme_or_default( name: String, - ts: Date? = null - ) : SDKResponse { - return this.get("/themes/theme_or_default", - mapOf("name" to name, - "ts" to ts)) + ts: Date? = null, + ): SDKResponse { + return this.get( + "/themes/theme_or_default", + mapOf( + "name" to name, + "ts" to ts, + ), + ) } - /** * ### Validate a theme with the specified information * @@ -8894,12 +9018,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /themes/validate -> ValidationError */ fun validate_theme( - body: WriteTheme - ) : SDKResponse { + body: WriteTheme, + ): SDKResponse { return this.post("/themes/validate", mapOf(), body) } - /** * ### Get a theme by ID * @@ -8914,14 +9037,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun theme( theme_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.get("/themes/${path_theme_id}", - mapOf("fields" to fields)) + return this.get( + "/themes/$path_theme_id", + mapOf("fields" to fields), + ) } - /** * ### Update the theme by id. * @@ -8934,13 +9058,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun update_theme( theme_id: String, - body: WriteTheme - ) : SDKResponse { + body: WriteTheme, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.patch("/themes/${path_theme_id}", mapOf(), body) + return this.patch("/themes/$path_theme_id", mapOf(), body) } - /** * ### Delete a specific theme by id * @@ -8957,17 +9080,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /themes/{theme_id} -> String */ fun delete_theme( - theme_id: String - ) : SDKResponse { + theme_id: String, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.delete("/themes/${path_theme_id}", mapOf()) + return this.delete("/themes/$path_theme_id", mapOf()) } //endregion Theme: Manage Themes //region User: Manage Users - /** * ### Search email credentials * @@ -9013,20 +9135,23 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, email: String? = null, emails: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get>("/credentials_email/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "email" to email, - "emails" to emails, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get>( + "/credentials_email/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "email" to email, + "emails" to emails, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the current user; i.e. the user account currently calling the API. * @@ -9035,13 +9160,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /user -> User */ @JvmOverloads fun me( - fields: String? = null - ) : SDKResponse { - return this.get("/user", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/user", + mapOf("fields" to fields), + ) } - /** * ### Get information about all users. * @@ -9062,19 +9188,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - ids: DelimArray? = null - ) : SDKResponse { - return this.get>("/users", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "ids" to ids)) + ids: DelimArray? = null, + ): SDKResponse { + return this.get>( + "/users", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "ids" to ids, + ), + ) } - /** * ### Create a user with the specified information. * @@ -9085,13 +9214,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user( body: WriteUser? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/users", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/users", + mapOf("fields" to fields), + body, + ) } - /** * ### Search users * @@ -9159,28 +9290,31 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { is_disabled: Boolean? = null, filter_or: Boolean? = null, content_metadata_id: String? = null, - group_id: String? = null - ) : SDKResponse { - return this.get>("/users/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "first_name" to first_name, - "last_name" to last_name, - "verified_looker_employee" to verified_looker_employee, - "embed_user" to embed_user, - "email" to email, - "is_disabled" to is_disabled, - "filter_or" to filter_or, - "content_metadata_id" to content_metadata_id, - "group_id" to group_id)) + group_id: String? = null, + ): SDKResponse { + return this.get>( + "/users/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "first_name" to first_name, + "last_name" to last_name, + "verified_looker_employee" to verified_looker_employee, + "embed_user" to embed_user, + "email" to email, + "is_disabled" to is_disabled, + "filter_or" to filter_or, + "content_metadata_id" to content_metadata_id, + "group_id" to group_id, + ), + ) } - /** * ### Search for user accounts by name * @@ -9218,25 +9352,28 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { last_name: String? = null, verified_looker_employee: Boolean? = null, email: String? = null, - is_disabled: Boolean? = null - ) : SDKResponse { + is_disabled: Boolean? = null, + ): SDKResponse { val path_pattern = encodeParam(pattern) - return this.get>("/users/search/names/${path_pattern}", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "first_name" to first_name, - "last_name" to last_name, - "verified_looker_employee" to verified_looker_employee, - "email" to email, - "is_disabled" to is_disabled)) + return this.get>( + "/users/search/names/$path_pattern", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "first_name" to first_name, + "last_name" to last_name, + "verified_looker_employee" to verified_looker_employee, + "email" to email, + "is_disabled" to is_disabled, + ), + ) } - /** * ### Get information about the user with a specific id. * @@ -9251,14 +9388,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the user with a specific id. * @@ -9271,14 +9409,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user( user_id: String, body: WriteUser, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.patch("/users/${path_user_id}", - mapOf("fields" to fields), body) + return this.patch( + "/users/$path_user_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete the user with a specific id. * @@ -9289,13 +9429,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id} -> String */ fun delete_user( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}", mapOf()) + return this.delete("/users/$path_user_id", mapOf()) } - /** * ### Get information about the user with a credential of given type with specific id. * @@ -9335,15 +9474,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_for_credential( credential_type: String, credential_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_credential_type = encodeParam(credential_type) val path_credential_id = encodeParam(credential_id) - return this.get("/users/credential/${path_credential_type}/${path_credential_id}", - mapOf("fields" to fields)) + return this.get( + "/users/credential/$path_credential_type/$path_credential_id", + mapOf("fields" to fields), + ) } - /** * ### Email/password login information for the specified user. * @@ -9354,14 +9494,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_email( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + ) } - /** * ### Email/password login information for the specified user. * @@ -9374,14 +9515,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_email( user_id: String, body: WriteCredentialsEmail, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + body, + ) } - /** * ### Email/password login information for the specified user. * @@ -9394,14 +9537,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user_credentials_email( user_id: String, body: WriteCredentialsEmail, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.patch("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields), body) + return this.patch( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + body, + ) } - /** * ### Email/password login information for the specified user. * @@ -9410,13 +9555,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_email -> String */ fun delete_user_credentials_email( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_email", mapOf()) + return this.delete("/users/$path_user_id/credentials_email", mapOf()) } - /** * ### Two-factor login information for the specified user. * @@ -9427,14 +9571,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_totp( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_totp", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_totp", + mapOf("fields" to fields), + ) } - /** * ### Two-factor login information for the specified user. * @@ -9447,14 +9592,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_totp( user_id: String, body: CredentialsTotp? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_totp", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/credentials_totp", + mapOf("fields" to fields), + body, + ) } - /** * ### Two-factor login information for the specified user. * @@ -9463,13 +9610,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_totp -> String */ fun delete_user_credentials_totp( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_totp", mapOf()) + return this.delete("/users/$path_user_id/credentials_totp", mapOf()) } - /** * ### LDAP login information for the specified user. * @@ -9480,14 +9626,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_ldap( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_ldap", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_ldap", + mapOf("fields" to fields), + ) } - /** * ### LDAP login information for the specified user. * @@ -9496,13 +9643,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_ldap -> String */ fun delete_user_credentials_ldap( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_ldap", mapOf()) + return this.delete("/users/$path_user_id/credentials_ldap", mapOf()) } - /** * ### Google authentication login information for the specified user. * @@ -9513,14 +9659,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_google( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_google", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_google", + mapOf("fields" to fields), + ) } - /** * ### Google authentication login information for the specified user. * @@ -9529,13 +9676,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_google -> String */ fun delete_user_credentials_google( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_google", mapOf()) + return this.delete("/users/$path_user_id/credentials_google", mapOf()) } - /** * ### Saml authentication login information for the specified user. * @@ -9546,14 +9692,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_saml( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_saml", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_saml", + mapOf("fields" to fields), + ) } - /** * ### Saml authentication login information for the specified user. * @@ -9562,13 +9709,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_saml -> String */ fun delete_user_credentials_saml( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_saml", mapOf()) + return this.delete("/users/$path_user_id/credentials_saml", mapOf()) } - /** * ### OpenID Connect (OIDC) authentication login information for the specified user. * @@ -9579,14 +9725,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_oidc( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_oidc", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_oidc", + mapOf("fields" to fields), + ) } - /** * ### OpenID Connect (OIDC) authentication login information for the specified user. * @@ -9595,13 +9742,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_oidc -> String */ fun delete_user_credentials_oidc( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_oidc", mapOf()) + return this.delete("/users/$path_user_id/credentials_oidc", mapOf()) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9614,15 +9760,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_credentials_api3( user_id: String, credentials_api3_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_api3_id = encodeParam(credentials_api3_id) - return this.get("/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_api3/$path_credentials_api3_id", + mapOf("fields" to fields), + ) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9633,14 +9780,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_credentials_api3( user_id: String, - credentials_api3_id: String - ) : SDKResponse { + credentials_api3_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_api3_id = encodeParam(credentials_api3_id) - return this.delete("/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", mapOf()) + return this.delete("/users/$path_user_id/credentials_api3/$path_credentials_api3_id", mapOf()) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9651,14 +9797,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_credentials_api3s( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get>("/users/${path_user_id}/credentials_api3", - mapOf("fields" to fields)) + return this.get>( + "/users/$path_user_id/credentials_api3", + mapOf("fields" to fields), + ) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9669,14 +9816,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user_credentials_api3( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_api3", - mapOf("fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_api3", + mapOf("fields" to fields), + ) } - /** * ### Embed login information for the specified user. * @@ -9689,15 +9837,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_credentials_embed( user_id: String, credentials_embed_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_embed_id = encodeParam(credentials_embed_id) - return this.get("/users/${path_user_id}/credentials_embed/${path_credentials_embed_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_embed/$path_credentials_embed_id", + mapOf("fields" to fields), + ) } - /** * ### Embed login information for the specified user. * @@ -9708,14 +9857,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_credentials_embed( user_id: String, - credentials_embed_id: String - ) : SDKResponse { + credentials_embed_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_embed_id = encodeParam(credentials_embed_id) - return this.delete("/users/${path_user_id}/credentials_embed/${path_credentials_embed_id}", mapOf()) + return this.delete("/users/$path_user_id/credentials_embed/$path_credentials_embed_id", mapOf()) } - /** * ### Embed login information for the specified user. * @@ -9726,14 +9874,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_credentials_embeds( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get>("/users/${path_user_id}/credentials_embed", - mapOf("fields" to fields)) + return this.get>( + "/users/$path_user_id/credentials_embed", + mapOf("fields" to fields), + ) } - /** * ### Looker Openid login information for the specified user. Used by Looker Analysts. * @@ -9744,14 +9893,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_looker_openid( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_looker_openid", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_looker_openid", + mapOf("fields" to fields), + ) } - /** * ### Looker Openid login information for the specified user. Used by Looker Analysts. * @@ -9760,13 +9910,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_looker_openid -> String */ fun delete_user_credentials_looker_openid( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_looker_openid", mapOf()) + return this.delete("/users/$path_user_id/credentials_looker_openid", mapOf()) } - /** * ### Web login session for the specified user. * @@ -9779,15 +9928,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_session( user_id: String, session_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_session_id = encodeParam(session_id) - return this.get("/users/${path_user_id}/sessions/${path_session_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/sessions/$path_session_id", + mapOf("fields" to fields), + ) } - /** * ### Web login session for the specified user. * @@ -9798,14 +9948,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_session( user_id: String, - session_id: String - ) : SDKResponse { + session_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_session_id = encodeParam(session_id) - return this.delete("/users/${path_user_id}/sessions/${path_session_id}", mapOf()) + return this.delete("/users/$path_user_id/sessions/$path_session_id", mapOf()) } - /** * ### Web login session for the specified user. * @@ -9816,14 +9965,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_sessions( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get>("/users/${path_user_id}/sessions", - mapOf("fields" to fields)) + return this.get>( + "/users/$path_user_id/sessions", + mapOf("fields" to fields), + ) } - /** * ### Create a password reset token. * This will create a cryptographically secure random password reset token for the user. @@ -9844,15 +9994,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_email_password_reset( user_id: String, expires: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email/password_reset", - mapOf("expires" to expires, - "fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_email/password_reset", + mapOf( + "expires" to expires, + "fields" to fields, + ), + ) } - /** * ### Get information about roles of a given user * @@ -9865,15 +10018,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_roles( user_id: String, fields: String? = null, - direct_association_only: Boolean? = null - ) : SDKResponse { + direct_association_only: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get>("/users/${path_user_id}/roles", - mapOf("fields" to fields, - "direct_association_only" to direct_association_only)) + return this.get>( + "/users/$path_user_id/roles", + mapOf( + "fields" to fields, + "direct_association_only" to direct_association_only, + ), + ) } - /** * ### Set roles of the user with a specific id. * @@ -9886,14 +10042,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun set_user_roles( user_id: String, body: Array, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.put>("/users/${path_user_id}/roles", - mapOf("fields" to fields), body) + return this.put>( + "/users/$path_user_id/roles", + mapOf("fields" to fields), + body, + ) } - /** * ### Get user attribute values for a given user. * @@ -9925,17 +10083,20 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fields: String? = null, user_attribute_ids: DelimArray? = null, all_values: Boolean? = null, - include_unset: Boolean? = null - ) : SDKResponse { + include_unset: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get>("/users/${path_user_id}/attribute_values", - mapOf("fields" to fields, - "user_attribute_ids" to user_attribute_ids, - "all_values" to all_values, - "include_unset" to include_unset)) + return this.get>( + "/users/$path_user_id/attribute_values", + mapOf( + "fields" to fields, + "user_attribute_ids" to user_attribute_ids, + "all_values" to all_values, + "include_unset" to include_unset, + ), + ) } - /** * ### Store a custom value for a user attribute in a user's account settings. * @@ -9950,14 +10111,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { fun set_user_attribute_user_value( user_id: String, user_attribute_id: String, - body: WriteUserAttributeWithValue - ) : SDKResponse { + body: WriteUserAttributeWithValue, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/users/${path_user_id}/attribute_values/${path_user_attribute_id}", mapOf(), body) + return this.patch("/users/$path_user_id/attribute_values/$path_user_attribute_id", mapOf(), body) } - /** * ### Delete a user attribute value from a user's account settings. * @@ -9973,14 +10133,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_attribute_user_value( user_id: String, - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/users/${path_user_id}/attribute_values/${path_user_attribute_id}", mapOf()) + return this.delete("/users/$path_user_id/attribute_values/$path_user_attribute_id", mapOf()) } - /** * ### Send a password reset token. * This will send a password reset email to the user. If a password reset token does not already exist @@ -9997,14 +10156,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun send_user_credentials_email_password_reset( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email/send_password_reset", - mapOf("fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_email/send_password_reset", + mapOf("fields" to fields), + ) } - /** * ### Change a disabled user's email addresses * @@ -10022,14 +10182,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun wipeout_user_emails( user_id: String, body: UserEmailOnly, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/update_emails", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/update_emails", + mapOf("fields" to fields), + body, + ) } - /** * Create an embed user from an external user ID * @@ -10038,8 +10200,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /users/embed_user -> UserPublic */ fun create_embed_user( - body: CreateEmbedUserRequest - ) : SDKResponse { + body: CreateEmbedUserRequest, + ): SDKResponse { return this.post("/users/embed_user", mapOf(), body) } @@ -10047,7 +10209,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region UserAttribute: Manage User Attributes - /** * ### Get information about all user attributes. * @@ -10058,14 +10219,17 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_attributes( fields: String? = null, - sorts: String? = null - ) : SDKResponse { - return this.get>("/user_attributes", - mapOf("fields" to fields, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get>( + "/user_attributes", + mapOf( + "fields" to fields, + "sorts" to sorts, + ), + ) } - /** * ### Create a new user attribute * @@ -10085,13 +10249,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user_attribute( body: WriteUserAttribute, - fields: String? = null - ) : SDKResponse { - return this.post("/user_attributes", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/user_attributes", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a user attribute. * @@ -10102,14 +10268,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_attribute( user_attribute_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.get("/user_attributes/${path_user_attribute_id}", - mapOf("fields" to fields)) + return this.get( + "/user_attributes/$path_user_attribute_id", + mapOf("fields" to fields), + ) } - /** * ### Update a user attribute definition. * @@ -10122,14 +10289,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user_attribute( user_attribute_id: String, body: WriteUserAttribute, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/user_attributes/${path_user_attribute_id}", - mapOf("fields" to fields), body) + return this.patch( + "/user_attributes/$path_user_attribute_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a user attribute (admin only). * @@ -10138,13 +10307,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * DELETE /user_attributes/{user_attribute_id} -> String */ fun delete_user_attribute( - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/user_attributes/${path_user_attribute_id}", mapOf()) + return this.delete("/user_attributes/$path_user_attribute_id", mapOf()) } - /** * ### Returns all values of a user attribute defined by user groups, in precedence order. * @@ -10161,14 +10329,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_attribute_group_values( user_attribute_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.get>("/user_attributes/${path_user_attribute_id}/group_values", - mapOf("fields" to fields)) + return this.get>( + "/user_attributes/$path_user_attribute_id/group_values", + mapOf("fields" to fields), + ) } - /** * ### Define values for a user attribute across a set of groups, in priority order. * @@ -10198,17 +10367,16 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun set_user_attribute_group_values( user_attribute_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.post>("/user_attributes/${path_user_attribute_id}/group_values", mapOf(), body) + return this.post>("/user_attributes/$path_user_attribute_id/group_values", mapOf(), body) } //endregion UserAttribute: Manage User Attributes //region Workspace: Manage Workspaces - /** * ### Get All Workspaces * @@ -10216,13 +10384,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /workspaces -> Array */ - fun all_workspaces( - - ) : SDKResponse { + fun all_workspaces(): SDKResponse { return this.get>("/workspaces", mapOf()) } - /** * ### Get A Workspace * @@ -10259,12 +10424,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /workspaces/{workspace_id} -> Workspace */ fun workspace( - workspace_id: String - ) : SDKResponse { + workspace_id: String, + ): SDKResponse { val path_workspace_id = encodeParam(workspace_id) - return this.get("/workspaces/${path_workspace_id}", mapOf()) + return this.get("/workspaces/$path_workspace_id", mapOf()) } //endregion Workspace: Manage Workspaces - -} \ No newline at end of file +} diff --git a/kotlin/src/main/com/looker/sdk/4.0/models.kt b/kotlin/src/main/com/looker/sdk/4.0/models.kt index 9874163d9..9e4a11935 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/models.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/models.kt @@ -28,7 +28,6 @@ * 326 API models: 244 Spec, 0 Request, 60 Write, 22 Enum */ - // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 package com.looker.sdk @@ -43,11 +42,11 @@ import java.util.* * @property expires_in Number of seconds before the token expires (read-only) * @property refresh_token Refresh token which can be used to obtain a new access token (read-only) */ -data class AccessToken ( +data class AccessToken( var access_token: String? = null, var token_type: String? = null, var expires_in: Long? = null, - var refresh_token: String? = null + var refresh_token: String? = null, ) : Serializable /** @@ -79,7 +78,7 @@ data class AccessToken ( * @property threshold Value of the alert threshold * @property time_series_condition_state */ -data class Alert ( +data class Alert( var applied_dashboard_filters: Array? = null, var comparison_type: ComparisonType, var cron: String, @@ -106,7 +105,7 @@ data class Alert ( var owner_id: String, var owner_display_name: String? = null, var threshold: Double, - var time_series_condition_state: AlertConditionState? = null + var time_series_condition_state: AlertConditionState? = null, ) : Serializable /** @@ -115,20 +114,20 @@ data class Alert ( * @property filter_value Field Value. [Filter Expressions](https://cloud.google.com/looker/docs/reference/filter-expressions). Example `Los Angeles CA` * @property filter_description Human Readable Filter Description. This may be null or auto-generated. Example `is Los Angeles CA` (read-only) */ -data class AlertAppliedDashboardFilter ( +data class AlertAppliedDashboardFilter( var filter_title: String, var field_name: String, var filter_value: String, - var filter_description: String? = null + var filter_description: String? = null, ) : Serializable /** * @property previous_time_series_id (Write-Only) The second latest time string the alert has seen. * @property latest_time_series_id (Write-Only) Latest time string the alert has seen. */ -data class AlertConditionState ( +data class AlertConditionState( var previous_time_series_id: String? = null, - var latest_time_series_id: String? = null + var latest_time_series_id: String? = null, ) : Serializable /** @@ -137,11 +136,11 @@ data class AlertConditionState ( * @property action_hub_integration_id Action hub integration id for the 'action_hub' type. [Integration](#!/types/Integration) * @property action_hub_form_params_json Action hub form params json for the 'action_hub' type [IntegrationParam](#!/types/IntegrationParam) */ -data class AlertDestination ( +data class AlertDestination( var destination_type: DestinationType, var email_address: String? = null, var action_hub_integration_id: String? = null, - var action_hub_form_params_json: String? = null + var action_hub_form_params_json: String? = null, ) : Serializable /** @@ -149,10 +148,10 @@ data class AlertDestination ( * @property name Field's name. Has the format `.` Refer to [docs](https://cloud.google.com/looker/docs/sharing-and-publishing/creating-alerts) for more details * @property filter (Optional / Advance Use) List of fields filter. This further restricts the alert to certain dashboard element's field values. This can be used on top of dashboard filters `applied_dashboard_filters`. To keep thing simple, it's suggested to just use dashboard filters. Example: `{ 'title': '12 Number on Hand', 'name': 'inventory_items.number_on_hand', 'filter': [{ 'field_name': 'inventory_items.id', 'field_value': 12, 'filter_value': null }] }` */ -data class AlertField ( +data class AlertField( var title: String, var name: String, - var filter: Array? = null + var filter: Array? = null, ) : Serializable /** @@ -160,10 +159,10 @@ data class AlertField ( * @property field_value Field Value. Depends on the type of field - numeric or string. For [location](https://cloud.google.com/looker/docs/reference/field-reference/dimension-type-reference#location) type, it's a list of floats. Example `[1.0, 56.0]` * @property filter_value Filter Value. Usually null except for [location](https://cloud.google.com/looker/docs/reference/field-reference/dimension-type-reference#location) type. It'll be a string of lat,long ie `'1.0,56.0'` */ -data class AlertFieldFilter ( +data class AlertFieldFilter( var field_name: String, var field_value: Any, - var filter_value: String? = null + var filter_value: String? = null, ) : Serializable /** @@ -176,7 +175,7 @@ data class AlertFieldFilter ( * @property ran_at The time at which the alert query ran (read-only) * @property alert */ -data class AlertNotifications ( +data class AlertNotifications( var notification_id: String? = null, var alert_condition_id: String? = null, var user_id: String? = null, @@ -184,7 +183,7 @@ data class AlertNotifications ( var field_value: Double? = null, var threshold_value: Double? = null, var ran_at: String? = null, - var alert: MobilePayload? = null + var alert: MobilePayload? = null, ) : Serializable /** @@ -194,12 +193,12 @@ data class AlertNotifications ( * @property is_public Set alert public or private * @property threshold New threshold value */ -data class AlertPatch ( +data class AlertPatch( var owner_id: String? = null, var is_disabled: Boolean? = null, var disabled_reason: String? = null, var is_public: Boolean? = null, - var threshold: Double? = null + var threshold: Double? = null, ) : Serializable /** @@ -207,7 +206,7 @@ data class AlertPatch ( */ enum class Align : Serializable { left, - right + right, } /** @@ -215,10 +214,10 @@ enum class Align : Serializable { * @property workspace_id The id of active workspace for this session * @property sudo_user_id The id of the actual user in the case when this session represents one user sudo'ing as another (read-only) */ -data class ApiSession ( - var can: Map? = null, +data class ApiSession( + var can: Map? = null, var workspace_id: String? = null, - var sudo_user_id: String? = null + var sudo_user_id: String? = null, ) : Serializable /** @@ -228,12 +227,12 @@ data class ApiSession ( * @property api_server_url API server base url (read-only) * @property web_server_url Web server base url (read-only) */ -data class ApiVersion ( +data class ApiVersion( var looker_release_version: String? = null, var current_version: ApiVersionElement? = null, var supported_versions: Array? = null, var api_server_url: String? = null, - var web_server_url: String? = null + var web_server_url: String? = null, ) : Serializable /** @@ -242,11 +241,11 @@ data class ApiVersion ( * @property status Status of this version (read-only) * @property swagger_url Url for swagger.json for this version (read-only) */ -data class ApiVersionElement ( +data class ApiVersionElement( var version: String? = null, var full_version: String? = null, var status: String? = null, - var swagger_url: String? = null + var swagger_url: String? = null, ) : Serializable /** @@ -261,7 +260,7 @@ data class ApiVersionElement ( * @property created_by_userid User id of the artifact creator. (read-only) * @property updated_by_userid User id of the artifact updater. (read-only) */ -data class Artifact ( +data class Artifact( var key: String, var value: String, var content_type: String? = null, @@ -271,25 +270,25 @@ data class Artifact ( var updated_at: Date, var value_size: Long, var created_by_userid: String, - var updated_by_userid: String + var updated_by_userid: String, ) : Serializable /** * @property namespace Artifact storage namespace. (read-only) * @property count The number of artifacts stored in the namespace. (read-only) */ -data class ArtifactNamespace ( +data class ArtifactNamespace( var namespace: String, - var count: Long + var count: Long, ) : Serializable /** * @property max_size The configured maximum size in bytes of the entire artifact store. (read-only) * @property usage The currently used storage size in bytes of the entire artifact store. (read-only) */ -data class ArtifactUsage ( +data class ArtifactUsage( var max_size: Long, - var usage: Long + var usage: Long, ) : Serializable /** @@ -301,14 +300,14 @@ data class ArtifactUsage ( * @property custom_s3_secret (Write-Only) AWS S3 secret used for custom-s3 backups * @property url Link to get this item (read-only) */ -data class BackupConfiguration ( - var can: Map? = null, +data class BackupConfiguration( + var can: Map? = null, var type: String? = null, var custom_s3_bucket: String? = null, var custom_s3_bucket_region: String? = null, var custom_s3_key: String? = null, var custom_s3_secret: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -325,8 +324,8 @@ data class BackupConfiguration ( * @property user_id User id of board creator (read-only) * @property primary_homepage Whether the board is the primary homepage or not (read-only) */ -data class Board ( - var can: Map? = null, +data class Board( + var can: Map? = null, var content_metadata_id: String? = null, var created_at: Date? = null, var deleted_at: Date? = null, @@ -337,7 +336,7 @@ data class Board ( var title: String? = null, var updated_at: Date? = null, var user_id: String? = null, - var primary_homepage: Boolean? = null + var primary_homepage: Boolean? = null, ) : Serializable /** @@ -369,8 +368,8 @@ data class Board ( * @property custom_image_url Custom image_url entered by the user, if present (read-only) * @property use_custom_image Whether the custom image should be used instead of the content image, if the item is associated with content */ -data class BoardItem ( - var can: Map? = null, +data class BoardItem( + var can: Map? = null, var content_created_by: String? = null, var content_favorite_id: String? = null, var content_metadata_id: String? = null, @@ -396,7 +395,7 @@ data class BoardItem ( var view_count: Long? = null, var custom_image_data_base64: String? = null, var custom_image_url: String? = null, - var use_custom_image: Boolean? = null + var use_custom_image: Boolean? = null, ) : Serializable /** @@ -412,8 +411,8 @@ data class BoardItem ( * @property title Name of row * @property updated_at Time at which this section was last updated. (read-only) */ -data class BoardSection ( - var can: Map? = null, +data class BoardSection( + var can: Map? = null, var created_at: Date? = null, var deleted_at: Date? = null, var description: String? = null, @@ -423,7 +422,7 @@ data class BoardSection ( var item_order: Array? = null, var visible_item_order: Array? = null, var title: String? = null, - var updated_at: Date? = null + var updated_at: Date? = null, ) : Serializable /** @@ -433,7 +432,7 @@ enum class Category : Serializable { parameter, filter, measure, - dimension + dimension, } /** @@ -443,21 +442,21 @@ enum class Category : Serializable { * @property sequentialPalettes Array of discrete palette definitions * @property divergingPalettes Array of diverging palette definitions */ -data class ColorCollection ( +data class ColorCollection( var id: String? = null, var label: String? = null, var categoricalPalettes: Array? = null, var sequentialPalettes: Array? = null, - var divergingPalettes: Array? = null + var divergingPalettes: Array? = null, ) : Serializable /** * @property color CSS color string * @property offset Offset in continuous palette (0 to 100) */ -data class ColorStop ( +data class ColorStop( var color: String? = null, - var offset: Long? = null + var offset: Long? = null, ) : Serializable /** @@ -466,11 +465,11 @@ data class ColorStop ( * @property column_name Name of column (read-only) * @property data_type Column data type (read-only) */ -data class ColumnSearch ( +data class ColumnSearch( var schema_name: String? = null, var table_name: String? = null, var column_name: String? = null, - var data_type: String? = null + var data_type: String? = null, ) : Serializable /** @@ -484,7 +483,7 @@ enum class ComparisonType : Serializable { LESS_THAN_OR_EQUAL_TO, INCREASES_BY, DECREASES_BY, - CHANGES_BY + CHANGES_BY, } /** @@ -505,7 +504,7 @@ enum class ComparisonType : Serializable { * @property timezone True for timezone conversion in query support (read-only) * @property connection_pooling True for connection pooling support (read-only) */ -data class ConnectionFeatures ( +data class ConnectionFeatures( var dialect_name: String? = null, var cost_estimate: Boolean? = null, var multiple_databases: Boolean? = null, @@ -521,7 +520,7 @@ data class ConnectionFeatures ( var subtotals: Boolean? = null, var location: Boolean? = null, var timezone: Boolean? = null, - var connection_pooling: Boolean? = null + var connection_pooling: Boolean? = null, ) : Serializable /** @@ -534,7 +533,7 @@ data class ConnectionFeatures ( * @property dashboard * @property board_id Id of a board (read-only) */ -data class ContentFavorite ( +data class ContentFavorite( var id: String? = null, var user_id: String? = null, var content_metadata_id: String? = null, @@ -542,7 +541,7 @@ data class ContentFavorite ( var dashboard_id: String? = null, var look: LookBasic? = null, var dashboard: DashboardBase? = null, - var board_id: String? = null + var board_id: String? = null, ) : Serializable /** @@ -558,8 +557,8 @@ data class ContentFavorite ( * @property inheriting_id Id of Inherited Content (read-only) * @property slug Content Slug (read-only) */ -data class ContentMeta ( - var can: Map? = null, +data class ContentMeta( + var can: Map? = null, var id: String? = null, var name: String? = null, var parent_id: String? = null, @@ -569,7 +568,7 @@ data class ContentMeta ( var content_type: String? = null, var inherits: Boolean? = null, var inheriting_id: String? = null, - var slug: String? = null + var slug: String? = null, ) : Serializable /** @@ -582,13 +581,13 @@ data class ContentMeta ( * @property group_id ID of associated group (read-only) * @property user_id ID of associated user (read-only) */ -data class ContentMetaGroupUser ( - var can: Map? = null, +data class ContentMetaGroupUser( + var can: Map? = null, var id: String? = null, var content_metadata_id: String? = null, var permission_type: PermissionType? = null, var group_id: String? = null, - var user_id: String? = null + var user_id: String? = null, ) : Serializable /** @@ -602,8 +601,8 @@ data class ContentMetaGroupUser ( * @property view_count Number of times the content has been viewed (read-only) * @property preferred_viewer Preferred way of viewing the content (only applies to dashboards) (read-only) */ -data class ContentSearch ( - var can: Map? = null, +data class ContentSearch( + var can: Map? = null, var content_id: String? = null, var type: String? = null, var title: String? = null, @@ -611,7 +610,7 @@ data class ContentSearch ( var folder_id: String? = null, var folder_name: String? = null, var view_count: Long? = null, - var preferred_viewer: String? = null + var preferred_viewer: String? = null, ) : Serializable /** @@ -624,7 +623,7 @@ data class ContentSearch ( * @property total_alerts_validated The number of alerts validated (read-only) * @property total_explores_validated The number of explores used across all content validated (read-only) */ -data class ContentValidation ( +data class ContentValidation( var content_with_errors: Array? = null, var computation_time: Float? = null, var total_looks_validated: Long? = null, @@ -632,7 +631,7 @@ data class ContentValidation ( var total_dashboard_filters_validated: Long? = null, var total_scheduled_plans_validated: Long? = null, var total_alerts_validated: Long? = null, - var total_explores_validated: Long? = null + var total_explores_validated: Long? = null, ) : Serializable /** @@ -645,7 +644,7 @@ data class ContentValidation ( * @property show_custom_url Boolean to determine if the custom url should be used * @property custom_title An optional, user-defined title for the alert */ -data class ContentValidationAlert ( +data class ContentValidationAlert( var id: String? = null, var lookml_dashboard_id: String? = null, var lookml_link_id: String? = null, @@ -653,7 +652,7 @@ data class ContentValidationAlert ( var custom_url_params: String? = null, var custom_url_label: String? = null, var show_custom_url: Boolean? = null, - var custom_title: String? = null + var custom_title: String? = null, ) : Serializable /** @@ -663,12 +662,12 @@ data class ContentValidationAlert ( * @property title Dashboard Title * @property url Relative URL of the dashboard (read-only) */ -data class ContentValidationDashboard ( +data class ContentValidationDashboard( var description: String? = null, var id: String? = null, var folder: ContentValidationFolder? = null, var title: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -689,7 +688,7 @@ data class ContentValidationDashboard ( * @property rich_content_json JSON with all the properties required for rich editor and buttons elements * @property extension_id Extension ID */ -data class ContentValidationDashboardElement ( +data class ContentValidationDashboardElement( var body_text: String? = null, var dashboard_id: String? = null, var id: String? = null, @@ -705,7 +704,7 @@ data class ContentValidationDashboardElement ( var title_text: String? = null, var type: String? = null, var rich_content_json: String? = null, - var extension_id: String? = null + var extension_id: String? = null, ) : Serializable /** @@ -719,7 +718,7 @@ data class ContentValidationDashboardElement ( * @property explore Explore of filter (required if type = field) * @property dimension Dimension of filter (required if type = field) */ -data class ContentValidationDashboardFilter ( +data class ContentValidationDashboardFilter( var id: String? = null, var dashboard_id: String? = null, var name: String? = null, @@ -728,7 +727,7 @@ data class ContentValidationDashboardFilter ( var default_value: String? = null, var model: String? = null, var explore: String? = null, - var dimension: String? = null + var dimension: String? = null, ) : Serializable /** @@ -738,21 +737,21 @@ data class ContentValidationDashboardFilter ( * @property explore_name Name of the explore involved in the error (read-only) * @property removable Whether this validation error is removable (read-only) */ -data class ContentValidationError ( +data class ContentValidationError( var message: String? = null, var field_name: String? = null, var model_name: String? = null, var explore_name: String? = null, - var removable: Boolean? = null + var removable: Boolean? = null, ) : Serializable /** * @property name Unique Name * @property id Unique Id (read-only) */ -data class ContentValidationFolder ( +data class ContentValidationFolder( var name: String, - var id: String? = null + var id: String? = null, ) : Serializable /** @@ -761,11 +760,11 @@ data class ContentValidationFolder ( * @property short_url Short Url (read-only) * @property folder */ -data class ContentValidationLook ( +data class ContentValidationLook( var id: String? = null, var title: String? = null, var short_url: String? = null, - var folder: ContentValidationFolder? = null + var folder: ContentValidationFolder? = null, ) : Serializable /** @@ -773,19 +772,19 @@ data class ContentValidationLook ( * @property title Title of the LookML Dashboard (read-only) * @property space_id ID of Space (read-only) */ -data class ContentValidationLookMLDashboard ( +data class ContentValidationLookMLDashboard( var id: String? = null, var title: String? = null, - var space_id: String? = null + var space_id: String? = null, ) : Serializable /** * @property lookml_link_id Link ID of the LookML Dashboard Element (read-only) * @property title Title of the LookML Dashboard Element (read-only) */ -data class ContentValidationLookMLDashboardElement ( +data class ContentValidationLookMLDashboardElement( var lookml_link_id: String? = null, - var title: String? = null + var title: String? = null, ) : Serializable /** @@ -793,10 +792,10 @@ data class ContentValidationLookMLDashboardElement ( * @property look_id Id of a look * @property id Unique Id (read-only) */ -data class ContentValidationScheduledPlan ( +data class ContentValidationScheduledPlan( var name: String? = null, var look_id: String? = null, - var id: String? = null + var id: String? = null, ) : Serializable /** @@ -811,7 +810,7 @@ data class ContentValidationScheduledPlan ( * @property errors A list of errors found for this piece of content (read-only) * @property id An id unique to this piece of content for this validation run (read-only) */ -data class ContentValidatorError ( +data class ContentValidatorError( var look: ContentValidationLook? = null, var dashboard: ContentValidationDashboard? = null, var dashboard_element: ContentValidationDashboardElement? = null, @@ -821,7 +820,7 @@ data class ContentValidatorError ( var lookml_dashboard: ContentValidationLookMLDashboard? = null, var lookml_dashboard_element: ContentValidationLookMLDashboardElement? = null, var errors: Array? = null, - var id: String? = null + var id: String? = null, ) : Serializable /** @@ -838,8 +837,8 @@ data class ContentValidatorError ( * @property last_viewed_at Date the piece of content was last viewed (read-only) * @property start_of_week_date Week start date for the view and favorite count during that given week (read-only) */ -data class ContentView ( - var can: Map? = null, +data class ContentView( + var can: Map? = null, var id: String? = null, var look_id: String? = null, var dashboard_id: String? = null, @@ -850,7 +849,7 @@ data class ContentView ( var view_count: Long? = null, var favorite_count: Long? = null, var last_viewed_at: String? = null, - var start_of_week_date: String? = null + var start_of_week_date: String? = null, ) : Serializable /** @@ -859,11 +858,11 @@ data class ContentView ( * @property type Type of palette * @property stops Array of ColorStops in the palette */ -data class ContinuousPalette ( +data class ContinuousPalette( var id: String? = null, var label: String? = null, var type: String? = null, - var stops: Array? = null + var stops: Array? = null, ) : Serializable /** @@ -872,11 +871,11 @@ data class ContinuousPalette ( * @property cost_unit Cost measurement size (read-only) * @property message Human-friendly message (read-only) */ -data class CostEstimate ( +data class CostEstimate( var cost: Long? = null, var cache_hit: Boolean? = null, var cost_unit: String? = null, - var message: String? = null + var message: String? = null, ) : Serializable /** @@ -884,8 +883,8 @@ data class CostEstimate ( * * @property sql SQL statement to estimate (read-only) */ -data class CreateCostEstimate ( - var sql: String? = null +data class CreateCostEstimate( + var sql: String? = null, ) : Serializable /** @@ -898,15 +897,15 @@ data class CreateCostEstimate ( * @property client_secret API key client_secret (read-only) * @property url Link to get this item (read-only) */ -data class CreateCredentialsApi3 ( - var can: Map? = null, +data class CreateCredentialsApi3( + var can: Map? = null, var id: String? = null, var client_id: String? = null, var created_at: String? = null, var is_disabled: Boolean? = null, var type: String? = null, var client_secret: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -926,7 +925,7 @@ data class CreateCredentialsApi3 ( * @property required Whether the filter requires a value to run the dashboard * @property ui_config The visual configuration for this filter. Used to set up how the UI for this filter should appear. */ -data class CreateDashboardFilter ( +data class CreateDashboardFilter( var id: String? = null, var dashboard_id: String, var name: String, @@ -936,37 +935,37 @@ data class CreateDashboardFilter ( var model: String? = null, var explore: String? = null, var dimension: String? = null, - var field: Map? = null, + var field: Map? = null, var row: Long? = null, var listens_to_filters: Array? = null, var allow_multiple_values: Boolean? = null, var required: Boolean? = null, - var ui_config: Map? = null + var ui_config: Map? = null, ) : Serializable /** * @property dashboard_filters Filter values to apply to the dashboard queries, in URL query format * @property dashboard_style Dashboard layout style: single_column or tiled */ -data class CreateDashboardRenderTask ( +data class CreateDashboardRenderTask( var dashboard_filters: String? = null, - var dashboard_style: String? = null + var dashboard_style: String? = null, ) : Serializable /** * @property external_user_id */ -data class CreateEmbedUserRequest ( - var external_user_id: String +data class CreateEmbedUserRequest( + var external_user_id: String, ) : Serializable /** * @property name Unique Name * @property parent_id Id of Parent. If the parent id is null, this is a root-level entry */ -data class CreateFolder ( +data class CreateFolder( var name: String, - var parent_id: String + var parent_id: String, ) : Serializable /** @@ -977,22 +976,22 @@ data class CreateFolder ( * @property refresh_token * @property refresh_token_expires_at */ -data class CreateOAuthApplicationUserStateRequest ( +data class CreateOAuthApplicationUserStateRequest( var user_id: String, var oauth_application_id: String, var access_token: String, var access_token_expires_at: Date, var refresh_token: String? = null, - var refresh_token_expires_at: Date? = null + var refresh_token_expires_at: Date? = null, ) : Serializable /** * @property user_id User Id (read-only) * @property oauth_application_id OAuth Application ID (read-only) */ -data class CreateOAuthApplicationUserStateResponse ( +data class CreateOAuthApplicationUserStateResponse( var user_id: String, - var oauth_application_id: String + var oauth_application_id: String, ) : Serializable /** @@ -1004,14 +1003,14 @@ data class CreateOAuthApplicationUserStateResponse ( * @property look_id Id of look associated with query. * @property dashboard_id Id of dashboard associated with query. */ -data class CreateQueryTask ( - var can: Map? = null, +data class CreateQueryTask( + var can: Map? = null, var query_id: String, var result_format: ResultFormat, var source: String? = null, var deferred: Boolean? = null, var look_id: String? = null, - var dashboard_id: String? = null + var dashboard_id: String? = null, ) : Serializable /** @@ -1023,14 +1022,14 @@ data class CreateQueryTask ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsApi3 ( - var can: Map? = null, +data class CredentialsApi3( + var can: Map? = null, var id: String? = null, var client_id: String? = null, var created_at: String? = null, var is_disabled: Boolean? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1047,8 +1046,8 @@ data class CredentialsApi3 ( * @property url Link to get this item (read-only) * @property user_url Link to get this user (read-only) */ -data class CredentialsEmail ( - var can: Map? = null, +data class CredentialsEmail( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var forced_password_reset_at_next_login: Boolean? = null, @@ -1059,7 +1058,7 @@ data class CredentialsEmail ( var account_setup_url: String? = null, var type: String? = null, var url: String? = null, - var user_url: String? = null + var user_url: String? = null, ) : Serializable /** @@ -1076,8 +1075,8 @@ data class CredentialsEmail ( * @property url Link to get this item (read-only) * @property user_url Link to get this user (read-only) */ -data class CredentialsEmailSearch ( - var can: Map? = null, +data class CredentialsEmailSearch( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var forced_password_reset_at_next_login: Boolean? = null, @@ -1088,7 +1087,7 @@ data class CredentialsEmailSearch ( var account_setup_url: String? = null, var type: String? = null, var url: String? = null, - var user_url: String? = null + var user_url: String? = null, ) : Serializable /** @@ -1102,8 +1101,8 @@ data class CredentialsEmailSearch ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsEmbed ( - var can: Map? = null, +data class CredentialsEmbed( + var can: Map? = null, var created_at: String? = null, var external_group_id: String? = null, var external_user_id: String? = null, @@ -1111,7 +1110,7 @@ data class CredentialsEmbed ( var is_disabled: Boolean? = null, var logged_in_at: String? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1125,8 +1124,8 @@ data class CredentialsEmbed ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsGoogle ( - var can: Map? = null, +data class CredentialsGoogle( + var can: Map? = null, var created_at: String? = null, var domain: String? = null, var email: String? = null, @@ -1134,7 +1133,7 @@ data class CredentialsGoogle ( var is_disabled: Boolean? = null, var logged_in_at: String? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1148,8 +1147,8 @@ data class CredentialsGoogle ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsLDAP ( - var can: Map? = null, +data class CredentialsLDAP( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var is_disabled: Boolean? = null, @@ -1157,7 +1156,7 @@ data class CredentialsLDAP ( var ldap_id: String? = null, var logged_in_at: String? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1171,8 +1170,8 @@ data class CredentialsLDAP ( * @property url Link to get this item (read-only) * @property user_url Link to get this user (read-only) */ -data class CredentialsLookerOpenid ( - var can: Map? = null, +data class CredentialsLookerOpenid( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var is_disabled: Boolean? = null, @@ -1180,7 +1179,7 @@ data class CredentialsLookerOpenid ( var logged_in_ip: String? = null, var type: String? = null, var url: String? = null, - var user_url: String? = null + var user_url: String? = null, ) : Serializable /** @@ -1193,15 +1192,15 @@ data class CredentialsLookerOpenid ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsOIDC ( - var can: Map? = null, +data class CredentialsOIDC( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var is_disabled: Boolean? = null, var logged_in_at: String? = null, var oidc_user_id: String? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1214,15 +1213,15 @@ data class CredentialsOIDC ( * @property type Short name for the type of this kind of credential (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsSaml ( - var can: Map? = null, +data class CredentialsSaml( + var can: Map? = null, var created_at: String? = null, var email: String? = null, var is_disabled: Boolean? = null, var logged_in_at: String? = null, var saml_user_id: String? = null, var type: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1235,13 +1234,13 @@ data class CredentialsSaml ( * @property verified User has verified (read-only) * @property url Link to get this item (read-only) */ -data class CredentialsTotp ( - var can: Map? = null, +data class CredentialsTotp( + var can: Map? = null, var created_at: String? = null, var is_disabled: Boolean? = null, var type: String? = null, var verified: Boolean? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -1250,11 +1249,11 @@ data class CredentialsTotp ( * @property subject The text to appear in the email subject line. Only available with a whitelabel license and whitelabel_configuration.advanced_custom_welcome_email enabled. * @property header The text to appear in the header line of the email body. Only available with a whitelabel license and whitelabel_configuration.advanced_custom_welcome_email enabled. */ -data class CustomWelcomeEmail ( +data class CustomWelcomeEmail( var enabled: Boolean? = null, var content: String? = null, var subject: String? = null, - var header: String? = null + var header: String? = null, ) : Serializable /** @@ -1308,8 +1307,8 @@ data class CustomWelcomeEmail ( * @property appearance * @property url Relative URL of the dashboard (read-only) */ -data class Dashboard ( - var can: Map? = null, +data class Dashboard( + var can: Map? = null, var content_favorite_id: String? = null, var content_metadata_id: String? = null, var description: String? = null, @@ -1357,16 +1356,16 @@ data class Dashboard ( var title_color: String? = null, var view_count: Long? = null, var appearance: DashboardAppearance? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** * @property dashboard_id Dashboard Id (read-only) * @property aggregate_table_lookml Aggregate Table LookML (read-only) */ -data class DashboardAggregateTableLookml ( +data class DashboardAggregateTableLookml( var dashboard_id: String? = null, - var aggregate_table_lookml: String? = null + var aggregate_table_lookml: String? = null, ) : Serializable /** @@ -1378,14 +1377,14 @@ data class DashboardAggregateTableLookml ( * @property tile_shadow Tile shadow on/off * @property key_color Key color */ -data class DashboardAppearance ( +data class DashboardAppearance( var page_side_margins: Long? = null, var page_background_color: String? = null, var tile_title_alignment: String? = null, var tile_space_between: Long? = null, var tile_background_color: String? = null, var tile_shadow: Boolean? = null, - var key_color: String? = null + var key_color: String? = null, ) : Serializable /** @@ -1406,8 +1405,8 @@ data class DashboardAppearance ( * @property slug Content Metadata Slug (read-only) * @property preferred_viewer The preferred route for viewing this dashboard (ie: dashboards or dashboards-next) (read-only) */ -data class DashboardBase ( - var can: Map? = null, +data class DashboardBase( + var can: Map? = null, var content_favorite_id: String? = null, var content_metadata_id: String? = null, var description: String? = null, @@ -1422,7 +1421,7 @@ data class DashboardBase ( var title: String? = null, var user_id: String? = null, var slug: String? = null, - var preferred_viewer: String? = null + var preferred_viewer: String? = null, ) : Serializable /** @@ -1457,8 +1456,8 @@ data class DashboardBase ( * @property subtitle_text_as_html Text tile subtitle text as Html (read-only) * @property extension_id Extension ID */ -data class DashboardElement ( - var can: Map? = null, +data class DashboardElement( + var can: Map? = null, var body_text: String? = null, var body_text_as_html: String? = null, var dashboard_id: String? = null, @@ -1487,7 +1486,7 @@ data class DashboardElement ( var rich_content_json: String? = null, var title_text_as_html: String? = null, var subtitle_text_as_html: String? = null, - var extension_id: String? = null + var extension_id: String? = null, ) : Serializable /** @@ -1508,8 +1507,8 @@ data class DashboardElement ( * @property required Whether the filter requires a value to run the dashboard * @property ui_config The visual configuration for this filter. Used to set up how the UI for this filter should appear. */ -data class DashboardFilter ( - var can: Map? = null, +data class DashboardFilter( + var can: Map? = null, var id: String? = null, var dashboard_id: String? = null, var name: String? = null, @@ -1519,12 +1518,12 @@ data class DashboardFilter ( var model: String? = null, var explore: String? = null, var dimension: String? = null, - var field: Map? = null, + var field: Map? = null, var row: Long? = null, var listens_to_filters: Array? = null, var allow_multiple_values: Boolean? = null, var required: Boolean? = null, - var ui_config: Map? = null + var ui_config: Map? = null, ) : Serializable /** @@ -1539,8 +1538,8 @@ data class DashboardFilter ( * @property dashboard_title Title extracted from the dashboard this layout represents. (read-only) * @property dashboard_layout_components Components (read-only) */ -data class DashboardLayout ( - var can: Map? = null, +data class DashboardLayout( + var can: Map? = null, var id: String? = null, var dashboard_id: String? = null, var type: String? = null, @@ -1549,7 +1548,7 @@ data class DashboardLayout ( var width: Long? = null, var deleted: Boolean? = null, var dashboard_title: String? = null, - var dashboard_layout_components: Array? = null + var dashboard_layout_components: Array? = null, ) : Serializable /** @@ -1566,8 +1565,8 @@ data class DashboardLayout ( * @property element_title_hidden Whether or not the dashboard element title is displayed. (read-only) * @property vis_type Visualization type, extracted from a query's vis_config (read-only) */ -data class DashboardLayoutComponent ( - var can: Map? = null, +data class DashboardLayoutComponent( + var can: Map? = null, var id: String? = null, var dashboard_layout_id: String? = null, var dashboard_element_id: String? = null, @@ -1578,7 +1577,7 @@ data class DashboardLayoutComponent ( var deleted: Boolean? = null, var element_title: String? = null, var element_title_hidden: Boolean? = null, - var vis_type: String? = null + var vis_type: String? = null, ) : Serializable /** @@ -1586,19 +1585,19 @@ data class DashboardLayoutComponent ( * @property folder_id (Write-Only) Id of the folder * @property lookml lookml of UDD */ -data class DashboardLookml ( +data class DashboardLookml( var dashboard_id: String? = null, var folder_id: String? = null, - var lookml: String? = null + var lookml: String? = null, ) : Serializable /** * @property state * @property fields Array of form fields. (read-only) */ -data class DataActionForm ( +data class DataActionForm( var state: DataActionUserState? = null, - var fields: Array? = null + var fields: Array? = null, ) : Serializable /** @@ -1612,7 +1611,7 @@ data class DataActionForm ( * @property required Whether or not the field is required. This is a user-interface hint. A user interface displaying this form should not submit it without a value for this field. The action server must also perform this validation. (read-only) * @property options If the form type is 'select', a list of options to be selected from. (read-only) */ -data class DataActionFormField ( +data class DataActionFormField( var name: String? = null, var label: String? = null, var description: String? = null, @@ -1621,25 +1620,25 @@ data class DataActionFormField ( var oauth_url: String? = null, var interactive: Boolean? = null, var required: Boolean? = null, - var options: Array? = null + var options: Array? = null, ) : Serializable /** * @property name Name (read-only) * @property label Human-readable label (read-only) */ -data class DataActionFormSelectOption ( +data class DataActionFormSelectOption( var name: String? = null, - var label: String? = null + var label: String? = null, ) : Serializable /** * @property action The JSON describing the data action. This JSON should be considered opaque and should be passed through unmodified from the query result it came from. * @property form_values User input for any form values the data action might use. */ -data class DataActionRequest ( - var action: Map? = null, - var form_values: Map? = null +data class DataActionRequest( + var action: Map? = null, + var form_values: Map? = null, ) : Serializable /** @@ -1649,21 +1648,21 @@ data class DataActionRequest ( * @property validation_errors * @property message Optional message returned by the data action server describing the state of the action that took place. This can be used to implement custom failure messages. If a failure is related to a particular form field, the server should send back a validation error instead. The Looker web UI does not currently display any message if the action indicates 'success', but may do so in the future. (read-only) */ -data class DataActionResponse ( +data class DataActionResponse( var webhook_id: String? = null, var success: Boolean? = null, var refresh_query: Boolean? = null, var validation_errors: ValidationError? = null, - var message: String? = null + var message: String? = null, ) : Serializable /** * @property data User state data (read-only) * @property refresh_time Time in seconds until the state needs to be refreshed (read-only) */ -data class DataActionUserState ( +data class DataActionUserState( var data: String? = null, - var refresh_time: Long? = null + var refresh_time: Long? = null, ) : Serializable /** @@ -1678,8 +1677,8 @@ data class DataActionUserState ( * @property trigger_value The value of the trigger when last checked. (read-only) * @property triggered_at UNIX timestamp at which this entry became triggered. Cannot be in the future. */ -data class Datagroup ( - var can: Map? = null, +data class Datagroup( + var can: Map? = null, var created_at: Long? = null, var id: String? = null, var model_name: String? = null, @@ -1688,7 +1687,7 @@ data class Datagroup ( var trigger_check_at: Long? = null, var trigger_error: String? = null, var trigger_value: String? = null, - var triggered_at: Long? = null + var triggered_at: Long? = null, ) : Serializable /** @@ -1740,8 +1739,8 @@ data class Datagroup ( * @property cost_estimate_enabled When true, query cost estimate will be displayed in explore. * @property pdt_api_control_enabled PDT builds on this connection can be kicked off and cancelled via API. */ -data class DBConnection ( - var can: Map? = null, +data class DBConnection( + var can: Map? = null, var name: String? = null, var dialect: Dialect? = null, var snippets: Array? = null, @@ -1787,7 +1786,7 @@ data class DBConnection ( var oauth_application_id: String? = null, var always_retry_failed_builds: Boolean? = null, var cost_estimate_enabled: Boolean? = null, - var pdt_api_control_enabled: Boolean? = null + var pdt_api_control_enabled: Boolean? = null, ) : Serializable /** @@ -1797,12 +1796,12 @@ data class DBConnection ( * @property snippets SQL Runner snippets for this connection (read-only) * @property pdts_enabled True if PDTs are enabled on this connection (read-only) */ -data class DBConnectionBase ( - var can: Map? = null, +data class DBConnectionBase( + var can: Map? = null, var name: String? = null, var dialect: Dialect? = null, var snippets: Array? = null, - var pdts_enabled: Boolean? = null + var pdts_enabled: Boolean? = null, ) : Serializable /** @@ -1819,7 +1818,7 @@ data class DBConnectionBase ( * @property jdbc_additional_params Additional params to add to JDBC connection string * @property after_connect_statements SQL statements (semicolon separated) to issue after connecting to the database. Requires `custom_after_connect_statements` license feature */ -data class DBConnectionOverride ( +data class DBConnectionOverride( var context: String? = null, var host: String? = null, var port: String? = null, @@ -1831,7 +1830,7 @@ data class DBConnectionOverride ( var database: String? = null, var schema: String? = null, var jdbc_additional_params: String? = null, - var after_connect_statements: String? = null + var after_connect_statements: String? = null, ) : Serializable /** @@ -1841,12 +1840,12 @@ data class DBConnectionOverride ( * @property name Name of test (read-only) * @property status Result code of test (read-only) */ -data class DBConnectionTestResult ( - var can: Map? = null, +data class DBConnectionTestResult( + var can: Map? = null, var connection_string: String? = null, var message: String? = null, var name: String? = null, - var status: String? = null + var status: String? = null, ) : Serializable /** @@ -1855,18 +1854,18 @@ data class DBConnectionTestResult ( * @property installation_id Installation ID (read-only) * @property success Whether or not the test was successful (read-only) */ -data class DelegateOauthTest ( +data class DelegateOauthTest( var name: String? = null, var installation_target_id: String? = null, var installation_id: String? = null, - var success: Boolean? = null + var success: Boolean? = null, ) : Serializable /** * @property graph_text The graph structure in the dot language that can be rendered into an image. (read-only) */ -data class DependencyGraph ( - var graph_text: String? = null +data class DependencyGraph( + var graph_text: String? = null, ) : Serializable /** @@ -1876,7 +1875,7 @@ enum class DependencyStatus : Serializable { lock_optional, lock_required, lock_error, - install_none + install_none, } /** @@ -1884,7 +1883,7 @@ enum class DependencyStatus : Serializable { */ enum class DestinationType : Serializable { EMAIL, - ACTION_HUB + ACTION_HUB, } /** @@ -1892,7 +1891,7 @@ enum class DestinationType : Serializable { */ enum class DeviceType : Serializable { android, - ios + ios, } /** @@ -1911,7 +1910,7 @@ enum class DeviceType : Serializable { * @property supports_persistent_derived_tables Whether the dialect supports allowing Looker to build persistent derived tables (read-only) * @property has_ssl_support Does the database have client SSL support settable through the JDBC string explicitly? (read-only) */ -data class Dialect ( +data class Dialect( var name: String? = null, var label: String? = null, var supports_cost_estimate: Boolean? = null, @@ -1925,7 +1924,7 @@ data class Dialect ( var supports_inducer: Boolean? = null, var supports_multiple_databases: Boolean? = null, var supports_persistent_derived_tables: Boolean? = null, - var has_ssl_support: Boolean? = null + var has_ssl_support: Boolean? = null, ) : Serializable /** @@ -1938,15 +1937,15 @@ data class Dialect ( * @property name The name of the dialect (read-only) * @property supported_options */ -data class DialectInfo ( - var can: Map? = null, +data class DialectInfo( + var can: Map? = null, var default_max_connections: String? = null, var default_port: String? = null, var installed: Boolean? = null, var label: String? = null, var label_for_database_equivalent: String? = null, var name: String? = null, - var supported_options: DialectInfoOptions? = null + var supported_options: DialectInfoOptions? = null, ) : Serializable /** @@ -1972,7 +1971,7 @@ data class DialectInfo ( * @property username Username can be specified (read-only) * @property username_required Username is required (read-only) */ -data class DialectInfoOptions ( +data class DialectInfoOptions( var additional_params: Boolean? = null, var after_connect_statements: Boolean? = null, var analytical_view_dataset: Boolean? = null, @@ -1993,21 +1992,21 @@ data class DialectInfoOptions ( var tmp_table: Boolean? = null, var tns: Boolean? = null, var username: Boolean? = null, - var username_required: Boolean? = null + var username_required: Boolean? = null, ) : Serializable /** * @property is_enabled Whether or not digest emails are enabled */ -data class DigestEmails ( - var is_enabled: Boolean? = null +data class DigestEmails( + var is_enabled: Boolean? = null, ) : Serializable /** * @property configuration_delivered True if content was successfully generated and delivered */ -data class DigestEmailSend ( - var configuration_delivered: Boolean? = null +data class DigestEmailSend( + var configuration_delivered: Boolean? = null, ) : Serializable /** @@ -2016,18 +2015,18 @@ data class DigestEmailSend ( * @property type Type of palette * @property colors Array of colors in the palette */ -data class DiscretePalette ( +data class DiscretePalette( var id: String? = null, var label: String? = null, var type: String? = null, - var colors: Array? = null + var colors: Array? = null, ) : Serializable /** * @property egress_ip_addresses Egress IP addresses (read-only) */ -data class EgressIpAddresses ( - var egress_ip_addresses: Array? = null +data class EgressIpAddresses( + var egress_ip_addresses: Array? = null, ) : Serializable /** @@ -2044,7 +2043,7 @@ data class EgressIpAddresses ( * @property user_attributes A dictionary of name-value pairs associating a Looker user attribute name with a value. * @property session_reference_token Token referencing the embed session and is used to generate new authentication, navigation and api tokens. */ -data class EmbedCookielessSessionAcquire ( +data class EmbedCookielessSessionAcquire( var session_length: Long? = null, var force_logout_login: Boolean? = null, var external_user_id: String? = null, @@ -2055,8 +2054,8 @@ data class EmbedCookielessSessionAcquire ( var models: Array? = null, var group_ids: Array? = null, var external_group_id: String? = null, - var user_attributes: Map? = null, - var session_reference_token: String? = null + var user_attributes: Map? = null, + var session_reference_token: String? = null, ) : Serializable /** @@ -2069,7 +2068,7 @@ data class EmbedCookielessSessionAcquire ( * @property session_reference_token Token referencing the actual embed session. It is used to generate new api, navigation and authentication tokens. api and navigation tokens are short lived and must be refreshed regularly. A new authentication token must be acquired for each IFRAME that is created. The session_reference_token should be kept secure, ideally in the embed hosts application server. * @property session_reference_token_ttl Session reference token time to live in seconds. Note that this is the same as actual session. */ -data class EmbedCookielessSessionAcquireResponse ( +data class EmbedCookielessSessionAcquireResponse( var authentication_token: String? = null, var authentication_token_ttl: Long? = null, var navigation_token: String? = null, @@ -2077,7 +2076,7 @@ data class EmbedCookielessSessionAcquireResponse ( var api_token: String? = null, var api_token_ttl: Long? = null, var session_reference_token: String? = null, - var session_reference_token_ttl: Long? = null + var session_reference_token_ttl: Long? = null, ) : Serializable /** @@ -2085,10 +2084,10 @@ data class EmbedCookielessSessionAcquireResponse ( * @property navigation_token Token used to load and navigate between Looker pages. * @property api_token Token to used to call Looker APIs. */ -data class EmbedCookielessSessionGenerateTokens ( +data class EmbedCookielessSessionGenerateTokens( var session_reference_token: String, var navigation_token: String? = null, - var api_token: String? = null + var api_token: String? = null, ) : Serializable /** @@ -2099,13 +2098,13 @@ data class EmbedCookielessSessionGenerateTokens ( * @property session_reference_token Token referencing the embed session and is used to generate new authentication, navigation and api tokens. * @property session_reference_token_ttl Session reference token time to live in seconds. Note that this is the same as actual session. */ -data class EmbedCookielessSessionGenerateTokensResponse ( +data class EmbedCookielessSessionGenerateTokensResponse( var navigation_token: String? = null, var navigation_token_ttl: Long? = null, var api_token: String? = null, var api_token_ttl: Long? = null, var session_reference_token: String, - var session_reference_token_ttl: Long? = null + var session_reference_token_ttl: Long? = null, ) : Serializable /** @@ -2113,10 +2112,10 @@ data class EmbedCookielessSessionGenerateTokensResponse ( * @property session_length Number of seconds the SSO embed session will be valid after the embed session is started. Defaults to 300 seconds. Maximum session length accepted is 2592000 seconds (30 days). * @property force_logout_login When true, the embed session will purge any residual Looker login state (such as in browser cookies) before creating a new login state with the given embed user info. Defaults to true. */ -data class EmbedParams ( +data class EmbedParams( var target_url: String, var session_length: Long? = null, - var force_logout_login: Boolean? = null + var force_logout_login: Boolean? = null, ) : Serializable /** @@ -2128,14 +2127,14 @@ data class EmbedParams ( * @property user_id Id of user who created this secret (read-only) * @property secret_type Field to distinguish between SSO secrets and JWT secrets Valid values are: "SSO", "JWT". */ -data class EmbedSecret ( +data class EmbedSecret( var algorithm: String? = null, var created_at: String? = null, var enabled: Boolean? = null, var id: String? = null, var secret: String? = null, var user_id: String? = null, - var secret_type: SecretType? = null + var secret_type: SecretType? = null, ) : Serializable /** @@ -2153,7 +2152,7 @@ data class EmbedSecret ( * @property user_attributes A dictionary of name-value pairs associating a Looker user attribute name with a value. * @property secret_id Id of the embed secret to use to sign this SSO url. If specified, the value must be an id of a valid (active) secret defined in the Looker instance. If not specified, the URL will be signed with the newest active embed secret defined in the Looker instance. */ -data class EmbedSsoParams ( +data class EmbedSsoParams( var target_url: String, var session_length: Long? = null, var force_logout_login: Boolean? = null, @@ -2165,24 +2164,24 @@ data class EmbedSsoParams ( var models: Array? = null, var group_ids: Array? = null, var external_group_id: String? = null, - var user_attributes: Map? = null, - var secret_id: String? = null + var user_attributes: Map? = null, + var secret_id: String? = null, ) : Serializable /** * @property url The embed URL. Any modification to this string will make the URL unusable. (read-only) */ -data class EmbedUrlResponse ( - var url: String? = null +data class EmbedUrlResponse( + var url: String? = null, ) : Serializable /** * @property message Error details (read-only) * @property documentation_url Documentation link (read-only) */ -data class Error ( +data class Error( var message: String, - var documentation_url: String + var documentation_url: String, ) : Serializable /** @@ -2194,14 +2193,14 @@ data class Error ( * @property dialect_name The database dialect for this application. * @property created_at Creation time for this application (read-only) */ -data class ExternalOauthApplication ( - var can: Map? = null, +data class ExternalOauthApplication( + var can: Map? = null, var id: String? = null, var name: String? = null, var client_id: String? = null, var client_secret: String? = null, var dialect_name: String? = null, - var created_at: Date? = null + var created_at: Date? = null, ) : Serializable /** @@ -2209,7 +2208,7 @@ data class ExternalOauthApplication ( */ enum class FillStyle : Serializable { enumeration, - range + range, } /** @@ -2232,7 +2231,7 @@ enum class FillStyle : Serializable { * @property dashboards Dashboards (read-only) * @property looks Looks (read-only) */ -data class Folder ( +data class Folder( var name: String, var parent_id: String? = null, var id: String? = null, @@ -2248,9 +2247,9 @@ data class Folder ( var is_personal_descendant: Boolean? = null, var is_shared_root: Boolean? = null, var is_users_root: Boolean? = null, - var can: Map? = null, + var can: Map? = null, var dashboards: Array? = null, - var looks: Array? = null + var looks: Array? = null, ) : Serializable /** @@ -2271,7 +2270,7 @@ data class Folder ( * @property is_users_root Folder is the root user folder (read-only) * @property can Operations the current user is able to perform on this object (read-only) */ -data class FolderBase ( +data class FolderBase( var name: String, var parent_id: String? = null, var id: String? = null, @@ -2287,7 +2286,7 @@ data class FolderBase ( var is_personal_descendant: Boolean? = null, var is_shared_root: Boolean? = null, var is_users_root: Boolean? = null, - var can: Map? = null + var can: Map? = null, ) : Serializable /** @@ -2295,7 +2294,7 @@ data class FolderBase ( */ enum class Format : Serializable { topojson, - vector_tile_region + vector_tile_region, } /** @@ -2317,8 +2316,8 @@ enum class Format : Serializable { * @property ref The resolved ref of this branch. Updating `ref` results in `git reset --hard ``. * @property remote_ref The resolved ref of this branch remote. (read-only) */ -data class GitBranch ( - var can: Map? = null, +data class GitBranch( + var can: Map? = null, var name: String? = null, var remote: String? = null, var remote_name: String? = null, @@ -2334,7 +2333,7 @@ data class GitBranch ( var behind_count: Long? = null, var commit_at: Long? = null, var ref: String? = null, - var remote_ref: String? = null + var remote_ref: String? = null, ) : Serializable /** @@ -2342,10 +2341,10 @@ data class GitBranch ( * @property description Human readable string describing the test (read-only) * @property id A short string, uniquely naming this test (read-only) */ -data class GitConnectionTest ( - var can: Map? = null, +data class GitConnectionTest( + var can: Map? = null, var description: String? = null, - var id: String? = null + var id: String? = null, ) : Serializable /** @@ -2354,11 +2353,11 @@ data class GitConnectionTest ( * @property message Additional data from the test (read-only) * @property status Either 'pass' or 'fail' (read-only) */ -data class GitConnectionTestResult ( - var can: Map? = null, +data class GitConnectionTestResult( + var can: Map? = null, var id: String? = null, var message: String? = null, - var status: String? = null + var status: String? = null, ) : Serializable /** @@ -2367,11 +2366,11 @@ data class GitConnectionTestResult ( * @property revertable When true, the file can be reverted to an earlier state (read-only) * @property text Git description of the action (read-only) */ -data class GitStatus ( +data class GitStatus( var action: String? = null, var conflict: Boolean? = null, var revertable: Boolean? = null, - var text: String? = null + var text: String? = null, ) : Serializable /** @@ -2385,8 +2384,8 @@ data class GitStatus ( * @property name Name of group * @property user_count Number of users included in this group (read-only) */ -data class Group ( - var can: Map? = null, +data class Group( + var can: Map? = null, var can_add_to_content_metadata: Boolean? = null, var contains_current_user: Boolean? = null, var external_group_id: String? = null, @@ -2394,7 +2393,7 @@ data class Group ( var id: String? = null, var include_by_default: Boolean? = null, var name: String? = null, - var user_count: Long? = null + var user_count: Long? = null, ) : Serializable /** @@ -2410,8 +2409,8 @@ data class Group ( * @property parent_group_ids IDs of parents of this group (read-only) * @property role_ids Role IDs assigned to group (read-only) */ -data class GroupHierarchy ( - var can: Map? = null, +data class GroupHierarchy( + var can: Map? = null, var can_add_to_content_metadata: Boolean? = null, var contains_current_user: Boolean? = null, var external_group_id: String? = null, @@ -2421,7 +2420,7 @@ data class GroupHierarchy ( var name: String? = null, var user_count: Long? = null, var parent_group_ids: Array? = null, - var role_ids: Array? = null + var role_ids: Array? = null, ) : Serializable /** @@ -2429,8 +2428,8 @@ data class GroupHierarchy ( * * @property group_id Id of group (read-only) */ -data class GroupIdForGroupInclusion ( - var group_id: String? = null +data class GroupIdForGroupInclusion( + var group_id: String? = null, ) : Serializable /** @@ -2438,8 +2437,8 @@ data class GroupIdForGroupInclusion ( * * @property user_id Id of user (read-only) */ -data class GroupIdForGroupUserInclusion ( - var user_id: String? = null +data class GroupIdForGroupUserInclusion( + var user_id: String? = null, ) : Serializable /** @@ -2454,8 +2453,8 @@ data class GroupIdForGroupUserInclusion ( * @property user_count Number of users included in this group (read-only) * @property roles Roles assigned to group (read-only) */ -data class GroupSearch ( - var can: Map? = null, +data class GroupSearch( + var can: Map? = null, var can_add_to_content_metadata: Boolean? = null, var contains_current_user: Boolean? = null, var external_group_id: String? = null, @@ -2464,7 +2463,7 @@ data class GroupSearch ( var include_by_default: Boolean? = null, var name: String? = null, var user_count: Long? = null, - var roles: Array? = null + var roles: Array? = null, ) : Serializable /** @@ -2497,8 +2496,8 @@ data class GroupSearch ( * @property use_custom_url Whether the custom url should be used instead of the content url, if the item is associated with content * @property view_count Number of times content has been viewed, if present (read-only) */ -data class HomepageItem ( - var can: Map? = null, +data class HomepageItem( + var can: Map? = null, var content_created_by: String? = null, var content_favorite_id: String? = null, var content_metadata_id: String? = null, @@ -2525,7 +2524,7 @@ data class HomepageItem ( var use_custom_image: Boolean? = null, var use_custom_title: Boolean? = null, var use_custom_url: Boolean? = null, - var view_count: Long? = null + var view_count: Long? = null, ) : Serializable /** @@ -2543,8 +2542,8 @@ data class HomepageItem ( * @property description Description of the content found in this section. * @property visible_item_order ids of the homepage items the user can see in the order they should be displayed (read-only) */ -data class HomepageSection ( - var can: Map? = null, +data class HomepageSection( + var can: Map? = null, var created_at: Date? = null, var deleted_at: Date? = null, var detail_url: String? = null, @@ -2556,7 +2555,7 @@ data class HomepageSection ( var title: String? = null, var updated_at: Date? = null, var description: String? = null, - var visible_item_order: Array? = null + var visible_item_order: Array? = null, ) : Serializable /** @@ -2565,11 +2564,11 @@ data class HomepageSection ( * @property ref Ref for a remote dependency (read-only) * @property is_remote Flag signifying if a dependency is remote or local (read-only) */ -data class ImportedProject ( +data class ImportedProject( var name: String? = null, var url: String? = null, var ref: String? = null, - var is_remote: Boolean? = null + var is_remote: Boolean? = null, ) : Serializable /** @@ -2592,8 +2591,8 @@ data class ImportedProject ( * @property delegate_oauth Whether the integration uses delegate oauth, which allows federation between an integration installation scope specific entity (like org, group, and team, etc.) and Looker. (read-only) * @property installed_delegate_oauth_targets Whether the integration is available to users. */ -data class Integration ( - var can: Map? = null, +data class Integration( + var can: Map? = null, var id: String? = null, var integration_hub_id: String? = null, var label: String? = null, @@ -2610,7 +2609,7 @@ data class Integration ( var required_fields: Array? = null, var privacy_link: String? = null, var delegate_oauth: Boolean? = null, - var installed_delegate_oauth_targets: Array? = null + var installed_delegate_oauth_targets: Array? = null, ) : Serializable /** @@ -2626,8 +2625,8 @@ data class Integration ( * @property legal_agreement_required Whether the legal terms for the integration hub are required before use. (read-only) * @property legal_agreement_text The legal agreement text for this integration hub. (read-only) */ -data class IntegrationHub ( - var can: Map? = null, +data class IntegrationHub( + var can: Map? = null, var id: String? = null, var url: String? = null, var label: String? = null, @@ -2637,7 +2636,7 @@ data class IntegrationHub ( var has_authorization_token: Boolean? = null, var legal_agreement_signed: Boolean? = null, var legal_agreement_required: Boolean? = null, - var legal_agreement_text: String? = null + var legal_agreement_text: String? = null, ) : Serializable /** @@ -2652,7 +2651,7 @@ data class IntegrationHub ( * @property per_user When true, this parameter must be assigned to a user attribute in the admin panel (instead of a constant value), and that value may be updated by the user as part of the integration flow. (read-only) * @property delegate_oauth_url When present, the param represents the oauth url the user will be taken to. (read-only) */ -data class IntegrationParam ( +data class IntegrationParam( var name: String? = null, var label: String? = null, var description: String? = null, @@ -2662,7 +2661,7 @@ data class IntegrationParam ( var user_attribute_name: String? = null, var sensitive: Boolean? = null, var per_user: Boolean? = null, - var delegate_oauth_url: String? = null + var delegate_oauth_url: String? = null, ) : Serializable /** @@ -2670,10 +2669,10 @@ data class IntegrationParam ( * @property any_tag If present, supercedes 'tag' and matches a field that has any of the provided tags. (read-only) * @property all_tags If present, supercedes 'tag' and matches a field that has all of the provided tags. (read-only) */ -data class IntegrationRequiredField ( +data class IntegrationRequiredField( var tag: String? = null, var any_tag: Array? = null, - var all_tags: Array? = null + var all_tags: Array? = null, ) : Serializable /** @@ -2681,19 +2680,19 @@ data class IntegrationRequiredField ( * @property message A message representing the results of the test. (read-only) * @property delegate_oauth_result An array of connection test result for delegate oauth actions. (read-only) */ -data class IntegrationTestResult ( +data class IntegrationTestResult( var success: Boolean? = null, var message: String? = null, - var delegate_oauth_result: Array? = null + var delegate_oauth_result: Array? = null, ) : Serializable /** * @property can Operations the current user is able to perform on this object (read-only) * @property enabled If true and internal help resources content is not blank then the link for internal help resources will be shown in the help menu and the content displayed within Looker */ -data class InternalHelpResources ( - var can: Map? = null, - var enabled: Boolean? = null +data class InternalHelpResources( + var can: Map? = null, + var enabled: Boolean? = null, ) : Serializable /** @@ -2701,17 +2700,17 @@ data class InternalHelpResources ( * @property organization_name Text to display in the help menu item which will display the internal help resources * @property markdown_content Content to be displayed in the internal help resources page/modal */ -data class InternalHelpResourcesContent ( - var can: Map? = null, +data class InternalHelpResourcesContent( + var can: Map? = null, var organization_name: String? = null, - var markdown_content: String? = null + var markdown_content: String? = null, ) : Serializable /** * The type of the investigative content Valid values are: "dashboard". (Enum defined in Alert) */ enum class InvestigativeContentType : Serializable { - dashboard + dashboard, } /** @@ -2759,8 +2758,8 @@ enum class InvestigativeContentType : Serializable { * @property allow_direct_roles Allows roles to be directly assigned to LDAP auth'd users. * @property url Link to get this item (read-only) */ -data class LDAPConfig ( - var can: Map? = null, +data class LDAPConfig( + var can: Map? = null, var alternate_email_login_allowed: Boolean? = null, var auth_password: String? = null, var auth_requires_role: Boolean? = null, @@ -2802,16 +2801,16 @@ data class LDAPConfig ( var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, var allow_direct_roles: Boolean? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** * @property severity Severity of the issue. Error or Warning (read-only) * @property message Message describing the issue (read-only) */ -data class LDAPConfigTestIssue ( +data class LDAPConfigTestIssue( var severity: String? = null, - var message: String? = null + var message: String? = null, ) : Serializable /** @@ -2823,14 +2822,14 @@ data class LDAPConfigTestIssue ( * @property user * @property url Link to ldap config (read-only) */ -data class LDAPConfigTestResult ( +data class LDAPConfigTestResult( var details: String? = null, var issues: Array? = null, var message: String? = null, var status: String? = null, var trace: String? = null, var user: LDAPUser? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2841,13 +2840,13 @@ data class LDAPConfigTestResult ( * @property roles Looker Roles (read-only) * @property url Link to ldap config (read-only) */ -data class LDAPGroupRead ( +data class LDAPGroupRead( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, var roles: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2858,13 +2857,13 @@ data class LDAPGroupRead ( * @property role_ids Looker Role Ids * @property url Link to ldap config (read-only) */ -data class LDAPGroupWrite ( +data class LDAPGroupWrite( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, var role_ids: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2879,9 +2878,9 @@ data class LDAPGroupWrite ( * @property roles Array of user's roles (role names only) (read-only) * @property url Link to ldap config (read-only) */ -data class LDAPUser ( +data class LDAPUser( var all_emails: Array? = null, - var attributes: Map? = null, + var attributes: Map? = null, var email: String? = null, var first_name: String? = null, var groups: Array? = null, @@ -2889,7 +2888,7 @@ data class LDAPUser ( var ldap_dn: String? = null, var ldap_id: String? = null, var roles: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2898,11 +2897,11 @@ data class LDAPUser ( * @property user_attributes Looker User Attributes (read-only) * @property url Link to ldap config (read-only) */ -data class LDAPUserAttributeRead ( +data class LDAPUserAttributeRead( var name: String? = null, var required: Boolean? = null, var user_attributes: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2911,11 +2910,11 @@ data class LDAPUserAttributeRead ( * @property user_attribute_ids Looker User Attribute Ids * @property url Link to ldap config (read-only) */ -data class LDAPUserAttributeWrite ( +data class LDAPUserAttributeWrite( var name: String? = null, var required: Boolean? = null, var user_attribute_ids: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -2933,8 +2932,8 @@ data class LDAPUserAttributeWrite ( * @property approximate_end_of_life_date Approximate date that this feature will be removed. (read-only) * @property has_disabled_on_upgrade Whether this legacy feature may have been automatically disabled when upgrading to the current version. (read-only) */ -data class LegacyFeature ( - var can: Map? = null, +data class LegacyFeature( + var can: Map? = null, var id: String? = null, var name: String? = null, var description: String? = null, @@ -2946,7 +2945,7 @@ data class LegacyFeature ( var documentation_url: String? = null, var approximate_disable_date: Date? = null, var approximate_end_of_life_date: Date? = null, - var has_disabled_on_upgrade: Boolean? = null + var has_disabled_on_upgrade: Boolean? = null, ) : Serializable /** @@ -2954,19 +2953,19 @@ data class LegacyFeature ( * @property native_name Name of Locale in its own language (read-only) * @property english_name Name of Locale in English (read-only) */ -data class Locale ( +data class Locale( var code: String? = null, var native_name: String? = null, - var english_name: String? = null + var english_name: String? = null, ) : Serializable /** * @property default_locale Default locale for localization (read-only) * @property localization_level Localization level - strict or permissive (read-only) */ -data class LocalizationSettings ( +data class LocalizationSettings( var default_locale: String? = null, - var localization_level: String? = null + var localization_level: String? = null, ) : Serializable /** @@ -3001,8 +3000,8 @@ data class LocalizationSettings ( * @property updated_at Time that the Look was updated. (read-only) * @property view_count Number of times viewed in the Looker web UI (read-only) */ -data class Look ( - var can: Map? = null, +data class Look( + var can: Map? = null, var content_metadata_id: String? = null, var id: String? = null, var title: String? = null, @@ -3031,7 +3030,7 @@ data class Look ( var folder: FolderBase? = null, var folder_id: String? = null, var updated_at: Date? = null, - var view_count: Long? = null + var view_count: Long? = null, ) : Serializable /** @@ -3041,12 +3040,12 @@ data class Look ( * @property title Look Title (read-only) * @property user_id User Id */ -data class LookBasic ( - var can: Map? = null, +data class LookBasic( + var can: Map? = null, var content_metadata_id: String? = null, var id: String? = null, var title: String? = null, - var user_id: String? = null + var user_id: String? = null, ) : Serializable /** @@ -3059,15 +3058,15 @@ data class LookBasic ( * @property project_name Name of project containing the model * @property unlimited_db_connections Is this model allowed to use all current and future connections */ -data class LookmlModel ( - var can: Map? = null, +data class LookmlModel( + var can: Map? = null, var allowed_db_connection_names: Array? = null, var explores: Array? = null, var has_content: Boolean? = null, var label: String? = null, var name: String? = null, var project_name: String? = null, - var unlimited_db_connections: Boolean? = null + var unlimited_db_connections: Boolean? = null, ) : Serializable /** @@ -3111,7 +3110,7 @@ data class LookmlModel ( * @property supported_measure_types An array of items describing which custom measure types are supported for creating a custom measure 'based_on' each possible dimension type. (read-only) * @property always_join An array of joins that will always be included in the SQL for this explore, even if the user has not selected a field from the joined view. (read-only) */ -data class LookmlModelExplore ( +data class LookmlModelExplore( var id: String? = null, var name: String? = null, var description: String? = null, @@ -3150,43 +3149,43 @@ data class LookmlModelExplore ( var joins: Array? = null, var group_label: String? = null, var supported_measure_types: Array? = null, - var always_join: Array? = null + var always_join: Array? = null, ) : Serializable /** * @property field Field to be filtered (read-only) * @property user_attribute User attribute name (read-only) */ -data class LookmlModelExploreAccessFilter ( +data class LookmlModelExploreAccessFilter( var field: String? = null, - var user_attribute: String? = null + var user_attribute: String? = null, ) : Serializable /** * @property name Name (read-only) * @property value Value (read-only) */ -data class LookmlModelExploreAlias ( +data class LookmlModelExploreAlias( var name: String? = null, - var value: String? = null + var value: String? = null, ) : Serializable /** * @property name Name (read-only) * @property value Value (read-only) */ -data class LookmlModelExploreAlwaysFilter ( +data class LookmlModelExploreAlwaysFilter( var name: String? = null, - var value: String? = null + var value: String? = null, ) : Serializable /** * @property name Name (read-only) * @property value Value (read-only) */ -data class LookmlModelExploreConditionallyFilter ( +data class LookmlModelExploreConditionallyFilter( var name: String? = null, - var value: String? = null + var value: String? = null, ) : Serializable /** @@ -3195,11 +3194,11 @@ data class LookmlModelExploreConditionallyFilter ( * @property error_pos Error source location (read-only) * @property field_error Is this a field error (read-only) */ -data class LookmlModelExploreError ( +data class LookmlModelExploreError( var message: String? = null, var details: Any? = null, var error_pos: String? = null, - var field_error: Boolean? = null + var field_error: Boolean? = null, ) : Serializable /** @@ -3258,7 +3257,7 @@ data class LookmlModelExploreError ( * @property times_used The number of times this field has been used in queries (read-only) * @property original_view The name of the view this field is defined in. This will be different than "view" when the view has been joined via a different name using the "from" parameter. (read-only) */ -data class LookmlModelExploreField ( +data class LookmlModelExploreField( var align: Align? = null, var can_filter: Boolean? = null, var category: Category? = null, @@ -3312,16 +3311,16 @@ data class LookmlModelExploreField ( var dynamic: Boolean? = null, var week_start_day: WeekStartDay? = null, var times_used: Long? = null, - var original_view: String? = null + var original_view: String? = null, ) : Serializable /** * @property label Label (read-only) * @property value Value (read-only) */ -data class LookmlModelExploreFieldEnumeration ( +data class LookmlModelExploreFieldEnumeration( var label: String? = null, - var value: Any? = null + var value: Any? = null, ) : Serializable /** @@ -3336,7 +3335,7 @@ data class LookmlModelExploreFieldEnumeration ( * @property max_zoom_level The minimum zoom level that the map layer may be displayed at, for visualizations that support zooming. (read-only) * @property min_zoom_level The maximum zoom level that the map layer may be displayed at, for visualizations that support zooming. (read-only) */ -data class LookmlModelExploreFieldMapLayer ( +data class LookmlModelExploreFieldMapLayer( var url: String? = null, var name: String? = null, var feature_key: String? = null, @@ -3346,16 +3345,16 @@ data class LookmlModelExploreFieldMapLayer ( var format: Format? = null, var extents_json_url: String? = null, var max_zoom_level: Long? = null, - var min_zoom_level: Long? = null + var min_zoom_level: Long? = null, ) : Serializable /** * @property field Filter field name (read-only) * @property condition Filter condition value (read-only) */ -data class LookmlModelExploreFieldMeasureFilters ( +data class LookmlModelExploreFieldMeasureFilters( var field: String? = null, - var condition: String? = null + var condition: String? = null, ) : Serializable /** @@ -3364,29 +3363,29 @@ data class LookmlModelExploreFieldMeasureFilters ( * @property filters Array of filters (read-only) * @property parameters Array of parameters (read-only) */ -data class LookmlModelExploreFieldset ( +data class LookmlModelExploreFieldset( var dimensions: Array? = null, var measures: Array? = null, var filters: Array? = null, - var parameters: Array? = null + var parameters: Array? = null, ) : Serializable /** * @property value SQL Case label value (read-only) * @property condition SQL Case condition expression (read-only) */ -data class LookmlModelExploreFieldSqlCase ( +data class LookmlModelExploreFieldSqlCase( var value: String? = null, - var condition: String? = null + var condition: String? = null, ) : Serializable /** * @property name The type of time interval this field represents a grouping of. Valid values are: "day", "hour", "minute", "second", "millisecond", "microsecond", "week", "month", "quarter", "year". (read-only) * @property count The number of intervals this field represents a grouping of. (read-only) */ -data class LookmlModelExploreFieldTimeInterval ( +data class LookmlModelExploreFieldTimeInterval( var name: Name? = null, - var count: Long? = null + var count: Long? = null, ) : Serializable /** @@ -3404,7 +3403,7 @@ data class LookmlModelExploreFieldTimeInterval ( * @property type The join type: left_outer, full_outer, inner, or cross (read-only) * @property view_label Label to display in UI selectors (read-only) */ -data class LookmlModelExploreJoins ( +data class LookmlModelExploreJoins( var name: String? = null, var dependent_fields: Array? = null, var fields: Array? = null, @@ -3417,25 +3416,25 @@ data class LookmlModelExploreJoins ( var sql_on: String? = null, var sql_table_name: String? = null, var type: String? = null, - var view_label: String? = null + var view_label: String? = null, ) : Serializable /** * @property name Name (read-only) * @property value Value set (read-only) */ -data class LookmlModelExploreSet ( +data class LookmlModelExploreSet( var name: String? = null, - var value: Array? = null + var value: Array? = null, ) : Serializable /** * @property dimension_type (read-only) * @property measure_types (read-only) */ -data class LookmlModelExploreSupportedMeasureType ( +data class LookmlModelExploreSupportedMeasureType( var dimension_type: String? = null, - var measure_types: Array? = null + var measure_types: Array? = null, ) : Serializable /** @@ -3445,12 +3444,12 @@ data class LookmlModelExploreSupportedMeasureType ( * @property hidden Is this explore marked as hidden (read-only) * @property group_label Label used to group explores in the navigation menus (read-only) */ -data class LookmlModelNavExplore ( +data class LookmlModelNavExplore( var name: String? = null, var description: String? = null, var label: String? = null, var hidden: Boolean? = null, - var group_label: String? = null + var group_label: String? = null, ) : Serializable /** @@ -3462,14 +3461,14 @@ data class LookmlModelNavExplore ( * @property file Name of the LookML file containing this test. (read-only) * @property line Line number of this test in LookML. (read-only) */ -data class LookmlTest ( - var can: Map? = null, +data class LookmlTest( + var can: Map? = null, var model_name: String? = null, var name: String? = null, var explore_name: String? = null, var query_url_params: String? = null, var file: String? = null, - var line: Long? = null + var line: Long? = null, ) : Serializable /** @@ -3482,24 +3481,24 @@ data class LookmlTest ( * @property warnings A list of any warnings encountered by the test. (read-only) * @property success True if this test passsed without errors. (read-only) */ -data class LookmlTestResult ( - var can: Map? = null, +data class LookmlTestResult( + var can: Map? = null, var model_name: String? = null, var test_name: String? = null, var assertions_count: Long? = null, var assertions_failed: Long? = null, var errors: Array? = null, var warnings: Array? = null, - var success: Boolean? = null + var success: Boolean? = null, ) : Serializable /** * @property id Model Id (read-only) * @property label Model Label (read-only) */ -data class LookModel ( +data class LookModel( var id: String? = null, - var label: String? = null + var label: String? = null, ) : Serializable /** @@ -3535,8 +3534,8 @@ data class LookModel ( * @property view_count Number of times viewed in the Looker web UI (read-only) * @property dashboards Dashboards (read-only) */ -data class LookWithDashboards ( - var can: Map? = null, +data class LookWithDashboards( + var can: Map? = null, var content_metadata_id: String? = null, var id: String? = null, var title: String? = null, @@ -3566,7 +3565,7 @@ data class LookWithDashboards ( var folder_id: String? = null, var updated_at: Date? = null, var view_count: Long? = null, - var dashboards: Array? = null + var dashboards: Array? = null, ) : Serializable /** @@ -3603,8 +3602,8 @@ data class LookWithDashboards ( * @property query * @property url Url (read-only) */ -data class LookWithQuery ( - var can: Map? = null, +data class LookWithQuery( + var can: Map? = null, var content_metadata_id: String? = null, var id: String? = null, var title: String? = null, @@ -3635,7 +3634,7 @@ data class LookWithQuery ( var updated_at: Date? = null, var view_count: Long? = null, var query: Query? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -3644,29 +3643,29 @@ data class LookWithQuery ( * @property imports Imports for a project (read-only) * @property localization_settings */ -data class Manifest ( - var can: Map? = null, +data class Manifest( + var can: Map? = null, var name: String? = null, var imports: Array? = null, - var localization_settings: LocalizationSettings? = null + var localization_settings: LocalizationSettings? = null, ) : Serializable /** * @property materialization_id The ID of the enqueued materialization task (read-only) * @property resp_text Detailed response in text format (read-only) */ -data class MaterializePDT ( +data class MaterializePDT( var materialization_id: String? = null, - var resp_text: String? = null + var resp_text: String? = null, ) : Serializable /** * @property field_name Field name to map onto in the merged results * @property source_field_name Field name from the source query */ -data class MergeFields ( +data class MergeFields( var field_name: String? = null, - var source_field_name: String? = null + var source_field_name: String? = null, ) : Serializable /** @@ -3681,8 +3680,8 @@ data class MergeFields ( * @property total Total * @property vis_config Visualization Config */ -data class MergeQuery ( - var can: Map? = null, +data class MergeQuery( + var can: Map? = null, var column_limit: String? = null, var dynamic_fields: String? = null, var id: String? = null, @@ -3691,7 +3690,7 @@ data class MergeQuery ( var sorts: Array? = null, var source_queries: Array? = null, var total: Boolean? = null, - var vis_config: Map? = null + var vis_config: Map? = null, ) : Serializable /** @@ -3699,19 +3698,19 @@ data class MergeQuery ( * @property name Display name * @property query_id Id of the query to merge */ -data class MergeQuerySourceQuery ( +data class MergeQuerySourceQuery( var merge_fields: Array? = null, var name: String? = null, - var query_id: String? = null + var query_id: String? = null, ) : Serializable /** * @property feature_flag_name Specifies the name of feature flag. (read-only) * @property feature_flag_state Specifies the state of feature flag (read-only) */ -data class MobileFeatureFlags ( +data class MobileFeatureFlags( var feature_flag_name: String? = null, - var feature_flag_state: Boolean? = null + var feature_flag_state: Boolean? = null, ) : Serializable /** @@ -3722,13 +3721,13 @@ data class MobileFeatureFlags ( * @property dashboard_id ID of the dashboard on which the alert has been set (read-only) * @property query_slug Slug of the query which runs the alert queries. (read-only) */ -data class MobilePayload ( +data class MobilePayload( var title: String? = null, var alert_id: String, var investigative_content_id: String? = null, var dashboard_name: String? = null, var dashboard_id: String? = null, - var query_slug: String? = null + var query_slug: String? = null, ) : Serializable /** @@ -3736,10 +3735,10 @@ data class MobilePayload ( * @property mobile_app_integration Specifies whether mobile access for this instance is enabled. (read-only) * @property mobile_feature_flags Specifies feature flag and state relevant to mobile. (read-only) */ -data class MobileSettings ( +data class MobileSettings( var mobile_force_authentication: Boolean? = null, var mobile_app_integration: Boolean? = null, - var mobile_feature_flags: Array? = null + var mobile_feature_flags: Array? = null, ) : Serializable /** @@ -3747,10 +3746,10 @@ data class MobileSettings ( * @property device_token Specifies the device token * @property device_type Specifies type of device. Valid values are: "android", "ios". */ -data class MobileToken ( +data class MobileToken( var id: String? = null, var device_token: String, - var device_type: DeviceType + var device_type: DeviceType, ) : Serializable /** @@ -3758,10 +3757,10 @@ data class MobileToken ( * @property name (read-only) * @property value_formats Array of named value formats (read-only) */ -data class Model ( +data class Model( var connection: String? = null, var name: String? = null, - var value_formats: Array? = null + var value_formats: Array? = null, ) : Serializable /** @@ -3771,12 +3770,12 @@ data class Model ( * @property hit_limit True if this was a hit limit (read-only) * @property used_calcite_materialization True if calcite was used (read-only) */ -data class ModelFieldSuggestions ( +data class ModelFieldSuggestions( var suggestions: Array? = null, var error: String? = null, var from_cache: Boolean? = null, var hit_limit: Boolean? = null, - var used_calcite_materialization: Boolean? = null + var used_calcite_materialization: Boolean? = null, ) : Serializable /** @@ -3785,11 +3784,11 @@ data class ModelFieldSuggestions ( * @property name (read-only) * @property strict_value_format (read-only) */ -data class ModelNamedValueFormats ( +data class ModelNamedValueFormats( var format_string: String? = null, var label: String? = null, var name: String? = null, - var strict_value_format: Boolean? = null + var strict_value_format: Boolean? = null, ) : Serializable /** @@ -3801,23 +3800,23 @@ data class ModelNamedValueFormats ( * @property name Name of ModelSet * @property url Link to get this item (read-only) */ -data class ModelSet ( - var can: Map? = null, +data class ModelSet( + var can: Map? = null, var all_access: Boolean? = null, var built_in: Boolean? = null, var id: String? = null, var models: Array? = null, var name: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** * @property name Model name (read-only) * @property project_file_id Project file (read-only) */ -data class ModelsNotValidated ( +data class ModelsNotValidated( var name: String? = null, - var project_file_id: String? = null + var project_file_id: String? = null, ) : Serializable /** @@ -3833,7 +3832,7 @@ enum class Name : Serializable { week, month, quarter, - year + year, } /** @@ -3847,8 +3846,8 @@ enum class Name : Serializable { * @property tokens_invalid_before All auth codes, access tokens, and refresh tokens issued for this application prior to this date-time for ALL USERS will be invalid. (read-only) * @property activated_users All users who have been activated to use this app (read-only) */ -data class OauthClientApp ( - var can: Map? = null, +data class OauthClientApp( + var can: Map? = null, var client_guid: String? = null, var redirect_uri: String? = null, var display_name: String? = null, @@ -3856,7 +3855,7 @@ data class OauthClientApp ( var enabled: Boolean? = null, var group_id: String? = null, var tokens_invalid_before: Date? = null, - var activated_users: Array? = null + var activated_users: Array? = null, ) : Serializable /** @@ -3894,8 +3893,8 @@ data class OauthClientApp ( * @property allow_direct_roles Allows roles to be directly assigned to OIDC auth'd users. * @property url Link to get this item (read-only) */ -data class OIDCConfig ( - var can: Map? = null, +data class OIDCConfig( + var can: Map? = null, var alternate_email_login_allowed: Boolean? = null, var audience: String? = null, var auth_requires_role: Boolean? = null, @@ -3927,7 +3926,7 @@ data class OIDCConfig ( var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, var allow_direct_roles: Boolean? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -3937,12 +3936,12 @@ data class OIDCConfig ( * @property name Name of group in OIDC (read-only) * @property roles Looker Roles (read-only) */ -data class OIDCGroupRead ( +data class OIDCGroupRead( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, - var roles: Array? = null + var roles: Array? = null, ) : Serializable /** @@ -3952,12 +3951,12 @@ data class OIDCGroupRead ( * @property name Name of group in OIDC * @property role_ids Looker Role Ids */ -data class OIDCGroupWrite ( +data class OIDCGroupWrite( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, - var role_ids: Array? = null + var role_ids: Array? = null, ) : Serializable /** @@ -3965,10 +3964,10 @@ data class OIDCGroupWrite ( * @property required Required to be in OIDC assertion for login to be allowed to succeed (read-only) * @property user_attributes Looker User Attributes (read-only) */ -data class OIDCUserAttributeRead ( +data class OIDCUserAttributeRead( var name: String? = null, var required: Boolean? = null, - var user_attributes: Array? = null + var user_attributes: Array? = null, ) : Serializable /** @@ -3976,10 +3975,10 @@ data class OIDCUserAttributeRead ( * @property required Required to be in OIDC assertion for login to be allowed to succeed * @property user_attribute_ids Looker User Attribute Ids */ -data class OIDCUserAttributeWrite ( +data class OIDCUserAttributeWrite( var name: String? = null, var required: Boolean? = null, - var user_attribute_ids: Array? = null + var user_attribute_ids: Array? = null, ) : Serializable /** @@ -3989,12 +3988,12 @@ data class OIDCUserAttributeWrite ( * @property require_upperlower Require at least one uppercase and one lowercase letter * @property require_special Require at least one special character */ -data class PasswordConfig ( - var can: Map? = null, +data class PasswordConfig( + var can: Map? = null, var min_length: Long? = null, var require_numeric: Boolean? = null, var require_upperlower: Boolean? = null, - var require_special: Boolean? = null + var require_special: Boolean? = null, ) : Serializable /** @@ -4003,11 +4002,11 @@ data class PasswordConfig ( * @property parent Dependency parent symbol (read-only) * @property description Description (read-only) */ -data class Permission ( - var can: Map? = null, +data class Permission( + var can: Map? = null, var permission: String? = null, var parent: String? = null, - var description: String? = null + var description: String? = null, ) : Serializable /** @@ -4019,14 +4018,14 @@ data class Permission ( * @property permissions * @property url Link to get this item (read-only) */ -data class PermissionSet ( - var can: Map? = null, +data class PermissionSet( + var can: Map? = null, var all_access: Boolean? = null, var built_in: Boolean? = null, var id: String? = null, var name: String? = null, var permissions: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4034,7 +4033,7 @@ data class PermissionSet ( */ enum class PermissionType : Serializable { view, - edit + edit, } /** @@ -4054,7 +4053,7 @@ enum class PermissionType : Serializable { * @property alerts_links Remove Looker links from Alerts * @property folders_mentions Remove Looker mentions in home folder page when you don’t have any items saved */ -data class PrivatelabelConfiguration ( +data class PrivatelabelConfiguration( var logo_file: String? = null, var logo_url: String? = null, var favicon_file: String? = null, @@ -4069,7 +4068,7 @@ data class PrivatelabelConfiguration ( var setup_mentions: Boolean? = null, var alerts_logo: Boolean? = null, var alerts_links: Boolean? = null, - var folders_mentions: Boolean? = null + var folders_mentions: Boolean? = null, ) : Serializable /** @@ -4096,8 +4095,8 @@ data class PrivatelabelConfiguration ( * @property is_example If true the project is an example project and cannot be modified (read-only) * @property dependency_status Status of dependencies in your manifest & lockfile */ -data class Project ( - var can: Map? = null, +data class Project( + var can: Map? = null, var id: String? = null, var name: String? = null, var uses_git: Boolean? = null, @@ -4118,7 +4117,7 @@ data class Project ( var git_release_mgmt_enabled: Boolean? = null, var allow_warnings: Boolean? = null, var is_example: Boolean? = null, - var dependency_status: String? = null + var dependency_status: String? = null, ) : Serializable /** @@ -4135,7 +4134,7 @@ data class Project ( * @property params Error parameters (read-only) * @property sanitized_message A version of the error message that does not contain potentially sensitive information. Suitable for situations in which messages are stored or sent to consumers outside of Looker, such as external logs. Sanitized messages will display "(?)" where sensitive information would appear in the corresponding non-sanitized message (read-only) */ -data class ProjectError ( +data class ProjectError( var code: String? = null, var severity: String? = null, var kind: String? = null, @@ -4146,8 +4145,8 @@ data class ProjectError ( var model_id: String? = null, var explore: String? = null, var help_url: String? = null, - var params: Map? = null, - var sanitized_message: String? = null + var params: Map? = null, + var sanitized_message: String? = null, ) : Serializable /** @@ -4161,8 +4160,8 @@ data class ProjectError ( * @property editable State of editability for the file. (read-only) * @property git_status */ -data class ProjectFile ( - var can: Map? = null, +data class ProjectFile( + var can: Map? = null, var id: String? = null, var path: String? = null, var title: String? = null, @@ -4170,7 +4169,7 @@ data class ProjectFile ( var extension: String? = null, var mime_type: String? = null, var editable: Boolean? = null, - var git_status: GitStatus? = null + var git_status: GitStatus? = null, ) : Serializable /** @@ -4179,11 +4178,11 @@ data class ProjectFile ( * @property models_not_validated A list of models which were not fully validated (read-only) * @property computation_time Duration of project validation in seconds (read-only) */ -data class ProjectValidation ( +data class ProjectValidation( var errors: Array? = null, var project_digest: String? = null, var models_not_validated: Array? = null, - var computation_time: Float? = null + var computation_time: Float? = null, ) : Serializable /** @@ -4193,12 +4192,12 @@ data class ProjectValidation ( * @property computation_time Duration of project validation in seconds (read-only) * @property stale If true, the cached project validation results are no longer accurate because the project has changed since the cached results were calculated (read-only) */ -data class ProjectValidationCache ( +data class ProjectValidationCache( var errors: Array? = null, var project_digest: String? = null, var models_not_validated: Array? = null, var computation_time: Float? = null, - var stale: Boolean? = null + var stale: Boolean? = null, ) : Serializable /** @@ -4211,15 +4210,15 @@ data class ProjectValidationCache ( * @property git_branch * @property lookml_type The lookml syntax used by all files in this project (read-only) */ -data class ProjectWorkspace ( - var can: Map? = null, +data class ProjectWorkspace( + var can: Map? = null, var project_id: String? = null, var workspace_id: String? = null, var git_status: String? = null, var git_head: String? = null, var dependency_status: DependencyStatus? = null, var git_branch: GitBranch? = null, - var lookml_type: String? = null + var lookml_type: String? = null, ) : Serializable /** @@ -4229,7 +4228,7 @@ enum class PullRequestMode : Serializable { off, links, recommended, - required + required, } /** @@ -4260,15 +4259,15 @@ enum class PullRequestMode : Serializable { * @property query_timezone Query Timezone * @property has_table_calculations Has Table Calculations (read-only) */ -data class Query ( - var can: Map? = null, +data class Query( + var can: Map? = null, var id: String? = null, var model: String, var view: String, var fields: Array? = null, var pivots: Array? = null, var fill_fields: Array? = null, - var filters: Map? = null, + var filters: Map? = null, var filter_expression: String? = null, var sorts: Array? = null, var limit: String? = null, @@ -4276,8 +4275,8 @@ data class Query ( var total: Boolean? = null, var row_total: String? = null, var subtotals: Array? = null, - var vis_config: Map? = null, - var filter_config: Map? = null, + var vis_config: Map? = null, + var filter_config: Map? = null, var visible_ui_sections: String? = null, var slug: String? = null, var dynamic_fields: String? = null, @@ -4286,7 +4285,7 @@ data class Query ( var expanded_share_url: String? = null, var url: String? = null, var query_timezone: String? = null, - var has_table_calculations: Boolean? = null + var has_table_calculations: Boolean? = null, ) : Serializable /** @@ -4310,8 +4309,8 @@ data class Query ( * @property dashboard_id Id of dashboard associated with query. * @property result_format The data format of the query results. (read-only) */ -data class QueryTask ( - var can: Map? = null, +data class QueryTask( + var can: Map? = null, var id: String? = null, var query_id: String? = null, var query: Query? = null, @@ -4329,7 +4328,7 @@ data class QueryTask ( var result_source: String? = null, var look_id: String? = null, var dashboard_id: String? = null, - var result_format: String? = null + var result_format: String? = null, ) : Serializable /** @@ -4354,8 +4353,8 @@ data class QueryTask ( * @property user_id The user account permissions in which the render task will execute (read-only) * @property width Output width in pixels (read-only) */ -data class RenderTask ( - var can: Map? = null, +data class RenderTask( + var can: Map? = null, var created_at: String? = null, var dashboard_filters: String? = null, var dashboard_id: String? = null, @@ -4374,7 +4373,7 @@ data class RenderTask ( var status: String? = null, var status_detail: String? = null, var user_id: String? = null, - var width: Long? = null + var width: Long? = null, ) : Serializable /** @@ -4387,15 +4386,15 @@ data class RenderTask ( * @property ssh_public_key Public deploy key for SSH authentication. * @property is_configured Whether the credentials have been configured for the Git Repository. (read-only) */ -data class RepositoryCredential ( - var can: Map? = null, +data class RepositoryCredential( + var can: Map? = null, var id: String? = null, var root_project_id: String? = null, var remote_url: String? = null, var git_username: String? = null, var git_password: String? = null, var ssh_public_key: String? = null, - var is_configured: Boolean? = null + var is_configured: Boolean? = null, ) : Serializable /** @@ -4411,7 +4410,7 @@ enum class ResultFormat : Serializable { md, txt, xlsx, - gsxml + gsxml, } /** @@ -4420,20 +4419,20 @@ enum class ResultFormat : Serializable { * @property name The name of the filterable thing (Query or Merged Results). (read-only) * @property listen array of dashboard_filter_name: and field: objects. (read-only) */ -data class ResultMakerFilterables ( +data class ResultMakerFilterables( var model: String? = null, var view: String? = null, var name: String? = null, - var listen: Array? = null + var listen: Array? = null, ) : Serializable /** * @property dashboard_filter_name The name of a dashboard filter to listen to. * @property field The name of the field in the filterable to filter with the value of the dashboard filter. */ -data class ResultMakerFilterablesListen ( +data class ResultMakerFilterablesListen( var dashboard_filter_name: String? = null, - var field: String? = null + var field: String? = null, ) : Serializable /** @@ -4448,7 +4447,7 @@ data class ResultMakerFilterablesListen ( * @property query * @property vis_config Vis config of the constituent Query, or Merge Query. (read-only) */ -data class ResultMakerWithIdVisConfigAndDynamicFields ( +data class ResultMakerWithIdVisConfigAndDynamicFields( var id: String? = null, var dynamic_fields: String? = null, var filterables: Array? = null, @@ -4458,7 +4457,7 @@ data class ResultMakerWithIdVisConfigAndDynamicFields ( var query_id: String? = null, var sql_query_id: String? = null, var query: Query? = null, - var vis_config: Map? = null + var vis_config: Map? = null, ) : Serializable /** @@ -4472,8 +4471,8 @@ data class ResultMakerWithIdVisConfigAndDynamicFields ( * @property url Link to get this item (read-only) * @property users_url Link to get list of users with this role (read-only) */ -data class Role ( - var can: Map? = null, +data class Role( + var can: Map? = null, var id: String? = null, var name: String? = null, var permission_set: PermissionSet? = null, @@ -4481,7 +4480,7 @@ data class Role ( var model_set: ModelSet? = null, var model_set_id: String? = null, var url: String? = null, - var users_url: String? = null + var users_url: String? = null, ) : Serializable /** @@ -4496,8 +4495,8 @@ data class Role ( * @property url Link to get this item (read-only) * @property users_url Link to get list of users with this role (read-only) */ -data class RoleSearch ( - var can: Map? = null, +data class RoleSearch( + var can: Map? = null, var id: String? = null, var name: String? = null, var permission_set: PermissionSet? = null, @@ -4506,7 +4505,7 @@ data class RoleSearch ( var model_set_id: String? = null, var user_count: Long? = null, var url: String? = null, - var users_url: String? = null + var users_url: String? = null, ) : Serializable /** @@ -4532,8 +4531,8 @@ data class RoleSearch ( * @property runtime Number of seconds elapsed running the Query (read-only) * @property sql SQL text of the query as run (read-only) */ -data class RunningQueries ( - var can: Map? = null, +data class RunningQueries( + var can: Map? = null, var id: String? = null, var user: UserPublic? = null, var query: Query? = null, @@ -4553,7 +4552,7 @@ data class RunningQueries ( var message: String? = null, var status: String? = null, var runtime: Double? = null, - var sql: String? = null + var sql: String? = null, ) : Serializable /** @@ -4591,8 +4590,8 @@ data class RunningQueries ( * @property allow_direct_roles Allows roles to be directly assigned to SAML auth'd users. * @property url Link to get this item (read-only) */ -data class SamlConfig ( - var can: Map? = null, +data class SamlConfig( + var can: Map? = null, var enabled: Boolean? = null, var idp_cert: String? = null, var idp_url: String? = null, @@ -4624,7 +4623,7 @@ data class SamlConfig ( var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, var allow_direct_roles: Boolean? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4635,13 +4634,13 @@ data class SamlConfig ( * @property roles Looker Roles (read-only) * @property url Link to saml config (read-only) */ -data class SamlGroupRead ( +data class SamlGroupRead( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, var roles: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4652,13 +4651,13 @@ data class SamlGroupRead ( * @property role_ids Looker Role Ids * @property url Link to saml config (read-only) */ -data class SamlGroupWrite ( +data class SamlGroupWrite( var id: String? = null, var looker_group_id: String? = null, var looker_group_name: String? = null, var name: String? = null, var role_ids: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4667,11 +4666,11 @@ data class SamlGroupWrite ( * @property idp_url Identify Provider Url (read-only) * @property idp_cert Identify Provider Certificate (read-only) */ -data class SamlMetadataParseResult ( - var can: Map? = null, +data class SamlMetadataParseResult( + var can: Map? = null, var idp_issuer: String? = null, var idp_url: String? = null, - var idp_cert: String? = null + var idp_cert: String? = null, ) : Serializable /** @@ -4680,11 +4679,11 @@ data class SamlMetadataParseResult ( * @property user_attributes Looker User Attributes (read-only) * @property url Link to saml config (read-only) */ -data class SamlUserAttributeRead ( +data class SamlUserAttributeRead( var name: String? = null, var required: Boolean? = null, var user_attributes: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4693,11 +4692,11 @@ data class SamlUserAttributeRead ( * @property user_attribute_ids Looker User Attribute Ids * @property url Link to saml config (read-only) */ -data class SamlUserAttributeWrite ( +data class SamlUserAttributeWrite( var name: String? = null, var required: Boolean? = null, var user_attribute_ids: Array? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4740,7 +4739,7 @@ data class SamlUserAttributeWrite ( * @property last_run_at When the ScheduledPlan was last run (read-only) * @property can Operations the current user is able to perform on this object (read-only) */ -data class ScheduledPlan ( +data class ScheduledPlan( var name: String? = null, var user_id: String? = null, var run_as_recipient: Boolean? = null, @@ -4778,7 +4777,7 @@ data class ScheduledPlan ( var user: UserPublic? = null, var next_run_at: Date? = null, var last_run_at: Date? = null, - var can: Map? = null + var can: Map? = null, ) : Serializable /** @@ -4794,7 +4793,7 @@ data class ScheduledPlan ( * @property secret_parameters (Write-Only) JSON object containing secret parameters for external scheduling. For Amazon S3, this requires a key and value for secret_access_key. For SFTP, this requires a key and value for password. * @property message Optional message to be included in scheduled emails */ -data class ScheduledPlanDestination ( +data class ScheduledPlanDestination( var id: String? = null, var scheduled_plan_id: String? = null, var format: String? = null, @@ -4805,16 +4804,16 @@ data class ScheduledPlanDestination ( var type: String? = null, var parameters: String? = null, var secret_parameters: String? = null, - var message: String? = null + var message: String? = null, ) : Serializable /** * @property name Schema name (read-only) * @property is_default True if this is the default schema (read-only) */ -data class Schema ( +data class Schema( var name: String? = null, - var is_default: Boolean? = null + var is_default: Boolean? = null, ) : Serializable /** @@ -4828,7 +4827,7 @@ data class Schema ( * @property column_size Column data size (read-only) * @property snippets SQL Runner snippets for this connection (read-only) */ -data class SchemaColumn ( +data class SchemaColumn( var name: String? = null, var sql_escaped_name: String? = null, var schema_name: String? = null, @@ -4837,7 +4836,7 @@ data class SchemaColumn ( var data_type_looker: String? = null, var description: String? = null, var column_size: Long? = null, - var snippets: Array? = null + var snippets: Array? = null, ) : Serializable /** @@ -4846,11 +4845,11 @@ data class SchemaColumn ( * @property schema_name Name of schema (read-only) * @property columns Columns for this schema (read-only) */ -data class SchemaColumns ( +data class SchemaColumns( var name: String? = null, var sql_escaped_name: String? = null, var schema_name: String? = null, - var columns: Array? = null + var columns: Array? = null, ) : Serializable /** @@ -4861,13 +4860,13 @@ data class SchemaColumns ( * @property external External reference??? (read-only) * @property snippets SQL Runner snippets for connection (read-only) */ -data class SchemaTable ( +data class SchemaTable( var name: String? = null, var sql_escaped_name: String? = null, var schema_name: String? = null, var rows: Long? = null, var external: String? = null, - var snippets: Array? = null + var snippets: Array? = null, ) : Serializable /** @@ -4876,11 +4875,11 @@ data class SchemaTable ( * @property tables Tables for this schema (read-only) * @property table_limit_hit True if the table limit was hit while retrieving tables in this schema (read-only) */ -data class SchemaTables ( +data class SchemaTables( var name: String? = null, var is_default: Boolean? = null, var tables: Array? = null, - var table_limit_hit: Boolean? = null + var table_limit_hit: Boolean? = null, ) : Serializable /** @@ -4888,7 +4887,7 @@ data class SchemaTables ( */ enum class SecretType : Serializable { SSO, - JWT + JWT, } /** @@ -4908,8 +4907,8 @@ enum class SecretType : Serializable { * @property expires_at Time when this session will expire (read-only) * @property url Link to get this item (read-only) */ -data class Session ( - var can: Map? = null, +data class Session( + var can: Map? = null, var id: String? = null, var ip_address: String? = null, var browser: String? = null, @@ -4923,7 +4922,7 @@ data class Session ( var sudo_user_id: String? = null, var created_at: String? = null, var expires_at: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -4934,13 +4933,13 @@ data class Session ( * @property use_inactivity_based_logout Enforce session logout for sessions that are inactive for 15 minutes. * @property track_session_location Track location of session when user logs in. */ -data class SessionConfig ( - var can: Map? = null, +data class SessionConfig( + var can: Map? = null, var allow_persistent_sessions: Boolean? = null, var session_minutes: Long? = null, var unlimited_sessions_per_user: Boolean? = null, var use_inactivity_based_logout: Boolean? = null, - var track_session_location: Boolean? = null + var track_session_location: Boolean? = null, ) : Serializable /** @@ -4958,7 +4957,7 @@ data class SessionConfig ( * @property override_warnings (Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings. * @property email_domain_allowlist An array of Email Domain Allowlist of type string for Scheduled Content */ -data class Setting ( +data class Setting( var extension_framework_enabled: Boolean? = null, var extension_load_url_enabled: Boolean? = null, var marketplace_auto_install_enabled: Boolean? = null, @@ -4971,7 +4970,7 @@ data class Setting ( var data_connector_default_enabled: Boolean? = null, var host_url: String? = null, var override_warnings: Boolean? = null, - var email_domain_allowlist: Array? = null + var email_domain_allowlist: Array? = null, ) : Serializable /** @@ -4979,10 +4978,10 @@ data class Setting ( * @property message Error message for node (read-only) * @property hostname Host name of node (read-only) */ -data class SmtpNodeStatus ( +data class SmtpNodeStatus( var is_valid: Boolean? = null, var message: String? = null, - var hostname: String? = null + var hostname: String? = null, ) : Serializable /** @@ -4995,7 +4994,7 @@ data class SmtpNodeStatus ( * @property ssl_version TLS version selected Valid values are: "TLSv1_1", "SSLv23", "TLSv1_2". * @property default_smtp Whether to enable built-in Looker SMTP */ -data class SmtpSettings ( +data class SmtpSettings( var address: String? = null, var from: String? = null, var user_name: String? = null, @@ -5003,7 +5002,7 @@ data class SmtpSettings ( var port: Long? = null, var enable_starttls_auto: Boolean? = null, var ssl_version: SslVersion? = null, - var default_smtp: Boolean? = null + var default_smtp: Boolean? = null, ) : Serializable /** @@ -5011,10 +5010,10 @@ data class SmtpSettings ( * @property node_count Total number of nodes in cluster (read-only) * @property node_status array of each node's status containing is_valid, message, hostname (read-only) */ -data class SmtpStatus ( +data class SmtpStatus( var is_valid: Boolean? = null, var node_count: Long? = null, - var node_status: Array? = null + var node_status: Array? = null, ) : Serializable /** @@ -5022,10 +5021,10 @@ data class SmtpStatus ( * @property label Label of the snippet (read-only) * @property sql SQL text of the snippet (read-only) */ -data class Snippet ( +data class Snippet( var name: String? = null, var label: String? = null, - var sql: String? = null + var sql: String? = null, ) : Serializable /** @@ -5044,8 +5043,8 @@ data class Snippet ( * @property vis_config Visualization configuration properties. These properties are typically opaque and differ based on the type of visualization used. There is no specified set of allowed keys. The values can be any type supported by JSON. A "type" key with a string value is often present, and is used by Looker to determine which visualization to present. Visualizations ignore unknown vis_config properties. * @property result_maker_id ID of the ResultMakerLookup entry. */ -data class SqlQuery ( - var can: Map? = null, +data class SqlQuery( + var can: Map? = null, var slug: String? = null, var last_runtime: Float? = null, var run_count: Long? = null, @@ -5057,8 +5056,8 @@ data class SqlQuery ( var creator: UserPublic? = null, var explore_url: String? = null, var plaintext: Boolean? = null, - var vis_config: Map? = null, - var result_maker_id: String? = null + var vis_config: Map? = null, + var result_maker_id: String? = null, ) : Serializable /** @@ -5068,19 +5067,19 @@ data class SqlQuery ( * @property sql SQL query * @property vis_config Visualization configuration properties. These properties are typically opaque and differ based on the type of visualization used. There is no specified set of allowed keys. The values can be any type supported by JSON. A "type" key with a string value is often present, and is used by Looker to determine which visualization to present. Visualizations ignore unknown vis_config properties. */ -data class SqlQueryCreate ( +data class SqlQueryCreate( var connection_name: String? = null, var connection_id: String? = null, var model_name: String? = null, var sql: String? = null, - var vis_config: Map? = null + var vis_config: Map? = null, ) : Serializable /** * @property public_key The SSH public key created for this instance (read-only) */ -data class SshPublicKey ( - var public_key: String? = null +data class SshPublicKey( + var public_key: String? = null, ) : Serializable /** @@ -5094,7 +5093,7 @@ data class SshPublicKey ( * @property public_key The SSH public key created for this instance (read-only) * @property status The current connection status to this SSH Server (read-only) */ -data class SshServer ( +data class SshServer( var ssh_server_id: String? = null, var ssh_server_name: String? = null, var ssh_server_host: String? = null, @@ -5103,7 +5102,7 @@ data class SshServer ( var finger_print: String? = null, var sha_finger_print: String? = null, var public_key: String? = null, - var status: String? = null + var status: String? = null, ) : Serializable /** @@ -5119,7 +5118,7 @@ data class SshServer ( * @property database_port Port that the Database Server is listening on * @property status Current connection status for this Tunnel (read-only) */ -data class SshTunnel ( +data class SshTunnel( var tunnel_id: String? = null, var ssh_server_id: String? = null, var ssh_server_name: String? = null, @@ -5130,7 +5129,7 @@ data class SshTunnel ( var local_host_port: Long? = null, var database_host: String? = null, var database_port: Long? = null, - var status: String? = null + var status: String? = null, ) : Serializable /** @@ -5139,16 +5138,16 @@ data class SshTunnel ( enum class SslVersion : Serializable { TLSv1_1, SSLv23, - TLSv1_2 + TLSv1_2, } /** * @property emails An array of emails to add to the Allowlist * @property reason Reason for adding emails to the Allowlist */ -data class SupportAccessAddEntries ( +data class SupportAccessAddEntries( var emails: Array? = null, - var reason: String? = null + var reason: String? = null, ) : Serializable /** @@ -5158,28 +5157,28 @@ data class SupportAccessAddEntries ( * @property reason Reason the Email is included in the Allowlist * @property created_date Date the Email was added to the Allowlist (read-only) */ -data class SupportAccessAllowlistEntry ( +data class SupportAccessAllowlistEntry( var id: String? = null, var email: String? = null, var full_name: String? = null, var reason: String? = null, - var created_date: Date? = null + var created_date: Date? = null, ) : Serializable /** * @property duration_in_seconds Duration Support Access will remain enabled */ -data class SupportAccessEnable ( - var duration_in_seconds: Long +data class SupportAccessEnable( + var duration_in_seconds: Long, ) : Serializable /** * @property open Whether or not Support Access is open (read-only) * @property open_until Time that Support Access will expire (read-only) */ -data class SupportAccessStatus ( +data class SupportAccessStatus( var open: Boolean? = null, - var open_until: Date? = null + var open_until: Date? = null, ) : Serializable /** @@ -5189,7 +5188,7 @@ enum class SupportedActionTypes : Serializable { cell, query, dashboard, - none + none, } /** @@ -5197,7 +5196,7 @@ enum class SupportedActionTypes : Serializable { */ enum class SupportedDownloadSettings : Serializable { push, - url + url, } /** @@ -5216,7 +5215,7 @@ enum class SupportedFormats : Serializable { wysiwyg_pdf, assembled_pdf, wysiwyg_png, - csv_zip + csv_zip, } /** @@ -5224,7 +5223,7 @@ enum class SupportedFormats : Serializable { */ enum class SupportedFormattings : Serializable { formatted, - unformatted + unformatted, } /** @@ -5232,7 +5231,7 @@ enum class SupportedFormattings : Serializable { */ enum class SupportedVisualizationFormattings : Serializable { apply, - noapply + noapply, } /** @@ -5243,13 +5242,13 @@ enum class SupportedVisualizationFormattings : Serializable { * @property name Name of theme. Can only be alphanumeric and underscores. * @property settings */ -data class Theme ( - var can: Map? = null, +data class Theme( + var can: Map? = null, var begin_at: Date? = null, var end_at: Date? = null, var id: String? = null, var name: String? = null, - var settings: ThemeSettings? = null + var settings: ThemeSettings? = null, ) : Serializable /** @@ -5278,7 +5277,7 @@ data class Theme ( * @property show_dashboard_header Toggle to show the dashboard header. Defaults to true. * @property center_dashboard_title Toggle to center the dashboard title. Defaults to false. */ -data class ThemeSettings ( +data class ThemeSettings( var background_color: String? = null, var base_font_size: String? = null, var color_collection_id: String? = null, @@ -5302,7 +5301,7 @@ data class ThemeSettings ( var show_dashboard_menu: Boolean? = null, var show_filters_toggle: Boolean? = null, var show_dashboard_header: Boolean? = null, - var center_dashboard_title: Boolean? = null + var center_dashboard_title: Boolean? = null, ) : Serializable /** @@ -5310,10 +5309,10 @@ data class ThemeSettings ( * @property label Description of timezone (read-only) * @property group Timezone group (e.g Common, Other, etc.) (read-only) */ -data class Timezone ( +data class Timezone( var value: String? = null, var label: String? = null, - var group: String? = null + var group: String? = null, ) : Serializable /** @@ -5322,20 +5321,20 @@ data class Timezone ( * @property content_type MIME type of content. This can only be used to override content that is detected as text/plain. Needed to set application/json content types, which are analyzed as plain text. * @property version Version number of the stored value. The version must be provided for any updates to an existing artifact. (read-only) */ -data class UpdateArtifact ( +data class UpdateArtifact( var key: String, var value: String, var content_type: String? = null, - var version: Long? = null + var version: Long? = null, ) : Serializable /** * @property name Unique Name * @property parent_id Id of Parent. If the parent id is null, this is a root-level entry */ -data class UpdateFolder ( +data class UpdateFolder( var name: String? = null, - var parent_id: String? = null + var parent_id: String? = null, ) : Serializable /** @@ -5376,8 +5375,8 @@ data class UpdateFolder ( * @property embed_group_folder_id (Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login (read-only) * @property url Link to get this item (read-only) */ -data class User ( - var can: Map? = null, +data class User( + var can: Map? = null, var avatar_url: String? = null, var avatar_url_without_sizing: String? = null, var credentials_api3: Array? = null, @@ -5405,14 +5404,14 @@ data class User ( var presumed_looker_employee: Boolean? = null, var role_ids: Array? = null, var sessions: Array? = null, - var ui_state: Map? = null, + var ui_state: Map? = null, var verified_looker_employee: Boolean? = null, var roles_externally_managed: Boolean? = null, var allow_direct_roles: Boolean? = null, var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, var embed_group_folder_id: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -5429,8 +5428,8 @@ data class User ( * @property user_can_edit Users can change the value of this attribute for themselves * @property hidden_value_domain_whitelist Destinations to which a hidden attribute may be sent. Once set, cannot be edited. */ -data class UserAttribute ( - var can: Map? = null, +data class UserAttribute( + var can: Map? = null, var id: String? = null, var name: String, var label: String, @@ -5441,7 +5440,7 @@ data class UserAttribute ( var value_is_hidden: Boolean? = null, var user_can_view: Boolean? = null, var user_can_edit: Boolean? = null, - var hidden_value_domain_whitelist: String? = null + var hidden_value_domain_whitelist: String? = null, ) : Serializable /** @@ -5456,7 +5455,7 @@ enum class UserAttributeFilterTypes : Serializable { datetime, relative_url, yesno, - zipcode + zipcode, } /** @@ -5470,14 +5469,14 @@ enum class UserAttributeFilterTypes : Serializable { * @property rank Precedence for resolving value for user (read-only) * @property value Value of user attribute for group (read-only) */ -data class UserAttributeGroupValue ( - var can: Map? = null, +data class UserAttributeGroupValue( + var can: Map? = null, var id: String? = null, var group_id: String? = null, var user_attribute_id: String? = null, var value_is_hidden: Boolean? = null, var rank: Long? = null, - var value: String? = null + var value: String? = null, ) : Serializable /** @@ -5493,8 +5492,8 @@ data class UserAttributeGroupValue ( * @property source How user got this value for this attribute (read-only) * @property hidden_value_domain_whitelist If this user attribute is hidden, allowed list of destinations to which it may be sent. (read-only) */ -data class UserAttributeWithValue ( - var can: Map? = null, +data class UserAttributeWithValue( + var can: Map? = null, var name: String? = null, var label: String? = null, var rank: Long? = null, @@ -5504,14 +5503,14 @@ data class UserAttributeWithValue ( var value_is_hidden: Boolean? = null, var user_attribute_id: String? = null, var source: String? = null, - var hidden_value_domain_whitelist: String? = null + var hidden_value_domain_whitelist: String? = null, ) : Serializable /** * @property email Email Address */ -data class UserEmailOnly ( - var email: String +data class UserEmailOnly( + var email: String, ) : Serializable /** @@ -5526,8 +5525,8 @@ data class UserEmailOnly ( * @property fail_count Number of failures that triggered the lockout (read-only) * @property lockout_at Time when lockout was triggered (read-only) */ -data class UserLoginLockout ( - var can: Map? = null, +data class UserLoginLockout( + var can: Map? = null, var key: String? = null, var auth_type: String? = null, var ip: String? = null, @@ -5536,7 +5535,7 @@ data class UserLoginLockout ( var full_name: String? = null, var email: String? = null, var fail_count: Long? = null, - var lockout_at: Date? = null + var lockout_at: Date? = null, ) : Serializable /** @@ -5548,14 +5547,14 @@ data class UserLoginLockout ( * @property avatar_url URL for the avatar image (may be generic) (read-only) * @property url Link to get this item (read-only) */ -data class UserPublic ( - var can: Map? = null, +data class UserPublic( + var can: Map? = null, var id: String? = null, var first_name: String? = null, var last_name: String? = null, var display_name: String? = null, var avatar_url: String? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -5563,10 +5562,10 @@ data class UserPublic ( * @property errors Error detail array (read-only) * @property documentation_url Documentation link (read-only) */ -data class ValidationError ( +data class ValidationError( var message: String, var errors: Array? = null, - var documentation_url: String + var documentation_url: String, ) : Serializable /** @@ -5575,11 +5574,11 @@ data class ValidationError ( * @property message Error info message (read-only) * @property documentation_url Documentation link (read-only) */ -data class ValidationErrorDetail ( +data class ValidationErrorDetail( var field: String? = null, var code: String? = null, var message: String? = null, - var documentation_url: String + var documentation_url: String, ) : Serializable /** @@ -5592,7 +5591,7 @@ enum class WeekStartDay : Serializable { thursday, friday, saturday, - sunday + sunday, } /** @@ -5600,10 +5599,10 @@ enum class WeekStartDay : Serializable { * @property subject The subject that would be sent for the custom welcome email * @property header The header that would be sent in the body of a custom welcome email */ -data class WelcomeEmailTest ( +data class WelcomeEmailTest( var content: String? = null, var subject: String? = null, - var header: String? = null + var header: String? = null, ) : Serializable /** @@ -5624,7 +5623,7 @@ data class WelcomeEmailTest ( * @property alerts_links Remove Looker links from Alerts * @property folders_mentions Remove Looker mentions in home folder page when you don’t have any items saved */ -data class WhitelabelConfiguration ( +data class WhitelabelConfiguration( var id: String? = null, var logo_file: String? = null, var logo_url: String? = null, @@ -5640,7 +5639,7 @@ data class WhitelabelConfiguration ( var setup_mentions: Boolean? = null, var alerts_logo: Boolean? = null, var alerts_links: Boolean? = null, - var folders_mentions: Boolean? = null + var folders_mentions: Boolean? = null, ) : Serializable /** @@ -5648,10 +5647,10 @@ data class WhitelabelConfiguration ( * @property id The unique id of this user workspace. Predefined workspace ids include "production" and "dev" (read-only) * @property projects The local state of each project in the workspace (read-only) */ -data class Workspace ( - var can: Map? = null, +data class Workspace( + var can: Map? = null, var id: String? = null, - var projects: Array? = null + var projects: Array? = null, ) : Serializable /** @@ -5681,7 +5680,7 @@ data class Workspace ( * @property threshold Value of the alert threshold * @property time_series_condition_state */ -data class WriteAlert ( +data class WriteAlert( var applied_dashboard_filters: Array? = null, var comparison_type: ComparisonType, var cron: String, @@ -5703,7 +5702,7 @@ data class WriteAlert ( var lookml_link_id: String? = null, var owner_id: String, var threshold: Double, - var time_series_condition_state: AlertConditionState? = null + var time_series_condition_state: AlertConditionState? = null, ) : Serializable /** @@ -5712,8 +5711,8 @@ data class WriteAlert ( * * @property workspace_id The id of active workspace for this session */ -data class WriteApiSession ( - var workspace_id: String? = null +data class WriteApiSession( + var workspace_id: String? = null, ) : Serializable /** @@ -5726,12 +5725,12 @@ data class WriteApiSession ( * @property custom_s3_key (Write-Only) AWS S3 key used for custom-s3 backups * @property custom_s3_secret (Write-Only) AWS S3 secret used for custom-s3 backups */ -data class WriteBackupConfiguration ( +data class WriteBackupConfiguration( var type: String? = null, var custom_s3_bucket: String? = null, var custom_s3_bucket_region: String? = null, var custom_s3_key: String? = null, - var custom_s3_secret: String? = null + var custom_s3_secret: String? = null, ) : Serializable /** @@ -5743,11 +5742,11 @@ data class WriteBackupConfiguration ( * @property section_order ids of the board sections in the order they should be displayed * @property title Title of the board */ -data class WriteBoard ( +data class WriteBoard( var deleted_at: Date? = null, var description: String? = null, var section_order: Array? = null, - var title: String? = null + var title: String? = null, ) : Serializable /** @@ -5768,7 +5767,7 @@ data class WriteBoard ( * @property custom_image_data_base64 (Write-Only) base64 encoded image data * @property use_custom_image Whether the custom image should be used instead of the content image, if the item is associated with content */ -data class WriteBoardItem ( +data class WriteBoardItem( var custom_description: String? = null, var custom_title: String? = null, var custom_url: String? = null, @@ -5781,7 +5780,7 @@ data class WriteBoardItem ( var use_custom_title: Boolean? = null, var use_custom_url: Boolean? = null, var custom_image_data_base64: String? = null, - var use_custom_image: Boolean? = null + var use_custom_image: Boolean? = null, ) : Serializable /** @@ -5794,12 +5793,12 @@ data class WriteBoardItem ( * @property item_order ids of the board items in the order they should be displayed * @property title Name of row */ -data class WriteBoardSection ( +data class WriteBoardSection( var deleted_at: Date? = null, var description: String? = null, var board_id: String? = null, var item_order: Array? = null, - var title: String? = null + var title: String? = null, ) : Serializable /** @@ -5811,11 +5810,11 @@ data class WriteBoardSection ( * @property sequentialPalettes Array of discrete palette definitions * @property divergingPalettes Array of diverging palette definitions */ -data class WriteColorCollection ( +data class WriteColorCollection( var label: String? = null, var categoricalPalettes: Array? = null, var sequentialPalettes: Array? = null, - var divergingPalettes: Array? = null + var divergingPalettes: Array? = null, ) : Serializable /** @@ -5829,11 +5828,11 @@ data class WriteColorCollection ( * @property dashboard Dynamic writeable type for DashboardBase removes: * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer */ -data class WriteContentFavorite ( +data class WriteContentFavorite( var user_id: String? = null, var content_metadata_id: String? = null, var look: WriteLookBasic? = null, - var dashboard: WriteDashboardBase? = null + var dashboard: WriteDashboardBase? = null, ) : Serializable /** @@ -5842,8 +5841,8 @@ data class WriteContentFavorite ( * * @property inherits Whether content inherits its access levels from parent */ -data class WriteContentMeta ( - var inherits: Boolean? = null +data class WriteContentMeta( + var inherits: Boolean? = null, ) : Serializable /** @@ -5864,7 +5863,7 @@ data class WriteContentMeta ( * @property required Whether the filter requires a value to run the dashboard * @property ui_config The visual configuration for this filter. Used to set up how the UI for this filter should appear. */ -data class WriteCreateDashboardFilter ( +data class WriteCreateDashboardFilter( var dashboard_id: String, var name: String, var title: String, @@ -5877,7 +5876,7 @@ data class WriteCreateDashboardFilter ( var listens_to_filters: Array? = null, var allow_multiple_values: Boolean? = null, var required: Boolean? = null, - var ui_config: Map? = null + var ui_config: Map? = null, ) : Serializable /** @@ -5891,13 +5890,13 @@ data class WriteCreateDashboardFilter ( * @property look_id Id of look associated with query. * @property dashboard_id Id of dashboard associated with query. */ -data class WriteCreateQueryTask ( +data class WriteCreateQueryTask( var query_id: String, var result_format: ResultFormat, var source: String? = null, var deferred: Boolean? = null, var look_id: String? = null, - var dashboard_id: String? = null + var dashboard_id: String? = null, ) : Serializable /** @@ -5907,9 +5906,9 @@ data class WriteCreateQueryTask ( * @property email EMail address used for user login * @property forced_password_reset_at_next_login Force the user to change their password upon their next login */ -data class WriteCredentialsEmail ( +data class WriteCredentialsEmail( var email: String? = null, - var forced_password_reset_at_next_login: Boolean? = null + var forced_password_reset_at_next_login: Boolean? = null, ) : Serializable /** @@ -5943,7 +5942,7 @@ data class WriteCredentialsEmail ( * @property title_color Title color * @property appearance */ -data class WriteDashboard ( +data class WriteDashboard( var description: String? = null, var hidden: Boolean? = null, var query_timezone: String? = null, @@ -5968,7 +5967,7 @@ data class WriteDashboard ( var tile_background_color: String? = null, var tile_text_color: String? = null, var title_color: String? = null, - var appearance: DashboardAppearance? = null + var appearance: DashboardAppearance? = null, ) : Serializable /** @@ -5978,8 +5977,8 @@ data class WriteDashboard ( * @property folder Dynamic writeable type for FolderBase removes: * id, content_metadata_id, created_at, creator_id, child_count, external_id, is_embed, is_embed_shared_root, is_embed_users_root, is_personal, is_personal_descendant, is_shared_root, is_users_root, can */ -data class WriteDashboardBase ( - var folder: WriteFolderBase? = null +data class WriteDashboardBase( + var folder: WriteFolderBase? = null, ) : Serializable /** @@ -6010,7 +6009,7 @@ data class WriteDashboardBase ( * @property rich_content_json JSON with all the properties required for rich editor and buttons elements * @property extension_id Extension ID */ -data class WriteDashboardElement ( +data class WriteDashboardElement( var body_text: String? = null, var dashboard_id: String? = null, var look: WriteLookWithQuery? = null, @@ -6030,7 +6029,7 @@ data class WriteDashboardElement ( var title_text: String? = null, var type: String? = null, var rich_content_json: String? = null, - var extension_id: String? = null + var extension_id: String? = null, ) : Serializable /** @@ -6050,7 +6049,7 @@ data class WriteDashboardElement ( * @property required Whether the filter requires a value to run the dashboard * @property ui_config The visual configuration for this filter. Used to set up how the UI for this filter should appear. */ -data class WriteDashboardFilter ( +data class WriteDashboardFilter( var name: String? = null, var title: String? = null, var type: String? = null, @@ -6062,7 +6061,7 @@ data class WriteDashboardFilter ( var listens_to_filters: Array? = null, var allow_multiple_values: Boolean? = null, var required: Boolean? = null, - var ui_config: Map? = null + var ui_config: Map? = null, ) : Serializable /** @@ -6075,12 +6074,12 @@ data class WriteDashboardFilter ( * @property column_width Column Width * @property width Width */ -data class WriteDashboardLayout ( +data class WriteDashboardLayout( var dashboard_id: String? = null, var type: String? = null, var active: Boolean? = null, var column_width: Long? = null, - var width: Long? = null + var width: Long? = null, ) : Serializable /** @@ -6094,13 +6093,13 @@ data class WriteDashboardLayout ( * @property width Width * @property height Height */ -data class WriteDashboardLayoutComponent ( +data class WriteDashboardLayoutComponent( var dashboard_layout_id: String? = null, var dashboard_element_id: String? = null, var row: Long? = null, var column: Long? = null, var width: Long? = null, - var height: Long? = null + var height: Long? = null, ) : Serializable /** @@ -6110,9 +6109,9 @@ data class WriteDashboardLayoutComponent ( * @property folder_id (Write-Only) Id of the folder * @property lookml lookml of UDD */ -data class WriteDashboardLookml ( +data class WriteDashboardLookml( var folder_id: String? = null, - var lookml: String? = null + var lookml: String? = null, ) : Serializable /** @@ -6122,9 +6121,9 @@ data class WriteDashboardLookml ( * @property stale_before UNIX timestamp before which cache entries are considered stale. Cannot be in the future. * @property triggered_at UNIX timestamp at which this entry became triggered. Cannot be in the future. */ -data class WriteDatagroup ( +data class WriteDatagroup( var stale_before: Long? = null, - var triggered_at: Long? = null + var triggered_at: Long? = null, ) : Serializable /** @@ -6168,7 +6167,7 @@ data class WriteDatagroup ( * @property cost_estimate_enabled When true, query cost estimate will be displayed in explore. * @property pdt_api_control_enabled PDT builds on this connection can be kicked off and cancelled via API. */ -data class WriteDBConnection ( +data class WriteDBConnection( var name: String? = null, var host: String? = null, var port: String? = null, @@ -6203,7 +6202,7 @@ data class WriteDBConnection ( var oauth_application_id: String? = null, var always_retry_failed_builds: Boolean? = null, var cost_estimate_enabled: Boolean? = null, - var pdt_api_control_enabled: Boolean? = null + var pdt_api_control_enabled: Boolean? = null, ) : Serializable /** @@ -6222,7 +6221,7 @@ data class WriteDBConnection ( * @property jdbc_additional_params Additional params to add to JDBC connection string * @property after_connect_statements SQL statements (semicolon separated) to issue after connecting to the database. Requires `custom_after_connect_statements` license feature */ -data class WriteDBConnectionOverride ( +data class WriteDBConnectionOverride( var context: String? = null, var host: String? = null, var port: String? = null, @@ -6233,7 +6232,7 @@ data class WriteDBConnectionOverride ( var database: String? = null, var schema: String? = null, var jdbc_additional_params: String? = null, - var after_connect_statements: String? = null + var after_connect_statements: String? = null, ) : Serializable /** @@ -6244,10 +6243,10 @@ data class WriteDBConnectionOverride ( * @property enabled Is this secret currently enabled * @property secret_type Field to distinguish between SSO secrets and JWT secrets Valid values are: "SSO", "JWT". */ -data class WriteEmbedSecret ( +data class WriteEmbedSecret( var algorithm: String? = null, var enabled: Boolean? = null, - var secret_type: SecretType? = null + var secret_type: SecretType? = null, ) : Serializable /** @@ -6259,11 +6258,11 @@ data class WriteEmbedSecret ( * @property client_secret (Write-Only) The OAuth Client Secret for this application * @property dialect_name The database dialect for this application. */ -data class WriteExternalOauthApplication ( +data class WriteExternalOauthApplication( var name: String? = null, var client_id: String? = null, var client_secret: String? = null, - var dialect_name: String? = null + var dialect_name: String? = null, ) : Serializable /** @@ -6273,9 +6272,9 @@ data class WriteExternalOauthApplication ( * @property name Unique Name * @property parent_id Id of Parent. If the parent id is null, this is a root-level entry */ -data class WriteFolderBase ( +data class WriteFolderBase( var name: String, - var parent_id: String? = null + var parent_id: String? = null, ) : Serializable /** @@ -6285,9 +6284,9 @@ data class WriteFolderBase ( * @property name The short name on the local. Updating `name` results in `git checkout ` * @property ref The resolved ref of this branch. Updating `ref` results in `git reset --hard ``. */ -data class WriteGitBranch ( +data class WriteGitBranch( var name: String? = null, - var ref: String? = null + var ref: String? = null, ) : Serializable /** @@ -6297,9 +6296,9 @@ data class WriteGitBranch ( * @property can_add_to_content_metadata Group can be used in content access controls * @property name Name of group */ -data class WriteGroup ( +data class WriteGroup( var can_add_to_content_metadata: Boolean? = null, - var name: String? = null + var name: String? = null, ) : Serializable /** @@ -6310,10 +6309,10 @@ data class WriteGroup ( * @property params Array of params for the integration. * @property installed_delegate_oauth_targets Whether the integration is available to users. */ -data class WriteIntegration ( +data class WriteIntegration( var enabled: Boolean? = null, var params: Array? = null, - var installed_delegate_oauth_targets: Array? = null + var installed_delegate_oauth_targets: Array? = null, ) : Serializable /** @@ -6323,9 +6322,9 @@ data class WriteIntegration ( * @property url URL of the hub. * @property authorization_token (Write-Only) An authorization key that will be sent to the integration hub on every request. */ -data class WriteIntegrationHub ( +data class WriteIntegrationHub( var url: String? = null, - var authorization_token: String? = null + var authorization_token: String? = null, ) : Serializable /** @@ -6334,8 +6333,8 @@ data class WriteIntegrationHub ( * * @property enabled If true and internal help resources content is not blank then the link for internal help resources will be shown in the help menu and the content displayed within Looker */ -data class WriteInternalHelpResources ( - var enabled: Boolean? = null +data class WriteInternalHelpResources( + var enabled: Boolean? = null, ) : Serializable /** @@ -6345,9 +6344,9 @@ data class WriteInternalHelpResources ( * @property organization_name Text to display in the help menu item which will display the internal help resources * @property markdown_content Content to be displayed in the internal help resources page/modal */ -data class WriteInternalHelpResourcesContent ( +data class WriteInternalHelpResourcesContent( var organization_name: String? = null, - var markdown_content: String? = null + var markdown_content: String? = null, ) : Serializable /** @@ -6389,7 +6388,7 @@ data class WriteInternalHelpResourcesContent ( * @property allow_roles_from_normal_groups LDAP auth'd users will be able to inherit roles from non-reflected Looker groups. * @property allow_direct_roles Allows roles to be directly assigned to LDAP auth'd users. */ -data class WriteLDAPConfig ( +data class WriteLDAPConfig( var alternate_email_login_allowed: Boolean? = null, var auth_password: String? = null, var auth_requires_role: Boolean? = null, @@ -6423,7 +6422,7 @@ data class WriteLDAPConfig ( var user_objectclass: String? = null, var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, - var allow_direct_roles: Boolean? = null + var allow_direct_roles: Boolean? = null, ) : Serializable /** @@ -6432,8 +6431,8 @@ data class WriteLDAPConfig ( * * @property enabled_locally Whether this feature has been enabled by a user */ -data class WriteLegacyFeature ( - var enabled_locally: Boolean? = null +data class WriteLegacyFeature( + var enabled_locally: Boolean? = null, ) : Serializable /** @@ -6442,8 +6441,8 @@ data class WriteLegacyFeature ( * * @property user_id User Id */ -data class WriteLookBasic ( - var user_id: String? = null +data class WriteLookBasic( + var user_id: String? = null, ) : Serializable /** @@ -6455,11 +6454,11 @@ data class WriteLookBasic ( * @property project_name Name of project containing the model * @property unlimited_db_connections Is this model allowed to use all current and future connections */ -data class WriteLookmlModel ( +data class WriteLookmlModel( var allowed_db_connection_names: Array? = null, var name: String? = null, var project_name: String? = null, - var unlimited_db_connections: Boolean? = null + var unlimited_db_connections: Boolean? = null, ) : Serializable /** @@ -6479,7 +6478,7 @@ data class WriteLookmlModel ( * @property query Dynamic writeable type for Query removes: * can, id, slug, share_url, expanded_share_url, url, has_table_calculations */ -data class WriteLookWithQuery ( +data class WriteLookWithQuery( var title: String? = null, var user_id: String? = null, var deleted: Boolean? = null, @@ -6489,7 +6488,7 @@ data class WriteLookWithQuery ( var query_id: String? = null, var folder: WriteFolderBase? = null, var folder_id: String? = null, - var query: WriteQuery? = null + var query: WriteQuery? = null, ) : Serializable /** @@ -6504,14 +6503,14 @@ data class WriteLookWithQuery ( * @property total Total * @property vis_config Visualization Config */ -data class WriteMergeQuery ( +data class WriteMergeQuery( var column_limit: String? = null, var dynamic_fields: String? = null, var pivots: Array? = null, var sorts: Array? = null, var source_queries: Array? = null, var total: Boolean? = null, - var vis_config: Map? = null + var vis_config: Map? = null, ) : Serializable /** @@ -6521,9 +6520,9 @@ data class WriteMergeQuery ( * @property device_token Specifies the device token * @property device_type Specifies type of device. Valid values are: "android", "ios". */ -data class WriteMobileToken ( +data class WriteMobileToken( var device_token: String, - var device_type: DeviceType + var device_type: DeviceType, ) : Serializable /** @@ -6533,9 +6532,9 @@ data class WriteMobileToken ( * @property models * @property name Name of ModelSet */ -data class WriteModelSet ( +data class WriteModelSet( var models: Array? = null, - var name: String? = null + var name: String? = null, ) : Serializable /** @@ -6548,12 +6547,12 @@ data class WriteModelSet ( * @property enabled When enabled is true, OAuth2 and API requests will be accepted from this app. When false, all requests from this app will be refused. Setting disabled invalidates existing tokens. * @property group_id If set, only Looker users who are members of this group can use this web app with Looker. If group_id is not set, any Looker user may use this app to access this Looker instance */ -data class WriteOauthClientApp ( +data class WriteOauthClientApp( var redirect_uri: String? = null, var display_name: String? = null, var description: String? = null, var enabled: Boolean? = null, - var group_id: String? = null + var group_id: String? = null, ) : Serializable /** @@ -6585,7 +6584,7 @@ data class WriteOauthClientApp ( * @property allow_roles_from_normal_groups OIDC auth'd users will inherit roles from non-reflected Looker groups. * @property allow_direct_roles Allows roles to be directly assigned to OIDC auth'd users. */ -data class WriteOIDCConfig ( +data class WriteOIDCConfig( var alternate_email_login_allowed: Boolean? = null, var audience: String? = null, var auth_requires_role: Boolean? = null, @@ -6609,7 +6608,7 @@ data class WriteOIDCConfig ( var userinfo_endpoint: String? = null, var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, - var allow_direct_roles: Boolean? = null + var allow_direct_roles: Boolean? = null, ) : Serializable /** @@ -6621,11 +6620,11 @@ data class WriteOIDCConfig ( * @property require_upperlower Require at least one uppercase and one lowercase letter * @property require_special Require at least one special character */ -data class WritePasswordConfig ( +data class WritePasswordConfig( var min_length: Long? = null, var require_numeric: Boolean? = null, var require_upperlower: Boolean? = null, - var require_special: Boolean? = null + var require_special: Boolean? = null, ) : Serializable /** @@ -6635,9 +6634,9 @@ data class WritePasswordConfig ( * @property name Name of PermissionSet * @property permissions */ -data class WritePermissionSet ( +data class WritePermissionSet( var name: String? = null, - var permissions: Array? = null + var permissions: Array? = null, ) : Serializable /** @@ -6658,7 +6657,7 @@ data class WritePermissionSet ( * @property alerts_links Remove Looker links from Alerts * @property folders_mentions Remove Looker mentions in home folder page when you don’t have any items saved */ -data class WritePrivatelabelConfiguration ( +data class WritePrivatelabelConfiguration( var logo_file: String? = null, var favicon_file: String? = null, var default_title: String? = null, @@ -6671,7 +6670,7 @@ data class WritePrivatelabelConfiguration ( var setup_mentions: Boolean? = null, var alerts_logo: Boolean? = null, var alerts_links: Boolean? = null, - var folders_mentions: Boolean? = null + var folders_mentions: Boolean? = null, ) : Serializable /** @@ -6697,7 +6696,7 @@ data class WritePrivatelabelConfiguration ( * @property allow_warnings Validation policy: If true, the project can be committed with warnings when `validation_required` is true. (`allow_warnings` does nothing if `validation_required` is false). * @property dependency_status Status of dependencies in your manifest & lockfile */ -data class WriteProject ( +data class WriteProject( var name: String? = null, var git_remote_url: String? = null, var git_username: String? = null, @@ -6715,7 +6714,7 @@ data class WriteProject ( var validation_required: Boolean? = null, var git_release_mgmt_enabled: Boolean? = null, var allow_warnings: Boolean? = null, - var dependency_status: String? = null + var dependency_status: String? = null, ) : Serializable /** @@ -6742,13 +6741,13 @@ data class WriteProject ( * @property client_id Client Id: used to generate shortened explore URLs. If set by client, must be a unique 22 character alphanumeric string. Otherwise one will be generated. * @property query_timezone Query Timezone */ -data class WriteQuery ( +data class WriteQuery( var model: String, var view: String, var fields: Array? = null, var pivots: Array? = null, var fill_fields: Array? = null, - var filters: Map? = null, + var filters: Map? = null, var filter_expression: String? = null, var sorts: Array? = null, var limit: String? = null, @@ -6756,12 +6755,12 @@ data class WriteQuery ( var total: Boolean? = null, var row_total: String? = null, var subtotals: Array? = null, - var vis_config: Map? = null, - var filter_config: Map? = null, + var vis_config: Map? = null, + var filter_config: Map? = null, var visible_ui_sections: String? = null, var dynamic_fields: String? = null, var client_id: String? = null, - var query_timezone: String? = null + var query_timezone: String? = null, ) : Serializable /** @@ -6772,10 +6771,10 @@ data class WriteQuery ( * @property git_password (Write-Only) Git password for HTTPS authentication. * @property ssh_public_key Public deploy key for SSH authentication. */ -data class WriteRepositoryCredential ( +data class WriteRepositoryCredential( var git_username: String? = null, var git_password: String? = null, - var ssh_public_key: String? = null + var ssh_public_key: String? = null, ) : Serializable /** @@ -6785,8 +6784,8 @@ data class WriteRepositoryCredential ( * @property query Dynamic writeable type for Query removes: * can, id, slug, share_url, expanded_share_url, url, has_table_calculations */ -data class WriteResultMakerWithIdVisConfigAndDynamicFields ( - var query: WriteQuery? = null +data class WriteResultMakerWithIdVisConfigAndDynamicFields( + var query: WriteQuery? = null, ) : Serializable /** @@ -6801,12 +6800,12 @@ data class WriteResultMakerWithIdVisConfigAndDynamicFields ( * can, all_access, built_in, id, url * @property model_set_id (Write-Only) Id of model set */ -data class WriteRole ( +data class WriteRole( var name: String? = null, var permission_set: WritePermissionSet? = null, var permission_set_id: String? = null, var model_set: WriteModelSet? = null, - var model_set_id: String? = null + var model_set_id: String? = null, ) : Serializable /** @@ -6838,7 +6837,7 @@ data class WriteRole ( * @property allow_roles_from_normal_groups SAML auth'd users will inherit roles from non-reflected Looker groups. * @property allow_direct_roles Allows roles to be directly assigned to SAML auth'd users. */ -data class WriteSamlConfig ( +data class WriteSamlConfig( var enabled: Boolean? = null, var idp_cert: String? = null, var idp_url: String? = null, @@ -6862,7 +6861,7 @@ data class WriteSamlConfig ( var bypass_login_page: Boolean? = null, var allow_normal_group_membership: Boolean? = null, var allow_roles_from_normal_groups: Boolean? = null, - var allow_direct_roles: Boolean? = null + var allow_direct_roles: Boolean? = null, ) : Serializable /** @@ -6900,7 +6899,7 @@ data class WriteSamlConfig ( * @property long_tables Whether or not to expand table vis to full length * @property inline_table_width The pixel width at which we render the inline table visualizations */ -data class WriteScheduledPlan ( +data class WriteScheduledPlan( var name: String? = null, var user_id: String? = null, var run_as_recipient: Boolean? = null, @@ -6930,7 +6929,7 @@ data class WriteScheduledPlan ( var embed: Boolean? = null, var color_theme: String? = null, var long_tables: Boolean? = null, - var inline_table_width: Long? = null + var inline_table_width: Long? = null, ) : Serializable /** @@ -6943,12 +6942,12 @@ data class WriteScheduledPlan ( * @property use_inactivity_based_logout Enforce session logout for sessions that are inactive for 15 minutes. * @property track_session_location Track location of session when user logs in. */ -data class WriteSessionConfig ( +data class WriteSessionConfig( var allow_persistent_sessions: Boolean? = null, var session_minutes: Long? = null, var unlimited_sessions_per_user: Boolean? = null, var use_inactivity_based_logout: Boolean? = null, - var track_session_location: Boolean? = null + var track_session_location: Boolean? = null, ) : Serializable /** @@ -6969,7 +6968,7 @@ data class WriteSessionConfig ( * @property override_warnings (Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings. * @property email_domain_allowlist An array of Email Domain Allowlist of type string for Scheduled Content */ -data class WriteSetting ( +data class WriteSetting( var extension_framework_enabled: Boolean? = null, var extension_load_url_enabled: Boolean? = null, var marketplace_auto_install_enabled: Boolean? = null, @@ -6982,7 +6981,7 @@ data class WriteSetting ( var data_connector_default_enabled: Boolean? = null, var host_url: String? = null, var override_warnings: Boolean? = null, - var email_domain_allowlist: Array? = null + var email_domain_allowlist: Array? = null, ) : Serializable /** @@ -6994,11 +6993,11 @@ data class WriteSetting ( * @property ssh_server_port The port to connect to on the SSH Server * @property ssh_server_user The username used to connect to the SSH Server */ -data class WriteSshServer ( +data class WriteSshServer( var ssh_server_name: String? = null, var ssh_server_host: String? = null, var ssh_server_port: Long? = null, - var ssh_server_user: String? = null + var ssh_server_user: String? = null, ) : Serializable /** @@ -7010,11 +7009,11 @@ data class WriteSshServer ( * @property database_host Hostname or IP Address of the Database Server * @property database_port Port that the Database Server is listening on */ -data class WriteSshTunnel ( +data class WriteSshTunnel( var ssh_server_id: String? = null, var local_host_port: Long? = null, var database_host: String? = null, - var database_port: Long? = null + var database_port: Long? = null, ) : Serializable /** @@ -7026,11 +7025,11 @@ data class WriteSshTunnel ( * @property name Name of theme. Can only be alphanumeric and underscores. * @property settings */ -data class WriteTheme ( +data class WriteTheme( var begin_at: Date? = null, var end_at: Date? = null, var name: String? = null, - var settings: ThemeSettings? = null + var settings: ThemeSettings? = null, ) : Serializable /** @@ -7047,7 +7046,7 @@ data class WriteTheme ( * @property models_dir_validated User's dev workspace has been checked for presence of applicable production projects * @property ui_state Per user dictionary of undocumented state information owned by the Looker UI. */ -data class WriteUser ( +data class WriteUser( var credentials_email: WriteCredentialsEmail? = null, var first_name: String? = null, var home_folder_id: String? = null, @@ -7055,7 +7054,7 @@ data class WriteUser ( var last_name: String? = null, var locale: String? = null, var models_dir_validated: Boolean? = null, - var ui_state: Map? = null + var ui_state: Map? = null, ) : Serializable /** @@ -7071,7 +7070,7 @@ data class WriteUser ( * @property user_can_edit Users can change the value of this attribute for themselves * @property hidden_value_domain_whitelist Destinations to which a hidden attribute may be sent. Once set, cannot be edited. */ -data class WriteUserAttribute ( +data class WriteUserAttribute( var name: String, var label: String, var type: String, @@ -7079,7 +7078,7 @@ data class WriteUserAttribute ( var value_is_hidden: Boolean? = null, var user_can_view: Boolean? = null, var user_can_edit: Boolean? = null, - var hidden_value_domain_whitelist: String? = null + var hidden_value_domain_whitelist: String? = null, ) : Serializable /** @@ -7088,8 +7087,8 @@ data class WriteUserAttribute ( * * @property value Value of attribute for user */ -data class WriteUserAttributeWithValue ( - var value: String? = null +data class WriteUserAttributeWithValue( + var value: String? = null, ) : Serializable /** @@ -7110,7 +7109,7 @@ data class WriteUserAttributeWithValue ( * @property alerts_links Remove Looker links from Alerts * @property folders_mentions Remove Looker mentions in home folder page when you don’t have any items saved */ -data class WriteWhitelabelConfiguration ( +data class WriteWhitelabelConfiguration( var logo_file: String? = null, var favicon_file: String? = null, var default_title: String? = null, @@ -7123,5 +7122,5 @@ data class WriteWhitelabelConfiguration ( var setup_mentions: Boolean? = null, var alerts_logo: Boolean? = null, var alerts_links: Boolean? = null, - var folders_mentions: Boolean? = null -) : Serializable \ No newline at end of file + var folders_mentions: Boolean? = null, +) : Serializable diff --git a/kotlin/src/main/com/looker/sdk/4.0/streams.kt b/kotlin/src/main/com/looker/sdk/4.0/streams.kt index 7eea5b442..e4c4b57f6 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/streams.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/streams.kt @@ -28,7 +28,6 @@ * 459 API methods */ - // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 package com.looker.sdk @@ -37,10 +36,8 @@ import java.util.* class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { - //region Alert: Alert - /** * Follow an alert. * @@ -49,13 +46,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /alerts/{alert_id}/follow -> ByteArray */ fun follow_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.post("/alerts/${path_alert_id}/follow", mapOf()) + return this.post("/alerts/$path_alert_id/follow", mapOf()) } - /** * Unfollow an alert. * @@ -64,13 +60,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /alerts/{alert_id}/follow -> ByteArray */ fun unfollow_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.delete("/alerts/${path_alert_id}/follow", mapOf()) + return this.delete("/alerts/$path_alert_id/follow", mapOf()) } - /** * ### Search Alerts * @@ -97,22 +92,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { condition_met: Boolean? = null, last_run_start: String? = null, last_run_end: String? = null, - all_owners: Boolean? = null - ) : SDKResponse { - return this.get("/alerts/search", - mapOf("limit" to limit, - "offset" to offset, - "group_by" to group_by, - "fields" to fields, - "disabled" to disabled, - "frequency" to frequency, - "condition_met" to condition_met, - "last_run_start" to last_run_start, - "last_run_end" to last_run_end, - "all_owners" to all_owners)) + all_owners: Boolean? = null, + ): SDKResponse { + return this.get( + "/alerts/search", + mapOf( + "limit" to limit, + "offset" to offset, + "group_by" to group_by, + "fields" to fields, + "disabled" to disabled, + "frequency" to frequency, + "condition_met" to condition_met, + "last_run_start" to last_run_start, + "last_run_end" to last_run_end, + "all_owners" to all_owners, + ), + ) } - /** * ### Get an alert by a given alert ID * @@ -121,13 +119,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /alerts/{alert_id} -> ByteArray */ fun get_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.get("/alerts/${path_alert_id}", mapOf()) + return this.get("/alerts/$path_alert_id", mapOf()) } - /** * ### Update an alert * # Required fields: `owner_id`, `field`, `destinations`, `comparison_type`, `threshold`, `cron` @@ -140,13 +137,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_alert( alert_id: String, - body: WriteAlert - ) : SDKResponse { + body: WriteAlert, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.put("/alerts/${path_alert_id}", mapOf(), body) + return this.put("/alerts/$path_alert_id", mapOf(), body) } - /** * ### Update select alert fields * # Available fields: `owner_id`, `is_disabled`, `disabled_reason`, `is_public`, `threshold` @@ -159,13 +155,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_alert_field( alert_id: String, - body: AlertPatch - ) : SDKResponse { + body: AlertPatch, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.patch("/alerts/${path_alert_id}", mapOf(), body) + return this.patch("/alerts/$path_alert_id", mapOf(), body) } - /** * ### Delete an alert by a given alert ID * @@ -174,13 +169,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /alerts/{alert_id} -> ByteArray */ fun delete_alert( - alert_id: String - ) : SDKResponse { + alert_id: String, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.delete("/alerts/${path_alert_id}", mapOf()) + return this.delete("/alerts/$path_alert_id", mapOf()) } - /** * ### Create a new alert and return details of the newly created object * @@ -223,12 +217,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /alerts -> ByteArray */ fun create_alert( - body: WriteAlert - ) : SDKResponse { - return this.post("/alerts", mapOf(), body) + body: WriteAlert, + ): SDKResponse { + return this.post("/alerts", mapOf(), body) } - /** * ### Enqueue an Alert by ID * @@ -239,14 +232,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun enqueue_alert( alert_id: String, - force: Boolean? = null - ) : SDKResponse { + force: Boolean? = null, + ): SDKResponse { val path_alert_id = encodeParam(alert_id) - return this.post("/alerts/${path_alert_id}/enqueue", - mapOf("force" to force)) + return this.post( + "/alerts/$path_alert_id/enqueue", + mapOf("force" to force), + ) } - /** * # Alert Notifications. * The endpoint returns all the alert notifications received by the user on email in the past 7 days. It also returns whether the notifications have been read by the user. @@ -258,14 +252,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun alert_notifications( limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get("/alert_notifications", - mapOf("limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get( + "/alert_notifications", + mapOf( + "limit" to limit, + "offset" to offset, + ), + ) } - /** * # Reads a Notification * The endpoint marks a given alert notification as read by the user, in case it wasn't already read. The AlertNotification model is updated for this purpose. It returns the notification as a response. @@ -275,17 +272,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /alert_notifications/{alert_notification_id} -> ByteArray */ fun read_alert_notification( - alert_notification_id: String - ) : SDKResponse { + alert_notification_id: String, + ): SDKResponse { val path_alert_notification_id = encodeParam(alert_notification_id) - return this.patch("/alert_notifications/${path_alert_notification_id}", mapOf()) + return this.patch("/alert_notifications/$path_alert_notification_id", mapOf()) } //endregion Alert: Alert //region ApiAuth: API Authentication - /** * ### Present client credentials to obtain an authorization token * @@ -323,14 +319,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun login( client_id: String? = null, - client_secret: String? = null - ) : SDKResponse { - return this.post("/login", - mapOf("client_id" to client_id, - "client_secret" to client_secret)) + client_secret: String? = null, + ): SDKResponse { + return this.post( + "/login", + mapOf( + "client_id" to client_id, + "client_secret" to client_secret, + ), + ) } - /** * ### Create an access token that runs as a given user. * @@ -356,30 +355,28 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun login_user( user_id: String, - associative: Boolean? = null - ) : SDKResponse { + associative: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/login/${path_user_id}", - mapOf("associative" to associative)) + return this.post( + "/login/$path_user_id", + mapOf("associative" to associative), + ) } - /** * ### Logout of the API and invalidate the current access token. * * DELETE /logout -> ByteArray */ - fun logout( - - ) : SDKResponse { - return this.delete("/logout", mapOf()) + fun logout(): SDKResponse { + return this.delete("/logout", mapOf()) } //endregion ApiAuth: API Authentication //region Artifact: Artifact Storage - /** * Get the maximum configured size of the entire artifact store, and the currently used storage in bytes. * @@ -390,13 +387,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /artifact/usage -> ByteArray */ @JvmOverloads fun artifact_usage( - fields: String? = null - ) : SDKResponse { - return this.get("/artifact/usage", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/artifact/usage", + mapOf("fields" to fields), + ) } - /** * Get all artifact namespaces and the count of artifacts in each namespace * @@ -411,15 +409,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun artifact_namespaces( fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get("/artifact/namespaces", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get( + "/artifact/namespaces", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Return the value of an artifact * @@ -434,14 +435,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun artifact_value( namespace: String, - key: String? = null - ) : SDKResponse { + key: String? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get("/artifact/${path_namespace}/value", - mapOf("key" to key)) + return this.get( + "/artifact/$path_namespace/value", + mapOf("key" to key), + ) } - /** * Remove *all* artifacts from a namespace. Purged artifacts are permanently deleted * @@ -452,13 +454,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /artifact/{namespace}/purge -> ByteArray */ fun purge_artifacts( - namespace: String - ) : SDKResponse { + namespace: String, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.delete("/artifact/${path_namespace}/purge", mapOf()) + return this.delete("/artifact/$path_namespace/purge", mapOf()) } - /** * ### Search all key/value pairs in a namespace for matching criteria. * @@ -497,20 +498,23 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { min_size: Long? = null, max_size: Long? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { + offset: Long? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get("/artifact/${path_namespace}/search", - mapOf("fields" to fields, - "key" to key, - "user_ids" to user_ids, - "min_size" to min_size, - "max_size" to max_size, - "limit" to limit, - "offset" to offset)) + return this.get( + "/artifact/$path_namespace/search", + mapOf( + "fields" to fields, + "key" to key, + "user_ids" to user_ids, + "min_size" to min_size, + "max_size" to max_size, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Get one or more artifacts * @@ -531,17 +535,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { key: String, fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { + offset: Long? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.get("/artifact/${path_namespace}", - mapOf("key" to key, - "fields" to fields, - "limit" to limit, - "offset" to offset)) + return this.get( + "/artifact/$path_namespace", + mapOf( + "key" to key, + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Delete one or more artifacts * @@ -556,14 +563,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_artifact( namespace: String, - key: String - ) : SDKResponse { + key: String, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.delete("/artifact/${path_namespace}", - mapOf("key" to key)) + return this.delete( + "/artifact/$path_namespace", + mapOf("key" to key), + ) } - /** * ### Create or update one or more artifacts * @@ -601,18 +609,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_artifacts( namespace: String, body: Array, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_namespace = encodeParam(namespace) - return this.put("/artifacts/${path_namespace}", - mapOf("fields" to fields), body) + return this.put( + "/artifacts/$path_namespace", + mapOf("fields" to fields), + body, + ) } //endregion Artifact: Artifact Storage //region Auth: Manage User Authentication Configuration - /** * ### Create an embed secret using the specified information. * @@ -623,12 +633,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /embed_config/secrets -> ByteArray */ @JvmOverloads fun create_embed_secret( - body: WriteEmbedSecret? = null - ) : SDKResponse { - return this.post("/embed_config/secrets", mapOf(), body) + body: WriteEmbedSecret? = null, + ): SDKResponse { + return this.post("/embed_config/secrets", mapOf(), body) } - /** * ### Delete an embed secret. * @@ -637,13 +646,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /embed_config/secrets/{embed_secret_id} -> ByteArray */ fun delete_embed_secret( - embed_secret_id: String - ) : SDKResponse { + embed_secret_id: String, + ): SDKResponse { val path_embed_secret_id = encodeParam(embed_secret_id) - return this.delete("/embed_config/secrets/${path_embed_secret_id}", mapOf()) + return this.delete("/embed_config/secrets/$path_embed_secret_id", mapOf()) } - /** * ### Create SSO Embed URL * @@ -685,12 +693,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/sso_url -> ByteArray */ fun create_sso_embed_url( - body: EmbedSsoParams - ) : SDKResponse { - return this.post("/embed/sso_url", mapOf(), body) + body: EmbedSsoParams, + ): SDKResponse { + return this.post("/embed/sso_url", mapOf(), body) } - /** * ### Create an Embed URL * @@ -723,12 +730,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/token_url/me -> ByteArray */ fun create_embed_url_as_me( - body: EmbedParams - ) : SDKResponse { - return this.post("/embed/token_url/me", mapOf(), body) + body: EmbedParams, + ): SDKResponse { + return this.post("/embed/token_url/me", mapOf(), body) } - /** * ### Acquire a cookieless embed session. * @@ -766,12 +772,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /embed/cookieless_session/acquire -> ByteArray */ fun acquire_embed_cookieless_session( - body: EmbedCookielessSessionAcquire - ) : SDKResponse { - return this.post("/embed/cookieless_session/acquire", mapOf(), body) + body: EmbedCookielessSessionAcquire, + ): SDKResponse { + return this.post("/embed/cookieless_session/acquire", mapOf(), body) } - /** * ### Delete cookieless embed session * @@ -784,13 +789,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /embed/cookieless_session/{session_reference_token} -> ByteArray */ fun delete_embed_cookieless_session( - session_reference_token: String - ) : SDKResponse { + session_reference_token: String, + ): SDKResponse { val path_session_reference_token = encodeParam(session_reference_token) - return this.delete("/embed/cookieless_session/${path_session_reference_token}", mapOf()) + return this.delete("/embed/cookieless_session/$path_session_reference_token", mapOf()) } - /** * ### Generate api and navigation tokens for a cookieless embed session * @@ -805,12 +809,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /embed/cookieless_session/generate_tokens -> ByteArray */ fun generate_tokens_for_cookieless_session( - body: EmbedCookielessSessionGenerateTokens - ) : SDKResponse { - return this.put("/embed/cookieless_session/generate_tokens", mapOf(), body) + body: EmbedCookielessSessionGenerateTokens, + ): SDKResponse { + return this.put("/embed/cookieless_session/generate_tokens", mapOf(), body) } - /** * ### Get the LDAP configuration. * @@ -831,13 +834,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /ldap_config -> ByteArray */ - fun ldap_config( - - ) : SDKResponse { - return this.get("/ldap_config", mapOf()) + fun ldap_config(): SDKResponse { + return this.get("/ldap_config", mapOf()) } - /** * ### Update the LDAP configuration. * @@ -856,12 +856,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /ldap_config -> ByteArray */ fun update_ldap_config( - body: WriteLDAPConfig - ) : SDKResponse { - return this.patch("/ldap_config", mapOf(), body) + body: WriteLDAPConfig, + ): SDKResponse { + return this.patch("/ldap_config", mapOf(), body) } - /** * ### Test the connection settings for an LDAP configuration. * @@ -887,12 +886,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_connection -> ByteArray */ fun test_ldap_config_connection( - body: WriteLDAPConfig - ) : SDKResponse { - return this.put("/ldap_config/test_connection", mapOf(), body) + body: WriteLDAPConfig, + ): SDKResponse { + return this.put("/ldap_config/test_connection", mapOf(), body) } - /** * ### Test the connection authentication settings for an LDAP configuration. * @@ -920,12 +918,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_auth -> ByteArray */ fun test_ldap_config_auth( - body: WriteLDAPConfig - ) : SDKResponse { - return this.put("/ldap_config/test_auth", mapOf(), body) + body: WriteLDAPConfig, + ): SDKResponse { + return this.put("/ldap_config/test_auth", mapOf(), body) } - /** * ### Test the user authentication settings for an LDAP configuration without authenticating the user. * @@ -942,12 +939,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_user_info -> ByteArray */ fun test_ldap_config_user_info( - body: WriteLDAPConfig - ) : SDKResponse { - return this.put("/ldap_config/test_user_info", mapOf(), body) + body: WriteLDAPConfig, + ): SDKResponse { + return this.put("/ldap_config/test_user_info", mapOf(), body) } - /** * ### Test the user authentication settings for an LDAP configuration. * @@ -964,12 +960,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /ldap_config/test_user_auth -> ByteArray */ fun test_ldap_config_user_auth( - body: WriteLDAPConfig - ) : SDKResponse { - return this.put("/ldap_config/test_user_auth", mapOf(), body) + body: WriteLDAPConfig, + ): SDKResponse { + return this.put("/ldap_config/test_user_auth", mapOf(), body) } - /** * ### Registers a mobile device. * # Required fields: [:device_token, :device_type] @@ -979,12 +974,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /mobile/device -> ByteArray */ fun register_mobile_device( - body: WriteMobileToken - ) : SDKResponse { - return this.post("/mobile/device", mapOf(), body) + body: WriteMobileToken, + ): SDKResponse { + return this.post("/mobile/device", mapOf(), body) } - /** * ### Updates the mobile device registration * @@ -993,13 +987,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /mobile/device/{device_id} -> ByteArray */ fun update_mobile_device_registration( - device_id: String - ) : SDKResponse { + device_id: String, + ): SDKResponse { val path_device_id = encodeParam(device_id) - return this.patch("/mobile/device/${path_device_id}", mapOf()) + return this.patch("/mobile/device/$path_device_id", mapOf()) } - /** * ### Deregister a mobile device. * @@ -1008,13 +1001,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /mobile/device/{device_id} -> ByteArray */ fun deregister_mobile_device( - device_id: String - ) : SDKResponse { + device_id: String, + ): SDKResponse { val path_device_id = encodeParam(device_id) - return this.delete("/mobile/device/${path_device_id}", mapOf()) + return this.delete("/mobile/device/$path_device_id", mapOf()) } - /** * ### List All OAuth Client Apps * @@ -1029,13 +1021,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /oauth_client_apps -> ByteArray */ @JvmOverloads fun all_oauth_client_apps( - fields: String? = null - ) : SDKResponse { - return this.get("/oauth_client_apps", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/oauth_client_apps", + mapOf("fields" to fields), + ) } - /** * ### Get Oauth Client App * @@ -1048,14 +1041,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun oauth_client_app( client_guid: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.get("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields)) + return this.get( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + ) } - /** * ### Register an OAuth2 Client App * @@ -1073,14 +1067,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun register_oauth_client_app( client_guid: String, body: WriteOauthClientApp, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.post("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields), body) + return this.post( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + body, + ) } - /** * ### Update OAuth2 Client App Details * @@ -1095,14 +1091,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_oauth_client_app( client_guid: String, body: WriteOauthClientApp, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.patch("/oauth_client_apps/${path_client_guid}", - mapOf("fields" to fields), body) + return this.patch( + "/oauth_client_apps/$path_client_guid", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete OAuth Client App * @@ -1119,13 +1117,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oauth_client_apps/{client_guid} -> ByteArray */ fun delete_oauth_client_app( - client_guid: String - ) : SDKResponse { + client_guid: String, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.delete("/oauth_client_apps/${path_client_guid}", mapOf()) + return this.delete("/oauth_client_apps/$path_client_guid", mapOf()) } - /** * ### Invalidate All Issued Tokens * @@ -1137,13 +1134,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oauth_client_apps/{client_guid}/tokens -> ByteArray */ fun invalidate_tokens( - client_guid: String - ) : SDKResponse { + client_guid: String, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) - return this.delete("/oauth_client_apps/${path_client_guid}/tokens", mapOf()) + return this.delete("/oauth_client_apps/$path_client_guid/tokens", mapOf()) } - /** * ### Activate an app for a user * @@ -1162,15 +1158,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun activate_app_user( client_guid: String, user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) val path_user_id = encodeParam(user_id) - return this.post("/oauth_client_apps/${path_client_guid}/users/${path_user_id}", - mapOf("fields" to fields)) + return this.post( + "/oauth_client_apps/$path_client_guid/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Deactivate an app for a user * @@ -1192,15 +1189,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun deactivate_app_user( client_guid: String, user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_client_guid = encodeParam(client_guid) val path_user_id = encodeParam(user_id) - return this.delete("/oauth_client_apps/${path_client_guid}/users/${path_user_id}", - mapOf("fields" to fields)) + return this.delete( + "/oauth_client_apps/$path_client_guid/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Get the OIDC configuration. * @@ -1217,13 +1215,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /oidc_config -> ByteArray */ - fun oidc_config( - - ) : SDKResponse { - return this.get("/oidc_config", mapOf()) + fun oidc_config(): SDKResponse { + return this.get("/oidc_config", mapOf()) } - /** * ### Update the OIDC configuration. * @@ -1240,12 +1235,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /oidc_config -> ByteArray */ fun update_oidc_config( - body: WriteOIDCConfig - ) : SDKResponse { - return this.patch("/oidc_config", mapOf(), body) + body: WriteOIDCConfig, + ): SDKResponse { + return this.patch("/oidc_config", mapOf(), body) } - /** * ### Get a OIDC test configuration by test_slug. * @@ -1254,13 +1248,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /oidc_test_configs/{test_slug} -> ByteArray */ fun oidc_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.get("/oidc_test_configs/${path_test_slug}", mapOf()) + return this.get("/oidc_test_configs/$path_test_slug", mapOf()) } - /** * ### Delete a OIDC test configuration. * @@ -1269,13 +1262,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /oidc_test_configs/{test_slug} -> ByteArray */ fun delete_oidc_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.delete("/oidc_test_configs/${path_test_slug}", mapOf()) + return this.delete("/oidc_test_configs/$path_test_slug", mapOf()) } - /** * ### Create a OIDC test configuration. * @@ -1284,24 +1276,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /oidc_test_configs -> ByteArray */ fun create_oidc_test_config( - body: WriteOIDCConfig - ) : SDKResponse { - return this.post("/oidc_test_configs", mapOf(), body) + body: WriteOIDCConfig, + ): SDKResponse { + return this.post("/oidc_test_configs", mapOf(), body) } - /** * ### Get password config. * * GET /password_config -> ByteArray */ - fun password_config( - - ) : SDKResponse { - return this.get("/password_config", mapOf()) + fun password_config(): SDKResponse { + return this.get("/password_config", mapOf()) } - /** * ### Update password config. * @@ -1310,24 +1298,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /password_config -> ByteArray */ fun update_password_config( - body: WritePasswordConfig - ) : SDKResponse { - return this.patch("/password_config", mapOf(), body) + body: WritePasswordConfig, + ): SDKResponse { + return this.patch("/password_config", mapOf(), body) } - /** * ### Force all credentials_email users to reset their login passwords upon their next login. * * PUT /password_config/force_password_reset_at_next_login_for_all_users -> ByteArray */ - fun force_password_reset_at_next_login_for_all_users( - - ) : SDKResponse { - return this.put("/password_config/force_password_reset_at_next_login_for_all_users", mapOf()) + fun force_password_reset_at_next_login_for_all_users(): SDKResponse { + return this.put("/password_config/force_password_reset_at_next_login_for_all_users", mapOf()) } - /** * ### Get the SAML configuration. * @@ -1344,13 +1328,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /saml_config -> ByteArray */ - fun saml_config( - - ) : SDKResponse { - return this.get("/saml_config", mapOf()) + fun saml_config(): SDKResponse { + return this.get("/saml_config", mapOf()) } - /** * ### Update the SAML configuration. * @@ -1367,12 +1348,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /saml_config -> ByteArray */ fun update_saml_config( - body: WriteSamlConfig - ) : SDKResponse { - return this.patch("/saml_config", mapOf(), body) + body: WriteSamlConfig, + ): SDKResponse { + return this.patch("/saml_config", mapOf(), body) } - /** * ### Get a SAML test configuration by test_slug. * @@ -1381,13 +1361,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /saml_test_configs/{test_slug} -> ByteArray */ fun saml_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.get("/saml_test_configs/${path_test_slug}", mapOf()) + return this.get("/saml_test_configs/$path_test_slug", mapOf()) } - /** * ### Delete a SAML test configuration. * @@ -1396,13 +1375,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /saml_test_configs/{test_slug} -> ByteArray */ fun delete_saml_test_config( - test_slug: String - ) : SDKResponse { + test_slug: String, + ): SDKResponse { val path_test_slug = encodeParam(test_slug) - return this.delete("/saml_test_configs/${path_test_slug}", mapOf()) + return this.delete("/saml_test_configs/$path_test_slug", mapOf()) } - /** * ### Create a SAML test configuration. * @@ -1411,12 +1389,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /saml_test_configs -> ByteArray */ fun create_saml_test_config( - body: WriteSamlConfig - ) : SDKResponse { - return this.post("/saml_test_configs", mapOf(), body) + body: WriteSamlConfig, + ): SDKResponse { + return this.post("/saml_test_configs", mapOf(), body) } - /** * ### Parse the given xml as a SAML IdP metadata document and return the result. * @@ -1425,12 +1402,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /parse_saml_idp_metadata -> ByteArray */ fun parse_saml_idp_metadata( - body: String - ) : SDKResponse { - return this.post("/parse_saml_idp_metadata", mapOf(), body) + body: String, + ): SDKResponse { + return this.post("/parse_saml_idp_metadata", mapOf(), body) } - /** * ### Fetch the given url and parse it as a SAML IdP metadata document and return the result. * Note that this requires that the url be public or at least at a location where the Looker instance @@ -1441,24 +1417,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /fetch_and_parse_saml_idp_metadata -> ByteArray */ fun fetch_and_parse_saml_idp_metadata( - body: String - ) : SDKResponse { - return this.post("/fetch_and_parse_saml_idp_metadata", mapOf(), body) + body: String, + ): SDKResponse { + return this.post("/fetch_and_parse_saml_idp_metadata", mapOf(), body) } - /** * ### Get session config. * * GET /session_config -> ByteArray */ - fun session_config( - - ) : SDKResponse { - return this.get("/session_config", mapOf()) + fun session_config(): SDKResponse { + return this.get("/session_config", mapOf()) } - /** * ### Update session config. * @@ -1467,12 +1439,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /session_config -> ByteArray */ fun update_session_config( - body: WriteSessionConfig - ) : SDKResponse { - return this.patch("/session_config", mapOf(), body) + body: WriteSessionConfig, + ): SDKResponse { + return this.patch("/session_config", mapOf(), body) } - /** * ### Get Support Access Allowlist Users * @@ -1483,13 +1454,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /support_access/allowlist -> ByteArray */ @JvmOverloads fun get_support_access_allowlist_entries( - fields: String? = null - ) : SDKResponse { - return this.get("/support_access/allowlist", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/support_access/allowlist", + mapOf("fields" to fields), + ) } - /** * ### Add Support Access Allowlist Users * @@ -1500,12 +1472,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /support_access/allowlist -> ByteArray */ fun add_support_access_allowlist_entries( - body: SupportAccessAddEntries - ) : SDKResponse { - return this.post("/support_access/allowlist", mapOf(), body) + body: SupportAccessAddEntries, + ): SDKResponse { + return this.post("/support_access/allowlist", mapOf(), body) } - /** * ### Delete Support Access Allowlist User * @@ -1516,13 +1487,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /support_access/allowlist/{entry_id} -> ByteArray */ fun delete_support_access_allowlist_entry( - entry_id: String - ) : SDKResponse { + entry_id: String, + ): SDKResponse { val path_entry_id = encodeParam(entry_id) - return this.delete("/support_access/allowlist/${path_entry_id}", mapOf()) + return this.delete("/support_access/allowlist/$path_entry_id", mapOf()) } - /** * ### Enable Support Access * @@ -1533,12 +1503,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /support_access/enable -> ByteArray */ fun enable_support_access( - body: SupportAccessEnable - ) : SDKResponse { - return this.put("/support_access/enable", mapOf(), body) + body: SupportAccessEnable, + ): SDKResponse { + return this.put("/support_access/enable", mapOf(), body) } - /** * ### Disable Support Access * @@ -1546,13 +1515,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * PUT /support_access/disable -> ByteArray */ - fun disable_support_access( - - ) : SDKResponse { - return this.put("/support_access/disable", mapOf()) + fun disable_support_access(): SDKResponse { + return this.put("/support_access/disable", mapOf()) } - /** * ### Support Access Status * @@ -1560,13 +1526,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /support_access/status -> ByteArray */ - fun support_access_status( - - ) : SDKResponse { - return this.get("/support_access/status", mapOf()) + fun support_access_status(): SDKResponse { + return this.get("/support_access/status", mapOf()) } - /** * ### Get currently locked-out users. * @@ -1575,13 +1538,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /user_login_lockouts -> ByteArray */ @JvmOverloads fun all_user_login_lockouts( - fields: String? = null - ) : SDKResponse { - return this.get("/user_login_lockouts", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/user_login_lockouts", + mapOf("fields" to fields), + ) } - /** * ### Search currently locked-out users. * @@ -1610,23 +1574,26 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { full_name: String? = null, email: String? = null, remote_id: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/user_login_lockouts/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "auth_type" to auth_type, - "full_name" to full_name, - "email" to email, - "remote_id" to remote_id, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/user_login_lockouts/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "auth_type" to auth_type, + "full_name" to full_name, + "email" to email, + "remote_id" to remote_id, + "filter_or" to filter_or, + ), + ) } - /** * ### Removes login lockout for the associated user. * @@ -1635,17 +1602,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /user_login_lockout/{key} -> ByteArray */ fun delete_user_login_lockout( - key: String - ) : SDKResponse { + key: String, + ): SDKResponse { val path_key = encodeParam(key) - return this.delete("/user_login_lockout/${path_key}", mapOf()) + return this.delete("/user_login_lockout/$path_key", mapOf()) } //endregion Auth: Manage User Authentication Configuration //region Board: Manage Boards - /** * ### Get information about all boards. * @@ -1654,13 +1620,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /boards -> ByteArray */ @JvmOverloads fun all_boards( - fields: String? = null - ) : SDKResponse { - return this.get("/boards", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/boards", + mapOf("fields" to fields), + ) } - /** * ### Create a new board. * @@ -1671,13 +1638,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board( body: WriteBoard, - fields: String? = null - ) : SDKResponse { - return this.post("/boards", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/boards", + mapOf("fields" to fields), + body, + ) } - /** * ### Search Boards * @@ -1733,26 +1702,29 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, limit: Long? = null, filter_or: Boolean? = null, - permission: String? = null - ) : SDKResponse { - return this.get("/boards/search", - mapOf("title" to title, - "created_at" to created_at, - "first_name" to first_name, - "last_name" to last_name, - "fields" to fields, - "favorited" to favorited, - "creator_id" to creator_id, - "sorts" to sorts, - "page" to page, - "per_page" to per_page, - "offset" to offset, - "limit" to limit, - "filter_or" to filter_or, - "permission" to permission)) + permission: String? = null, + ): SDKResponse { + return this.get( + "/boards/search", + mapOf( + "title" to title, + "created_at" to created_at, + "first_name" to first_name, + "last_name" to last_name, + "fields" to fields, + "favorited" to favorited, + "creator_id" to creator_id, + "sorts" to sorts, + "page" to page, + "per_page" to per_page, + "offset" to offset, + "limit" to limit, + "filter_or" to filter_or, + "permission" to permission, + ), + ) } - /** * ### Get information about a board. * @@ -1763,14 +1735,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board( board_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.get("/boards/${path_board_id}", - mapOf("fields" to fields)) + return this.get( + "/boards/$path_board_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board definition. * @@ -1783,14 +1756,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board( board_id: String, body: WriteBoard, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.patch("/boards/${path_board_id}", - mapOf("fields" to fields), body) + return this.patch( + "/boards/$path_board_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board. * @@ -1799,13 +1774,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /boards/{board_id} -> ByteArray */ fun delete_board( - board_id: String - ) : SDKResponse { + board_id: String, + ): SDKResponse { val path_board_id = encodeParam(board_id) - return this.delete("/boards/${path_board_id}", mapOf()) + return this.delete("/boards/$path_board_id", mapOf()) } - /** * ### Get information about all board items. * @@ -1818,15 +1792,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_board_items( fields: String? = null, sorts: String? = null, - board_section_id: String? = null - ) : SDKResponse { - return this.get("/board_items", - mapOf("fields" to fields, - "sorts" to sorts, - "board_section_id" to board_section_id)) + board_section_id: String? = null, + ): SDKResponse { + return this.get( + "/board_items", + mapOf( + "fields" to fields, + "sorts" to sorts, + "board_section_id" to board_section_id, + ), + ) } - /** * ### Create a new board item. * @@ -1837,13 +1814,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board_item( body: WriteBoardItem, - fields: String? = null - ) : SDKResponse { - return this.post("/board_items", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/board_items", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a board item. * @@ -1854,14 +1833,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board_item( board_item_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.get("/board_items/${path_board_item_id}", - mapOf("fields" to fields)) + return this.get( + "/board_items/$path_board_item_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board item definition. * @@ -1874,14 +1854,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board_item( board_item_id: String, body: WriteBoardItem, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.patch("/board_items/${path_board_item_id}", - mapOf("fields" to fields), body) + return this.patch( + "/board_items/$path_board_item_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board item. * @@ -1890,13 +1872,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /board_items/{board_item_id} -> ByteArray */ fun delete_board_item( - board_item_id: String - ) : SDKResponse { + board_item_id: String, + ): SDKResponse { val path_board_item_id = encodeParam(board_item_id) - return this.delete("/board_items/${path_board_item_id}", mapOf()) + return this.delete("/board_items/$path_board_item_id", mapOf()) } - /** * ### Get information about all board sections. * @@ -1907,14 +1888,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_board_sections( fields: String? = null, - sorts: String? = null - ) : SDKResponse { - return this.get("/board_sections", - mapOf("fields" to fields, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get( + "/board_sections", + mapOf( + "fields" to fields, + "sorts" to sorts, + ), + ) } - /** * ### Create a new board section. * @@ -1925,13 +1909,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_board_section( body: WriteBoardSection, - fields: String? = null - ) : SDKResponse { - return this.post("/board_sections", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/board_sections", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a board section. * @@ -1942,14 +1928,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun board_section( board_section_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.get("/board_sections/${path_board_section_id}", - mapOf("fields" to fields)) + return this.get( + "/board_sections/$path_board_section_id", + mapOf("fields" to fields), + ) } - /** * ### Update a board section definition. * @@ -1962,14 +1949,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_board_section( board_section_id: String, body: WriteBoardSection, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.patch("/board_sections/${path_board_section_id}", - mapOf("fields" to fields), body) + return this.patch( + "/board_sections/$path_board_section_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a board section. * @@ -1978,17 +1967,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /board_sections/{board_section_id} -> ByteArray */ fun delete_board_section( - board_section_id: String - ) : SDKResponse { + board_section_id: String, + ): SDKResponse { val path_board_section_id = encodeParam(board_section_id) - return this.delete("/board_sections/${path_board_section_id}", mapOf()) + return this.delete("/board_sections/$path_board_section_id", mapOf()) } //endregion Board: Manage Boards //region ColorCollection: Manage Color Collections - /** * ### Get an array of all existing Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2004,13 +1992,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections -> ByteArray */ @JvmOverloads fun all_color_collections( - fields: String? = null - ) : SDKResponse { - return this.get("/color_collections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/color_collections", + mapOf("fields" to fields), + ) } - /** * ### Create a custom color collection with the specified information * @@ -2027,12 +2016,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /color_collections -> ByteArray */ fun create_color_collection( - body: WriteColorCollection - ) : SDKResponse { - return this.post("/color_collections", mapOf(), body) + body: WriteColorCollection, + ): SDKResponse { + return this.post("/color_collections", mapOf(), body) } - /** * ### Get an array of all existing **Custom** Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2046,13 +2034,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections/custom -> ByteArray */ @JvmOverloads fun color_collections_custom( - fields: String? = null - ) : SDKResponse { - return this.get("/color_collections/custom", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/color_collections/custom", + mapOf("fields" to fields), + ) } - /** * ### Get an array of all existing **Standard** Color Collections * Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection) @@ -2066,13 +2055,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /color_collections/standard -> ByteArray */ @JvmOverloads fun color_collections_standard( - fields: String? = null - ) : SDKResponse { - return this.get("/color_collections/standard", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/color_collections/standard", + mapOf("fields" to fields), + ) } - /** * ### Get the default color collection * @@ -2082,13 +2072,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /color_collections/default -> ByteArray */ - fun default_color_collection( - - ) : SDKResponse { - return this.get("/color_collections/default", mapOf()) + fun default_color_collection(): SDKResponse { + return this.get("/color_collections/default", mapOf()) } - /** * ### Set the global default Color Collection by ID * @@ -2100,13 +2087,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /color_collections/default -> ByteArray */ fun set_default_color_collection( - collection_id: String - ) : SDKResponse { - return this.put("/color_collections/default", - mapOf("collection_id" to collection_id)) + collection_id: String, + ): SDKResponse { + return this.put( + "/color_collections/default", + mapOf("collection_id" to collection_id), + ) } - /** * ### Get a Color Collection by ID * @@ -2126,14 +2114,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun color_collection( collection_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.get("/color_collections/${path_collection_id}", - mapOf("fields" to fields)) + return this.get( + "/color_collections/$path_collection_id", + mapOf("fields" to fields), + ) } - /** * ### Update a custom color collection by id. * **Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors. @@ -2145,13 +2134,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_color_collection( collection_id: String, - body: WriteColorCollection - ) : SDKResponse { + body: WriteColorCollection, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.patch("/color_collections/${path_collection_id}", mapOf(), body) + return this.patch("/color_collections/$path_collection_id", mapOf(), body) } - /** * ### Delete a custom color collection by id * @@ -2167,29 +2155,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /color_collections/{collection_id} -> ByteArray */ fun delete_color_collection( - collection_id: String - ) : SDKResponse { + collection_id: String, + ): SDKResponse { val path_collection_id = encodeParam(collection_id) - return this.delete("/color_collections/${path_collection_id}", mapOf()) + return this.delete("/color_collections/$path_collection_id", mapOf()) } //endregion ColorCollection: Manage Color Collections //region Config: Manage General Configuration - /** * Get the current Cloud Storage Configuration. * * GET /cloud_storage -> ByteArray */ - fun cloud_storage_configuration( - - ) : SDKResponse { - return this.get("/cloud_storage", mapOf()) + fun cloud_storage_configuration(): SDKResponse { + return this.get("/cloud_storage", mapOf()) } - /** * Update the current Cloud Storage Configuration. * @@ -2198,25 +2182,21 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /cloud_storage -> ByteArray */ fun update_cloud_storage_configuration( - body: WriteBackupConfiguration - ) : SDKResponse { - return this.patch("/cloud_storage", mapOf(), body) + body: WriteBackupConfiguration, + ): SDKResponse { + return this.patch("/cloud_storage", mapOf(), body) } - /** * ### Get the current status and content of custom welcome emails * * GET /custom_welcome_email -> ByteArray */ @Deprecated(message = "Deprecated method") - fun custom_welcome_email( - - ) : SDKResponse { - return this.get("/custom_welcome_email", mapOf()) + fun custom_welcome_email(): SDKResponse { + return this.get("/custom_welcome_email", mapOf()) } - /** * Update custom welcome email setting and values. Optionally send a test email with the new content to the currently logged in user. * @@ -2226,15 +2206,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /custom_welcome_email -> ByteArray */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun update_custom_welcome_email( + @JvmOverloads + fun update_custom_welcome_email( body: CustomWelcomeEmail, - send_test_welcome_email: Boolean? = null - ) : SDKResponse { - return this.patch("/custom_welcome_email", - mapOf("send_test_welcome_email" to send_test_welcome_email), body) + send_test_welcome_email: Boolean? = null, + ): SDKResponse { + return this.patch( + "/custom_welcome_email", + mapOf("send_test_welcome_email" to send_test_welcome_email), + body, + ) } - /** * Requests to this endpoint will send a welcome email with the custom content provided in the body to the currently logged in user. * @@ -2243,24 +2226,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /custom_welcome_email_test -> ByteArray */ fun update_custom_welcome_email_test( - body: WelcomeEmailTest - ) : SDKResponse { - return this.put("/custom_welcome_email_test", mapOf(), body) + body: WelcomeEmailTest, + ): SDKResponse { + return this.put("/custom_welcome_email_test", mapOf(), body) } - /** * ### Retrieve the value for whether or not digest emails is enabled * * GET /digest_emails_enabled -> ByteArray */ - fun digest_emails_enabled( - - ) : SDKResponse { - return this.get("/digest_emails_enabled", mapOf()) + fun digest_emails_enabled(): SDKResponse { + return this.get("/digest_emails_enabled", mapOf()) } - /** * ### Update the setting for enabling/disabling digest emails * @@ -2269,12 +2248,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /digest_emails_enabled -> ByteArray */ fun update_digest_emails_enabled( - body: DigestEmails - ) : SDKResponse { - return this.patch("/digest_emails_enabled", mapOf(), body) + body: DigestEmails, + ): SDKResponse { + return this.patch("/digest_emails_enabled", mapOf(), body) } - /** * ### Trigger the generation of digest email records and send them to Looker's internal system. This does not send * any actual emails, it generates records containing content which may be of interest for users who have become inactive. @@ -2282,13 +2260,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * POST /digest_email_send -> ByteArray */ - fun create_digest_email_send( - - ) : SDKResponse { - return this.post("/digest_email_send", mapOf()) + fun create_digest_email_send(): SDKResponse { + return this.post("/digest_email_send", mapOf()) } - /** * ### Get Egress IP Addresses * @@ -2296,25 +2271,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /public_egress_ip_addresses -> ByteArray */ - fun public_egress_ip_addresses( - - ) : SDKResponse { - return this.get("/public_egress_ip_addresses", mapOf()) + fun public_egress_ip_addresses(): SDKResponse { + return this.get("/public_egress_ip_addresses", mapOf()) } - /** * ### Set the menu item name and content for internal help resources * * GET /internal_help_resources_content -> ByteArray */ - fun internal_help_resources_content( - - ) : SDKResponse { - return this.get("/internal_help_resources_content", mapOf()) + fun internal_help_resources_content(): SDKResponse { + return this.get("/internal_help_resources_content", mapOf()) } - /** * Update internal help resources content * @@ -2323,24 +2292,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /internal_help_resources_content -> ByteArray */ fun update_internal_help_resources_content( - body: WriteInternalHelpResourcesContent - ) : SDKResponse { - return this.patch("/internal_help_resources_content", mapOf(), body) + body: WriteInternalHelpResourcesContent, + ): SDKResponse { + return this.patch("/internal_help_resources_content", mapOf(), body) } - /** * ### Get and set the options for internal help resources * * GET /internal_help_resources_enabled -> ByteArray */ - fun internal_help_resources( - - ) : SDKResponse { - return this.get("/internal_help_resources_enabled", mapOf()) + fun internal_help_resources(): SDKResponse { + return this.get("/internal_help_resources_enabled", mapOf()) } - /** * Update internal help resources settings * @@ -2349,24 +2314,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /internal_help_resources -> ByteArray */ fun update_internal_help_resources( - body: WriteInternalHelpResources - ) : SDKResponse { - return this.patch("/internal_help_resources", mapOf(), body) + body: WriteInternalHelpResources, + ): SDKResponse { + return this.patch("/internal_help_resources", mapOf(), body) } - /** * ### Get all legacy features. * * GET /legacy_features -> ByteArray */ - fun all_legacy_features( - - ) : SDKResponse { - return this.get("/legacy_features", mapOf()) + fun all_legacy_features(): SDKResponse { + return this.get("/legacy_features", mapOf()) } - /** * ### Get information about the legacy feature with a specific id. * @@ -2375,13 +2336,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /legacy_features/{legacy_feature_id} -> ByteArray */ fun legacy_feature( - legacy_feature_id: String - ) : SDKResponse { + legacy_feature_id: String, + ): SDKResponse { val path_legacy_feature_id = encodeParam(legacy_feature_id) - return this.get("/legacy_features/${path_legacy_feature_id}", mapOf()) + return this.get("/legacy_features/$path_legacy_feature_id", mapOf()) } - /** * ### Update information about the legacy feature with a specific id. * @@ -2392,37 +2352,30 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_legacy_feature( legacy_feature_id: String, - body: WriteLegacyFeature - ) : SDKResponse { + body: WriteLegacyFeature, + ): SDKResponse { val path_legacy_feature_id = encodeParam(legacy_feature_id) - return this.patch("/legacy_features/${path_legacy_feature_id}", mapOf(), body) + return this.patch("/legacy_features/$path_legacy_feature_id", mapOf(), body) } - /** * ### Get a list of locales that Looker supports. * * GET /locales -> ByteArray */ - fun all_locales( - - ) : SDKResponse { - return this.get("/locales", mapOf()) + fun all_locales(): SDKResponse { + return this.get("/locales", mapOf()) } - /** * ### Get all mobile settings. * * GET /mobile/settings -> ByteArray */ - fun mobile_settings( - - ) : SDKResponse { - return this.get("/mobile/settings", mapOf()) + fun mobile_settings(): SDKResponse { + return this.get("/mobile/settings", mapOf()) } - /** * ### Get Looker Settings * @@ -2445,13 +2398,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /setting -> ByteArray */ @JvmOverloads fun get_setting( - fields: String? = null - ) : SDKResponse { - return this.get("/setting", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/setting", + mapOf("fields" to fields), + ) } - /** * ### Configure Looker Settings * @@ -2478,13 +2432,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun set_setting( body: WriteSetting, - fields: String? = null - ) : SDKResponse { - return this.patch("/setting", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.patch( + "/setting", + mapOf("fields" to fields), + body, + ) } - /** * ### Configure SMTP Settings * This API allows users to configure the SMTP settings on the Looker instance. @@ -2495,12 +2451,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /smtp_settings -> ByteArray */ fun set_smtp_settings( - body: SmtpSettings - ) : SDKResponse { - return this.post("/smtp_settings", mapOf(), body) + body: SmtpSettings, + ): SDKResponse { + return this.post("/smtp_settings", mapOf(), body) } - /** * ### Get current SMTP status. * @@ -2509,25 +2464,23 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /smtp_status -> ByteArray */ @JvmOverloads fun smtp_status( - fields: String? = null - ) : SDKResponse { - return this.get("/smtp_status", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/smtp_status", + mapOf("fields" to fields), + ) } - /** * ### Get a list of timezones that Looker supports (e.g. useful for scheduling tasks). * * GET /timezones -> ByteArray */ - fun all_timezones( - - ) : SDKResponse { - return this.get("/timezones", mapOf()) + fun all_timezones(): SDKResponse { + return this.get("/timezones", mapOf()) } - /** * ### Get information about all API versions supported by this Looker instance. * @@ -2536,13 +2489,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /versions -> ByteArray */ @JvmOverloads fun versions( - fields: String? = null - ) : SDKResponse { - return this.get("/versions", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/versions", + mapOf("fields" to fields), + ) } - /** * ### Get an API specification for this Looker instance. * @@ -2555,14 +2509,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun api_spec( api_version: String, - specification: String - ) : SDKResponse { + specification: String, + ): SDKResponse { val path_api_version = encodeParam(api_version) val path_specification = encodeParam(specification) - return this.get("/api_spec/${path_api_version}/${path_specification}", mapOf()) + return this.get("/api_spec/$path_api_version/$path_specification", mapOf()) } - /** * ### This feature is enabled only by special license. * ### Gets the whitelabel configuration, which includes hiding documentation links, custom favicon uploading, etc. @@ -2572,14 +2525,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /whitelabel_configuration -> ByteArray */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun whitelabel_configuration( - fields: String? = null - ) : SDKResponse { - return this.get("/whitelabel_configuration", - mapOf("fields" to fields)) + @JvmOverloads + fun whitelabel_configuration( + fields: String? = null, + ): SDKResponse { + return this.get( + "/whitelabel_configuration", + mapOf("fields" to fields), + ) } - /** * ### Update the whitelabel configuration * @@ -2589,16 +2544,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @Deprecated(message = "Deprecated method") fun update_whitelabel_configuration( - body: WriteWhitelabelConfiguration - ) : SDKResponse { - return this.put("/whitelabel_configuration", mapOf(), body) + body: WriteWhitelabelConfiguration, + ): SDKResponse { + return this.put("/whitelabel_configuration", mapOf(), body) } //endregion Config: Manage General Configuration //region Connection: Manage Database Connections - /** * ### Get information about all connections. * @@ -2607,13 +2561,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /connections -> ByteArray */ @JvmOverloads fun all_connections( - fields: String? = null - ) : SDKResponse { - return this.get("/connections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/connections", + mapOf("fields" to fields), + ) } - /** * ### Create a connection using the specified configuration. * @@ -2622,12 +2577,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /connections -> ByteArray */ fun create_connection( - body: WriteDBConnection - ) : SDKResponse { - return this.post("/connections", mapOf(), body) + body: WriteDBConnection, + ): SDKResponse { + return this.post("/connections", mapOf(), body) } - /** * ### Get information about a connection. * @@ -2638,14 +2592,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun connection( connection_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}", - mapOf("fields" to fields)) + return this.get( + "/connections/$path_connection_name", + mapOf("fields" to fields), + ) } - /** * ### Update a connection using the specified configuration. * @@ -2656,13 +2611,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_connection( connection_name: String, - body: WriteDBConnection - ) : SDKResponse { + body: WriteDBConnection, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.patch("/connections/${path_connection_name}", mapOf(), body) + return this.patch("/connections/$path_connection_name", mapOf(), body) } - /** * ### Delete a connection. * @@ -2671,13 +2625,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /connections/{connection_name} -> ByteArray */ fun delete_connection( - connection_name: String - ) : SDKResponse { + connection_name: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.delete("/connections/${path_connection_name}", mapOf()) + return this.delete("/connections/$path_connection_name", mapOf()) } - /** * ### Delete a connection override. * @@ -2688,14 +2641,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_connection_override( connection_name: String, - override_context: String - ) : SDKResponse { + override_context: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) val path_override_context = encodeParam(override_context) - return this.delete("/connections/${path_connection_name}/connection_override/${path_override_context}", mapOf()) + return this.delete("/connections/$path_connection_name/connection_override/$path_override_context", mapOf()) } - /** * ### Test an existing connection. * @@ -2713,14 +2665,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun test_connection( connection_name: String, - tests: DelimArray? = null - ) : SDKResponse { + tests: DelimArray? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.put("/connections/${path_connection_name}/test", - mapOf("tests" to tests)) + return this.put( + "/connections/$path_connection_name/test", + mapOf("tests" to tests), + ) } - /** * ### Test a connection configuration. * @@ -2738,13 +2691,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun test_connection_config( body: WriteDBConnection, - tests: DelimArray? = null - ) : SDKResponse { - return this.put("/connections/test", - mapOf("tests" to tests), body) + tests: DelimArray? = null, + ): SDKResponse { + return this.put( + "/connections/test", + mapOf("tests" to tests), + body, + ) } - /** * ### Get information about all dialects. * @@ -2753,13 +2708,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /dialect_info -> ByteArray */ @JvmOverloads fun all_dialect_infos( - fields: String? = null - ) : SDKResponse { - return this.get("/dialect_info", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/dialect_info", + mapOf("fields" to fields), + ) } - /** * ### Get all External OAuth Applications. * @@ -2772,14 +2728,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_external_oauth_applications( name: String? = null, - client_id: String? = null - ) : SDKResponse { - return this.get("/external_oauth_applications", - mapOf("name" to name, - "client_id" to client_id)) + client_id: String? = null, + ): SDKResponse { + return this.get( + "/external_oauth_applications", + mapOf( + "name" to name, + "client_id" to client_id, + ), + ) } - /** * ### Create an OAuth Application using the specified configuration. * @@ -2790,12 +2749,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /external_oauth_applications -> ByteArray */ fun create_external_oauth_application( - body: WriteExternalOauthApplication - ) : SDKResponse { - return this.post("/external_oauth_applications", mapOf(), body) + body: WriteExternalOauthApplication, + ): SDKResponse { + return this.post("/external_oauth_applications", mapOf(), body) } - /** * ### Create OAuth User state. * @@ -2804,12 +2762,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /external_oauth_applications/user_state -> ByteArray */ fun create_oauth_application_user_state( - body: CreateOAuthApplicationUserStateRequest - ) : SDKResponse { - return this.post("/external_oauth_applications/user_state", mapOf(), body) + body: CreateOAuthApplicationUserStateRequest, + ): SDKResponse { + return this.post("/external_oauth_applications/user_state", mapOf(), body) } - /** * ### Get information about all SSH Servers. * @@ -2818,13 +2775,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_servers -> ByteArray */ @JvmOverloads fun all_ssh_servers( - fields: String? = null - ) : SDKResponse { - return this.get("/ssh_servers", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/ssh_servers", + mapOf("fields" to fields), + ) } - /** * ### Create an SSH Server. * @@ -2833,12 +2791,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /ssh_servers -> ByteArray */ fun create_ssh_server( - body: WriteSshServer - ) : SDKResponse { - return this.post("/ssh_servers", mapOf(), body) + body: WriteSshServer, + ): SDKResponse { + return this.post("/ssh_servers", mapOf(), body) } - /** * ### Get information about an SSH Server. * @@ -2847,13 +2804,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_server/{ssh_server_id} -> ByteArray */ fun ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.get("/ssh_server/${path_ssh_server_id}", mapOf()) + return this.get("/ssh_server/$path_ssh_server_id", mapOf()) } - /** * ### Update an SSH Server. * @@ -2864,13 +2820,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_ssh_server( ssh_server_id: String, - body: WriteSshServer - ) : SDKResponse { + body: WriteSshServer, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.patch("/ssh_server/${path_ssh_server_id}", mapOf(), body) + return this.patch("/ssh_server/$path_ssh_server_id", mapOf(), body) } - /** * ### Delete an SSH Server. * @@ -2879,13 +2834,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /ssh_server/{ssh_server_id} -> ByteArray */ fun delete_ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.delete("/ssh_server/${path_ssh_server_id}", mapOf()) + return this.delete("/ssh_server/$path_ssh_server_id", mapOf()) } - /** * ### Test the SSH Server * @@ -2894,13 +2848,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_server/{ssh_server_id}/test -> ByteArray */ fun test_ssh_server( - ssh_server_id: String - ) : SDKResponse { + ssh_server_id: String, + ): SDKResponse { val path_ssh_server_id = encodeParam(ssh_server_id) - return this.get("/ssh_server/${path_ssh_server_id}/test", mapOf()) + return this.get("/ssh_server/$path_ssh_server_id/test", mapOf()) } - /** * ### Get information about all SSH Tunnels. * @@ -2909,13 +2862,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnels -> ByteArray */ @JvmOverloads fun all_ssh_tunnels( - fields: String? = null - ) : SDKResponse { - return this.get("/ssh_tunnels", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/ssh_tunnels", + mapOf("fields" to fields), + ) } - /** * ### Create an SSH Tunnel * @@ -2924,12 +2878,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /ssh_tunnels -> ByteArray */ fun create_ssh_tunnel( - body: WriteSshTunnel - ) : SDKResponse { - return this.post("/ssh_tunnels", mapOf(), body) + body: WriteSshTunnel, + ): SDKResponse { + return this.post("/ssh_tunnels", mapOf(), body) } - /** * ### Get information about an SSH Tunnel. * @@ -2938,13 +2891,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnel/{ssh_tunnel_id} -> ByteArray */ fun ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.get("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf()) + return this.get("/ssh_tunnel/$path_ssh_tunnel_id", mapOf()) } - /** * ### Update an SSH Tunnel * @@ -2955,13 +2907,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_ssh_tunnel( ssh_tunnel_id: String, - body: WriteSshTunnel - ) : SDKResponse { + body: WriteSshTunnel, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.patch("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf(), body) + return this.patch("/ssh_tunnel/$path_ssh_tunnel_id", mapOf(), body) } - /** * ### Delete an SSH Tunnel * @@ -2970,13 +2921,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /ssh_tunnel/{ssh_tunnel_id} -> ByteArray */ fun delete_ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.delete("/ssh_tunnel/${path_ssh_tunnel_id}", mapOf()) + return this.delete("/ssh_tunnel/$path_ssh_tunnel_id", mapOf()) } - /** * ### Test the SSH Tunnel * @@ -2985,13 +2935,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /ssh_tunnel/{ssh_tunnel_id}/test -> ByteArray */ fun test_ssh_tunnel( - ssh_tunnel_id: String - ) : SDKResponse { + ssh_tunnel_id: String, + ): SDKResponse { val path_ssh_tunnel_id = encodeParam(ssh_tunnel_id) - return this.get("/ssh_tunnel/${path_ssh_tunnel_id}/test", mapOf()) + return this.get("/ssh_tunnel/$path_ssh_tunnel_id/test", mapOf()) } - /** * ### Get the SSH public key * @@ -2999,17 +2948,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /ssh_public_key -> ByteArray */ - fun ssh_public_key( - - ) : SDKResponse { - return this.get("/ssh_public_key", mapOf()) + fun ssh_public_key(): SDKResponse { + return this.get("/ssh_public_key", mapOf()) } //endregion Connection: Manage Database Connections //region Content: Manage Content - /** * ### Search Favorite Content * @@ -3059,23 +3005,26 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, fields: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/content_favorite/search", - mapOf("id" to id, - "user_id" to user_id, - "content_metadata_id" to content_metadata_id, - "dashboard_id" to dashboard_id, - "look_id" to look_id, - "board_id" to board_id, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "fields" to fields, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/content_favorite/search", + mapOf( + "id" to id, + "user_id" to user_id, + "content_metadata_id" to content_metadata_id, + "dashboard_id" to dashboard_id, + "look_id" to look_id, + "board_id" to board_id, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "fields" to fields, + "filter_or" to filter_or, + ), + ) } - /** * ### Get favorite content by its id * @@ -3086,14 +3035,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun content_favorite( content_favorite_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_content_favorite_id = encodeParam(content_favorite_id) - return this.get("/content_favorite/${path_content_favorite_id}", - mapOf("fields" to fields)) + return this.get( + "/content_favorite/$path_content_favorite_id", + mapOf("fields" to fields), + ) } - /** * ### Delete favorite content * @@ -3102,13 +3052,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /content_favorite/{content_favorite_id} -> ByteArray */ fun delete_content_favorite( - content_favorite_id: String - ) : SDKResponse { + content_favorite_id: String, + ): SDKResponse { val path_content_favorite_id = encodeParam(content_favorite_id) - return this.delete("/content_favorite/${path_content_favorite_id}", mapOf()) + return this.delete("/content_favorite/$path_content_favorite_id", mapOf()) } - /** * ### Create favorite content * @@ -3117,12 +3066,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /content_favorite -> ByteArray */ fun create_content_favorite( - body: WriteContentFavorite - ) : SDKResponse { - return this.post("/content_favorite", mapOf(), body) + body: WriteContentFavorite, + ): SDKResponse { + return this.post("/content_favorite", mapOf(), body) } - /** * ### Get information about all content metadata in a space. * @@ -3133,14 +3081,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_content_metadatas( parent_id: String, - fields: String? = null - ) : SDKResponse { - return this.get("/content_metadata", - mapOf("parent_id" to parent_id, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/content_metadata", + mapOf( + "parent_id" to parent_id, + "fields" to fields, + ), + ) } - /** * ### Get information about an individual content metadata record. * @@ -3151,14 +3102,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun content_metadata( content_metadata_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_content_metadata_id = encodeParam(content_metadata_id) - return this.get("/content_metadata/${path_content_metadata_id}", - mapOf("fields" to fields)) + return this.get( + "/content_metadata/$path_content_metadata_id", + mapOf("fields" to fields), + ) } - /** * ### Move a piece of content. * @@ -3169,13 +3121,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_content_metadata( content_metadata_id: String, - body: WriteContentMeta - ) : SDKResponse { + body: WriteContentMeta, + ): SDKResponse { val path_content_metadata_id = encodeParam(content_metadata_id) - return this.patch("/content_metadata/${path_content_metadata_id}", mapOf(), body) + return this.patch("/content_metadata/$path_content_metadata_id", mapOf(), body) } - /** * ### All content metadata access records for a content metadata item. * @@ -3186,14 +3137,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_content_metadata_accesses( content_metadata_id: String, - fields: String? = null - ) : SDKResponse { - return this.get("/content_metadata_access", - mapOf("content_metadata_id" to content_metadata_id, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/content_metadata_access", + mapOf( + "content_metadata_id" to content_metadata_id, + "fields" to fields, + ), + ) } - /** * ### Create content metadata access. * @@ -3204,13 +3158,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_content_metadata_access( body: ContentMetaGroupUser, - send_boards_notification_email: Boolean? = null - ) : SDKResponse { - return this.post("/content_metadata_access", - mapOf("send_boards_notification_email" to send_boards_notification_email), body) + send_boards_notification_email: Boolean? = null, + ): SDKResponse { + return this.post( + "/content_metadata_access", + mapOf("send_boards_notification_email" to send_boards_notification_email), + body, + ) } - /** * ### Update type of access for content metadata. * @@ -3221,13 +3177,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_content_metadata_access( content_metadata_access_id: String, - body: ContentMetaGroupUser - ) : SDKResponse { + body: ContentMetaGroupUser, + ): SDKResponse { val path_content_metadata_access_id = encodeParam(content_metadata_access_id) - return this.put("/content_metadata_access/${path_content_metadata_access_id}", mapOf(), body) + return this.put("/content_metadata_access/$path_content_metadata_access_id", mapOf(), body) } - /** * ### Remove content metadata access. * @@ -3236,13 +3191,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /content_metadata_access/{content_metadata_access_id} -> ByteArray */ fun delete_content_metadata_access( - content_metadata_access_id: String - ) : SDKResponse { + content_metadata_access_id: String, + ): SDKResponse { val path_content_metadata_access_id = encodeParam(content_metadata_access_id) - return this.delete("/content_metadata_access/${path_content_metadata_access_id}", mapOf()) + return this.delete("/content_metadata_access/$path_content_metadata_access_id", mapOf()) } - /** * ### Search across looks, dashboards, and lookml dashboards. The terms field will be matched against the * title and description of the content and the closest results are returned. Content that has been frequently @@ -3271,19 +3225,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, page: Long? = null, - per_page: Long? = null - ) : SDKResponse { + per_page: Long? = null, + ): SDKResponse { val path_terms = encodeParam(terms) - return this.get("/content/${path_terms}", - mapOf("fields" to fields, - "types" to types, - "limit" to limit, - "offset" to offset, - "page" to page, - "per_page" to per_page)) + return this.get( + "/content/$path_terms", + mapOf( + "fields" to fields, + "types" to types, + "limit" to limit, + "offset" to offset, + "page" to page, + "per_page" to per_page, + ), + ) } - /** * ### Get an image representing the contents of a dashboard or look. * @@ -3307,18 +3264,21 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { reload: String? = null, format: String? = null, width: Long? = null, - height: Long? = null - ) : SDKResponse { + height: Long? = null, + ): SDKResponse { val path_type = encodeParam(type) val path_resource_id = encodeParam(resource_id) - return this.get("/content_thumbnail/${path_type}/${path_resource_id}", - mapOf("reload" to reload, - "format" to format, - "width" to width, - "height" to height)) + return this.get( + "/content_thumbnail/$path_type/$path_resource_id", + mapOf( + "reload" to reload, + "format" to format, + "width" to width, + "height" to height, + ), + ) } - /** * ### Validate All Content * @@ -3330,13 +3290,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /content_validation -> ByteArray */ @JvmOverloads fun content_validation( - fields: String? = null - ) : SDKResponse { - return this.get("/content_validation", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/content_validation", + mapOf("fields" to fields), + ) } - /** * ### Search Content Views * @@ -3390,25 +3351,28 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/content_view/search", - mapOf("view_count" to view_count, - "group_id" to group_id, - "look_id" to look_id, - "dashboard_id" to dashboard_id, - "content_metadata_id" to content_metadata_id, - "start_of_week_date" to start_of_week_date, - "all_time" to all_time, - "user_id" to user_id, - "fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/content_view/search", + mapOf( + "view_count" to view_count, + "group_id" to group_id, + "look_id" to look_id, + "dashboard_id" to dashboard_id, + "content_metadata_id" to content_metadata_id, + "start_of_week_date" to start_of_week_date, + "all_time" to all_time, + "user_id" to user_id, + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Get a vector image representing the contents of a dashboard or look. * @@ -3424,22 +3388,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /vector_thumbnail/{type}/{resource_id} -> ByteArray */ @Deprecated(message = "Deprecated method") - @JvmOverloads fun vector_thumbnail( + @JvmOverloads + fun vector_thumbnail( type: String, resource_id: String, - reload: String? = null - ) : SDKResponse { + reload: String? = null, + ): SDKResponse { val path_type = encodeParam(type) val path_resource_id = encodeParam(resource_id) - return this.get("/vector_thumbnail/${path_type}/${path_resource_id}", - mapOf("reload" to reload)) + return this.get( + "/vector_thumbnail/$path_type/$path_resource_id", + mapOf("reload" to reload), + ) } //endregion Content: Manage Content //region Dashboard: Manage Dashboards - /** * ### Get information about all active dashboards. * @@ -3454,13 +3420,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards -> ByteArray */ @JvmOverloads fun all_dashboards( - fields: String? = null - ) : SDKResponse { - return this.get("/dashboards", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/dashboards", + mapOf("fields" to fields), + ) } - /** * ### Create a new dashboard * @@ -3482,12 +3449,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards -> ByteArray */ fun create_dashboard( - body: WriteDashboard - ) : SDKResponse { - return this.post("/dashboards", mapOf(), body) + body: WriteDashboard, + ): SDKResponse { + return this.post("/dashboards", mapOf(), body) } - /** * ### Search Dashboards * @@ -3560,31 +3526,34 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/dashboards/search", - mapOf("id" to id, - "slug" to slug, - "title" to title, - "description" to description, - "content_favorite_id" to content_favorite_id, - "folder_id" to folder_id, - "deleted" to deleted, - "user_id" to user_id, - "view_count" to view_count, - "content_metadata_id" to content_metadata_id, - "curate" to curate, - "last_viewed_at" to last_viewed_at, - "fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/dashboards/search", + mapOf( + "id" to id, + "slug" to slug, + "title" to title, + "description" to description, + "content_favorite_id" to content_favorite_id, + "folder_id" to folder_id, + "deleted" to deleted, + "user_id" to user_id, + "view_count" to view_count, + "content_metadata_id" to content_metadata_id, + "curate" to curate, + "last_viewed_at" to last_viewed_at, + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Import a LookML dashboard to a space as a UDD * Creates a UDD (a dashboard which exists in the Looker database rather than as a LookML file) from the LookML dashboard @@ -3610,15 +3579,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { lookml_dashboard_id: String, space_id: String, body: WriteDashboard? = null, - raw_locale: Boolean? = null - ) : SDKResponse { + raw_locale: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) val path_space_id = encodeParam(space_id) - return this.post("/dashboards/${path_lookml_dashboard_id}/import/${path_space_id}", - mapOf("raw_locale" to raw_locale), body) + return this.post( + "/dashboards/$path_lookml_dashboard_id/import/$path_space_id", + mapOf("raw_locale" to raw_locale), + body, + ) } - /** * ### Update all linked dashboards to match the specified LookML dashboard. * @@ -3639,14 +3610,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun sync_lookml_dashboard( lookml_dashboard_id: String, body: WriteDashboard, - raw_locale: Boolean? = null - ) : SDKResponse { + raw_locale: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) - return this.patch("/dashboards/${path_lookml_dashboard_id}/sync", - mapOf("raw_locale" to raw_locale), body) + return this.patch( + "/dashboards/$path_lookml_dashboard_id/sync", + mapOf("raw_locale" to raw_locale), + body, + ) } - /** * ### Get information about a dashboard * @@ -3663,14 +3636,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/${path_dashboard_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboards/$path_dashboard_id", + mapOf("fields" to fields), + ) } - /** * ### Update a dashboard * @@ -3690,13 +3664,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_dashboard( dashboard_id: String, - body: WriteDashboard - ) : SDKResponse { + body: WriteDashboard, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.patch("/dashboards/${path_dashboard_id}", mapOf(), body) + return this.patch("/dashboards/$path_dashboard_id", mapOf(), body) } - /** * ### Delete the dashboard with the specified id * @@ -3711,13 +3684,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboards/{dashboard_id} -> ByteArray */ fun delete_dashboard( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.delete("/dashboards/${path_dashboard_id}", mapOf()) + return this.delete("/dashboards/$path_dashboard_id", mapOf()) } - /** * ### Get Aggregate Table LookML for Each Query on a Dahboard * @@ -3728,13 +3700,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards/aggregate_table_lookml/{dashboard_id} -> ByteArray */ fun dashboard_aggregate_table_lookml( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/aggregate_table_lookml/${path_dashboard_id}", mapOf()) + return this.get("/dashboards/aggregate_table_lookml/$path_dashboard_id", mapOf()) } - /** * ### Get lookml of a UDD * @@ -3745,13 +3716,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /dashboards/lookml/{dashboard_id} -> ByteArray */ fun dashboard_lookml( - dashboard_id: String - ) : SDKResponse { + dashboard_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/lookml/${path_dashboard_id}", mapOf()) + return this.get("/dashboards/lookml/$path_dashboard_id", mapOf()) } - /** * ### Move an existing dashboard * @@ -3767,14 +3737,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun move_dashboard( dashboard_id: String, - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.patch("/dashboards/${path_dashboard_id}/move", - mapOf("folder_id" to folder_id)) + return this.patch( + "/dashboards/$path_dashboard_id/move", + mapOf("folder_id" to folder_id), + ) } - /** * ### Creates a dashboard object based on LookML Dashboard YAML, and returns the details of the newly created dashboard. * @@ -3797,12 +3768,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards/lookml -> ByteArray */ fun import_dashboard_from_lookml( - body: WriteDashboardLookml - ) : SDKResponse { - return this.post("/dashboards/lookml", mapOf(), body) + body: WriteDashboardLookml, + ): SDKResponse { + return this.post("/dashboards/lookml", mapOf(), body) } - /** * # DEPRECATED: Use [import_dashboard_from_lookml()](#!/Dashboard/import_dashboard_from_lookml) * @@ -3811,12 +3781,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /dashboards/from_lookml -> ByteArray */ fun create_dashboard_from_lookml( - body: WriteDashboardLookml - ) : SDKResponse { - return this.post("/dashboards/from_lookml", mapOf(), body) + body: WriteDashboardLookml, + ): SDKResponse { + return this.post("/dashboards/from_lookml", mapOf(), body) } - /** * ### Copy an existing dashboard * @@ -3835,14 +3804,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun copy_dashboard( dashboard_id: String, - folder_id: String? = null - ) : SDKResponse { + folder_id: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.post("/dashboards/${path_dashboard_id}/copy", - mapOf("folder_id" to folder_id)) + return this.post( + "/dashboards/$path_dashboard_id/copy", + mapOf("folder_id" to folder_id), + ) } - /** * ### Search Dashboard Elements * @@ -3886,19 +3856,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { deleted: Boolean? = null, fields: String? = null, filter_or: Boolean? = null, - sorts: String? = null - ) : SDKResponse { - return this.get("/dashboard_elements/search", - mapOf("dashboard_id" to dashboard_id, - "look_id" to look_id, - "title" to title, - "deleted" to deleted, - "fields" to fields, - "filter_or" to filter_or, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get( + "/dashboard_elements/search", + mapOf( + "dashboard_id" to dashboard_id, + "look_id" to look_id, + "title" to title, + "deleted" to deleted, + "fields" to fields, + "filter_or" to filter_or, + "sorts" to sorts, + ), + ) } - /** * ### Get information about the dashboard element with a specific id. * @@ -3909,14 +3882,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_element( dashboard_element_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.get("/dashboard_elements/${path_dashboard_element_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_elements/$path_dashboard_element_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard element with a specific id. * @@ -3929,14 +3903,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_element( dashboard_element_id: String, body: WriteDashboardElement, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.patch("/dashboard_elements/${path_dashboard_element_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_elements/$path_dashboard_element_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard element with a specific id. * @@ -3945,13 +3921,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_elements/{dashboard_element_id} -> ByteArray */ fun delete_dashboard_element( - dashboard_element_id: String - ) : SDKResponse { + dashboard_element_id: String, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) - return this.delete("/dashboard_elements/${path_dashboard_element_id}", mapOf()) + return this.delete("/dashboard_elements/$path_dashboard_element_id", mapOf()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -3962,14 +3937,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_elements( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/${path_dashboard_id}/dashboard_elements", - mapOf("fields" to fields)) + return this.get( + "/dashboards/$path_dashboard_id/dashboard_elements", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard element on the dashboard with a specific id. * @@ -3982,14 +3958,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_dashboard_element( body: WriteDashboardElement, fields: String? = null, - apply_filters: Boolean? = null - ) : SDKResponse { - return this.post("/dashboard_elements", - mapOf("fields" to fields, - "apply_filters" to apply_filters), body) + apply_filters: Boolean? = null, + ): SDKResponse { + return this.post( + "/dashboard_elements", + mapOf( + "fields" to fields, + "apply_filters" to apply_filters, + ), + body, + ) } - /** * ### Get information about the dashboard filters with a specific id. * @@ -4000,14 +3980,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_filter( dashboard_filter_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.get("/dashboard_filters/${path_dashboard_filter_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_filters/$path_dashboard_filter_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard filter with a specific id. * @@ -4020,14 +4001,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_filter( dashboard_filter_id: String, body: WriteDashboardFilter, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.patch("/dashboard_filters/${path_dashboard_filter_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_filters/$path_dashboard_filter_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard filter with a specific id. * @@ -4036,13 +4019,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_filters/{dashboard_filter_id} -> ByteArray */ fun delete_dashboard_filter( - dashboard_filter_id: String - ) : SDKResponse { + dashboard_filter_id: String, + ): SDKResponse { val path_dashboard_filter_id = encodeParam(dashboard_filter_id) - return this.delete("/dashboard_filters/${path_dashboard_filter_id}", mapOf()) + return this.delete("/dashboard_filters/$path_dashboard_filter_id", mapOf()) } - /** * ### Get information about all the dashboard filters on a dashboard with a specific id. * @@ -4053,14 +4035,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_filters( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/${path_dashboard_id}/dashboard_filters", - mapOf("fields" to fields)) + return this.get( + "/dashboards/$path_dashboard_id/dashboard_filters", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard filter on the dashboard with a specific id. * @@ -4071,13 +4054,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_dashboard_filter( body: WriteCreateDashboardFilter, - fields: String? = null - ) : SDKResponse { - return this.post("/dashboard_filters", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/dashboard_filters", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about the dashboard elements with a specific id. * @@ -4088,14 +4073,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout_component( dashboard_layout_component_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_component_id = encodeParam(dashboard_layout_component_id) - return this.get("/dashboard_layout_components/${path_dashboard_layout_component_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_layout_components/$path_dashboard_layout_component_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard element with a specific id. * @@ -4108,14 +4094,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_layout_component( dashboard_layout_component_id: String, body: WriteDashboardLayoutComponent, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_component_id = encodeParam(dashboard_layout_component_id) - return this.patch("/dashboard_layout_components/${path_dashboard_layout_component_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_layout_components/$path_dashboard_layout_component_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about all the dashboard layout components for a dashboard layout with a specific id. * @@ -4126,14 +4114,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout_dashboard_layout_components( dashboard_layout_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.get("/dashboard_layouts/${path_dashboard_layout_id}/dashboard_layout_components", - mapOf("fields" to fields)) + return this.get( + "/dashboard_layouts/$path_dashboard_layout_id/dashboard_layout_components", + mapOf("fields" to fields), + ) } - /** * ### Get information about the dashboard layouts with a specific id. * @@ -4144,14 +4133,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_layout( dashboard_layout_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.get("/dashboard_layouts/${path_dashboard_layout_id}", - mapOf("fields" to fields)) + return this.get( + "/dashboard_layouts/$path_dashboard_layout_id", + mapOf("fields" to fields), + ) } - /** * ### Update the dashboard layout with a specific id. * @@ -4164,14 +4154,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_dashboard_layout( dashboard_layout_id: String, body: WriteDashboardLayout, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.patch("/dashboard_layouts/${path_dashboard_layout_id}", - mapOf("fields" to fields), body) + return this.patch( + "/dashboard_layouts/$path_dashboard_layout_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a dashboard layout with a specific id. * @@ -4180,13 +4172,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /dashboard_layouts/{dashboard_layout_id} -> ByteArray */ fun delete_dashboard_layout( - dashboard_layout_id: String - ) : SDKResponse { + dashboard_layout_id: String, + ): SDKResponse { val path_dashboard_layout_id = encodeParam(dashboard_layout_id) - return this.delete("/dashboard_layouts/${path_dashboard_layout_id}", mapOf()) + return this.delete("/dashboard_layouts/$path_dashboard_layout_id", mapOf()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -4197,14 +4188,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun dashboard_dashboard_layouts( dashboard_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/dashboards/${path_dashboard_id}/dashboard_layouts", - mapOf("fields" to fields)) + return this.get( + "/dashboards/$path_dashboard_id/dashboard_layouts", + mapOf("fields" to fields), + ) } - /** * ### Create a dashboard layout on the dashboard with a specific id. * @@ -4215,17 +4207,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_dashboard_layout( body: WriteDashboardLayout, - fields: String? = null - ) : SDKResponse { - return this.post("/dashboard_layouts", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/dashboard_layouts", + mapOf("fields" to fields), + body, + ) } //endregion Dashboard: Manage Dashboards //region DataAction: Run Data Actions - /** * Perform a data action. The data action object can be obtained from query results, and used to perform an arbitrary action. * @@ -4234,12 +4228,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /data_actions -> ByteArray */ fun perform_data_action( - body: DataActionRequest - ) : SDKResponse { - return this.post("/data_actions", mapOf(), body) + body: DataActionRequest, + ): SDKResponse { + return this.post("/data_actions", mapOf(), body) } - /** * For some data actions, the remote server may supply a form requesting further user input. This endpoint takes a data action, asks the remote server to generate a form for it, and returns that form to you for presentation to the user. * @@ -4248,28 +4241,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /data_actions/form -> ByteArray */ fun fetch_remote_data_action_form( - body: Map - ) : SDKResponse { - return this.post("/data_actions/form", mapOf(), body) + body: Map, + ): SDKResponse { + return this.post("/data_actions/form", mapOf(), body) } //endregion DataAction: Run Data Actions //region Datagroup: Manage Datagroups - /** * ### Get information about all datagroups. * * GET /datagroups -> ByteArray */ - fun all_datagroups( - - ) : SDKResponse { - return this.get("/datagroups", mapOf()) + fun all_datagroups(): SDKResponse { + return this.get("/datagroups", mapOf()) } - /** * ### Get information about a datagroup. * @@ -4278,13 +4267,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /datagroups/{datagroup_id} -> ByteArray */ fun datagroup( - datagroup_id: String - ) : SDKResponse { + datagroup_id: String, + ): SDKResponse { val path_datagroup_id = encodeParam(datagroup_id) - return this.get("/datagroups/${path_datagroup_id}", mapOf()) + return this.get("/datagroups/$path_datagroup_id", mapOf()) } - /** * ### Update a datagroup using the specified params. * @@ -4295,17 +4283,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_datagroup( datagroup_id: String, - body: WriteDatagroup - ) : SDKResponse { + body: WriteDatagroup, + ): SDKResponse { val path_datagroup_id = encodeParam(datagroup_id) - return this.patch("/datagroups/${path_datagroup_id}", mapOf(), body) + return this.patch("/datagroups/$path_datagroup_id", mapOf(), body) } //endregion Datagroup: Manage Datagroups //region DerivedTable: View Derived Table graphs - /** * ### Discover information about derived tables * @@ -4318,15 +4305,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun graph_derived_tables_for_model( model: String, format: String? = null, - color: String? = null - ) : SDKResponse { + color: String? = null, + ): SDKResponse { val path_model = encodeParam(model) - return this.get("/derived_table/graph/model/${path_model}", - mapOf("format" to format, - "color" to color)) + return this.get( + "/derived_table/graph/model/$path_model", + mapOf( + "format" to format, + "color" to color, + ), + ) } - /** * ### Get the subgraph representing this derived table and its dependencies. * @@ -4339,15 +4329,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun graph_derived_tables_for_view( view: String, models: String? = null, - workspace: String? = null - ) : SDKResponse { + workspace: String? = null, + ): SDKResponse { val path_view = encodeParam(view) - return this.get("/derived_table/graph/view/${path_view}", - mapOf("models" to models, - "workspace" to workspace)) + return this.get( + "/derived_table/graph/view/$path_view", + mapOf( + "models" to models, + "workspace" to workspace, + ), + ) } - /** * Enqueue materialization for a PDT with the given model name and view name * @@ -4366,18 +4359,21 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { force_rebuild: String? = null, force_full_incremental: String? = null, workspace: String? = null, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) - return this.get("/derived_table/${path_model_name}/${path_view_name}/start", - mapOf("force_rebuild" to force_rebuild, - "force_full_incremental" to force_full_incremental, - "workspace" to workspace, - "source" to source)) + return this.get( + "/derived_table/$path_model_name/$path_view_name/start", + mapOf( + "force_rebuild" to force_rebuild, + "force_full_incremental" to force_full_incremental, + "workspace" to workspace, + "source" to source, + ), + ) } - /** * Check status of PDT materialization * @@ -4386,13 +4382,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /derived_table/{materialization_id}/status -> ByteArray */ fun check_pdt_build( - materialization_id: String - ) : SDKResponse { + materialization_id: String, + ): SDKResponse { val path_materialization_id = encodeParam(materialization_id) - return this.get("/derived_table/${path_materialization_id}/status", mapOf()) + return this.get("/derived_table/$path_materialization_id/status", mapOf()) } - /** * Stop a PDT materialization * @@ -4403,18 +4398,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun stop_pdt_build( materialization_id: String, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_materialization_id = encodeParam(materialization_id) - return this.get("/derived_table/${path_materialization_id}/stop", - mapOf("source" to source)) + return this.get( + "/derived_table/$path_materialization_id/stop", + mapOf("source" to source), + ) } //endregion DerivedTable: View Derived Table graphs //region Folder: Manage Folders - /** * Search for folders by creator id, parent id, name, etc * @@ -4445,24 +4441,27 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { parent_id: String? = null, creator_id: String? = null, filter_or: Boolean? = null, - is_shared_root: Boolean? = null - ) : SDKResponse { - return this.get("/folders/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "name" to name, - "id" to id, - "parent_id" to parent_id, - "creator_id" to creator_id, - "filter_or" to filter_or, - "is_shared_root" to is_shared_root)) + is_shared_root: Boolean? = null, + ): SDKResponse { + return this.get( + "/folders/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "name" to name, + "id" to id, + "parent_id" to parent_id, + "creator_id" to creator_id, + "filter_or" to filter_or, + "is_shared_root" to is_shared_root, + ), + ) } - /** * ### Get information about the folder with a specific id. * @@ -4473,14 +4472,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id", + mapOf("fields" to fields), + ) } - /** * ### Update the folder with a specific id. * @@ -4491,13 +4491,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_folder( folder_id: String, - body: UpdateFolder - ) : SDKResponse { + body: UpdateFolder, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.patch("/folders/${path_folder_id}", mapOf(), body) + return this.patch("/folders/$path_folder_id", mapOf(), body) } - /** * ### Delete the folder with a specific id including any children folders. * **DANGER** this will delete all looks and dashboards in the folder. @@ -4507,13 +4506,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /folders/{folder_id} -> ByteArray */ fun delete_folder( - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.delete("/folders/${path_folder_id}", mapOf()) + return this.delete("/folders/$path_folder_id", mapOf()) } - /** * ### Get information about all folders. * @@ -4527,13 +4525,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /folders -> ByteArray */ @JvmOverloads fun all_folders( - fields: String? = null - ) : SDKResponse { - return this.get("/folders", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/folders", + mapOf("fields" to fields), + ) } - /** * ### Create a folder with specified information. * @@ -4545,12 +4544,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /folders -> ByteArray */ fun create_folder( - body: CreateFolder - ) : SDKResponse { - return this.post("/folders", mapOf(), body) + body: CreateFolder, + ): SDKResponse { + return this.post("/folders", mapOf(), body) } - /** * ### Get the children of a folder. * @@ -4571,19 +4569,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { per_page: Long? = null, limit: Long? = null, offset: Long? = null, - sorts: String? = null - ) : SDKResponse { + sorts: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/children", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts)) + return this.get( + "/folders/$path_folder_id/children", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + ), + ) } - /** * ### Search the children of a folder * @@ -4598,16 +4599,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { folder_id: String, fields: String? = null, sorts: String? = null, - name: String? = null - ) : SDKResponse { + name: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/children/search", - mapOf("fields" to fields, - "sorts" to sorts, - "name" to name)) + return this.get( + "/folders/$path_folder_id/children/search", + mapOf( + "fields" to fields, + "sorts" to sorts, + "name" to name, + ), + ) } - /** * ### Get the parent of a folder * @@ -4618,14 +4622,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_parent( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/parent", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id/parent", + mapOf("fields" to fields), + ) } - /** * ### Get the ancestors of a folder * @@ -4636,14 +4641,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_ancestors( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/ancestors", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id/ancestors", + mapOf("fields" to fields), + ) } - /** * ### Get all looks in a folder. * In API 3.x, this will return all looks in a folder, including looks in the trash. @@ -4656,14 +4662,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_looks( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/looks", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id/looks", + mapOf("fields" to fields), + ) } - /** * ### Get the dashboards in a folder * @@ -4674,18 +4681,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun folder_dashboards( folder_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_folder_id = encodeParam(folder_id) - return this.get("/folders/${path_folder_id}/dashboards", - mapOf("fields" to fields)) + return this.get( + "/folders/$path_folder_id/dashboards", + mapOf("fields" to fields), + ) } //endregion Folder: Manage Folders //region Group: Manage Groups - /** * ### Get information about all groups. * @@ -4710,21 +4718,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { sorts: String? = null, ids: DelimArray? = null, content_metadata_id: String? = null, - can_add_to_content_metadata: Boolean? = null - ) : SDKResponse { - return this.get("/groups", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "ids" to ids, - "content_metadata_id" to content_metadata_id, - "can_add_to_content_metadata" to can_add_to_content_metadata)) + can_add_to_content_metadata: Boolean? = null, + ): SDKResponse { + return this.get( + "/groups", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "ids" to ids, + "content_metadata_id" to content_metadata_id, + "can_add_to_content_metadata" to can_add_to_content_metadata, + ), + ) } - /** * ### Creates a new group (admin only). * @@ -4735,13 +4746,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_group( body: WriteGroup, - fields: String? = null - ) : SDKResponse { - return this.post("/groups", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/groups", + mapOf("fields" to fields), + body, + ) } - /** * ### Search groups * @@ -4791,22 +4804,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get("/groups/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get( + "/groups/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Search groups include roles * @@ -4856,22 +4872,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get("/groups/search/with_roles", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get( + "/groups/search/with_roles", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Search groups include hierarchy * @@ -4922,22 +4941,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, external_group_id: String? = null, externally_managed: Boolean? = null, - externally_orphaned: Boolean? = null - ) : SDKResponse { - return this.get("/groups/search/with_hierarchy", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or, - "id" to id, - "name" to name, - "external_group_id" to external_group_id, - "externally_managed" to externally_managed, - "externally_orphaned" to externally_orphaned)) + externally_orphaned: Boolean? = null, + ): SDKResponse { + return this.get( + "/groups/search/with_hierarchy", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + "id" to id, + "name" to name, + "external_group_id" to external_group_id, + "externally_managed" to externally_managed, + "externally_orphaned" to externally_orphaned, + ), + ) } - /** * ### Get information about a group. * @@ -4948,14 +4970,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun group( group_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get("/groups/${path_group_id}", - mapOf("fields" to fields)) + return this.get( + "/groups/$path_group_id", + mapOf("fields" to fields), + ) } - /** * ### Updates the a group (admin only). * @@ -4968,14 +4991,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_group( group_id: String, body: WriteGroup, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.patch("/groups/${path_group_id}", - mapOf("fields" to fields), body) + return this.patch( + "/groups/$path_group_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Deletes a group (admin only). * @@ -4984,13 +5009,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /groups/{group_id} -> ByteArray */ fun delete_group( - group_id: String - ) : SDKResponse { + group_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.delete("/groups/${path_group_id}", mapOf()) + return this.delete("/groups/$path_group_id", mapOf()) } - /** * ### Get information about all the groups in a group * @@ -5001,14 +5025,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_group_groups( group_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get("/groups/${path_group_id}/groups", - mapOf("fields" to fields)) + return this.get( + "/groups/$path_group_id/groups", + mapOf("fields" to fields), + ) } - /** * ### Adds a new group to a group. * @@ -5019,13 +5044,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun add_group_group( group_id: String, - body: GroupIdForGroupInclusion - ) : SDKResponse { + body: GroupIdForGroupInclusion, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.post("/groups/${path_group_id}/groups", mapOf(), body) + return this.post("/groups/$path_group_id/groups", mapOf(), body) } - /** * ### Get information about all the users directly included in a group. * @@ -5046,19 +5070,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { per_page: Long? = null, limit: Long? = null, offset: Long? = null, - sorts: String? = null - ) : SDKResponse { + sorts: String? = null, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.get("/groups/${path_group_id}/users", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts)) + return this.get( + "/groups/$path_group_id/users", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + ), + ) } - /** * ### Adds a new user to a group. * @@ -5069,13 +5096,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun add_group_user( group_id: String, - body: GroupIdForGroupUserInclusion - ) : SDKResponse { + body: GroupIdForGroupUserInclusion, + ): SDKResponse { val path_group_id = encodeParam(group_id) - return this.post("/groups/${path_group_id}/users", mapOf(), body) + return this.post("/groups/$path_group_id/users", mapOf(), body) } - /** * ### Removes a user from a group. * @@ -5086,14 +5112,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_group_user( group_id: String, - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_id = encodeParam(user_id) - return this.delete("/groups/${path_group_id}/users/${path_user_id}", mapOf()) + return this.delete("/groups/$path_group_id/users/$path_user_id", mapOf()) } - /** * ### Removes a group from a group. * @@ -5104,14 +5129,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_group_from_group( group_id: String, - deleting_group_id: String - ) : SDKResponse { + deleting_group_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_deleting_group_id = encodeParam(deleting_group_id) - return this.delete("/groups/${path_group_id}/groups/${path_deleting_group_id}", mapOf()) + return this.delete("/groups/$path_group_id/groups/$path_deleting_group_id", mapOf()) } - /** * ### Set the value of a user attribute for a group. * @@ -5126,14 +5150,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fun update_user_attribute_group_value( group_id: String, user_attribute_id: String, - body: UserAttributeGroupValue - ) : SDKResponse { + body: UserAttributeGroupValue, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/groups/${path_group_id}/attribute_values/${path_user_attribute_id}", mapOf(), body) + return this.patch("/groups/$path_group_id/attribute_values/$path_user_attribute_id", mapOf(), body) } - /** * ### Remove a user attribute value from a group. * @@ -5144,18 +5167,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_attribute_group_value( group_id: String, - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_group_id = encodeParam(group_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/groups/${path_group_id}/attribute_values/${path_user_attribute_id}", mapOf()) + return this.delete("/groups/$path_group_id/attribute_values/$path_user_attribute_id", mapOf()) } //endregion Group: Manage Groups //region Homepage: Manage Homepage - /** * ### Get information about the primary homepage's sections. * @@ -5164,17 +5186,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /primary_homepage_sections -> ByteArray */ @JvmOverloads fun all_primary_homepage_sections( - fields: String? = null - ) : SDKResponse { - return this.get("/primary_homepage_sections", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/primary_homepage_sections", + mapOf("fields" to fields), + ) } //endregion Homepage: Manage Homepage //region Integration: Manage Integrations - /** * ### Get information about all Integration Hubs. * @@ -5183,13 +5206,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /integration_hubs -> ByteArray */ @JvmOverloads fun all_integration_hubs( - fields: String? = null - ) : SDKResponse { - return this.get("/integration_hubs", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/integration_hubs", + mapOf("fields" to fields), + ) } - /** * ### Create a new Integration Hub. * @@ -5202,13 +5226,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_integration_hub( body: WriteIntegrationHub, - fields: String? = null - ) : SDKResponse { - return this.post("/integration_hubs", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/integration_hubs", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a Integration Hub. * @@ -5219,14 +5245,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun integration_hub( integration_hub_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.get("/integration_hubs/${path_integration_hub_id}", - mapOf("fields" to fields)) + return this.get( + "/integration_hubs/$path_integration_hub_id", + mapOf("fields" to fields), + ) } - /** * ### Update a Integration Hub definition. * @@ -5241,14 +5268,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_integration_hub( integration_hub_id: String, body: WriteIntegrationHub, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.patch("/integration_hubs/${path_integration_hub_id}", - mapOf("fields" to fields), body) + return this.patch( + "/integration_hubs/$path_integration_hub_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a Integration Hub. * @@ -5257,13 +5286,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /integration_hubs/{integration_hub_id} -> ByteArray */ fun delete_integration_hub( - integration_hub_id: String - ) : SDKResponse { + integration_hub_id: String, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.delete("/integration_hubs/${path_integration_hub_id}", mapOf()) + return this.delete("/integration_hubs/$path_integration_hub_id", mapOf()) } - /** * Accepts the legal agreement for a given integration hub. This only works for integration hubs that have legal_agreement_required set to true and legal_agreement_signed set to false. * @@ -5272,13 +5300,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /integration_hubs/{integration_hub_id}/accept_legal_agreement -> ByteArray */ fun accept_integration_hub_legal_agreement( - integration_hub_id: String - ) : SDKResponse { + integration_hub_id: String, + ): SDKResponse { val path_integration_hub_id = encodeParam(integration_hub_id) - return this.post("/integration_hubs/${path_integration_hub_id}/accept_legal_agreement", mapOf()) + return this.post("/integration_hubs/$path_integration_hub_id/accept_legal_agreement", mapOf()) } - /** * ### Get information about all Integrations. * @@ -5289,14 +5316,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_integrations( fields: String? = null, - integration_hub_id: String? = null - ) : SDKResponse { - return this.get("/integrations", - mapOf("fields" to fields, - "integration_hub_id" to integration_hub_id)) + integration_hub_id: String? = null, + ): SDKResponse { + return this.get( + "/integrations", + mapOf( + "fields" to fields, + "integration_hub_id" to integration_hub_id, + ), + ) } - /** * ### Get information about a Integration. * @@ -5307,14 +5337,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun integration( integration_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.get("/integrations/${path_integration_id}", - mapOf("fields" to fields)) + return this.get( + "/integrations/$path_integration_id", + mapOf("fields" to fields), + ) } - /** * ### Update parameters on a Integration. * @@ -5327,14 +5358,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_integration( integration_id: String, body: WriteIntegration, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.patch("/integrations/${path_integration_id}", - mapOf("fields" to fields), body) + return this.patch( + "/integrations/$path_integration_id", + mapOf("fields" to fields), + body, + ) } - /** * Returns the Integration form for presentation to the user. * @@ -5345,13 +5378,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun fetch_integration_form( integration_id: String, - body: Map? = null - ) : SDKResponse { + body: Map? = null, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.post("/integrations/${path_integration_id}/form", mapOf(), body) + return this.post("/integrations/$path_integration_id/form", mapOf(), body) } - /** * Tests the integration to make sure all the settings are working. * @@ -5360,17 +5392,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /integrations/{integration_id}/test -> ByteArray */ fun test_integration( - integration_id: String - ) : SDKResponse { + integration_id: String, + ): SDKResponse { val path_integration_id = encodeParam(integration_id) - return this.post("/integrations/${path_integration_id}/test", mapOf()) + return this.post("/integrations/$path_integration_id/test", mapOf()) } //endregion Integration: Manage Integrations //region Look: Run and Manage Looks - /** * ### Get information about all active Looks * @@ -5385,13 +5416,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /looks -> ByteArray */ @JvmOverloads fun all_looks( - fields: String? = null - ) : SDKResponse { - return this.get("/looks", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/looks", + mapOf("fields" to fields), + ) } - /** * ### Create a Look * @@ -5408,13 +5440,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_look( body: WriteLookWithQuery, - fields: String? = null - ) : SDKResponse { - return this.post("/looks", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/looks", + mapOf("fields" to fields), + body, + ) } - /** * ### Search Looks * @@ -5483,30 +5517,33 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/looks/search", - mapOf("id" to id, - "title" to title, - "description" to description, - "content_favorite_id" to content_favorite_id, - "folder_id" to folder_id, - "user_id" to user_id, - "view_count" to view_count, - "deleted" to deleted, - "query_id" to query_id, - "curate" to curate, - "last_viewed_at" to last_viewed_at, - "fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/looks/search", + mapOf( + "id" to id, + "title" to title, + "description" to description, + "content_favorite_id" to content_favorite_id, + "folder_id" to folder_id, + "user_id" to user_id, + "view_count" to view_count, + "deleted" to deleted, + "query_id" to query_id, + "curate" to curate, + "last_viewed_at" to last_viewed_at, + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "filter_or" to filter_or, + ), + ) } - /** * ### Get a Look. * @@ -5519,14 +5556,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun look( look_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.get("/looks/${path_look_id}", - mapOf("fields" to fields)) + return this.get( + "/looks/$path_look_id", + mapOf("fields" to fields), + ) } - /** * ### Modify a Look * @@ -5558,14 +5596,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_look( look_id: String, body: WriteLookWithQuery, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.patch("/looks/${path_look_id}", - mapOf("fields" to fields), body) + return this.patch( + "/looks/$path_look_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Permanently Delete a Look * @@ -5580,13 +5620,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /looks/{look_id} -> ByteArray */ fun delete_look( - look_id: String - ) : SDKResponse { + look_id: String, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.delete("/looks/${path_look_id}", mapOf()) + return this.delete("/looks/$path_look_id", mapOf()) } - /** * ### Run a Look * @@ -5640,26 +5679,29 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { cache_only: Boolean? = null, path_prefix: String? = null, rebuild_pdts: Boolean? = null, - server_table_calcs: Boolean? = null - ) : SDKResponse { + server_table_calcs: Boolean? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) val path_result_format = encodeParam(result_format) - return this.get("/looks/${path_look_id}/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs)) + return this.get( + "/looks/$path_look_id/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + ), + ) } - /** * ### Copy an existing look * @@ -5676,14 +5718,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun copy_look( look_id: String, - folder_id: String? = null - ) : SDKResponse { + folder_id: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.post("/looks/${path_look_id}/copy", - mapOf("folder_id" to folder_id)) + return this.post( + "/looks/$path_look_id/copy", + mapOf("folder_id" to folder_id), + ) } - /** * ### Move an existing look * @@ -5699,18 +5742,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun move_look( look_id: String, - folder_id: String - ) : SDKResponse { + folder_id: String, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.patch("/looks/${path_look_id}/move", - mapOf("folder_id" to folder_id)) + return this.patch( + "/looks/$path_look_id/move", + mapOf("folder_id" to folder_id), + ) } //endregion Look: Run and Manage Looks //region LookmlModel: Manage LookML Models - /** * ### Get information about all lookml models. * @@ -5723,15 +5767,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_lookml_models( fields: String? = null, limit: Long? = null, - offset: Long? = null - ) : SDKResponse { - return this.get("/lookml_models", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset)) + offset: Long? = null, + ): SDKResponse { + return this.get( + "/lookml_models", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + ), + ) } - /** * ### Create a lookml model using the specified configuration. * @@ -5740,12 +5787,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /lookml_models -> ByteArray */ fun create_lookml_model( - body: WriteLookmlModel - ) : SDKResponse { - return this.post("/lookml_models", mapOf(), body) + body: WriteLookmlModel, + ): SDKResponse { + return this.post("/lookml_models", mapOf(), body) } - /** * ### Get information about a lookml model. * @@ -5756,14 +5802,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun lookml_model( lookml_model_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.get("/lookml_models/${path_lookml_model_name}", - mapOf("fields" to fields)) + return this.get( + "/lookml_models/$path_lookml_model_name", + mapOf("fields" to fields), + ) } - /** * ### Update a lookml model using the specified configuration. * @@ -5774,13 +5821,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_lookml_model( lookml_model_name: String, - body: WriteLookmlModel - ) : SDKResponse { + body: WriteLookmlModel, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.patch("/lookml_models/${path_lookml_model_name}", mapOf(), body) + return this.patch("/lookml_models/$path_lookml_model_name", mapOf(), body) } - /** * ### Delete a lookml model. * @@ -5789,13 +5835,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /lookml_models/{lookml_model_name} -> ByteArray */ fun delete_lookml_model( - lookml_model_name: String - ) : SDKResponse { + lookml_model_name: String, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) - return this.delete("/lookml_models/${path_lookml_model_name}", mapOf()) + return this.delete("/lookml_models/$path_lookml_model_name", mapOf()) } - /** * ### Get information about a lookml model explore. * @@ -5808,19 +5853,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun lookml_model_explore( lookml_model_name: String, explore_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_lookml_model_name = encodeParam(lookml_model_name) val path_explore_name = encodeParam(explore_name) - return this.get("/lookml_models/${path_lookml_model_name}/explores/${path_explore_name}", - mapOf("fields" to fields)) + return this.get( + "/lookml_models/$path_lookml_model_name/explores/$path_explore_name", + mapOf("fields" to fields), + ) } //endregion LookmlModel: Manage LookML Models //region Metadata: Connection Metadata Features - /** * ### Field name suggestions for a model and view * @@ -5855,17 +5901,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { view_name: String, field_name: String, term: String? = null, - filters: Any? = null - ) : SDKResponse { + filters: Any? = null, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) val path_field_name = encodeParam(field_name) - return this.get("/models/${path_model_name}/views/${path_view_name}/fields/${path_field_name}/suggestions", - mapOf("term" to term, - "filters" to filters)) + return this.get( + "/models/$path_model_name/views/$path_view_name/fields/$path_field_name/suggestions", + mapOf( + "term" to term, + "filters" to filters, + ), + ) } - /** * ### Get a single model * @@ -5874,13 +5923,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /models/{model_name} -> ByteArray */ fun get_model( - model_name: String - ) : SDKResponse { + model_name: String, + ): SDKResponse { val path_model_name = encodeParam(model_name) - return this.get("/models/${path_model_name}", mapOf()) + return this.get("/models/$path_model_name", mapOf()) } - /** * ### List databases available to this connection * @@ -5897,13 +5945,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /connections/{connection_name}/databases -> ByteArray */ fun connection_databases( - connection_name: String - ) : SDKResponse { + connection_name: String, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/databases", mapOf()) + return this.get("/connections/$path_connection_name/databases", mapOf()) } - /** * ### Retrieve metadata features for this connection * @@ -5916,14 +5963,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun connection_features( connection_name: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/features", - mapOf("fields" to fields)) + return this.get( + "/connections/$path_connection_name/features", + mapOf("fields" to fields), + ) } - /** * ### Get the list of schemas and tables for a connection * @@ -5938,16 +5986,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { connection_name: String, database: String? = null, cache: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/schemas", - mapOf("database" to database, - "cache" to cache, - "fields" to fields)) + return this.get( + "/connections/$path_connection_name/schemas", + mapOf( + "database" to database, + "cache" to cache, + "fields" to fields, + ), + ) } - /** * ### Get the list of tables for a schema * @@ -5973,19 +6024,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { cache: Boolean? = null, fields: String? = null, table_filter: String? = null, - table_limit: Long? = null - ) : SDKResponse { + table_limit: Long? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/tables", - mapOf("database" to database, - "schema_name" to schema_name, - "cache" to cache, - "fields" to fields, - "table_filter" to table_filter, - "table_limit" to table_limit)) + return this.get( + "/connections/$path_connection_name/tables", + mapOf( + "database" to database, + "schema_name" to schema_name, + "cache" to cache, + "fields" to fields, + "table_filter" to table_filter, + "table_limit" to table_limit, + ), + ) } - /** * ### Get the columns (and therefore also the tables) in a specific schema * @@ -6006,19 +6060,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { cache: Boolean? = null, table_limit: Long? = null, table_names: String? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/columns", - mapOf("database" to database, - "schema_name" to schema_name, - "cache" to cache, - "table_limit" to table_limit, - "table_names" to table_names, - "fields" to fields)) + return this.get( + "/connections/$path_connection_name/columns", + mapOf( + "database" to database, + "schema_name" to schema_name, + "cache" to cache, + "table_limit" to table_limit, + "table_names" to table_names, + "fields" to fields, + ), + ) } - /** * ### Search a connection for columns matching the specified name * @@ -6033,15 +6090,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun connection_search_columns( connection_name: String, column_name: String? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.get("/connections/${path_connection_name}/search_columns", - mapOf("column_name" to column_name, - "fields" to fields)) + return this.get( + "/connections/$path_connection_name/search_columns", + mapOf( + "column_name" to column_name, + "fields" to fields, + ), + ) } - /** * ### Connection cost estimating * @@ -6058,18 +6118,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun connection_cost_estimate( connection_name: String, body: CreateCostEstimate, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_connection_name = encodeParam(connection_name) - return this.post("/connections/${path_connection_name}/cost_estimate", - mapOf("fields" to fields), body) + return this.post( + "/connections/$path_connection_name/cost_estimate", + mapOf("fields" to fields), + body, + ) } //endregion Metadata: Connection Metadata Features //region Project: Manage Projects - /** * ### Generate Lockfile for All LookML Dependencies * @@ -6086,14 +6148,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun lock_all( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/manifest/lock_all", - mapOf("fields" to fields)) + return this.post( + "/projects/$path_project_id/manifest/lock_all", + mapOf("fields" to fields), + ) } - /** * ### Get All Git Branches * @@ -6104,13 +6167,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git_branches -> ByteArray */ fun all_git_branches( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git_branches", mapOf()) + return this.get("/projects/$path_project_id/git_branches", mapOf()) } - /** * ### Get the Current Git Branch * @@ -6121,13 +6183,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git_branch -> ByteArray */ fun git_branch( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git_branch", mapOf()) + return this.get("/projects/$path_project_id/git_branch", mapOf()) } - /** * ### Checkout and/or reset --hard an existing Git Branch * @@ -6146,13 +6207,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_git_branch( project_id: String, - body: WriteGitBranch - ) : SDKResponse { + body: WriteGitBranch, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.put("/projects/${path_project_id}/git_branch", mapOf(), body) + return this.put("/projects/$path_project_id/git_branch", mapOf(), body) } - /** * ### Create and Checkout a Git Branch * @@ -6170,13 +6230,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun create_git_branch( project_id: String, - body: WriteGitBranch - ) : SDKResponse { + body: WriteGitBranch, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/git_branch", mapOf(), body) + return this.post("/projects/$path_project_id/git_branch", mapOf(), body) } - /** * ### Get the specified Git Branch * @@ -6189,14 +6248,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun find_git_branch( project_id: String, - branch_name: String - ) : SDKResponse { + branch_name: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_branch_name = encodeParam(branch_name) - return this.get("/projects/${path_project_id}/git_branch/${path_branch_name}", mapOf()) + return this.get("/projects/$path_project_id/git_branch/$path_branch_name", mapOf()) } - /** * ### Delete the specified Git Branch * @@ -6209,14 +6267,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_git_branch( project_id: String, - branch_name: String - ) : SDKResponse { + branch_name: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_branch_name = encodeParam(branch_name) - return this.delete("/projects/${path_project_id}/git_branch/${path_branch_name}", mapOf()) + return this.delete("/projects/$path_project_id/git_branch/$path_branch_name", mapOf()) } - /** * ### Deploy a Remote Branch or Ref to Production * @@ -6237,15 +6294,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun deploy_ref_to_production( project_id: String, branch: String? = null, - ref: String? = null - ) : SDKResponse { + ref: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/deploy_ref_to_production", - mapOf("branch" to branch, - "ref" to ref)) + return this.post( + "/projects/$path_project_id/deploy_ref_to_production", + mapOf( + "branch" to branch, + "ref" to ref, + ), + ) } - /** * ### Deploy LookML from this Development Mode Project to Production * @@ -6265,13 +6325,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/deploy_to_production -> ByteArray */ fun deploy_to_production( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/deploy_to_production", mapOf()) + return this.post("/projects/$path_project_id/deploy_to_production", mapOf()) } - /** * ### Reset a project to the revision of the project that is in production. * @@ -6282,13 +6341,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/reset_to_production -> ByteArray */ fun reset_project_to_production( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/reset_to_production", mapOf()) + return this.post("/projects/$path_project_id/reset_to_production", mapOf()) } - /** * ### Reset a project development branch to the revision of the project that is on the remote. * @@ -6299,13 +6357,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/reset_to_remote -> ByteArray */ fun reset_project_to_remote( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/reset_to_remote", mapOf()) + return this.post("/projects/$path_project_id/reset_to_remote", mapOf()) } - /** * ### Get All Projects * @@ -6316,13 +6373,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects -> ByteArray */ @JvmOverloads fun all_projects( - fields: String? = null - ) : SDKResponse { - return this.get("/projects", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/projects", + mapOf("fields" to fields), + ) } - /** * ### Create A Project * @@ -6337,12 +6395,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /projects -> ByteArray */ fun create_project( - body: WriteProject - ) : SDKResponse { - return this.post("/projects", mapOf(), body) + body: WriteProject, + ): SDKResponse { + return this.post("/projects", mapOf(), body) } - /** * ### Get A Project * @@ -6355,14 +6412,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id", + mapOf("fields" to fields), + ) } - /** * ### Update Project Configuration * @@ -6396,14 +6454,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_project( project_id: String, body: WriteProject, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.patch("/projects/${path_project_id}", - mapOf("fields" to fields), body) + return this.patch( + "/projects/$path_project_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Get A Projects Manifest object * @@ -6414,13 +6474,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/manifest -> ByteArray */ fun manifest( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/manifest", mapOf()) + return this.get("/projects/$path_project_id/manifest", mapOf()) } - /** * ### Git Deploy Key * @@ -6431,13 +6490,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{project_id}/git/deploy_key -> ByteArray */ fun git_deploy_key( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git/deploy_key", mapOf()) + return this.get("/projects/$path_project_id/git/deploy_key", mapOf()) } - /** * ### Create Git Deploy Key * @@ -6454,13 +6512,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /projects/{project_id}/git/deploy_key -> ByteArray */ fun create_git_deploy_key( - project_id: String - ) : SDKResponse { + project_id: String, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/git/deploy_key", mapOf()) + return this.post("/projects/$path_project_id/git/deploy_key", mapOf()) } - /** * ### Get Cached Project Validation Results * @@ -6482,14 +6539,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project_validation_results( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/validate", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id/validate", + mapOf("fields" to fields), + ) } - /** * ### Validate Project * @@ -6508,14 +6566,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun validate_project( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/validate", - mapOf("fields" to fields)) + return this.post( + "/projects/$path_project_id/validate", + mapOf("fields" to fields), + ) } - /** * ### Get Project Workspace * @@ -6528,14 +6587,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun project_workspace( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/current_workspace", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id/current_workspace", + mapOf("fields" to fields), + ) } - /** * ### Get All Project Files * @@ -6548,14 +6608,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_project_files( project_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/files", - mapOf("fields" to fields)) + return this.get( + "/projects/$path_project_id/files", + mapOf("fields" to fields), + ) } - /** * ### Get Project File Info * @@ -6570,15 +6631,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun project_file( project_id: String, file_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/files/file", - mapOf("file_id" to file_id, - "fields" to fields)) + return this.get( + "/projects/$path_project_id/files/file", + mapOf( + "file_id" to file_id, + "fields" to fields, + ), + ) } - /** * ### Get All Git Connection Tests * @@ -6598,14 +6662,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_git_connection_tests( project_id: String, - remote_url: String? = null - ) : SDKResponse { + remote_url: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/git_connection_tests", - mapOf("remote_url" to remote_url)) + return this.get( + "/projects/$path_project_id/git_connection_tests", + mapOf("remote_url" to remote_url), + ) } - /** * ### Run a git connection test * @@ -6626,16 +6691,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { project_id: String, test_id: String, remote_url: String? = null, - use_production: String? = null - ) : SDKResponse { + use_production: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) val path_test_id = encodeParam(test_id) - return this.get("/projects/${path_project_id}/git_connection_tests/${path_test_id}", - mapOf("remote_url" to remote_url, - "use_production" to use_production)) + return this.get( + "/projects/$path_project_id/git_connection_tests/$path_test_id", + mapOf( + "remote_url" to remote_url, + "use_production" to use_production, + ), + ) } - /** * ### Get All LookML Tests * @@ -6650,14 +6718,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_lookml_tests( project_id: String, - file_id: String? = null - ) : SDKResponse { + file_id: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/lookml_tests", - mapOf("file_id" to file_id)) + return this.get( + "/projects/$path_project_id/lookml_tests", + mapOf("file_id" to file_id), + ) } - /** * ### Run LookML Tests * @@ -6674,16 +6743,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { project_id: String, file_id: String? = null, test: String? = null, - model: String? = null - ) : SDKResponse { + model: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.get("/projects/${path_project_id}/lookml_tests/run", - mapOf("file_id" to file_id, - "test" to test, - "model" to model)) + return this.get( + "/projects/$path_project_id/lookml_tests/run", + mapOf( + "file_id" to file_id, + "test" to test, + "model" to model, + ), + ) } - /** * ### Creates a tag for the most recent commit, or a specific ref is a SHA is provided * @@ -6702,16 +6774,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { body: WriteProject, commit_sha: String? = null, tag_name: String? = null, - tag_message: String? = null - ) : SDKResponse { + tag_message: String? = null, + ): SDKResponse { val path_project_id = encodeParam(project_id) - return this.post("/projects/${path_project_id}/tag", - mapOf("commit_sha" to commit_sha, - "tag_name" to tag_name, - "tag_message" to tag_message), body) + return this.post( + "/projects/$path_project_id/tag", + mapOf( + "commit_sha" to commit_sha, + "tag_name" to tag_name, + "tag_message" to tag_message, + ), + body, + ) } - /** * ### Configure Repository Credential for a remote dependency * @@ -6729,14 +6805,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fun update_repository_credential( root_project_id: String, credential_id: String, - body: WriteRepositoryCredential - ) : SDKResponse { + body: WriteRepositoryCredential, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) val path_credential_id = encodeParam(credential_id) - return this.put("/projects/${path_root_project_id}/credential/${path_credential_id}", mapOf(), body) + return this.put("/projects/$path_root_project_id/credential/$path_credential_id", mapOf(), body) } - /** * ### Repository Credential for a remote dependency * @@ -6752,14 +6827,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_repository_credential( root_project_id: String, - credential_id: String - ) : SDKResponse { + credential_id: String, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) val path_credential_id = encodeParam(credential_id) - return this.delete("/projects/${path_root_project_id}/credential/${path_credential_id}", mapOf()) + return this.delete("/projects/$path_root_project_id/credential/$path_credential_id", mapOf()) } - /** * ### Get all Repository Credentials for a project * @@ -6770,17 +6844,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /projects/{root_project_id}/credentials -> ByteArray */ fun get_all_repository_credentials( - root_project_id: String - ) : SDKResponse { + root_project_id: String, + ): SDKResponse { val path_root_project_id = encodeParam(root_project_id) - return this.get("/projects/${path_root_project_id}/credentials", mapOf()) + return this.get("/projects/$path_root_project_id/credentials", mapOf()) } //endregion Project: Manage Projects //region Query: Run and Manage Queries - /** * ### Create an async query task * @@ -6820,25 +6893,29 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { server_table_calcs: Boolean? = null, image_width: Long? = null, image_height: Long? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/query_tasks", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs, - "image_width" to image_width, - "image_height" to image_height, - "fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/query_tasks", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + "image_width" to image_width, + "image_height" to image_height, + "fields" to fields, + ), + body, + ) } - /** * ### Fetch results of multiple async queries * @@ -6853,13 +6930,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /query_tasks/multi_results -> ByteArray */ fun query_task_multi_results( - query_task_ids: DelimArray - ) : SDKResponse { - return this.get("/query_tasks/multi_results", - mapOf("query_task_ids" to query_task_ids)) + query_task_ids: DelimArray, + ): SDKResponse { + return this.get( + "/query_tasks/multi_results", + mapOf("query_task_ids" to query_task_ids), + ) } - /** * ### Get Query Task details * @@ -6876,14 +6954,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query_task( query_task_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.get("/query_tasks/${path_query_task_id}", - mapOf("fields" to fields)) + return this.get( + "/query_tasks/$path_query_task_id", + mapOf("fields" to fields), + ) } - /** * ### Get Async Query Results * @@ -6914,13 +6993,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /query_tasks/{query_task_id}/results -> ByteArray */ fun query_task_results( - query_task_id: String - ) : SDKResponse { + query_task_id: String, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.get("/query_tasks/${path_query_task_id}/results", mapOf()) + return this.get("/query_tasks/$path_query_task_id/results", mapOf()) } - /** * ### Get a previously created query by id. * @@ -6947,14 +7025,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query( query_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) - return this.get("/queries/${path_query_id}", - mapOf("fields" to fields)) + return this.get( + "/queries/$path_query_id", + mapOf("fields" to fields), + ) } - /** * ### Get the query for a given query slug. * @@ -6981,14 +7060,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun query_for_slug( slug: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_slug = encodeParam(slug) - return this.get("/queries/slug/${path_slug}", - mapOf("fields" to fields)) + return this.get( + "/queries/slug/$path_slug", + mapOf("fields" to fields), + ) } - /** * ### Create a query. * @@ -7006,13 +7086,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_query( body: WriteQuery, - fields: String? = null - ) : SDKResponse { - return this.post("/queries", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/queries", + mapOf("fields" to fields), + body, + ) } - /** * ### Run a saved query. * @@ -7071,27 +7153,30 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { path_prefix: String? = null, rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, - source: String? = null - ) : SDKResponse { + source: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) - return this.get("/queries/${path_query_id}/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs, - "source" to source)) + return this.get( + "/queries/$path_query_id/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + "source" to source, + ), + ) } - /** * ### Run the query that is specified inline in the posted body. * @@ -7177,25 +7262,29 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { cache_only: Boolean? = null, path_prefix: String? = null, rebuild_pdts: Boolean? = null, - server_table_calcs: Boolean? = null - ) : SDKResponse { + server_table_calcs: Boolean? = null, + ): SDKResponse { val path_result_format = encodeParam(result_format) - return this.post("/queries/run/${path_result_format}", - mapOf("limit" to limit, - "apply_formatting" to apply_formatting, - "apply_vis" to apply_vis, - "cache" to cache, - "image_width" to image_width, - "image_height" to image_height, - "generate_drill_links" to generate_drill_links, - "force_production" to force_production, - "cache_only" to cache_only, - "path_prefix" to path_prefix, - "rebuild_pdts" to rebuild_pdts, - "server_table_calcs" to server_table_calcs), body) + return this.post( + "/queries/run/$path_result_format", + mapOf( + "limit" to limit, + "apply_formatting" to apply_formatting, + "apply_vis" to apply_vis, + "cache" to cache, + "image_width" to image_width, + "image_height" to image_height, + "generate_drill_links" to generate_drill_links, + "force_production" to force_production, + "cache_only" to cache_only, + "path_prefix" to path_prefix, + "rebuild_pdts" to rebuild_pdts, + "server_table_calcs" to server_table_calcs, + ), + body, + ) } - /** * ### Run an URL encoded query. * @@ -7261,15 +7350,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fun run_url_encoded_query( model_name: String, view_name: String, - result_format: String - ) : SDKResponse { + result_format: String, + ): SDKResponse { val path_model_name = encodeParam(model_name) val path_view_name = encodeParam(view_name) val path_result_format = encodeParam(result_format) - return this.get("/queries/models/${path_model_name}/views/${path_view_name}/run/${path_result_format}", mapOf()) + return this.get("/queries/models/$path_model_name/views/$path_view_name/run/$path_result_format", mapOf()) } - /** * ### Get Merge Query * @@ -7282,14 +7370,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun merge_query( merge_query_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_merge_query_id = encodeParam(merge_query_id) - return this.get("/merge_queries/${path_merge_query_id}", - mapOf("fields" to fields)) + return this.get( + "/merge_queries/$path_merge_query_id", + mapOf("fields" to fields), + ) } - /** * ### Create Merge Query * @@ -7316,25 +7405,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_merge_query( body: WriteMergeQuery? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/merge_queries", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/merge_queries", + mapOf("fields" to fields), + body, + ) } - /** * Get information about all running queries. * * GET /running_queries -> ByteArray */ - fun all_running_queries( - - ) : SDKResponse { - return this.get("/running_queries", mapOf()) + fun all_running_queries(): SDKResponse { + return this.get("/running_queries", mapOf()) } - /** * Kill a query with a specific query_task_id. * @@ -7343,13 +7431,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /running_queries/{query_task_id} -> ByteArray */ fun kill_query( - query_task_id: String - ) : SDKResponse { + query_task_id: String, + ): SDKResponse { val path_query_task_id = encodeParam(query_task_id) - return this.delete("/running_queries/${path_query_task_id}", mapOf()) + return this.delete("/running_queries/$path_query_task_id", mapOf()) } - /** * Get a SQL Runner query. * @@ -7358,13 +7445,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /sql_queries/{slug} -> ByteArray */ fun sql_query( - slug: String - ) : SDKResponse { + slug: String, + ): SDKResponse { val path_slug = encodeParam(slug) - return this.get("/sql_queries/${path_slug}", mapOf()) + return this.get("/sql_queries/$path_slug", mapOf()) } - /** * ### Create a SQL Runner Query * @@ -7375,12 +7461,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /sql_queries -> ByteArray */ fun create_sql_query( - body: SqlQueryCreate - ) : SDKResponse { - return this.post("/sql_queries", mapOf(), body) + body: SqlQueryCreate, + ): SDKResponse { + return this.post("/sql_queries", mapOf(), body) } - /** * Execute a SQL Runner query in a given result_format. * @@ -7395,19 +7480,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun run_sql_query( slug: String, result_format: String, - download: String? = null - ) : SDKResponse { + download: String? = null, + ): SDKResponse { val path_slug = encodeParam(slug) val path_result_format = encodeParam(result_format) - return this.post("/sql_queries/${path_slug}/run/${path_result_format}", - mapOf("download" to download)) + return this.post( + "/sql_queries/$path_slug/run/$path_result_format", + mapOf("download" to download), + ) } //endregion Query: Run and Manage Queries //region RenderTask: Manage Render Tasks - /** * ### Create a new task to render a look to an image. * @@ -7428,17 +7514,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/looks/${path_look_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/looks/$path_look_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } - /** * ### Create a new task to render an existing query to an image. * @@ -7459,17 +7548,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/queries/${path_query_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/queries/$path_query_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } - /** * ### Create a new task to render a dashboard to a document or image. * @@ -7498,20 +7590,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fields: String? = null, pdf_paper_size: String? = null, pdf_landscape: Boolean? = null, - long_tables: Boolean? = null - ) : SDKResponse { + long_tables: Boolean? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/dashboards/${path_dashboard_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields, - "pdf_paper_size" to pdf_paper_size, - "pdf_landscape" to pdf_landscape, - "long_tables" to long_tables), body) + return this.post( + "/render_tasks/dashboards/$path_dashboard_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + "pdf_paper_size" to pdf_paper_size, + "pdf_landscape" to pdf_landscape, + "long_tables" to long_tables, + ), + body, + ) } - /** * ### Get information about a render task. * @@ -7526,14 +7622,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun render_task( render_task_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_render_task_id = encodeParam(render_task_id) - return this.get("/render_tasks/${path_render_task_id}", - mapOf("fields" to fields)) + return this.get( + "/render_tasks/$path_render_task_id", + mapOf("fields" to fields), + ) } - /** * ### Get the document or image produced by a completed render task. * @@ -7560,13 +7657,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * **Note**: Binary content is returned by this method. */ fun render_task_results( - render_task_id: String - ) : SDKResponse { + render_task_id: String, + ): SDKResponse { val path_render_task_id = encodeParam(render_task_id) - return this.get("/render_tasks/${path_render_task_id}/results", mapOf()) + return this.get("/render_tasks/$path_render_task_id/results", mapOf()) } - /** * ### Create a new task to render a dashboard element to an image. * @@ -7587,21 +7683,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { result_format: String, width: Long, height: Long, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_element_id = encodeParam(dashboard_element_id) val path_result_format = encodeParam(result_format) - return this.post("/render_tasks/dashboard_elements/${path_dashboard_element_id}/${path_result_format}", - mapOf("width" to width, - "height" to height, - "fields" to fields)) + return this.post( + "/render_tasks/dashboard_elements/$path_dashboard_element_id/$path_result_format", + mapOf( + "width" to width, + "height" to height, + "fields" to fields, + ), + ) } //endregion RenderTask: Manage Render Tasks //region Role: Manage Roles - /** * ### Search model sets * Returns all model set records that match the given search criteria. @@ -7647,21 +7746,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, all_access: Boolean? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/model_sets/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "all_access" to all_access, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/model_sets/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "all_access" to all_access, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the model set with a specific id. * @@ -7672,14 +7774,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun model_set( model_set_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.get("/model_sets/${path_model_set_id}", - mapOf("fields" to fields)) + return this.get( + "/model_sets/$path_model_set_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the model set with a specific id. * @@ -7690,13 +7793,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_model_set( model_set_id: String, - body: WriteModelSet - ) : SDKResponse { + body: WriteModelSet, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.patch("/model_sets/${path_model_set_id}", mapOf(), body) + return this.patch("/model_sets/$path_model_set_id", mapOf(), body) } - /** * ### Delete the model set with a specific id. * @@ -7705,13 +7807,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /model_sets/{model_set_id} -> ByteArray */ fun delete_model_set( - model_set_id: String - ) : SDKResponse { + model_set_id: String, + ): SDKResponse { val path_model_set_id = encodeParam(model_set_id) - return this.delete("/model_sets/${path_model_set_id}", mapOf()) + return this.delete("/model_sets/$path_model_set_id", mapOf()) } - /** * ### Get information about all model sets. * @@ -7720,13 +7821,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /model_sets -> ByteArray */ @JvmOverloads fun all_model_sets( - fields: String? = null - ) : SDKResponse { - return this.get("/model_sets", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/model_sets", + mapOf("fields" to fields), + ) } - /** * ### Create a model set with the specified information. Model sets are used by Roles. * @@ -7735,24 +7837,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /model_sets -> ByteArray */ fun create_model_set( - body: WriteModelSet - ) : SDKResponse { - return this.post("/model_sets", mapOf(), body) + body: WriteModelSet, + ): SDKResponse { + return this.post("/model_sets", mapOf(), body) } - /** * ### Get all supported permissions. * * GET /permissions -> ByteArray */ - fun all_permissions( - - ) : SDKResponse { - return this.get("/permissions", mapOf()) + fun all_permissions(): SDKResponse { + return this.get("/permissions", mapOf()) } - /** * ### Search permission sets * Returns all permission set records that match the given search criteria. @@ -7798,21 +7896,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { name: String? = null, all_access: Boolean? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/permission_sets/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "all_access" to all_access, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/permission_sets/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "all_access" to all_access, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the permission set with a specific id. * @@ -7823,14 +7924,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun permission_set( permission_set_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.get("/permission_sets/${path_permission_set_id}", - mapOf("fields" to fields)) + return this.get( + "/permission_sets/$path_permission_set_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the permission set with a specific id. * @@ -7841,13 +7943,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_permission_set( permission_set_id: String, - body: WritePermissionSet - ) : SDKResponse { + body: WritePermissionSet, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.patch("/permission_sets/${path_permission_set_id}", mapOf(), body) + return this.patch("/permission_sets/$path_permission_set_id", mapOf(), body) } - /** * ### Delete the permission set with a specific id. * @@ -7856,13 +7957,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /permission_sets/{permission_set_id} -> ByteArray */ fun delete_permission_set( - permission_set_id: String - ) : SDKResponse { + permission_set_id: String, + ): SDKResponse { val path_permission_set_id = encodeParam(permission_set_id) - return this.delete("/permission_sets/${path_permission_set_id}", mapOf()) + return this.delete("/permission_sets/$path_permission_set_id", mapOf()) } - /** * ### Get information about all permission sets. * @@ -7871,13 +7971,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /permission_sets -> ByteArray */ @JvmOverloads fun all_permission_sets( - fields: String? = null - ) : SDKResponse { - return this.get("/permission_sets", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/permission_sets", + mapOf("fields" to fields), + ) } - /** * ### Create a permission set with the specified information. Permission sets are used by Roles. * @@ -7886,12 +7987,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /permission_sets -> ByteArray */ fun create_permission_set( - body: WritePermissionSet - ) : SDKResponse { - return this.post("/permission_sets", mapOf(), body) + body: WritePermissionSet, + ): SDKResponse { + return this.post("/permission_sets", mapOf(), body) } - /** * ### Get information about all roles. * @@ -7902,14 +8002,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_roles( fields: String? = null, - ids: DelimArray? = null - ) : SDKResponse { - return this.get("/roles", - mapOf("fields" to fields, - "ids" to ids)) + ids: DelimArray? = null, + ): SDKResponse { + return this.get( + "/roles", + mapOf( + "fields" to fields, + "ids" to ids, + ), + ) } - /** * ### Create a role with the specified information. * @@ -7918,12 +8021,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /roles -> ByteArray */ fun create_role( - body: WriteRole - ) : SDKResponse { - return this.post("/roles", mapOf(), body) + body: WriteRole, + ): SDKResponse { + return this.post("/roles", mapOf(), body) } - /** * ### Search roles * @@ -7969,20 +8071,23 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, name: String? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/roles/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/roles/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Search roles include user count * @@ -8029,20 +8134,23 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, name: String? = null, built_in: Boolean? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/roles/search/with_user_count", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "name" to name, - "built_in" to built_in, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/roles/search/with_user_count", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "name" to name, + "built_in" to built_in, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the role with a specific id. * @@ -8051,13 +8159,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /roles/{role_id} -> ByteArray */ fun role( - role_id: String - ) : SDKResponse { + role_id: String, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get("/roles/${path_role_id}", mapOf()) + return this.get("/roles/$path_role_id", mapOf()) } - /** * ### Update information about the role with a specific id. * @@ -8068,13 +8175,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_role( role_id: String, - body: WriteRole - ) : SDKResponse { + body: WriteRole, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.patch("/roles/${path_role_id}", mapOf(), body) + return this.patch("/roles/$path_role_id", mapOf(), body) } - /** * ### Delete the role with a specific id. * @@ -8083,13 +8189,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /roles/{role_id} -> ByteArray */ fun delete_role( - role_id: String - ) : SDKResponse { + role_id: String, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.delete("/roles/${path_role_id}", mapOf()) + return this.delete("/roles/$path_role_id", mapOf()) } - /** * ### Get information about all the groups with the role that has a specific id. * @@ -8100,14 +8205,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun role_groups( role_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get("/roles/${path_role_id}/groups", - mapOf("fields" to fields)) + return this.get( + "/roles/$path_role_id/groups", + mapOf("fields" to fields), + ) } - /** * ### Set all groups for a role, removing all existing group associations from that role. * @@ -8118,13 +8224,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun set_role_groups( role_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.put("/roles/${path_role_id}/groups", mapOf(), body) + return this.put("/roles/$path_role_id/groups", mapOf(), body) } - /** * ### Get information about all the users with the role that has a specific id. * @@ -8137,15 +8242,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun role_users( role_id: String, fields: String? = null, - direct_association_only: Boolean? = null - ) : SDKResponse { + direct_association_only: Boolean? = null, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.get("/roles/${path_role_id}/users", - mapOf("fields" to fields, - "direct_association_only" to direct_association_only)) + return this.get( + "/roles/$path_role_id/users", + mapOf( + "fields" to fields, + "direct_association_only" to direct_association_only, + ), + ) } - /** * ### Set all the users of the role with a specific id. * @@ -8156,17 +8264,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun set_role_users( role_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_role_id = encodeParam(role_id) - return this.put("/roles/${path_role_id}/users", mapOf(), body) + return this.put("/roles/$path_role_id/users", mapOf(), body) } //endregion Role: Manage Roles //region ScheduledPlan: Manage Scheduled Plans - /** * ### Get Scheduled Plans for a Space * @@ -8179,14 +8286,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plans_for_space( space_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_space_id = encodeParam(space_id) - return this.get("/scheduled_plans/space/${path_space_id}", - mapOf("fields" to fields)) + return this.get( + "/scheduled_plans/space/$path_space_id", + mapOf("fields" to fields), + ) } - /** * ### Get Information About a Scheduled Plan * @@ -8199,14 +8307,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plan( scheduled_plan_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.get("/scheduled_plans/${path_scheduled_plan_id}", - mapOf("fields" to fields)) + return this.get( + "/scheduled_plans/$path_scheduled_plan_id", + mapOf("fields" to fields), + ) } - /** * ### Update a Scheduled Plan * @@ -8258,13 +8367,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_scheduled_plan( scheduled_plan_id: String, - body: WriteScheduledPlan - ) : SDKResponse { + body: WriteScheduledPlan, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.patch("/scheduled_plans/${path_scheduled_plan_id}", mapOf(), body) + return this.patch("/scheduled_plans/$path_scheduled_plan_id", mapOf(), body) } - /** * ### Delete a Scheduled Plan * @@ -8277,13 +8385,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /scheduled_plans/{scheduled_plan_id} -> ByteArray */ fun delete_scheduled_plan( - scheduled_plan_id: String - ) : SDKResponse { + scheduled_plan_id: String, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.delete("/scheduled_plans/${path_scheduled_plan_id}", mapOf()) + return this.delete("/scheduled_plans/$path_scheduled_plan_id", mapOf()) } - /** * ### List All Scheduled Plans * @@ -8306,15 +8413,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun all_scheduled_plans( user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { - return this.get("/scheduled_plans", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + all_users: Boolean? = null, + ): SDKResponse { + return this.get( + "/scheduled_plans", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Create a Scheduled Plan * @@ -8380,12 +8490,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /scheduled_plans -> ByteArray */ fun create_scheduled_plan( - body: WriteScheduledPlan - ) : SDKResponse { - return this.post("/scheduled_plans", mapOf(), body) + body: WriteScheduledPlan, + ): SDKResponse { + return this.post("/scheduled_plans", mapOf(), body) } - /** * ### Run a Scheduled Plan Immediately * @@ -8430,12 +8539,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /scheduled_plans/run_once -> ByteArray */ fun scheduled_plan_run_once( - body: WriteScheduledPlan - ) : SDKResponse { - return this.post("/scheduled_plans/run_once", mapOf(), body) + body: WriteScheduledPlan, + ): SDKResponse { + return this.post("/scheduled_plans/run_once", mapOf(), body) } - /** * ### Get Scheduled Plans for a Look * @@ -8460,16 +8568,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { look_id: String, user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { + all_users: Boolean? = null, + ): SDKResponse { val path_look_id = encodeParam(look_id) - return this.get("/scheduled_plans/look/${path_look_id}", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + return this.get( + "/scheduled_plans/look/$path_look_id", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Get Scheduled Plans for a Dashboard * @@ -8494,16 +8605,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { dashboard_id: String, user_id: String? = null, all_users: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_dashboard_id = encodeParam(dashboard_id) - return this.get("/scheduled_plans/dashboard/${path_dashboard_id}", - mapOf("user_id" to user_id, - "all_users" to all_users, - "fields" to fields)) + return this.get( + "/scheduled_plans/dashboard/$path_dashboard_id", + mapOf( + "user_id" to user_id, + "all_users" to all_users, + "fields" to fields, + ), + ) } - /** * ### Get Scheduled Plans for a LookML Dashboard * @@ -8528,16 +8642,19 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { lookml_dashboard_id: String, user_id: String? = null, fields: String? = null, - all_users: Boolean? = null - ) : SDKResponse { + all_users: Boolean? = null, + ): SDKResponse { val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id) - return this.get("/scheduled_plans/lookml_dashboard/${path_lookml_dashboard_id}", - mapOf("user_id" to user_id, - "fields" to fields, - "all_users" to all_users)) + return this.get( + "/scheduled_plans/lookml_dashboard/$path_lookml_dashboard_id", + mapOf( + "user_id" to user_id, + "fields" to fields, + "all_users" to all_users, + ), + ) } - /** * ### Run a Scheduled Plan By Id Immediately * This function creates a run-once schedule plan based on an existing scheduled plan, @@ -8594,17 +8711,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun scheduled_plan_run_once_by_id( scheduled_plan_id: String, - body: WriteScheduledPlan? = null - ) : SDKResponse { + body: WriteScheduledPlan? = null, + ): SDKResponse { val path_scheduled_plan_id = encodeParam(scheduled_plan_id) - return this.post("/scheduled_plans/${path_scheduled_plan_id}/run_once", mapOf(), body) + return this.post("/scheduled_plans/$path_scheduled_plan_id/run_once", mapOf(), body) } //endregion ScheduledPlan: Manage Scheduled Plans //region Session: Session Information - /** * ### Get API Session * @@ -8612,13 +8728,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /session -> ByteArray */ - fun session( - - ) : SDKResponse { - return this.get("/session", mapOf()) + fun session(): SDKResponse { + return this.get("/session", mapOf()) } - /** * ### Update API Session * @@ -8646,16 +8759,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PATCH /session -> ByteArray */ fun update_session( - body: WriteApiSession - ) : SDKResponse { - return this.patch("/session", mapOf(), body) + body: WriteApiSession, + ): SDKResponse { + return this.patch("/session", mapOf(), body) } //endregion Session: Session Information //region Theme: Manage Themes - /** * ### Get an array of all existing themes * @@ -8670,13 +8782,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /themes -> ByteArray */ @JvmOverloads fun all_themes( - fields: String? = null - ) : SDKResponse { - return this.get("/themes", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/themes", + mapOf("fields" to fields), + ) } - /** * ### Create a theme * @@ -8699,12 +8812,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /themes -> ByteArray */ fun create_theme( - body: WriteTheme - ) : SDKResponse { - return this.post("/themes", mapOf(), body) + body: WriteTheme, + ): SDKResponse { + return this.post("/themes", mapOf(), body) } - /** * ### Search all themes for matching criteria. * @@ -8766,21 +8878,24 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, fields: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/themes/search", - mapOf("id" to id, - "name" to name, - "begin_at" to begin_at, - "end_at" to end_at, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "fields" to fields, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/themes/search", + mapOf( + "id" to id, + "name" to name, + "begin_at" to begin_at, + "end_at" to end_at, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "fields" to fields, + "filter_or" to filter_or, + ), + ) } - /** * ### Get the default theme * @@ -8795,13 +8910,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /themes/default -> ByteArray */ @JvmOverloads fun default_theme( - ts: Date? = null - ) : SDKResponse { - return this.get("/themes/default", - mapOf("ts" to ts)) + ts: Date? = null, + ): SDKResponse { + return this.get( + "/themes/default", + mapOf("ts" to ts), + ) } - /** * ### Set the global default theme by theme name * @@ -8820,13 +8936,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * PUT /themes/default -> ByteArray */ fun set_default_theme( - name: String - ) : SDKResponse { - return this.put("/themes/default", - mapOf("name" to name)) + name: String, + ): SDKResponse { + return this.put( + "/themes/default", + mapOf("name" to name), + ) } - /** * ### Get active themes * @@ -8847,15 +8964,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun active_themes( name: String? = null, ts: Date? = null, - fields: String? = null - ) : SDKResponse { - return this.get("/themes/active", - mapOf("name" to name, - "ts" to ts, - "fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/themes/active", + mapOf( + "name" to name, + "ts" to ts, + "fields" to fields, + ), + ) } - /** * ### Get the named theme if it's active. Otherwise, return the default theme * @@ -8871,14 +8991,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun theme_or_default( name: String, - ts: Date? = null - ) : SDKResponse { - return this.get("/themes/theme_or_default", - mapOf("name" to name, - "ts" to ts)) + ts: Date? = null, + ): SDKResponse { + return this.get( + "/themes/theme_or_default", + mapOf( + "name" to name, + "ts" to ts, + ), + ) } - /** * ### Validate a theme with the specified information * @@ -8893,12 +9016,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /themes/validate -> ByteArray */ fun validate_theme( - body: WriteTheme - ) : SDKResponse { - return this.post("/themes/validate", mapOf(), body) + body: WriteTheme, + ): SDKResponse { + return this.post("/themes/validate", mapOf(), body) } - /** * ### Get a theme by ID * @@ -8913,14 +9035,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun theme( theme_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.get("/themes/${path_theme_id}", - mapOf("fields" to fields)) + return this.get( + "/themes/$path_theme_id", + mapOf("fields" to fields), + ) } - /** * ### Update the theme by id. * @@ -8933,13 +9056,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun update_theme( theme_id: String, - body: WriteTheme - ) : SDKResponse { + body: WriteTheme, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.patch("/themes/${path_theme_id}", mapOf(), body) + return this.patch("/themes/$path_theme_id", mapOf(), body) } - /** * ### Delete a specific theme by id * @@ -8956,17 +9078,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /themes/{theme_id} -> ByteArray */ fun delete_theme( - theme_id: String - ) : SDKResponse { + theme_id: String, + ): SDKResponse { val path_theme_id = encodeParam(theme_id) - return this.delete("/themes/${path_theme_id}", mapOf()) + return this.delete("/themes/$path_theme_id", mapOf()) } //endregion Theme: Manage Themes //region User: Manage Users - /** * ### Search email credentials * @@ -9012,20 +9133,23 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { id: String? = null, email: String? = null, emails: String? = null, - filter_or: Boolean? = null - ) : SDKResponse { - return this.get("/credentials_email/search", - mapOf("fields" to fields, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "email" to email, - "emails" to emails, - "filter_or" to filter_or)) + filter_or: Boolean? = null, + ): SDKResponse { + return this.get( + "/credentials_email/search", + mapOf( + "fields" to fields, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "email" to email, + "emails" to emails, + "filter_or" to filter_or, + ), + ) } - /** * ### Get information about the current user; i.e. the user account currently calling the API. * @@ -9034,13 +9158,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /user -> ByteArray */ @JvmOverloads fun me( - fields: String? = null - ) : SDKResponse { - return this.get("/user", - mapOf("fields" to fields)) + fields: String? = null, + ): SDKResponse { + return this.get( + "/user", + mapOf("fields" to fields), + ) } - /** * ### Get information about all users. * @@ -9061,19 +9186,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { limit: Long? = null, offset: Long? = null, sorts: String? = null, - ids: DelimArray? = null - ) : SDKResponse { - return this.get("/users", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "ids" to ids)) + ids: DelimArray? = null, + ): SDKResponse { + return this.get( + "/users", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "ids" to ids, + ), + ) } - /** * ### Create a user with the specified information. * @@ -9084,13 +9212,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user( body: WriteUser? = null, - fields: String? = null - ) : SDKResponse { - return this.post("/users", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/users", + mapOf("fields" to fields), + body, + ) } - /** * ### Search users * @@ -9158,28 +9288,31 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { is_disabled: Boolean? = null, filter_or: Boolean? = null, content_metadata_id: String? = null, - group_id: String? = null - ) : SDKResponse { - return this.get("/users/search", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "first_name" to first_name, - "last_name" to last_name, - "verified_looker_employee" to verified_looker_employee, - "embed_user" to embed_user, - "email" to email, - "is_disabled" to is_disabled, - "filter_or" to filter_or, - "content_metadata_id" to content_metadata_id, - "group_id" to group_id)) + group_id: String? = null, + ): SDKResponse { + return this.get( + "/users/search", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "first_name" to first_name, + "last_name" to last_name, + "verified_looker_employee" to verified_looker_employee, + "embed_user" to embed_user, + "email" to email, + "is_disabled" to is_disabled, + "filter_or" to filter_or, + "content_metadata_id" to content_metadata_id, + "group_id" to group_id, + ), + ) } - /** * ### Search for user accounts by name * @@ -9217,25 +9350,28 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { last_name: String? = null, verified_looker_employee: Boolean? = null, email: String? = null, - is_disabled: Boolean? = null - ) : SDKResponse { + is_disabled: Boolean? = null, + ): SDKResponse { val path_pattern = encodeParam(pattern) - return this.get("/users/search/names/${path_pattern}", - mapOf("fields" to fields, - "page" to page, - "per_page" to per_page, - "limit" to limit, - "offset" to offset, - "sorts" to sorts, - "id" to id, - "first_name" to first_name, - "last_name" to last_name, - "verified_looker_employee" to verified_looker_employee, - "email" to email, - "is_disabled" to is_disabled)) + return this.get( + "/users/search/names/$path_pattern", + mapOf( + "fields" to fields, + "page" to page, + "per_page" to per_page, + "limit" to limit, + "offset" to offset, + "sorts" to sorts, + "id" to id, + "first_name" to first_name, + "last_name" to last_name, + "verified_looker_employee" to verified_looker_employee, + "email" to email, + "is_disabled" to is_disabled, + ), + ) } - /** * ### Get information about the user with a specific id. * @@ -9250,14 +9386,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id", + mapOf("fields" to fields), + ) } - /** * ### Update information about the user with a specific id. * @@ -9270,14 +9407,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user( user_id: String, body: WriteUser, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.patch("/users/${path_user_id}", - mapOf("fields" to fields), body) + return this.patch( + "/users/$path_user_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete the user with a specific id. * @@ -9288,13 +9427,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id} -> ByteArray */ fun delete_user( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}", mapOf()) + return this.delete("/users/$path_user_id", mapOf()) } - /** * ### Get information about the user with a credential of given type with specific id. * @@ -9334,15 +9472,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_for_credential( credential_type: String, credential_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_credential_type = encodeParam(credential_type) val path_credential_id = encodeParam(credential_id) - return this.get("/users/credential/${path_credential_type}/${path_credential_id}", - mapOf("fields" to fields)) + return this.get( + "/users/credential/$path_credential_type/$path_credential_id", + mapOf("fields" to fields), + ) } - /** * ### Email/password login information for the specified user. * @@ -9353,14 +9492,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_email( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + ) } - /** * ### Email/password login information for the specified user. * @@ -9373,14 +9513,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_email( user_id: String, body: WriteCredentialsEmail, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + body, + ) } - /** * ### Email/password login information for the specified user. * @@ -9393,14 +9535,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user_credentials_email( user_id: String, body: WriteCredentialsEmail, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.patch("/users/${path_user_id}/credentials_email", - mapOf("fields" to fields), body) + return this.patch( + "/users/$path_user_id/credentials_email", + mapOf("fields" to fields), + body, + ) } - /** * ### Email/password login information for the specified user. * @@ -9409,13 +9553,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_email -> ByteArray */ fun delete_user_credentials_email( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_email", mapOf()) + return this.delete("/users/$path_user_id/credentials_email", mapOf()) } - /** * ### Two-factor login information for the specified user. * @@ -9426,14 +9569,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_totp( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_totp", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_totp", + mapOf("fields" to fields), + ) } - /** * ### Two-factor login information for the specified user. * @@ -9446,14 +9590,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_totp( user_id: String, body: CredentialsTotp? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_totp", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/credentials_totp", + mapOf("fields" to fields), + body, + ) } - /** * ### Two-factor login information for the specified user. * @@ -9462,13 +9608,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_totp -> ByteArray */ fun delete_user_credentials_totp( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_totp", mapOf()) + return this.delete("/users/$path_user_id/credentials_totp", mapOf()) } - /** * ### LDAP login information for the specified user. * @@ -9479,14 +9624,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_ldap( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_ldap", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_ldap", + mapOf("fields" to fields), + ) } - /** * ### LDAP login information for the specified user. * @@ -9495,13 +9641,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_ldap -> ByteArray */ fun delete_user_credentials_ldap( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_ldap", mapOf()) + return this.delete("/users/$path_user_id/credentials_ldap", mapOf()) } - /** * ### Google authentication login information for the specified user. * @@ -9512,14 +9657,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_google( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_google", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_google", + mapOf("fields" to fields), + ) } - /** * ### Google authentication login information for the specified user. * @@ -9528,13 +9674,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_google -> ByteArray */ fun delete_user_credentials_google( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_google", mapOf()) + return this.delete("/users/$path_user_id/credentials_google", mapOf()) } - /** * ### Saml authentication login information for the specified user. * @@ -9545,14 +9690,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_saml( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_saml", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_saml", + mapOf("fields" to fields), + ) } - /** * ### Saml authentication login information for the specified user. * @@ -9561,13 +9707,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_saml -> ByteArray */ fun delete_user_credentials_saml( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_saml", mapOf()) + return this.delete("/users/$path_user_id/credentials_saml", mapOf()) } - /** * ### OpenID Connect (OIDC) authentication login information for the specified user. * @@ -9578,14 +9723,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_oidc( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_oidc", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_oidc", + mapOf("fields" to fields), + ) } - /** * ### OpenID Connect (OIDC) authentication login information for the specified user. * @@ -9594,13 +9740,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_oidc -> ByteArray */ fun delete_user_credentials_oidc( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_oidc", mapOf()) + return this.delete("/users/$path_user_id/credentials_oidc", mapOf()) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9613,15 +9758,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_credentials_api3( user_id: String, credentials_api3_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_api3_id = encodeParam(credentials_api3_id) - return this.get("/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_api3/$path_credentials_api3_id", + mapOf("fields" to fields), + ) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9632,14 +9778,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_credentials_api3( user_id: String, - credentials_api3_id: String - ) : SDKResponse { + credentials_api3_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_api3_id = encodeParam(credentials_api3_id) - return this.delete("/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", mapOf()) + return this.delete("/users/$path_user_id/credentials_api3/$path_credentials_api3_id", mapOf()) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9650,14 +9795,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_credentials_api3s( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_api3", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_api3", + mapOf("fields" to fields), + ) } - /** * ### API 3 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9668,14 +9814,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user_credentials_api3( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_api3", - mapOf("fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_api3", + mapOf("fields" to fields), + ) } - /** * ### Embed login information for the specified user. * @@ -9688,15 +9835,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_credentials_embed( user_id: String, credentials_embed_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_embed_id = encodeParam(credentials_embed_id) - return this.get("/users/${path_user_id}/credentials_embed/${path_credentials_embed_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_embed/$path_credentials_embed_id", + mapOf("fields" to fields), + ) } - /** * ### Embed login information for the specified user. * @@ -9707,14 +9855,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_credentials_embed( user_id: String, - credentials_embed_id: String - ) : SDKResponse { + credentials_embed_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_credentials_embed_id = encodeParam(credentials_embed_id) - return this.delete("/users/${path_user_id}/credentials_embed/${path_credentials_embed_id}", mapOf()) + return this.delete("/users/$path_user_id/credentials_embed/$path_credentials_embed_id", mapOf()) } - /** * ### Embed login information for the specified user. * @@ -9725,14 +9872,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_credentials_embeds( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_embed", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_embed", + mapOf("fields" to fields), + ) } - /** * ### Looker Openid login information for the specified user. Used by Looker Analysts. * @@ -9743,14 +9891,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_credentials_looker_openid( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/credentials_looker_openid", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/credentials_looker_openid", + mapOf("fields" to fields), + ) } - /** * ### Looker Openid login information for the specified user. Used by Looker Analysts. * @@ -9759,13 +9908,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /users/{user_id}/credentials_looker_openid -> ByteArray */ fun delete_user_credentials_looker_openid( - user_id: String - ) : SDKResponse { + user_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.delete("/users/${path_user_id}/credentials_looker_openid", mapOf()) + return this.delete("/users/$path_user_id/credentials_looker_openid", mapOf()) } - /** * ### Web login session for the specified user. * @@ -9778,15 +9926,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_session( user_id: String, session_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_session_id = encodeParam(session_id) - return this.get("/users/${path_user_id}/sessions/${path_session_id}", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/sessions/$path_session_id", + mapOf("fields" to fields), + ) } - /** * ### Web login session for the specified user. * @@ -9797,14 +9946,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_session( user_id: String, - session_id: String - ) : SDKResponse { + session_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_session_id = encodeParam(session_id) - return this.delete("/users/${path_user_id}/sessions/${path_session_id}", mapOf()) + return this.delete("/users/$path_user_id/sessions/$path_session_id", mapOf()) } - /** * ### Web login session for the specified user. * @@ -9815,14 +9963,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_sessions( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/sessions", - mapOf("fields" to fields)) + return this.get( + "/users/$path_user_id/sessions", + mapOf("fields" to fields), + ) } - /** * ### Create a password reset token. * This will create a cryptographically secure random password reset token for the user. @@ -9843,15 +9992,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun create_user_credentials_email_password_reset( user_id: String, expires: Boolean? = null, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email/password_reset", - mapOf("expires" to expires, - "fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_email/password_reset", + mapOf( + "expires" to expires, + "fields" to fields, + ), + ) } - /** * ### Get information about roles of a given user * @@ -9864,15 +10016,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun user_roles( user_id: String, fields: String? = null, - direct_association_only: Boolean? = null - ) : SDKResponse { + direct_association_only: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/roles", - mapOf("fields" to fields, - "direct_association_only" to direct_association_only)) + return this.get( + "/users/$path_user_id/roles", + mapOf( + "fields" to fields, + "direct_association_only" to direct_association_only, + ), + ) } - /** * ### Set roles of the user with a specific id. * @@ -9885,14 +10040,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun set_user_roles( user_id: String, body: Array, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.put("/users/${path_user_id}/roles", - mapOf("fields" to fields), body) + return this.put( + "/users/$path_user_id/roles", + mapOf("fields" to fields), + body, + ) } - /** * ### Get user attribute values for a given user. * @@ -9924,17 +10081,20 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fields: String? = null, user_attribute_ids: DelimArray? = null, all_values: Boolean? = null, - include_unset: Boolean? = null - ) : SDKResponse { + include_unset: Boolean? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.get("/users/${path_user_id}/attribute_values", - mapOf("fields" to fields, - "user_attribute_ids" to user_attribute_ids, - "all_values" to all_values, - "include_unset" to include_unset)) + return this.get( + "/users/$path_user_id/attribute_values", + mapOf( + "fields" to fields, + "user_attribute_ids" to user_attribute_ids, + "all_values" to all_values, + "include_unset" to include_unset, + ), + ) } - /** * ### Store a custom value for a user attribute in a user's account settings. * @@ -9949,14 +10109,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { fun set_user_attribute_user_value( user_id: String, user_attribute_id: String, - body: WriteUserAttributeWithValue - ) : SDKResponse { + body: WriteUserAttributeWithValue, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/users/${path_user_id}/attribute_values/${path_user_attribute_id}", mapOf(), body) + return this.patch("/users/$path_user_id/attribute_values/$path_user_attribute_id", mapOf(), body) } - /** * ### Delete a user attribute value from a user's account settings. * @@ -9972,14 +10131,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun delete_user_attribute_user_value( user_id: String, - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_user_id = encodeParam(user_id) val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/users/${path_user_id}/attribute_values/${path_user_attribute_id}", mapOf()) + return this.delete("/users/$path_user_id/attribute_values/$path_user_attribute_id", mapOf()) } - /** * ### Send a password reset token. * This will send a password reset email to the user. If a password reset token does not already exist @@ -9996,14 +10154,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun send_user_credentials_email_password_reset( user_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/credentials_email/send_password_reset", - mapOf("fields" to fields)) + return this.post( + "/users/$path_user_id/credentials_email/send_password_reset", + mapOf("fields" to fields), + ) } - /** * ### Change a disabled user's email addresses * @@ -10021,14 +10180,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun wipeout_user_emails( user_id: String, body: UserEmailOnly, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_id = encodeParam(user_id) - return this.post("/users/${path_user_id}/update_emails", - mapOf("fields" to fields), body) + return this.post( + "/users/$path_user_id/update_emails", + mapOf("fields" to fields), + body, + ) } - /** * Create an embed user from an external user ID * @@ -10037,16 +10198,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /users/embed_user -> ByteArray */ fun create_embed_user( - body: CreateEmbedUserRequest - ) : SDKResponse { - return this.post("/users/embed_user", mapOf(), body) + body: CreateEmbedUserRequest, + ): SDKResponse { + return this.post("/users/embed_user", mapOf(), body) } //endregion User: Manage Users //region UserAttribute: Manage User Attributes - /** * ### Get information about all user attributes. * @@ -10057,14 +10217,17 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_attributes( fields: String? = null, - sorts: String? = null - ) : SDKResponse { - return this.get("/user_attributes", - mapOf("fields" to fields, - "sorts" to sorts)) + sorts: String? = null, + ): SDKResponse { + return this.get( + "/user_attributes", + mapOf( + "fields" to fields, + "sorts" to sorts, + ), + ) } - /** * ### Create a new user attribute * @@ -10084,13 +10247,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun create_user_attribute( body: WriteUserAttribute, - fields: String? = null - ) : SDKResponse { - return this.post("/user_attributes", - mapOf("fields" to fields), body) + fields: String? = null, + ): SDKResponse { + return this.post( + "/user_attributes", + mapOf("fields" to fields), + body, + ) } - /** * ### Get information about a user attribute. * @@ -10101,14 +10266,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun user_attribute( user_attribute_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.get("/user_attributes/${path_user_attribute_id}", - mapOf("fields" to fields)) + return this.get( + "/user_attributes/$path_user_attribute_id", + mapOf("fields" to fields), + ) } - /** * ### Update a user attribute definition. * @@ -10121,14 +10287,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { @JvmOverloads fun update_user_attribute( user_attribute_id: String, body: WriteUserAttribute, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.patch("/user_attributes/${path_user_attribute_id}", - mapOf("fields" to fields), body) + return this.patch( + "/user_attributes/$path_user_attribute_id", + mapOf("fields" to fields), + body, + ) } - /** * ### Delete a user attribute (admin only). * @@ -10137,13 +10305,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * DELETE /user_attributes/{user_attribute_id} -> ByteArray */ fun delete_user_attribute( - user_attribute_id: String - ) : SDKResponse { + user_attribute_id: String, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.delete("/user_attributes/${path_user_attribute_id}", mapOf()) + return this.delete("/user_attributes/$path_user_attribute_id", mapOf()) } - /** * ### Returns all values of a user attribute defined by user groups, in precedence order. * @@ -10160,14 +10327,15 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ @JvmOverloads fun all_user_attribute_group_values( user_attribute_id: String, - fields: String? = null - ) : SDKResponse { + fields: String? = null, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.get("/user_attributes/${path_user_attribute_id}/group_values", - mapOf("fields" to fields)) + return this.get( + "/user_attributes/$path_user_attribute_id/group_values", + mapOf("fields" to fields), + ) } - /** * ### Define values for a user attribute across a set of groups, in priority order. * @@ -10197,17 +10365,16 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun set_user_attribute_group_values( user_attribute_id: String, - body: Array - ) : SDKResponse { + body: Array, + ): SDKResponse { val path_user_attribute_id = encodeParam(user_attribute_id) - return this.post("/user_attributes/${path_user_attribute_id}/group_values", mapOf(), body) + return this.post("/user_attributes/$path_user_attribute_id/group_values", mapOf(), body) } //endregion UserAttribute: Manage User Attributes //region Workspace: Manage Workspaces - /** * ### Get All Workspaces * @@ -10215,13 +10382,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * GET /workspaces -> ByteArray */ - fun all_workspaces( - - ) : SDKResponse { - return this.get("/workspaces", mapOf()) + fun all_workspaces(): SDKResponse { + return this.get("/workspaces", mapOf()) } - /** * ### Get A Workspace * @@ -10258,12 +10422,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /workspaces/{workspace_id} -> ByteArray */ fun workspace( - workspace_id: String - ) : SDKResponse { + workspace_id: String, + ): SDKResponse { val path_workspace_id = encodeParam(workspace_id) - return this.get("/workspaces/${path_workspace_id}", mapOf()) + return this.get("/workspaces/$path_workspace_id", mapOf()) } //endregion Workspace: Manage Workspaces - -} \ No newline at end of file +} diff --git a/kotlin/src/main/com/looker/sdk/ApiSettings.kt b/kotlin/src/main/com/looker/sdk/ApiSettings.kt index 51326daef..4832457c6 100644 --- a/kotlin/src/main/com/looker/sdk/ApiSettings.kt +++ b/kotlin/src/main/com/looker/sdk/ApiSettings.kt @@ -137,7 +137,7 @@ open class ApiSettings(val rawReadConfig: () -> Map) : Configura keyEnvironmentPrefix to environmentPrefix, keyVerifySSL to verifySSL.toString(), keyTimeout to timeout.toString(), - "headers" to headers.toString() + "headers" to headers.toString(), ).plus(rawMap) } diff --git a/kotlin/src/test/TestAuthToken.kt b/kotlin/src/test/TestAuthToken.kt index b994ee21d..0d20b649c 100644 --- a/kotlin/src/test/TestAuthToken.kt +++ b/kotlin/src/test/TestAuthToken.kt @@ -44,7 +44,7 @@ class TestAuthToken { accessToken = "all-access", tokenType = "backstage", expiresIn = 3600, - refreshToken = "refresh" + refreshToken = "refresh", ) assertEquals(testToken.accessToken, "all-access") @@ -59,7 +59,7 @@ class TestAuthToken { var actual = AuthToken( accessToken = "all-access", tokenType = "backstage", - expiresIn = 9 + expiresIn = 9, ) assertEquals(actual.accessToken, "all-access") @@ -69,7 +69,7 @@ class TestAuthToken { actual = AuthToken( accessToken = "all-access", tokenType = "backstage", - expiresIn = 11 + expiresIn = 11, ) assertEquals(actual.expiresIn, 11) diff --git a/kotlin/src/test/TestMethods.kt b/kotlin/src/test/TestMethods.kt index 80accd3d0..f331cb38c 100644 --- a/kotlin/src/test/TestMethods.kt +++ b/kotlin/src/test/TestMethods.kt @@ -12,7 +12,7 @@ class TestMethods { getId: (item: TAll) -> TId, getEntity: (id: TId, fields: String?) -> SDKResponse, fields: String? = null, - maxErrors: Int = 3 + maxErrors: Int = 3, ): String { val entityName = TEntity::class.simpleName!! val list = sdk.ok>(lister()) @@ -46,7 +46,7 @@ class TestMethods { getId: (item: TAll) -> TId, getEntity: (id: TId, fields: String?) -> SDKResponse, fields: String? = null, - maxErrors: Int = 3 + maxErrors: Int = 3, ) { val entityName = TEntity::class.simpleName!! var result = listGetter(lister, getId, getEntity, null, maxErrors) @@ -64,7 +64,7 @@ class TestMethods { "system__activity", "dashboard", arrayOf("dashboard.id", "dashboard.title", "dashboard.count"), - limit = "100" + limit = "100", ) } @@ -80,9 +80,9 @@ class TestMethods { sdk.create_look( WriteLookWithQuery( description = "SDK Look", - query = simpleQuery() - ) - ) + query = simpleQuery(), + ), + ), ) print("Prepared Look ${look.id}") return look @@ -99,9 +99,9 @@ class TestMethods { WriteDashboard( description = "SDK Dashboard", title = "SDK Dashboard Title", - show_title = true - ) - ) + show_title = true, + ), + ), ) print("Prepared Dashboard ${dashboard.id}") return dashboard @@ -117,26 +117,26 @@ class TestMethods { sdk.create_board( WriteBoard( description = "SDK board description", - title = "SDK Board" - ) - ) + title = "SDK Board", + ), + ), ) val section = sdk.ok( sdk.create_board_section( WriteBoardSection( board_id = board.id!!, - description = "SDK section" - ) - ) + description = "SDK section", + ), + ), ) val item = sdk.ok( sdk.create_board_item( WriteBoardItem( board_section_id = section.id, - look_id = look.id - ) - ) + look_id = look.id, + ), + ), ) print("Prepared Board ${board.id} Section ${section.id} Item ${item.id} with Look ${look.id}") return board @@ -156,8 +156,8 @@ class TestMethods { format = "csv", address = "sftp://example", secret_parameters = "{\"password\":\"secret\"}", - parameters = "{\"username\":\"name\"}" - ) + parameters = "{\"username\":\"name\"}", + ), ) val plan = sdk.ok( @@ -171,9 +171,9 @@ class TestMethods { timezone = "America/Los_Angeles", crontab = "*/1440 * * * *", enabled = true, // Plan must be enabled to be retrieved by `all_scheduled_plans` - scheduled_plan_destination = destinations - ) - ) + scheduled_plan_destination = destinations, + ), + ), ) print("Prepared scheduled plan ${plan.id}") return plan @@ -245,7 +245,7 @@ class TestMethods { @Test fun testRunInlineQuery() { val result = sdk.ok( - sdk.run_inline_query("csv", simpleQuery()) + sdk.run_inline_query("csv", simpleQuery()), ) assertTrue(result.contains("Dashboard ID")) } @@ -255,7 +255,7 @@ class TestMethods { listGetter( { sdk.all_color_collections() }, { item -> item.id!! }, - { id, fields -> sdk.color_collection(id, fields) } + { id, fields -> sdk.color_collection(id, fields) }, ) } @@ -264,7 +264,7 @@ class TestMethods { listGetter( { sdk.all_connections() }, { item -> item.name!! }, - { id, fields -> sdk.connection(id, fields) } + { id, fields -> sdk.connection(id, fields) }, ) } @@ -273,7 +273,7 @@ class TestMethods { listGetter( { sdk.all_datagroups() }, { item -> item.id!! }, - { id, _ -> sdk.datagroup(id) } + { id, _ -> sdk.datagroup(id) }, ) } @@ -283,7 +283,7 @@ class TestMethods { testAll( { sdk.all_dashboards() }, { item -> item.id!! }, - { id, fields -> sdk.dashboard(id, fields) } + { id, fields -> sdk.dashboard(id, fields) }, ) } @@ -298,7 +298,7 @@ class TestMethods { testAll( { sdk.all_folders() }, { item -> item.id!! }, - { id, fields -> sdk.folder(id, fields) } + { id, fields -> sdk.folder(id, fields) }, ) } @@ -307,7 +307,7 @@ class TestMethods { listGetter( { sdk.all_groups() }, { item -> item.id!! }, - { id, fields -> sdk.group(id, fields) } + { id, fields -> sdk.group(id, fields) }, ) } @@ -317,7 +317,7 @@ class TestMethods { listGetter( { sdk.all_board_items() }, { item -> item.id!! }, - { id, fields -> sdk.board_item(id, fields) } + { id, fields -> sdk.board_item(id, fields) }, ) } @@ -334,7 +334,7 @@ class TestMethods { listGetter( { sdk.all_boards() }, { item -> item.id!! }, - { id, fields -> sdk.board(id, fields) } + { id, fields -> sdk.board(id, fields) }, ) } @@ -344,7 +344,7 @@ class TestMethods { listGetter( { sdk.all_board_sections() }, { item -> item.id!! }, - { id, fields -> sdk.board_section(id, fields) } + { id, fields -> sdk.board_section(id, fields) }, ) } @@ -353,7 +353,7 @@ class TestMethods { listGetter( { sdk.all_integration_hubs() }, { item -> item.id!! }, - { id, fields -> sdk.integration_hub(id, fields) } + { id, fields -> sdk.integration_hub(id, fields) }, ) } @@ -362,7 +362,7 @@ class TestMethods { listGetter( { sdk.all_integrations() }, { item -> item.id!! }, - { id, fields -> sdk.integration(id, fields) } + { id, fields -> sdk.integration(id, fields) }, ) } @@ -371,7 +371,7 @@ class TestMethods { listGetter( { sdk.all_legacy_features() }, { item -> item.id!! }, - { id, _ -> sdk.legacy_feature(id) } + { id, _ -> sdk.legacy_feature(id) }, ) } @@ -386,7 +386,7 @@ class TestMethods { testAll( { sdk.all_lookml_models() }, { item -> item.name!! }, - { id, fields -> sdk.lookml_model(id, fields) } + { id, fields -> sdk.lookml_model(id, fields) }, ) } @@ -396,7 +396,7 @@ class TestMethods { testAll( { sdk.all_looks() }, { item -> item.id!! }, - { id, fields -> sdk.look(id, fields) } + { id, fields -> sdk.look(id, fields) }, ) } @@ -405,7 +405,7 @@ class TestMethods { testAll( { sdk.all_model_sets() }, { item -> item.id!! }, - { id, fields -> sdk.model_set(id, fields) } + { id, fields -> sdk.model_set(id, fields) }, ) } @@ -414,7 +414,7 @@ class TestMethods { testAll( { sdk.all_permission_sets() }, { item -> item.id!! }, - { id, fields -> sdk.permission_set(id, fields) } + { id, fields -> sdk.permission_set(id, fields) }, ) } @@ -429,7 +429,7 @@ class TestMethods { testAll( { sdk.all_projects() }, { item -> item.id!! }, - { id, fields -> sdk.project(id, fields) } + { id, fields -> sdk.project(id, fields) }, ) } @@ -438,7 +438,7 @@ class TestMethods { testAll( { sdk.all_roles() }, { item -> item.id!! }, - { id, _ -> sdk.role(id) } + { id, _ -> sdk.role(id) }, ) } @@ -448,7 +448,7 @@ class TestMethods { testAll( { sdk.all_scheduled_plans() }, { item -> item.id!! }, - { id, fields -> sdk.scheduled_plan(id, fields) } + { id, fields -> sdk.scheduled_plan(id, fields) }, ) clearScheduledPlan() } @@ -458,7 +458,7 @@ class TestMethods { testAll( { sdk.all_themes() }, { item -> item.id!! }, - { id, fields -> sdk.theme(id, fields) } + { id, fields -> sdk.theme(id, fields) }, ) } @@ -473,7 +473,7 @@ class TestMethods { testAll( { sdk.all_user_attributes() }, { item -> item.id!! }, - { id, fields -> sdk.user_attribute(id, fields) } + { id, fields -> sdk.user_attribute(id, fields) }, ) } @@ -490,7 +490,7 @@ class TestMethods { testAll( { sdk.all_users() }, { item -> item.id!! }, - { id, fields -> sdk.user(id, fields) } + { id, fields -> sdk.user(id, fields) }, ) } @@ -515,7 +515,7 @@ class TestMethods { user_can_view = true, user_can_edit = true, // Now that Transport.kt uses GSon, this null property will be stripped from the request payload - hidden_value_domain_whitelist = null + hidden_value_domain_whitelist = null, ) val actual = sdk.ok(sdk.create_user_attribute(body)) // We won't get here when there's an error @@ -532,7 +532,7 @@ class TestMethods { testAll( { sdk.all_workspaces() }, { item -> item.id!! }, - { id, _ -> sdk.workspace(id) } + { id, _ -> sdk.workspace(id) }, ) } @@ -540,11 +540,11 @@ class TestMethods { fun testErrorReporting() { try { val props = ThemeSettings( - background_color = "invalid" + background_color = "invalid", ) val theme = WriteTheme( name = "'bogus!", - settings = props + settings = props, ) val actual = sdk.ok(sdk.validate_theme(theme)) assertNull(actual) // test should never get here diff --git a/kotlin/src/test/TestSmoke.kt b/kotlin/src/test/TestSmoke.kt index bc4f045c8..201f96fcc 100644 --- a/kotlin/src/test/TestSmoke.kt +++ b/kotlin/src/test/TestSmoke.kt @@ -30,13 +30,12 @@ class TestSmoke { "system__activity", "dashboard", arrayOf("dashboard.id", "dashboard.title", "dashboard.count"), - limit = "100" + limit = "100", ) } @ExperimentalUnsignedTypes fun mimeType(data: UByteArray): String { - val b = data[0] val n = b.toUInt().toInt() return when (n) { @@ -73,7 +72,7 @@ class TestSmoke { if (dashboards.isNotEmpty()) { type = "dashboard" dashboards[0].id?.let { - dashId -> + dashId -> id = dashId } } @@ -126,7 +125,7 @@ class TestSmoke { val task = WriteCreateQueryTask( query_id = id, source = "test", - result_format = ResultFormat.csv + result_format = ResultFormat.csv, ) val created = sdk.ok(sdk.create_query_task(task)) assertEquals(id, created.query_id, "Query id matches") @@ -222,5 +221,5 @@ data class DummyUser( var id: Long? = null, var credentials_api3: Array? = null, var display_name: String? = null, - var email: String? = null + var email: String? = null, ) : Serializable diff --git a/kotlin/src/test/Utils.kt b/kotlin/src/test/Utils.kt index c6a56df7a..24181bb6e 100644 --- a/kotlin/src/test/Utils.kt +++ b/kotlin/src/test/Utils.kt @@ -38,15 +38,15 @@ val jsonDictType = object : TypeToken() {}.type class TestSettingsIniFile( filename: String = "./looker.ini", section: String = "", - private val base: ConfigurationProvider = ApiSettings.fromIniFile(filename, section) + private val base: ConfigurationProvider = ApiSettings.fromIniFile(filename, section), ) : ConfigurationProvider by base { override fun readConfig(): Map { return base.readConfig().plus( mapOf( "client_id" to "test_client_id", - "redirect_uri" to "looker://" - ) + "redirect_uri" to "looker://", + ), ) } }