Skip to content

Commit 27a4192

Browse files
feat: generate SDKs for Looker 25.4 (#1570)
Release-As: 25.4.0
1 parent feb7248 commit 27a4192

33 files changed

+2763
-229
lines changed

.github/workflows/apix-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626

2727
workflow_dispatch:
2828

29+
permissions:
30+
checks: write
31+
2932
env:
3033
TS_JUNIT_OUTPUT_DIR: results/apix
3134

.github/workflows/codegen-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222

2323
workflow_dispatch:
2424

25+
permissions:
26+
checks: write
27+
2528
env:
2629
LOOKERSDK_BASE_URL: https://localhost:20000
2730
LOOKERSDK_VERIFY_SSL: false

.github/workflows/go-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414

1515
workflow_dispatch:
1616

17+
permissions:
18+
checks: write
19+
1720
env:
1821
LOOKERSDK_BASE_URL: https://localhost:20000
1922
LOOKERSDK_VERIFY_SSL: false

.github/workflows/hackathon-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020

2121
workflow_dispatch:
2222

23+
permissions:
24+
checks: write
25+
2326
env:
2427
TS_JUNIT_OUTPUT_DIR: results/hackathon
2528

.github/workflows/kotlin-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
- kotlin/**
2020
- .github/workflows/gradle.yml
2121

22+
permissions:
23+
checks: write
24+
2225
# TODO(#1544): Also run tests
2326
jobs:
2427
build:

.github/workflows/python-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ env:
2323
LOOKERSDK_VERIFY_SSL: false
2424
TOX_JUNIT_OUTPUT_DIR: results
2525

26+
permissions:
27+
checks: write
28+
2629
jobs:
2730
setup:
2831
uses: looker-open-source/reusable-actions/.github/workflows/supported-versions.yml@main

.github/workflows/resources-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ defaults:
2121
shell: bash
2222
working-directory: bin/looker-resources-index
2323

24+
permissions:
25+
checks: write
26+
2427
jobs:
2528
analyzebuild:
2629
name: Analyze and Build

.github/workflows/tssdk-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ env:
3333
LOOKERSDK_VERIFY_SSL: false
3434
TS_JUNIT_OUTPUT_DIR: results/tssdk
3535

36+
permissions:
37+
checks: write
38+
3639
jobs:
3740
unit:
3841
name: Unit - ${{ matrix.os }} / Node ${{ matrix.node-version }}

csharp/rtl/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct Constants
6161

6262
public const string DefaultApiVersion = "4.0";
6363
public const string AgentPrefix = "CS-SDK";
64-
public const string LookerVersion = "25.2";
64+
public const string LookerVersion = "25.4";
6565

6666
public const string Bearer = "Bearer";
6767
public const string LookerAppiId = "x-looker-appid";

csharp/sdk/4.0/methods.cs

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// SOFTWARE.
2222
///
2323

24-
/// 467 API methods
24+
/// 469 API methods
2525

2626
#nullable enable
2727
using System;
@@ -488,6 +488,7 @@ namespace = SdkUtils.EncodeParam(namespace);
488488
/// <param name="max_size">Maximum storage size of the artifact</param>
489489
/// <param name="limit">Number of results to return. (used with offset)</param>
490490
/// <param name="offset">Number of results to skip before returning any. (used with limit)</param>
491+
/// <param name="tally">Return the full count of results in the X-Total-Count response header. (Slight performance hit.)</param>
491492
public async Task<SdkResponse<Artifact[], Exception>> search_artifacts(
492493
string @namespace,
493494
string? fields = null,
@@ -497,6 +498,7 @@ public async Task<SdkResponse<Artifact[], Exception>> search_artifacts(
497498
long? max_size = null,
498499
long? limit = null,
499500
long? offset = null,
501+
bool? tally = null,
500502
ITransportSettings? options = null)
501503
{
502504
namespace = SdkUtils.EncodeParam(namespace);
@@ -507,7 +509,8 @@ namespace = SdkUtils.EncodeParam(namespace);
507509
{ "min_size", min_size },
508510
{ "max_size", max_size },
509511
{ "limit", limit },
510-
{ "offset", offset }},null,options);
512+
{ "offset", offset },
513+
{ "tally", tally }},null,options);
511514
}
512515

513516
/// ### Get one or more artifacts
@@ -525,20 +528,23 @@ namespace = SdkUtils.EncodeParam(namespace);
525528
/// <param name="fields">Comma-delimited names of fields to return in responses. Omit for all fields</param>
526529
/// <param name="limit">Number of results to return. (used with offset)</param>
527530
/// <param name="offset">Number of results to skip before returning any. (used with limit)</param>
531+
/// <param name="tally">Return the full count of results in the X-Total-Count response header. (Slight performance hit.)</param>
528532
public async Task<SdkResponse<Artifact[], Exception>> artifact(
529533
string @namespace,
530534
string key,
531535
string? fields = null,
532536
long? limit = null,
533537
long? offset = null,
538+
bool? tally = null,
534539
ITransportSettings? options = null)
535540
{
536541
namespace = SdkUtils.EncodeParam(namespace);
537542
return await AuthRequest<Artifact[], Exception>(HttpMethod.Get, $"/artifact/{namespace}", new Values {
538543
{ "key", key },
539544
{ "fields", fields },
540545
{ "limit", limit },
541-
{ "offset", offset }},null,options);
546+
{ "offset", offset },
547+
{ "tally", tally }},null,options);
542548
}
543549

544550
/// ### Delete one or more artifacts
@@ -7772,6 +7778,72 @@ public async Task<SdkResponse<RenderTask, Exception>> create_dashboard_element_r
77727778

77737779
#endregion RenderTask: Manage Render Tasks
77747780

7781+
#region Report: Report
7782+
7783+
/// ### Search Reports
7784+
///
7785+
/// Returns an **array of Report objects** that match the specified search criteria.
7786+
///
7787+
/// If multiple search params are given and `filter_or` is FALSE or not specified,
7788+
/// search params are combined in a logical AND operation.
7789+
/// Only rows that match *all* search param criteria will be returned.
7790+
///
7791+
/// If `filter_or` is TRUE, multiple search params are combined in a logical OR operation.
7792+
/// Results will include rows that match **any** of the search criteria.
7793+
///
7794+
/// String search params use case-insensitive matching.
7795+
/// String search params can contain `%` and '_' as SQL LIKE pattern match wildcard expressions.
7796+
/// example="dan%" will match "danger" and "Danzig" but not "David"
7797+
/// example="D_m%" will match "Damage" and "dump"
7798+
///
7799+
/// Integer search params can accept a single value or a comma separated list of values. The multiple
7800+
/// values will be combined under a logical OR operation - results will match at least one of
7801+
/// the given values.
7802+
///
7803+
/// Most search params can accept "IS NULL" and "NOT NULL" as special expressions to match
7804+
/// or exclude (respectively) rows where the column is null.
7805+
///
7806+
/// Boolean search params accept only "true" and "false" as values.
7807+
///
7808+
/// GET /reports/search -> Report[]
7809+
///
7810+
/// <returns><c>Report[]</c> returns a list of reports. (application/json)</returns>
7811+
///
7812+
/// <param name="folder_id">Select reports in a particular folder.</param>
7813+
/// <param name="favorite">Select favorite reports.</param>
7814+
/// <param name="recent">Select reports viewed recently.</param>
7815+
/// <param name="id">Match report id.</param>
7816+
/// <param name="title">Match report title.</param>
7817+
/// <param name="sorts">One or more fields to sort results by.</param>
7818+
/// <param name="limit">Number of results to return.(used with next_page_token)</param>
7819+
/// <param name="fields">Comma delimited list of field names. If provided, only the fields specified will be included in the response.</param>
7820+
/// <param name="next_page_token">Contains a token that can be used to return up to Number of results to return.(used with next_page_token) additional results. A next_page_token will not be returned if there are no additional results to display.</param>
7821+
public async Task<SdkResponse<Report[], Exception>> search_reports(
7822+
string? folder_id = null,
7823+
bool? favorite = null,
7824+
bool? recent = null,
7825+
string? id = null,
7826+
string? title = null,
7827+
string? sorts = null,
7828+
long? limit = null,
7829+
string? fields = null,
7830+
string? next_page_token = null,
7831+
ITransportSettings? options = null)
7832+
{
7833+
return await AuthRequest<Report[], Exception>(HttpMethod.Get, "/reports/search", new Values {
7834+
{ "folder_id", folder_id },
7835+
{ "favorite", favorite },
7836+
{ "recent", recent },
7837+
{ "id", id },
7838+
{ "title", title },
7839+
{ "sorts", sorts },
7840+
{ "limit", limit },
7841+
{ "fields", fields },
7842+
{ "next_page_token", next_page_token }},null,options);
7843+
}
7844+
7845+
#endregion Report: Report
7846+
77757847
#region Role: Manage Roles
77767848

77777849
/// ### Search model sets

0 commit comments

Comments
 (0)