From f12da6a54ca9f738feaada29236b9d36275f7545 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Tue, 18 Jul 2023 20:00:47 +0200 Subject: [PATCH 1/5] chore(deps): Updated Kotlin from v1.7.0 to v1.9.10, Gradle from v6.7.1 to v8.3 and upgraded linter --- .editorconfig | 4 +- kotlin/build.gradle | 83 ------------------- kotlin/build.gradle.kts | 65 +++++++++++++++ kotlin/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- kotlin/settings.gradle | 7 -- kotlin/settings.gradle.kts | 9 ++ 7 files changed, 79 insertions(+), 93 deletions(-) delete mode 100644 kotlin/build.gradle create mode 100644 kotlin/build.gradle.kts delete mode 100644 kotlin/settings.gradle create mode 100644 kotlin/settings.gradle.kts diff --git a/.editorconfig b/.editorconfig index ee2c8abd6..dabf36db6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,8 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.{kt,gradle}] +[*.{kt,kts}] indent_style = space indent_size = 4 +ktlint_standard_no-wildcard-imports = disabled +ktlint_standard_filename = disabled 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..dabdb5458 --- /dev/null +++ b/kotlin/build.gradle.kts @@ -0,0 +1,65 @@ +group = "com.looker.sdk" +defaultTasks = mutableListOf("jar") + +val kotlinVersion = providers.gradleProperty("kotlinVersion").get() +val ktorVersion = providers.gradleProperty("ktorVersion").get() + +plugins { + kotlin("jvm") + id("com.diffplug.spotless") +} + +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") +} + +spotless { + kotlin { + ktlint("0.50.0").setEditorConfigPath("$projectDir/../.editorconfig") + } +} + +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..fe7706b7e 100644 --- a/kotlin/gradle.properties +++ b/kotlin/gradle.properties @@ -1,2 +1,2 @@ -kotlinVersion=1.7.10 +kotlinVersion=1.9.10 ktorVersion=1.5.4 diff --git a/kotlin/gradle/wrapper/gradle-wrapper.properties b/kotlin/gradle/wrapper/gradle-wrapper.properties index 4d9ca1649..db9a6b825 100644 --- a/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ 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.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists 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..8c89b8cf9 --- /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("com.diffplug.spotless") version "6.20.0" + } +} From abf5c7dafdf392ae4363f2a20c2341a5d9638e15 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Wed, 19 Jul 2023 11:53:33 +0200 Subject: [PATCH 2/5] chore(deps): upgraded kotlin linter formatted code --- .editorconfig | 1 + kotlin/src/main/com/looker/rtl/AuthSession.kt | 10 +- kotlin/src/main/com/looker/rtl/AuthToken.kt | 4 +- kotlin/src/main/com/looker/rtl/Constants.kt | 2 +- kotlin/src/main/com/looker/rtl/ErrorDoc.kt | 22 ++-- .../src/main/com/looker/rtl/OAuthSession.kt | 14 +-- kotlin/src/main/com/looker/rtl/Transport.kt | 26 ++--- kotlin/src/main/com/looker/sdk/ApiSettings.kt | 2 +- kotlin/src/test/TestAuthToken.kt | 6 +- kotlin/src/test/TestMethods.kt | 100 +++++++++--------- kotlin/src/test/TestSmoke.kt | 9 +- kotlin/src/test/Utils.kt | 6 +- 12 files changed, 105 insertions(+), 97 deletions(-) diff --git a/.editorconfig b/.editorconfig index dabf36db6..643e240d0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,4 @@ indent_style = space indent_size = 4 ktlint_standard_no-wildcard-imports = disabled ktlint_standard_filename = disabled +ktlint_standard_enum-entry-name-case = disabled 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 96e5b62cb..d7e81b00f 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 4c208279f..3b0ceb34a 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://static-a.cdn.looker.app/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], ) } @@ -182,7 +185,10 @@ class ErrorDoc(val sdk: APIMethods, val cdnUrl: String = ErrorCodesUrl): IErrorD override fun specPath(path: String): String { val rx = Regex("""(:\w+)""") - val result = path.replace(rx) { val x = it.value.substring(1); "{$x}" } + val result = path.replace(rx) { + val x = it.value.substring(1) + "{$x}" + } return result } @@ -220,5 +226,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/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://", + ), ) } } From 0bb73bc77410f0c5c560aeb39733ae1c2e94ded7 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Fri, 22 Sep 2023 10:11:08 +0200 Subject: [PATCH 3/5] chore(deps): Updated Kotlin from v1.7.0 to v1.9.10, Gradle from v6.7.1 to v8.3 and upgraded linter adding foojay-resolver-convention gradle plugin --- kotlin/settings.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin/settings.gradle.kts b/kotlin/settings.gradle.kts index 8c89b8cf9..f4b4695ed 100644 --- a/kotlin/settings.gradle.kts +++ b/kotlin/settings.gradle.kts @@ -5,5 +5,6 @@ pluginManagement { plugins { kotlin("jvm") version kotlinVersion id("com.diffplug.spotless") version "6.20.0" + id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" } } From 493d40c1529c410994966ca2982c30ef2739ea41 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Fri, 22 Sep 2023 10:11:42 +0200 Subject: [PATCH 4/5] chore(deps): Updated Kotlin from v1.7.0 to v1.9.10, Gradle from v6.7.1 to v8.3 and upgraded linter setting gradle jvm toolchain version from 8 to 17 --- kotlin/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin/build.gradle.kts b/kotlin/build.gradle.kts index dabdb5458..f89bfcddc 100644 --- a/kotlin/build.gradle.kts +++ b/kotlin/build.gradle.kts @@ -55,7 +55,7 @@ spotless { } kotlin { - jvmToolchain(8) + jvmToolchain(17) } tasks.test { From db5b3c9d390a2961a057ba628bc9b26931080744 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Fri, 22 Sep 2023 10:15:38 +0200 Subject: [PATCH 5/5] chore(deps): upgraded kotlin linter formatted code --- kotlin/src/main/com/looker/sdk/4.0/methods.kt | 4480 +++++++-------- kotlin/src/main/com/looker/sdk/4.0/models.kt | 1493 +++-- kotlin/src/main/com/looker/sdk/4.0/streams.kt | 4887 +++++++++-------- 3 files changed, 5593 insertions(+), 5267 deletions(-) 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 68dd47932..e6bcd2765 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 @@ * 464 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()) } - /** * 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()) } - /** * ### 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()) } - /** * ### 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) } - /** * ### 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) } - /** * ### 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()) } - /** * ### 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,8 +274,8 @@ 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()) } @@ -286,7 +284,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //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. * @@ -359,22 +359,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()) } @@ -382,7 +381,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. * @@ -393,13 +391,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 * @@ -414,15 +413,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 * @@ -437,14 +439,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 * @@ -455,13 +458,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()) } - /** * ### Search all key/value pairs in a namespace for matching criteria. * @@ -500,20 +502,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 * @@ -534,17 +539,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 * @@ -559,14 +567,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 * @@ -604,18 +613,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. * @@ -628,12 +639,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. * @@ -644,13 +654,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()) } - /** * ### Create Signed Embed URL * @@ -699,12 +708,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 * @@ -740,12 +748,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) } - /** * ### Validate a Signed Embed URL * @@ -754,13 +761,14 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /embed/sso/validate -> EmbedUrlResponse */ @JvmOverloads fun validate_embed_url( - url: String? = null - ) : SDKResponse { - return this.get("/embed/sso/validate", - mapOf("url" to url)) + url: String? = null, + ): SDKResponse { + return this.get( + "/embed/sso/validate", + mapOf("url" to url), + ) } - /** * ### Acquire a cookieless embed session. * @@ -800,12 +808,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 * @@ -820,13 +827,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()) } - /** * ### Generate api and navigation tokens for a cookieless embed session * @@ -843,12 +849,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. * @@ -871,13 +876,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. * @@ -898,12 +900,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. * @@ -931,12 +932,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. * @@ -966,12 +966,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. * @@ -990,12 +989,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. * @@ -1014,12 +1012,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] @@ -1029,12 +1026,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 * @@ -1043,13 +1039,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()) } - /** * ### Deregister a mobile device. * @@ -1058,13 +1053,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()) } - /** * ### List All OAuth Client Apps * @@ -1079,13 +1073,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 * @@ -1098,14 +1093,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 * @@ -1123,14 +1119,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 * @@ -1145,14 +1143,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 * @@ -1169,13 +1169,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()) } - /** * ### Invalidate All Issued Tokens * @@ -1187,13 +1186,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()) } - /** * ### Activate an app for a user * @@ -1212,15 +1210,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 * @@ -1242,15 +1241,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. * @@ -1269,13 +1269,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. * @@ -1294,12 +1291,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. * @@ -1310,13 +1306,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()) } - /** * ### Delete a OIDC test configuration. * @@ -1327,13 +1322,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()) } - /** * ### Create a OIDC test configuration. * @@ -1344,12 +1338,11 @@ 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. * @@ -1357,13 +1350,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /password_config -> PasswordConfig */ - fun password_config( - - ) : SDKResponse { + fun password_config(): SDKResponse { return this.get("/password_config", mapOf()) } - /** * ### Update password config. * @@ -1374,12 +1364,11 @@ 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. * @@ -1387,13 +1376,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * 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. * @@ -1412,13 +1398,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. * @@ -1437,12 +1420,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. * @@ -1453,13 +1435,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()) } - /** * ### Delete a SAML test configuration. * @@ -1470,13 +1451,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()) } - /** * ### Create a SAML test configuration. * @@ -1487,12 +1467,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. * @@ -1503,12 +1482,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 @@ -1521,24 +1499,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. * @@ -1547,12 +1521,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 * @@ -1565,13 +1538,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 * @@ -1584,12 +1558,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 * @@ -1602,13 +1575,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()) } - /** * ### Enable Support Access * @@ -1621,12 +1593,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 * @@ -1636,13 +1607,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 * @@ -1652,13 +1620,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. * @@ -1667,13 +1632,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. * @@ -1702,23 +1668,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. * @@ -1727,8 +1696,8 @@ 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()) } @@ -1737,7 +1706,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Board: Manage Boards - /** * ### Get information about all boards. * @@ -1746,13 +1714,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. * @@ -1763,13 +1732,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 * @@ -1825,26 +1796,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. * @@ -1855,14 +1829,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. * @@ -1875,14 +1850,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. * @@ -1891,13 +1868,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()) } - /** * ### Get information about all board items. * @@ -1910,15 +1886,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. * @@ -1929,13 +1908,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. * @@ -1946,14 +1927,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. * @@ -1966,14 +1948,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. * @@ -1982,13 +1966,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()) } - /** * ### Get information about all board sections. * @@ -1999,14 +1982,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. * @@ -2017,13 +2003,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. * @@ -2034,14 +2022,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. * @@ -2054,14 +2043,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. * @@ -2070,8 +2061,8 @@ 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()) } @@ -2080,7 +2071,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //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) @@ -2096,13 +2086,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 * @@ -2119,12 +2110,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) @@ -2138,13 +2128,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) @@ -2158,13 +2149,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 * @@ -2174,13 +2166,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 * @@ -2192,13 +2181,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 * @@ -2218,14 +2208,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. @@ -2237,13 +2228,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) } - /** * ### Delete a custom color collection by id * @@ -2259,8 +2249,8 @@ 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()) } @@ -2269,19 +2259,15 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //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. * @@ -2290,25 +2276,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. * @@ -2318,15 +2300,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. * @@ -2335,24 +2320,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 * @@ -2361,12 +2342,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. @@ -2374,13 +2354,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 * @@ -2390,25 +2367,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 * @@ -2417,24 +2388,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 * @@ -2443,12 +2410,11 @@ 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. * @@ -2456,13 +2422,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * 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. * @@ -2473,13 +2436,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()) } - /** * ### Update information about the legacy feature with a specific id. * @@ -2492,37 +2454,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) } - /** * ### 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 * @@ -2551,13 +2506,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 * @@ -2592,13 +2548,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. @@ -2609,12 +2567,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. * @@ -2623,25 +2580,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. * @@ -2650,13 +2605,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. * @@ -2669,14 +2625,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()) } - /** * ### This feature is enabled only by special license. * @@ -2689,14 +2644,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 private label configuration * @@ -2708,8 +2665,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) } @@ -2717,7 +2674,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Connection: Manage Database Connections - /** * ### Get information about all connections. * @@ -2726,13 +2682,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. * @@ -2741,12 +2698,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. * @@ -2757,14 +2713,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. * @@ -2775,13 +2732,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) } - /** * ### Delete a connection. * @@ -2790,13 +2746,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()) } - /** * ### Delete a connection override. * @@ -2807,14 +2762,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()) } - /** * ### Test an existing connection. * @@ -2832,14 +2786,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. * @@ -2857,13 +2812,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. * @@ -2872,13 +2829,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. * @@ -2891,14 +2849,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. * @@ -2909,12 +2870,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. * @@ -2923,12 +2883,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. * @@ -2937,13 +2896,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. * @@ -2952,12 +2912,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. * @@ -2966,13 +2925,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()) } - /** * ### Update an SSH Server. * @@ -2983,13 +2941,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) } - /** * ### Delete an SSH Server. * @@ -2998,13 +2955,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()) } - /** * ### Test the SSH Server * @@ -3013,13 +2969,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()) } - /** * ### Get information about all SSH Tunnels. * @@ -3028,13 +2983,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 * @@ -3043,12 +2999,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. * @@ -3057,13 +3012,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()) } - /** * ### Update an SSH Tunnel * @@ -3074,13 +3028,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) } - /** * ### Delete an SSH Tunnel * @@ -3089,13 +3042,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()) } - /** * ### Test the SSH Tunnel * @@ -3104,13 +3056,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()) } - /** * ### Get the SSH public key * @@ -3118,9 +3069,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()) } @@ -3128,7 +3077,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Content: Manage Content - /** * ### Search Favorite Content * @@ -3178,23 +3126,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 * @@ -3205,14 +3156,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 * @@ -3221,13 +3173,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()) } - /** * ### Create favorite content * @@ -3236,12 +3187,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. * @@ -3252,14 +3202,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. * @@ -3270,14 +3223,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. * @@ -3288,13 +3242,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) } - /** * ### All content metadata access records for a content metadata item. * @@ -3305,14 +3258,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. * @@ -3323,13 +3279,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. * @@ -3340,13 +3298,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) } - /** * ### Remove content metadata access. * @@ -3355,13 +3312,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()) } - /** * ### 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 @@ -3390,19 +3346,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. * @@ -3428,19 +3387,22 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { theme: 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, - "theme" to theme, - "format" to format, - "width" to width, - "height" to height)) + return this.get( + "/content_thumbnail/${path_type}/${path_resource_id}", + mapOf( + "reload" to reload, + "theme" to theme, + "format" to format, + "width" to width, + "height" to height, + ), + ) } - /** * ### Validate All Content * @@ -3452,13 +3414,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 * @@ -3512,25 +3475,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. * @@ -3546,22 +3512,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. * @@ -3576,13 +3544,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 * @@ -3604,12 +3573,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 * @@ -3685,32 +3653,35 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, filter_or: Boolean? = null, - not_owned_by: 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, - "not_owned_by" to not_owned_by)) + not_owned_by: 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, + "not_owned_by" to not_owned_by, + ), + ) } - /** * ### 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 @@ -3736,15 +3707,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. * @@ -3765,14 +3738,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 * @@ -3789,14 +3764,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 * @@ -3816,13 +3792,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) } - /** * ### Delete the dashboard with the specified id * @@ -3837,13 +3812,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()) } - /** * ### Get Aggregate Table LookML for Each Query on a Dahboard * @@ -3854,13 +3828,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()) } - /** * ### Get lookml of a UDD * @@ -3871,13 +3844,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()) } - /** * ### Move an existing dashboard * @@ -3893,14 +3865,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. * @@ -3923,12 +3896,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) * @@ -3937,12 +3909,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 * @@ -3961,14 +3932,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 * @@ -4012,19 +3984,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. * @@ -4035,14 +4010,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. * @@ -4055,14 +4031,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. * @@ -4071,13 +4049,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()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -4088,14 +4065,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. * @@ -4108,14 +4086,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. * @@ -4126,14 +4108,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. * @@ -4146,14 +4129,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. * @@ -4162,13 +4147,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()) } - /** * ### Get information about all the dashboard filters on a dashboard with a specific id. * @@ -4179,14 +4163,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. * @@ -4197,13 +4182,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. * @@ -4214,14 +4201,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. * @@ -4234,14 +4222,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. * @@ -4252,14 +4242,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. * @@ -4270,14 +4261,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. * @@ -4290,14 +4282,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. * @@ -4306,13 +4300,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()) } - /** * ### Get information about all the dashboard elements on a dashboard with a specific id. * @@ -4323,14 +4316,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. * @@ -4341,17 +4335,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. * @@ -4360,12 +4356,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. * @@ -4374,8 +4369,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) } @@ -4383,19 +4378,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. * @@ -4404,13 +4395,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()) } - /** * ### Update a datagroup using the specified params. * @@ -4421,8 +4411,8 @@ 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) } @@ -4431,7 +4421,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region DerivedTable: View Derived Table graphs - /** * ### Discover information about derived tables * @@ -4444,15 +4433,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. * @@ -4465,15 +4457,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 * @@ -4492,18 +4487,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 * @@ -4512,13 +4510,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()) } - /** * Stop a PDT materialization * @@ -4529,18 +4526,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 * @@ -4573,25 +4571,28 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { creator_id: String? = null, filter_or: Boolean? = null, is_shared_root: Boolean? = null, - is_users_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_users_root" to is_users_root)) + is_users_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_users_root" to is_users_root, + ), + ) } - /** * ### Get information about the folder with a specific id. * @@ -4602,14 +4603,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. * @@ -4620,13 +4622,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) } - /** * ### Delete the folder with a specific id including any children folders. * **DANGER** this will delete all looks and dashboards in the folder. @@ -4636,13 +4637,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()) } - /** * ### Get information about all folders. * @@ -4653,13 +4653,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. * @@ -4671,12 +4672,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. * @@ -4697,19 +4697,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 * @@ -4724,16 +4727,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 * @@ -4744,14 +4750,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 * @@ -4762,14 +4769,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 4.0+, all looks in a folder will be returned, excluding looks in the trash. @@ -4781,14 +4789,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 * @@ -4799,18 +4808,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. * @@ -4835,21 +4845,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). * @@ -4860,13 +4873,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 * @@ -4916,22 +4931,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 * @@ -4981,22 +4999,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 * @@ -5047,22 +5068,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. * @@ -5073,14 +5097,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). * @@ -5093,14 +5118,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). * @@ -5109,13 +5136,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()) } - /** * ### Get information about all the groups in a group * @@ -5126,14 +5152,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. * @@ -5144,13 +5171,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) } - /** * ### Get information about all the users directly included in a group. * @@ -5171,19 +5197,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. * @@ -5194,13 +5223,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) } - /** * ### Removes a user from a group. * @@ -5211,14 +5239,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()) } - /** * ### Removes a group from a group. * @@ -5229,14 +5256,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()) } - /** * ### Set the value of a user attribute for a group. * @@ -5251,14 +5277,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) } - /** * ### Remove a user attribute value from a group. * @@ -5269,8 +5294,8 @@ 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()) @@ -5280,7 +5305,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Homepage: Manage Homepage - /** * ### Get information about the primary homepage's sections. * @@ -5289,17 +5313,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. * @@ -5308,13 +5333,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. * @@ -5327,13 +5353,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. * @@ -5344,14 +5372,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. * @@ -5366,14 +5395,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. * @@ -5382,13 +5413,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()) } - /** * 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. * @@ -5397,13 +5427,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()) } - /** * ### Get information about all Integrations. * @@ -5414,14 +5443,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. * @@ -5432,14 +5464,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. * @@ -5452,14 +5485,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. * @@ -5470,13 +5505,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) } - /** * Tests the integration to make sure all the settings are working. * @@ -5485,8 +5519,8 @@ 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()) } @@ -5495,7 +5529,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region JdbcInterface: LookML Model metadata for JDBC Clients - /** * ### Handle Avatica RPC Requests * @@ -5504,17 +5537,18 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * GET /__jdbc_interface__ -> JdbcInterface */ @JvmOverloads fun jdbc_interface( - avatica_request: String? = null - ) : SDKResponse { - return this.get("/__jdbc_interface__", - mapOf("avatica_request" to avatica_request)) + avatica_request: String? = null, + ): SDKResponse { + return this.get( + "/__jdbc_interface__", + mapOf("avatica_request" to avatica_request), + ) } //endregion JdbcInterface: LookML Model metadata for JDBC Clients //region Look: Run and Manage Looks - /** * ### Get information about all active Looks * @@ -5529,13 +5563,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 * @@ -5552,13 +5587,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 * @@ -5627,30 +5664,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. * @@ -5663,14 +5703,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 * @@ -5702,14 +5743,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 * @@ -5724,13 +5767,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()) } - /** * ### Run a Look * @@ -5785,26 +5827,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 * @@ -5821,14 +5866,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 * @@ -5844,18 +5890,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. * @@ -5868,15 +5915,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. * @@ -5885,12 +5935,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. * @@ -5901,14 +5950,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. * @@ -5919,13 +5969,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) } - /** * ### Delete a lookml model. * @@ -5934,13 +5983,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()) } - /** * ### Get information about a lookml model explore. * @@ -5953,19 +6001,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 * @@ -6000,17 +6049,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 * @@ -6019,13 +6071,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()) } - /** * ### List databases available to this connection * @@ -6042,13 +6093,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()) } - /** * ### Retrieve metadata features for this connection * @@ -6061,14 +6111,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 * @@ -6083,16 +6134,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 * @@ -6118,19 +6172,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 * @@ -6151,19 +6208,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 * @@ -6178,15 +6238,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 * @@ -6203,18 +6266,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 * @@ -6231,14 +6296,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 * @@ -6249,13 +6315,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()) } - /** * ### Get the Current Git Branch * @@ -6266,13 +6331,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()) } - /** * ### Checkout and/or reset --hard an existing Git Branch * @@ -6291,13 +6355,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) } - /** * ### Create and Checkout a Git Branch * @@ -6315,13 +6378,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) } - /** * ### Get the specified Git Branch * @@ -6334,14 +6396,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()) } - /** * ### Delete the specified Git Branch * @@ -6354,14 +6415,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()) } - /** * ### Deploy a Remote Branch or Ref to Production * @@ -6382,15 +6442,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 * @@ -6410,13 +6473,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()) } - /** * ### Reset a project to the revision of the project that is in production. * @@ -6427,13 +6489,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()) } - /** * ### Reset a project development branch to the revision of the project that is on the remote. * @@ -6444,13 +6505,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()) } - /** * ### Get All Projects * @@ -6461,13 +6521,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 * @@ -6482,12 +6543,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 * @@ -6500,14 +6560,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 * @@ -6541,14 +6602,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 * @@ -6559,13 +6622,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()) } - /** * ### Git Deploy Key * @@ -6576,13 +6638,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()) } - /** * ### Create Git Deploy Key * @@ -6599,13 +6660,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()) } - /** * ### Get Cached Project Validation Results * @@ -6627,14 +6687,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 * @@ -6653,14 +6714,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 * @@ -6673,14 +6735,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 * @@ -6693,14 +6756,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 * @@ -6715,15 +6779,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 * @@ -6743,14 +6810,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 * @@ -6771,16 +6839,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 * @@ -6795,14 +6866,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 * @@ -6819,16 +6891,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 * @@ -6847,16 +6922,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 * @@ -6874,14 +6953,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) } - /** * ### Repository Credential for a remote dependency * @@ -6897,14 +6975,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()) } - /** * ### Get all Repository Credentials for a project * @@ -6915,8 +6992,8 @@ 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()) } @@ -6925,7 +7002,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Query: Run and Manage Queries - /** * ### Create an async query task * @@ -6965,25 +7041,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 * @@ -6998,13 +7078,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 * @@ -7021,14 +7102,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 * @@ -7059,13 +7141,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()) } - /** * ### Get a previously created query by id. * @@ -7092,14 +7173,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. * @@ -7126,14 +7208,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. * @@ -7151,13 +7234,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. * @@ -7217,27 +7302,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. * @@ -7324,25 +7412,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. * @@ -7409,15 +7501,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()) } - /** * ### Get Merge Query * @@ -7430,14 +7521,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 * @@ -7464,25 +7556,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. * @@ -7491,13 +7582,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()) } - /** * ### Run a saved SQL interface query. * @@ -7530,14 +7620,13 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { */ fun run_sql_interface_query( query_id: Long, - result_format: String - ) : SDKResponse { + result_format: String, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) return this.get("/sql_interface_queries/${path_query_id}/run/${path_result_format}", mapOf()) } - /** * ### Create a SQL interface query. * @@ -7553,12 +7642,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * POST /sql_interface_queries -> SqlInterfaceQuery */ fun create_sql_interface_query( - body: WriteSqlInterfaceQueryCreate - ) : SDKResponse { + body: WriteSqlInterfaceQueryCreate, + ): SDKResponse { return this.post("/sql_interface_queries", mapOf(), body) } - /** * ### Create a SQL Runner Query * @@ -7569,12 +7657,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) } - /** * Get a SQL Runner query. * @@ -7583,13 +7670,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()) } - /** * Execute a SQL Runner query in a given result_format. * @@ -7604,19 +7690,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. * @@ -7637,17 +7724,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. * @@ -7668,17 +7758,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. * @@ -7709,21 +7802,25 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { pdf_paper_size: String? = null, pdf_landscape: Boolean? = null, long_tables: Boolean? = null, - theme: String? = null - ) : SDKResponse { + theme: String? = 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, - "theme" to theme), 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, + "theme" to theme, + ), + body, + ) } - /** * ### Get information about a render task. * @@ -7738,14 +7835,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. * @@ -7772,13 +7870,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()) } - /** * ### Create a new task to render a dashboard element to an image. * @@ -7799,21 +7896,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. @@ -7859,21 +7959,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. * @@ -7884,14 +7987,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. * @@ -7902,13 +8006,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) } - /** * ### Delete the model set with a specific id. * @@ -7917,13 +8020,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()) } - /** * ### Get information about all model sets. * @@ -7932,13 +8034,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. * @@ -7947,24 +8050,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. @@ -8010,21 +8109,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. * @@ -8035,14 +8137,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. * @@ -8053,13 +8156,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) } - /** * ### Delete the permission set with a specific id. * @@ -8068,13 +8170,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()) } - /** * ### Get information about all permission sets. * @@ -8083,13 +8184,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. * @@ -8098,12 +8200,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. * @@ -8114,14 +8215,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. * @@ -8130,12 +8234,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 * @@ -8181,20 +8284,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 * @@ -8241,20 +8347,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. * @@ -8263,13 +8372,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()) } - /** * ### Update information about the role with a specific id. * @@ -8280,13 +8388,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) } - /** * ### Delete the role with a specific id. * @@ -8295,13 +8402,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()) } - /** * ### Get information about all the groups with the role that has a specific id. * @@ -8312,14 +8418,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. * @@ -8332,13 +8439,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) } - /** * ### Get information about all the users with the role that has a specific id. * @@ -8351,15 +8457,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. * @@ -8370,8 +8479,8 @@ 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) } @@ -8380,7 +8489,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region ScheduledPlan: Manage Scheduled Plans - /** * ### Get Scheduled Plans for a Space * @@ -8393,14 +8501,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 * @@ -8413,14 +8522,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 * @@ -8472,13 +8582,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) } - /** * ### Delete a Scheduled Plan * @@ -8491,13 +8600,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()) } - /** * ### List All Scheduled Plans * @@ -8520,15 +8628,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 * @@ -8594,12 +8705,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 * @@ -8644,12 +8754,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 * @@ -8674,16 +8783,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 * @@ -8708,16 +8820,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 * @@ -8742,16 +8857,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, @@ -8808,8 +8926,8 @@ 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) } @@ -8818,7 +8936,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Session: Session Information - /** * ### Get API Session * @@ -8826,13 +8943,10 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * * GET /session -> ApiSession */ - fun session( - - ) : SDKResponse { + fun session(): SDKResponse { return this.get("/session", mapOf()) } - /** * ### Update API Session * @@ -8860,8 +8974,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) } @@ -8869,7 +8983,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Theme: Manage Themes - /** * ### Get an array of all existing themes * @@ -8884,13 +8997,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 * @@ -8913,12 +9027,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. * @@ -8980,21 +9093,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 * @@ -9009,13 +9125,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 * @@ -9034,13 +9151,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 * @@ -9061,15 +9179,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 * @@ -9085,14 +9206,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 * @@ -9107,12 +9231,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 * @@ -9127,14 +9250,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. * @@ -9147,13 +9271,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) } - /** * ### Delete a specific theme by id * @@ -9170,8 +9293,8 @@ 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()) } @@ -9180,7 +9303,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region User: Manage Users - /** * ### Search email credentials * @@ -9229,20 +9351,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. * @@ -9251,13 +9376,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. * @@ -9278,19 +9404,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. * @@ -9301,13 +9430,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 * @@ -9375,28 +9506,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 * @@ -9434,25 +9568,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. * @@ -9467,14 +9604,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. * @@ -9487,14 +9625,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. * @@ -9505,13 +9645,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()) } - /** * ### Get information about the user with a credential of given type with specific id. * @@ -9553,15 +9692,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. * @@ -9574,14 +9714,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. * @@ -9596,14 +9737,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. * @@ -9618,14 +9761,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. * @@ -9636,13 +9781,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()) } - /** * ### Two-factor login information for the specified user. * @@ -9655,14 +9799,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. * @@ -9677,14 +9822,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. * @@ -9695,13 +9842,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()) } - /** * ### LDAP login information for the specified user. * @@ -9714,14 +9860,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. * @@ -9732,13 +9879,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()) } - /** * ### Google authentication login information for the specified user. * @@ -9751,14 +9897,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. * @@ -9769,13 +9916,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()) } - /** * ### Saml authentication login information for the specified user. * @@ -9788,14 +9934,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. * @@ -9806,13 +9953,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()) } - /** * ### OpenID Connect (OIDC) authentication login information for the specified user. * @@ -9825,14 +9971,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. * @@ -9843,13 +9990,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()) } - /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9864,15 +10010,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9885,14 +10032,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()) } - /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9905,14 +10051,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9925,14 +10072,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. * @@ -9947,15 +10095,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. * @@ -9968,14 +10117,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()) } - /** * ### Embed login information for the specified user. * @@ -9988,14 +10136,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. * @@ -10008,14 +10157,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. * @@ -10026,13 +10176,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()) } - /** * ### Web login session for the specified user. * @@ -10047,15 +10196,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. * @@ -10068,14 +10218,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()) } - /** * ### Web login session for the specified user. * @@ -10088,14 +10237,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. @@ -10118,15 +10268,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 * @@ -10139,15 +10292,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. * @@ -10160,14 +10316,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. * @@ -10199,17 +10357,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. * @@ -10224,14 +10385,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) } - /** * ### Delete a user attribute value from a user's account settings. * @@ -10247,14 +10407,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()) } - /** * ### Send a password reset token. * This will send a password reset email to the user. If a password reset token does not already exist @@ -10273,14 +10432,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 * @@ -10300,14 +10460,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 * @@ -10318,8 +10480,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) } @@ -10327,7 +10489,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region UserAttribute: Manage User Attributes - /** * ### Get information about all user attributes. * @@ -10338,14 +10499,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 * @@ -10365,13 +10529,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. * @@ -10382,14 +10548,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. * @@ -10402,14 +10569,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). * @@ -10418,13 +10587,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()) } - /** * ### Returns all values of a user attribute defined by user groups, in precedence order. * @@ -10441,14 +10609,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. * @@ -10478,8 +10647,8 @@ 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) } @@ -10488,7 +10657,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { //region Workspace: Manage Workspaces - /** * ### Get All Workspaces * @@ -10496,13 +10664,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 * @@ -10539,12 +10704,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()) } //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 533b1632f..14c0af6e3 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 @@ * 332 API models: 249 Spec, 0 Request, 61 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 /** @@ -2043,7 +2042,7 @@ data class EgressIpAddresses ( * @property look_filters When true, filters are enabled on embedded Looks * @property hide_look_navigation When true, removes navigation to Looks from embedded dashboards and explores. */ -data class EmbedConfig ( +data class EmbedConfig( var domain_allowlist: Array? = null, var alert_url_allowlist: Array? = null, var alert_url_param_owner: String? = null, @@ -2054,7 +2053,7 @@ data class EmbedConfig ( var embed_content_management: Boolean? = null, var strict_sameorigin_for_login: Boolean? = null, var look_filters: Boolean? = null, - var hide_look_navigation: Boolean? = null + var hide_look_navigation: Boolean? = null, ) : Serializable /** @@ -2072,7 +2071,7 @@ data class EmbedConfig ( * @property embed_domain The domain of the server embedding the Looker IFRAME. This is an alternative to specifying the domain in the embedded domain allow list in the Looker embed admin page. * @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, @@ -2083,9 +2082,9 @@ data class EmbedCookielessSessionAcquire ( var models: Array? = null, var group_ids: Array? = null, var external_group_id: String? = null, - var user_attributes: Map? = null, + var user_attributes: Map? = null, var embed_domain: String? = null, - var session_reference_token: String? = null + var session_reference_token: String? = null, ) : Serializable /** @@ -2098,7 +2097,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, @@ -2106,7 +2105,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 /** @@ -2114,10 +2113,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 /** @@ -2128,13 +2127,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 /** @@ -2142,10 +2141,10 @@ data class EmbedCookielessSessionGenerateTokensResponse ( * @property session_length Number of seconds the signed 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 /** @@ -2157,14 +2156,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 /** @@ -2183,7 +2182,7 @@ data class EmbedSecret ( * @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. * @property embed_domain Optional. URL of the domain hosting the signed embed URL. If provided and valid, the embed_domain will be added to the embed domain allowlist if it is not currently in the list */ -data class EmbedSsoParams ( +data class EmbedSsoParams( var target_url: String, var session_length: Long? = null, var force_logout_login: Boolean? = null, @@ -2195,25 +2194,25 @@ data class EmbedSsoParams ( var models: Array? = null, var group_ids: Array? = null, var external_group_id: String? = null, - var user_attributes: Map? = null, + var user_attributes: Map? = null, var secret_id: String? = null, - var embed_domain: String? = null + var embed_domain: 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 /** @@ -2225,14 +2224,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 /** @@ -2240,7 +2239,7 @@ data class ExternalOauthApplication ( */ enum class FillStyle : Serializable { enumeration, - range + range, } /** @@ -2263,7 +2262,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, @@ -2279,9 +2278,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 /** @@ -2302,7 +2301,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, @@ -2318,7 +2317,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 /** @@ -2326,7 +2325,7 @@ data class FolderBase ( */ enum class Format : Serializable { topojson, - vector_tile_region + vector_tile_region, } /** @@ -2348,8 +2347,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, @@ -2365,7 +2364,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 /** @@ -2373,10 +2372,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 /** @@ -2385,11 +2384,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 /** @@ -2398,11 +2397,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 /** @@ -2416,8 +2415,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, @@ -2425,7 +2424,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 /** @@ -2441,8 +2440,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, @@ -2452,7 +2451,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 /** @@ -2460,8 +2459,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 /** @@ -2469,8 +2468,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 /** @@ -2485,8 +2484,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, @@ -2495,7 +2494,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 /** @@ -2528,8 +2527,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, @@ -2556,7 +2555,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 /** @@ -2574,8 +2573,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, @@ -2587,7 +2586,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 /** @@ -2596,11 +2595,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 /** @@ -2623,8 +2622,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, @@ -2641,7 +2640,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 /** @@ -2657,8 +2656,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, @@ -2668,7 +2667,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 /** @@ -2683,7 +2682,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, @@ -2693,7 +2692,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 /** @@ -2701,10 +2700,10 @@ data class IntegrationParam ( * @property any_tag If present, supersedes 'tag' and matches a field that has any of the provided tags. (read-only) * @property all_tags If present, supersedes '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 /** @@ -2712,19 +2711,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 /** @@ -2732,24 +2731,24 @@ 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, } /** * @property results JDBC Metadata to inflate Avatica response classes. (read-only) */ -data class JdbcInterface ( - var results: String? = null +data class JdbcInterface( + var results: String? = null, ) : Serializable /** @@ -2797,8 +2796,8 @@ data class JdbcInterface ( * @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, @@ -2840,16 +2839,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 /** @@ -2861,14 +2860,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 /** @@ -2879,13 +2878,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 /** @@ -2896,13 +2895,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 /** @@ -2917,9 +2916,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, @@ -2927,7 +2926,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 /** @@ -2936,11 +2935,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 /** @@ -2949,11 +2948,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 /** @@ -2971,8 +2970,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, @@ -2984,7 +2983,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 /** @@ -2992,19 +2991,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 /** @@ -3039,8 +3038,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, @@ -3069,7 +3068,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 /** @@ -3079,12 +3078,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 /** @@ -3097,15 +3096,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 /** @@ -3149,7 +3148,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, @@ -3188,43 +3187,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 /** @@ -3233,11 +3232,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 /** @@ -3296,7 +3295,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, @@ -3350,16 +3349,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 /** @@ -3374,7 +3373,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, @@ -3384,16 +3383,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 /** @@ -3402,29 +3401,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 /** @@ -3442,7 +3441,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, @@ -3455,25 +3454,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 /** @@ -3483,12 +3482,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 /** @@ -3500,14 +3499,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 /** @@ -3520,24 +3519,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 /** @@ -3573,8 +3572,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, @@ -3604,7 +3603,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 /** @@ -3641,8 +3640,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, @@ -3673,7 +3672,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 /** @@ -3682,11 +3681,11 @@ 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 /** @@ -3694,28 +3693,28 @@ data class Manifest ( * @property update_looker_enabled Whether marketplace auto update is enabled for looker extensions * @property update_third_party_enabled Whether marketplace auto update is enabled for third party extensions */ -data class MarketplaceAutomation ( +data class MarketplaceAutomation( var install_enabled: Boolean? = null, var update_looker_enabled: Boolean? = null, - var update_third_party_enabled: Boolean? = null + var update_third_party_enabled: Boolean? = 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 /** @@ -3730,8 +3729,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, @@ -3740,7 +3739,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 /** @@ -3748,19 +3747,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 /** @@ -3771,13 +3770,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 /** @@ -3785,10 +3784,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 /** @@ -3796,10 +3795,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 /** @@ -3807,10 +3806,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 /** @@ -3820,12 +3819,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 /** @@ -3834,11 +3833,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 /** @@ -3850,23 +3849,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 /** @@ -3882,7 +3881,7 @@ enum class Name : Serializable { week, month, quarter, - year + year, } /** @@ -3896,8 +3895,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, @@ -3905,7 +3904,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 /** @@ -3943,8 +3942,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, @@ -3976,7 +3975,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 /** @@ -3986,12 +3985,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 /** @@ -4001,12 +4000,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 /** @@ -4014,10 +4013,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 /** @@ -4025,10 +4024,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 /** @@ -4038,12 +4037,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 /** @@ -4052,11 +4051,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 /** @@ -4068,14 +4067,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 /** @@ -4083,7 +4082,7 @@ data class PermissionSet ( */ enum class PermissionType : Serializable { view, - edit + edit, } /** @@ -4103,7 +4102,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, @@ -4118,7 +4117,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 /** @@ -4146,8 +4145,8 @@ data class PrivatelabelConfiguration ( * @property dependency_status Status of dependencies in your manifest & lockfile * @property data_tests_count Number of data tests within project (read-only) */ -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, @@ -4169,7 +4168,7 @@ data class Project ( var allow_warnings: Boolean? = null, var is_example: Boolean? = null, var dependency_status: String? = null, - var data_tests_count: Long? = null + var data_tests_count: Long? = null, ) : Serializable /** @@ -4186,7 +4185,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, @@ -4197,8 +4196,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 /** @@ -4212,8 +4211,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, @@ -4221,7 +4220,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 /** @@ -4230,11 +4229,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 /** @@ -4244,12 +4243,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 /** @@ -4262,15 +4261,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 /** @@ -4280,7 +4279,7 @@ enum class PullRequestMode : Serializable { off, links, recommended, - required + required, } /** @@ -4311,15 +4310,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, @@ -4327,8 +4326,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, @@ -4337,7 +4336,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 /** @@ -4361,8 +4360,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, @@ -4380,7 +4379,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 /** @@ -4405,8 +4404,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, @@ -4425,7 +4424,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 /** @@ -4438,15 +4437,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 /** @@ -4464,7 +4463,7 @@ enum class ResultFormat : Serializable { txt, xlsx, gsxml, - sql + sql, } /** @@ -4473,20 +4472,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 /** @@ -4501,7 +4500,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, @@ -4511,7 +4510,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 /** @@ -4525,8 +4524,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, @@ -4534,7 +4533,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 /** @@ -4549,8 +4548,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, @@ -4559,7 +4558,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 /** @@ -4585,8 +4584,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, @@ -4606,7 +4605,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 /** @@ -4644,8 +4643,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, @@ -4677,7 +4676,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 /** @@ -4688,13 +4687,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 /** @@ -4705,13 +4704,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 /** @@ -4720,11 +4719,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 /** @@ -4733,11 +4732,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 /** @@ -4746,11 +4745,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 /** @@ -4793,7 +4792,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, @@ -4831,7 +4830,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 /** @@ -4847,7 +4846,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, @@ -4858,16 +4857,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 /** @@ -4881,7 +4880,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, @@ -4890,7 +4889,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 /** @@ -4899,11 +4898,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 /** @@ -4914,13 +4913,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 /** @@ -4929,11 +4928,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 /** @@ -4941,7 +4940,7 @@ data class SchemaTables ( */ enum class SecretType : Serializable { SSO, - JWT + JWT, } /** @@ -4961,8 +4960,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, @@ -4976,7 +4975,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 /** @@ -4987,13 +4986,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 /** @@ -5017,7 +5016,7 @@ data class SessionConfig ( * @property embed_enabled True if embedding is enabled https://cloud.google.com/looker/docs/r/looker-core-feature-embed, false otherwise (read-only) * @property embed_config */ -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, @@ -5036,7 +5035,7 @@ data class Setting ( var email_domain_allowlist: Array? = null, var embed_cookieless_v2: Boolean? = null, var embed_enabled: Boolean? = null, - var embed_config: EmbedConfig? = null + var embed_config: EmbedConfig? = null, ) : Serializable /** @@ -5044,10 +5043,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 /** @@ -5060,7 +5059,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, @@ -5068,7 +5067,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 /** @@ -5076,10 +5075,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 /** @@ -5087,10 +5086,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 /** @@ -5098,10 +5097,10 @@ data class Snippet ( * @property id Unique Id (read-only) * @property signature Calcite signature (read-only) */ -data class SqlInterfaceQuery ( - var can: Map? = null, +data class SqlInterfaceQuery( + var can: Map? = null, var id: Long? = null, - var signature: String + var signature: String, ) : Serializable /** @@ -5109,10 +5108,10 @@ data class SqlInterfaceQuery ( * @property sql Original SQL request * @property jdbc_client Whether the query should be run for use in a JDBC Client. This changes the formatting of some datetime based values. */ -data class SqlInterfaceQueryCreate ( - var can: Map? = null, +data class SqlInterfaceQueryCreate( + var can: Map? = null, var sql: String, - var jdbc_client: Boolean? = null + var jdbc_client: Boolean? = null, ) : Serializable /** @@ -5131,8 +5130,8 @@ data class SqlInterfaceQueryCreate ( * @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, @@ -5144,8 +5143,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 /** @@ -5155,19 +5154,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 /** @@ -5181,7 +5180,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, @@ -5190,7 +5189,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 /** @@ -5206,7 +5205,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, @@ -5217,7 +5216,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 /** @@ -5226,16 +5225,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 /** @@ -5245,28 +5244,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 /** @@ -5276,7 +5275,7 @@ enum class SupportedActionTypes : Serializable { cell, query, dashboard, - none + none, } /** @@ -5284,7 +5283,7 @@ enum class SupportedActionTypes : Serializable { */ enum class SupportedDownloadSettings : Serializable { push, - url + url, } /** @@ -5303,7 +5302,7 @@ enum class SupportedFormats : Serializable { wysiwyg_pdf, assembled_pdf, wysiwyg_png, - csv_zip + csv_zip, } /** @@ -5311,7 +5310,7 @@ enum class SupportedFormats : Serializable { */ enum class SupportedFormattings : Serializable { formatted, - unformatted + unformatted, } /** @@ -5319,7 +5318,7 @@ enum class SupportedFormattings : Serializable { */ enum class SupportedVisualizationFormattings : Serializable { apply, - noapply + noapply, } /** @@ -5330,13 +5329,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 /** @@ -5386,7 +5385,7 @@ data class Theme ( * @property row_gap_size The horizontal gap/gutter size between tiles. * @property border_radius The border radius for tiles. */ -data class ThemeSettings ( +data class ThemeSettings( var background_color: String? = null, var base_font_size: String? = null, var color_collection_id: String? = null, @@ -5431,7 +5430,7 @@ data class ThemeSettings ( var tile_title_font_size: String? = null, var column_gap_size: String? = null, var row_gap_size: String? = null, - var border_radius: String? = null + var border_radius: String? = null, ) : Serializable /** @@ -5439,10 +5438,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 /** @@ -5451,20 +5450,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 /** @@ -5506,8 +5505,8 @@ data class UpdateFolder ( * @property is_iam_admin User is an IAM Admin - only available in Looker (Google Cloud core) (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, @@ -5535,7 +5534,7 @@ 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, @@ -5543,7 +5542,7 @@ data class User ( var allow_roles_from_normal_groups: Boolean? = null, var embed_group_folder_id: String? = null, var is_iam_admin: Boolean? = null, - var url: String? = null + var url: String? = null, ) : Serializable /** @@ -5560,8 +5559,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, @@ -5572,7 +5571,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 /** @@ -5587,7 +5586,7 @@ enum class UserAttributeFilterTypes : Serializable { datetime, relative_url, yesno, - zipcode + zipcode, } /** @@ -5601,14 +5600,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 /** @@ -5624,8 +5623,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, @@ -5635,14 +5634,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 /** @@ -5657,8 +5656,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, @@ -5667,7 +5666,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 /** @@ -5679,14 +5678,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 /** @@ -5694,10 +5693,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 /** @@ -5706,11 +5705,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 /** @@ -5723,7 +5722,7 @@ enum class WeekStartDay : Serializable { thursday, friday, saturday, - sunday + sunday, } /** @@ -5731,10 +5730,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 /** @@ -5755,7 +5754,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, @@ -5771,7 +5770,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 /** @@ -5779,10 +5778,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 /** @@ -5812,7 +5811,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, @@ -5834,7 +5833,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 /** @@ -5843,8 +5842,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 /** @@ -5857,12 +5856,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 /** @@ -5874,11 +5873,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 /** @@ -5899,7 +5898,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, @@ -5912,7 +5911,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 /** @@ -5925,12 +5924,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 /** @@ -5942,11 +5941,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 /** @@ -5960,11 +5959,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 /** @@ -5973,8 +5972,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 /** @@ -5995,7 +5994,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, @@ -6008,7 +6007,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 /** @@ -6022,13 +6021,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 /** @@ -6038,9 +6037,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 /** @@ -6074,7 +6073,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, @@ -6099,7 +6098,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 /** @@ -6109,8 +6108,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 /** @@ -6141,7 +6140,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, @@ -6161,7 +6160,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 /** @@ -6181,7 +6180,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, @@ -6193,7 +6192,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 /** @@ -6206,12 +6205,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 /** @@ -6225,13 +6224,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 /** @@ -6241,9 +6240,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 /** @@ -6253,9 +6252,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 /** @@ -6299,7 +6298,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, @@ -6334,7 +6333,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 /** @@ -6353,7 +6352,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, @@ -6364,7 +6363,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 /** @@ -6375,10 +6374,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 /** @@ -6390,11 +6389,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 /** @@ -6404,9 +6403,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 /** @@ -6416,9 +6415,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 /** @@ -6428,9 +6427,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 /** @@ -6441,10 +6440,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 /** @@ -6454,9 +6453,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 /** @@ -6465,8 +6464,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 /** @@ -6476,9 +6475,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 /** @@ -6520,7 +6519,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, @@ -6554,7 +6553,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 /** @@ -6563,8 +6562,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 /** @@ -6573,8 +6572,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 /** @@ -6586,11 +6585,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 /** @@ -6610,7 +6609,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, @@ -6620,7 +6619,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 /** @@ -6635,14 +6634,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 /** @@ -6652,9 +6651,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 /** @@ -6664,9 +6663,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 /** @@ -6679,12 +6678,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 /** @@ -6716,7 +6715,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, @@ -6740,7 +6739,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 /** @@ -6752,11 +6751,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 /** @@ -6766,9 +6765,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 /** @@ -6789,7 +6788,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, @@ -6802,7 +6801,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 /** @@ -6828,7 +6827,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, @@ -6846,7 +6845,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 /** @@ -6873,13 +6872,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, @@ -6887,12 +6886,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 /** @@ -6903,10 +6902,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 /** @@ -6916,8 +6915,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 /** @@ -6932,12 +6931,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 /** @@ -6969,7 +6968,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, @@ -6993,7 +6992,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 /** @@ -7031,7 +7030,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, @@ -7061,7 +7060,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 /** @@ -7074,12 +7073,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 /** @@ -7105,7 +7104,7 @@ data class WriteSessionConfig ( * @property embed_cookieless_v2 (DEPRECATED) Use embed_config.embed_cookieless_v2 instead. If embed_config.embed_cookieless_v2 is specified, it overrides this value. * @property embed_config */ -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, @@ -7122,7 +7121,7 @@ data class WriteSetting ( var override_warnings: Boolean? = null, var email_domain_allowlist: Array? = null, var embed_cookieless_v2: Boolean? = null, - var embed_config: EmbedConfig? = null + var embed_config: EmbedConfig? = null, ) : Serializable /** @@ -7132,9 +7131,9 @@ data class WriteSetting ( * @property sql Original SQL request * @property jdbc_client Whether the query should be run for use in a JDBC Client. This changes the formatting of some datetime based values. */ -data class WriteSqlInterfaceQueryCreate ( +data class WriteSqlInterfaceQueryCreate( var sql: String, - var jdbc_client: Boolean? = null + var jdbc_client: Boolean? = null, ) : Serializable /** @@ -7146,11 +7145,11 @@ data class WriteSqlInterfaceQueryCreate ( * @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 /** @@ -7162,11 +7161,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 /** @@ -7178,11 +7177,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 /** @@ -7199,7 +7198,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, @@ -7207,7 +7206,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 /** @@ -7223,7 +7222,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, @@ -7231,7 +7230,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 /** @@ -7240,8 +7239,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 /** @@ -7262,7 +7261,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, @@ -7275,5 +7274,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 037e7bf60..0d7d0dec9 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 @@ * 464 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. * @@ -358,30 +357,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. * @@ -392,13 +389,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 * @@ -413,15 +411,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 * @@ -436,14 +437,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 * @@ -454,13 +456,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. * @@ -499,20 +500,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 * @@ -533,17 +537,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 * @@ -558,14 +565,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 * @@ -603,18 +611,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. * @@ -627,12 +637,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. * @@ -643,13 +652,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 Signed Embed URL * @@ -698,12 +706,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 * @@ -739,12 +746,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) } - /** * ### Validate a Signed Embed URL * @@ -753,13 +759,14 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /embed/sso/validate -> ByteArray */ @JvmOverloads fun validate_embed_url( - url: String? = null - ) : SDKResponse { - return this.get("/embed/sso/validate", - mapOf("url" to url)) + url: String? = null, + ): SDKResponse { + return this.get( + "/embed/sso/validate", + mapOf("url" to url), + ) } - /** * ### Acquire a cookieless embed session. * @@ -799,12 +806,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 * @@ -819,13 +825,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 * @@ -842,12 +847,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. * @@ -870,13 +874,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. * @@ -897,12 +898,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. * @@ -930,12 +930,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. * @@ -965,12 +964,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. * @@ -989,12 +987,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. * @@ -1013,12 +1010,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] @@ -1028,12 +1024,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 * @@ -1042,13 +1037,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. * @@ -1057,13 +1051,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 * @@ -1078,13 +1071,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 * @@ -1097,14 +1091,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 * @@ -1122,14 +1117,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 * @@ -1144,14 +1141,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 * @@ -1168,13 +1167,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 * @@ -1186,13 +1184,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 * @@ -1211,15 +1208,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 * @@ -1241,15 +1239,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. * @@ -1268,13 +1267,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. * @@ -1293,12 +1289,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. * @@ -1309,13 +1304,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. * @@ -1326,13 +1320,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. * @@ -1343,12 +1336,11 @@ 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. * @@ -1356,13 +1348,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * 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. * @@ -1373,12 +1362,11 @@ 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. * @@ -1386,13 +1374,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * 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. * @@ -1411,13 +1396,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. * @@ -1436,12 +1418,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. * @@ -1452,13 +1433,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. * @@ -1469,13 +1449,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. * @@ -1486,12 +1465,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. * @@ -1502,12 +1480,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 @@ -1520,24 +1497,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. * @@ -1546,12 +1519,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 * @@ -1564,13 +1536,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 * @@ -1583,12 +1556,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 * @@ -1601,13 +1573,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 * @@ -1620,12 +1591,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 * @@ -1635,13 +1605,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 * @@ -1651,13 +1618,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. * @@ -1666,13 +1630,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. * @@ -1701,23 +1666,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. * @@ -1726,17 +1694,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. * @@ -1745,13 +1712,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. * @@ -1762,13 +1730,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 * @@ -1824,26 +1794,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. * @@ -1854,14 +1827,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. * @@ -1874,14 +1848,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. * @@ -1890,13 +1866,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. * @@ -1909,15 +1884,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. * @@ -1928,13 +1906,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. * @@ -1945,14 +1925,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. * @@ -1965,14 +1946,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. * @@ -1981,13 +1964,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. * @@ -1998,14 +1980,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. * @@ -2016,13 +2001,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. * @@ -2033,14 +2020,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. * @@ -2053,14 +2041,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. * @@ -2069,17 +2059,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) @@ -2095,13 +2084,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 * @@ -2118,12 +2108,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) @@ -2137,13 +2126,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) @@ -2157,13 +2147,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 * @@ -2173,13 +2164,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 * @@ -2191,13 +2179,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 * @@ -2217,14 +2206,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. @@ -2236,13 +2226,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 * @@ -2258,29 +2247,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. * @@ -2289,25 +2274,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. * @@ -2317,15 +2298,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. * @@ -2334,24 +2318,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 * @@ -2360,12 +2340,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. @@ -2373,13 +2352,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 * @@ -2389,25 +2365,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 * @@ -2416,24 +2386,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 * @@ -2442,12 +2408,11 @@ 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. * @@ -2455,13 +2420,10 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * * 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. * @@ -2472,13 +2434,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. * @@ -2491,37 +2452,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 * @@ -2550,13 +2504,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 * @@ -2591,13 +2546,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. @@ -2608,12 +2565,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. * @@ -2622,25 +2578,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. * @@ -2649,13 +2603,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. * @@ -2668,14 +2623,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. * @@ -2688,14 +2642,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 private label configuration * @@ -2707,16 +2663,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. * @@ -2725,13 +2680,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. * @@ -2740,12 +2696,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. * @@ -2756,14 +2711,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. * @@ -2774,13 +2730,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. * @@ -2789,13 +2744,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. * @@ -2806,14 +2760,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. * @@ -2831,14 +2784,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. * @@ -2856,13 +2810,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. * @@ -2871,13 +2827,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. * @@ -2890,14 +2847,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. * @@ -2908,12 +2868,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. * @@ -2922,12 +2881,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. * @@ -2936,13 +2894,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. * @@ -2951,12 +2910,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. * @@ -2965,13 +2923,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. * @@ -2982,13 +2939,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. * @@ -2997,13 +2953,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 * @@ -3012,13 +2967,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. * @@ -3027,13 +2981,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 * @@ -3042,12 +2997,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. * @@ -3056,13 +3010,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 * @@ -3073,13 +3026,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 * @@ -3088,13 +3040,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 * @@ -3103,13 +3054,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 * @@ -3117,17 +3067,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 * @@ -3177,23 +3124,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 * @@ -3204,14 +3154,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 * @@ -3220,13 +3171,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 * @@ -3235,12 +3185,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. * @@ -3251,14 +3200,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. * @@ -3269,14 +3221,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. * @@ -3287,13 +3240,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. * @@ -3304,14 +3256,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. * @@ -3322,13 +3277,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. * @@ -3339,13 +3296,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. * @@ -3354,13 +3310,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 @@ -3389,19 +3344,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. * @@ -3427,19 +3385,22 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { theme: 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, - "theme" to theme, - "format" to format, - "width" to width, - "height" to height)) + return this.get( + "/content_thumbnail/${path_type}/${path_resource_id}", + mapOf( + "reload" to reload, + "theme" to theme, + "format" to format, + "width" to width, + "height" to height, + ), + ) } - /** * ### Validate All Content * @@ -3451,13 +3412,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 * @@ -3511,25 +3473,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. * @@ -3545,22 +3510,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. * @@ -3575,13 +3542,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 * @@ -3603,12 +3571,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 * @@ -3684,32 +3651,35 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { offset: Long? = null, sorts: String? = null, filter_or: Boolean? = null, - not_owned_by: 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, - "not_owned_by" to not_owned_by)) + not_owned_by: 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, + "not_owned_by" to not_owned_by, + ), + ) } - /** * ### 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 @@ -3735,15 +3705,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. * @@ -3764,14 +3736,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 * @@ -3788,14 +3762,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 * @@ -3815,13 +3790,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 * @@ -3836,13 +3810,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 * @@ -3853,13 +3826,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 * @@ -3870,13 +3842,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 * @@ -3892,14 +3863,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. * @@ -3922,12 +3894,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) * @@ -3936,12 +3907,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 * @@ -3960,14 +3930,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 * @@ -4011,19 +3982,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. * @@ -4034,14 +4008,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. * @@ -4054,14 +4029,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. * @@ -4070,13 +4047,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. * @@ -4087,14 +4063,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. * @@ -4107,14 +4084,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. * @@ -4125,14 +4106,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. * @@ -4145,14 +4127,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. * @@ -4161,13 +4145,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. * @@ -4178,14 +4161,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. * @@ -4196,13 +4180,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. * @@ -4213,14 +4199,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. * @@ -4233,14 +4220,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. * @@ -4251,14 +4240,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. * @@ -4269,14 +4259,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. * @@ -4289,14 +4280,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. * @@ -4305,13 +4298,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. * @@ -4322,14 +4314,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. * @@ -4340,17 +4333,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. * @@ -4359,12 +4354,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. * @@ -4373,28 +4367,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. * @@ -4403,13 +4393,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. * @@ -4420,17 +4409,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 * @@ -4443,15 +4431,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. * @@ -4464,15 +4455,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 * @@ -4491,18 +4485,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 * @@ -4511,13 +4508,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 * @@ -4528,18 +4524,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 * @@ -4572,25 +4569,28 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { creator_id: String? = null, filter_or: Boolean? = null, is_shared_root: Boolean? = null, - is_users_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_users_root" to is_users_root)) + is_users_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_users_root" to is_users_root, + ), + ) } - /** * ### Get information about the folder with a specific id. * @@ -4601,14 +4601,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. * @@ -4619,13 +4620,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. @@ -4635,13 +4635,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. * @@ -4652,13 +4651,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. * @@ -4670,12 +4670,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. * @@ -4696,19 +4695,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 * @@ -4723,16 +4725,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 * @@ -4743,14 +4748,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 * @@ -4761,14 +4767,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 4.0+, all looks in a folder will be returned, excluding looks in the trash. @@ -4780,14 +4787,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 * @@ -4798,18 +4806,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. * @@ -4834,21 +4843,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). * @@ -4859,13 +4871,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 * @@ -4915,22 +4929,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 * @@ -4980,22 +4997,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 * @@ -5046,22 +5066,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. * @@ -5072,14 +5095,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). * @@ -5092,14 +5116,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). * @@ -5108,13 +5134,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 * @@ -5125,14 +5150,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. * @@ -5143,13 +5169,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. * @@ -5170,19 +5195,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. * @@ -5193,13 +5221,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. * @@ -5210,14 +5237,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. * @@ -5228,14 +5254,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. * @@ -5250,14 +5275,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. * @@ -5268,18 +5292,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. * @@ -5288,17 +5311,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. * @@ -5307,13 +5331,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. * @@ -5326,13 +5351,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. * @@ -5343,14 +5370,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. * @@ -5365,14 +5393,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. * @@ -5381,13 +5411,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. * @@ -5396,13 +5425,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. * @@ -5413,14 +5441,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. * @@ -5431,14 +5462,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. * @@ -5451,14 +5483,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. * @@ -5469,13 +5503,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. * @@ -5484,17 +5517,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 JdbcInterface: LookML Model metadata for JDBC Clients - /** * ### Handle Avatica RPC Requests * @@ -5503,17 +5535,18 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * GET /__jdbc_interface__ -> ByteArray */ @JvmOverloads fun jdbc_interface( - avatica_request: String? = null - ) : SDKResponse { - return this.get("/__jdbc_interface__", - mapOf("avatica_request" to avatica_request)) + avatica_request: String? = null, + ): SDKResponse { + return this.get( + "/__jdbc_interface__", + mapOf("avatica_request" to avatica_request), + ) } //endregion JdbcInterface: LookML Model metadata for JDBC Clients //region Look: Run and Manage Looks - /** * ### Get information about all active Looks * @@ -5528,13 +5561,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 * @@ -5551,13 +5585,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 * @@ -5626,30 +5662,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. * @@ -5662,14 +5701,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 * @@ -5701,14 +5741,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 * @@ -5723,13 +5765,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 * @@ -5784,26 +5825,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 * @@ -5820,14 +5864,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 * @@ -5843,18 +5888,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. * @@ -5867,15 +5913,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. * @@ -5884,12 +5933,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. * @@ -5900,14 +5948,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. * @@ -5918,13 +5967,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. * @@ -5933,13 +5981,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. * @@ -5952,19 +5999,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 * @@ -5999,17 +6047,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 * @@ -6018,13 +6069,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 * @@ -6041,13 +6091,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 * @@ -6060,14 +6109,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 * @@ -6082,16 +6132,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 * @@ -6117,19 +6170,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 * @@ -6150,19 +6206,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 * @@ -6177,15 +6236,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 * @@ -6202,18 +6264,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 * @@ -6230,14 +6294,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 * @@ -6248,13 +6313,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 * @@ -6265,13 +6329,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 * @@ -6290,13 +6353,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 * @@ -6314,13 +6376,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 * @@ -6333,14 +6394,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 * @@ -6353,14 +6413,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 * @@ -6381,15 +6440,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 * @@ -6409,13 +6471,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. * @@ -6426,13 +6487,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. * @@ -6443,13 +6503,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 * @@ -6460,13 +6519,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 * @@ -6481,12 +6541,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 * @@ -6499,14 +6558,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 * @@ -6540,14 +6600,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 * @@ -6558,13 +6620,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 * @@ -6575,13 +6636,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 * @@ -6598,13 +6658,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 * @@ -6626,14 +6685,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 * @@ -6652,14 +6712,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 * @@ -6672,14 +6733,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 * @@ -6692,14 +6754,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 * @@ -6714,15 +6777,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 * @@ -6742,14 +6808,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 * @@ -6770,16 +6837,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 * @@ -6794,14 +6864,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 * @@ -6818,16 +6889,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 * @@ -6846,16 +6920,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 * @@ -6873,14 +6951,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 * @@ -6896,14 +6973,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 * @@ -6914,17 +6990,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 * @@ -6964,25 +7039,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 * @@ -6997,13 +7076,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 * @@ -7020,14 +7100,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 * @@ -7058,13 +7139,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. * @@ -7091,14 +7171,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. * @@ -7125,14 +7206,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. * @@ -7150,13 +7232,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. * @@ -7216,27 +7300,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. * @@ -7323,25 +7410,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. * @@ -7408,15 +7499,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 * @@ -7429,14 +7519,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 * @@ -7463,25 +7554,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. * @@ -7490,13 +7580,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()) } - /** * ### Run a saved SQL interface query. * @@ -7529,14 +7618,13 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { */ fun run_sql_interface_query( query_id: Long, - result_format: String - ) : SDKResponse { + result_format: String, + ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) - return this.get("/sql_interface_queries/${path_query_id}/run/${path_result_format}", mapOf()) + return this.get("/sql_interface_queries/${path_query_id}/run/${path_result_format}", mapOf()) } - /** * ### Create a SQL interface query. * @@ -7552,12 +7640,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * POST /sql_interface_queries -> ByteArray */ fun create_sql_interface_query( - body: WriteSqlInterfaceQueryCreate - ) : SDKResponse { - return this.post("/sql_interface_queries", mapOf(), body) + body: WriteSqlInterfaceQueryCreate, + ): SDKResponse { + return this.post("/sql_interface_queries", mapOf(), body) } - /** * ### Create a SQL Runner Query * @@ -7568,12 +7655,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) } - /** * Get a SQL Runner query. * @@ -7582,13 +7668,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()) } - /** * Execute a SQL Runner query in a given result_format. * @@ -7603,19 +7688,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. * @@ -7636,17 +7722,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. * @@ -7667,17 +7756,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. * @@ -7708,21 +7800,25 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { pdf_paper_size: String? = null, pdf_landscape: Boolean? = null, long_tables: Boolean? = null, - theme: String? = null - ) : SDKResponse { + theme: String? = 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, - "theme" to theme), 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, + "theme" to theme, + ), + body, + ) } - /** * ### Get information about a render task. * @@ -7737,14 +7833,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. * @@ -7771,13 +7868,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. * @@ -7798,21 +7894,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. @@ -7858,21 +7957,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. * @@ -7883,14 +7985,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. * @@ -7901,13 +8004,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. * @@ -7916,13 +8018,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. * @@ -7931,13 +8032,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. * @@ -7946,24 +8048,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. @@ -8009,21 +8107,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. * @@ -8034,14 +8135,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. * @@ -8052,13 +8154,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. * @@ -8067,13 +8168,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. * @@ -8082,13 +8182,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. * @@ -8097,12 +8198,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. * @@ -8113,14 +8213,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. * @@ -8129,12 +8232,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 * @@ -8180,20 +8282,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 * @@ -8240,20 +8345,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. * @@ -8262,13 +8370,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. * @@ -8279,13 +8386,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. * @@ -8294,13 +8400,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. * @@ -8311,14 +8416,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. * @@ -8331,13 +8437,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. * @@ -8350,15 +8455,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. * @@ -8369,17 +8477,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 * @@ -8392,14 +8499,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 * @@ -8412,14 +8520,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 * @@ -8471,13 +8580,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 * @@ -8490,13 +8598,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 * @@ -8519,15 +8626,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 * @@ -8593,12 +8703,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 * @@ -8643,12 +8752,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 * @@ -8673,16 +8781,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 * @@ -8707,16 +8818,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 * @@ -8741,16 +8855,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, @@ -8807,17 +8924,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 * @@ -8825,13 +8941,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 * @@ -8859,16 +8972,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 * @@ -8883,13 +8995,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 * @@ -8912,12 +9025,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. * @@ -8979,21 +9091,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 * @@ -9008,13 +9123,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 * @@ -9033,13 +9149,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 * @@ -9060,15 +9177,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 * @@ -9084,14 +9204,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 * @@ -9106,12 +9229,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 * @@ -9126,14 +9248,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. * @@ -9146,13 +9269,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 * @@ -9169,17 +9291,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 * @@ -9228,20 +9349,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. * @@ -9250,13 +9374,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. * @@ -9277,19 +9402,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. * @@ -9300,13 +9428,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 * @@ -9374,28 +9504,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 * @@ -9433,25 +9566,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. * @@ -9466,14 +9602,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. * @@ -9486,14 +9623,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. * @@ -9504,13 +9643,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. * @@ -9552,15 +9690,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. * @@ -9573,14 +9712,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. * @@ -9595,14 +9735,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. * @@ -9617,14 +9759,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. * @@ -9635,13 +9779,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. * @@ -9654,14 +9797,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. * @@ -9676,14 +9820,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. * @@ -9694,13 +9840,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. * @@ -9713,14 +9858,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. * @@ -9731,13 +9877,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. * @@ -9750,14 +9895,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. * @@ -9768,13 +9914,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. * @@ -9787,14 +9932,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. * @@ -9805,13 +9951,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. * @@ -9824,14 +9969,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. * @@ -9842,13 +9988,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9863,15 +10008,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9884,14 +10030,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9904,14 +10049,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 login information for the specified user. This is for the newer API keys that can be added for any user. * @@ -9924,14 +10070,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. * @@ -9946,15 +10093,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. * @@ -9967,14 +10115,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. * @@ -9987,14 +10134,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. * @@ -10007,14 +10155,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. * @@ -10025,13 +10174,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. * @@ -10046,15 +10194,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. * @@ -10067,14 +10216,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. * @@ -10087,14 +10235,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. @@ -10117,15 +10266,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 * @@ -10138,15 +10290,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. * @@ -10159,14 +10314,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. * @@ -10198,17 +10355,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. * @@ -10223,14 +10383,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. * @@ -10246,14 +10405,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 @@ -10272,14 +10430,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 * @@ -10299,14 +10458,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 * @@ -10317,16 +10478,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. * @@ -10337,14 +10497,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 * @@ -10364,13 +10527,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. * @@ -10381,14 +10546,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. * @@ -10401,14 +10567,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). * @@ -10417,13 +10585,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. * @@ -10440,14 +10607,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. * @@ -10477,17 +10645,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 * @@ -10495,13 +10662,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 * @@ -10538,12 +10702,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 +}