Skip to content

Commit 1283c4c

Browse files
feat: generate SDKs for Looker 25.8 (#1584)
Release-As: 25.8.0
1 parent 382327f commit 1283c4c

File tree

26 files changed

+7424
-3004
lines changed

26 files changed

+7424
-3004
lines changed

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.6";
64+
public const string LookerVersion = "25.8";
6565

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

csharp/sdk/4.0/methods.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,8 @@ public async Task<SdkResponse<Dashboard, Exception>> import_lookml_dashboard(
37763776
/// Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
37773777
/// property value referring to a LookML dashboard's id (model::dashboardname) will be updated so that it matches the current state of the LookML dashboard.
37783778
///
3779+
/// If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
3780+
///
37793781
/// For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
37803782
/// that the user has permission to update will be synced.
37813783
///
@@ -3787,15 +3789,17 @@ public async Task<SdkResponse<Dashboard, Exception>> import_lookml_dashboard(
37873789
///
37883790
/// <param name="lookml_dashboard_id">Id of LookML dashboard, in the form 'model::dashboardname'</param>
37893791
/// <param name="raw_locale">If true, and this dashboard is localized, export it with the raw keys, not localized.</param>
3792+
/// <param name="dashboard_ids">An array of UDD dashboard IDs to sync. If not specified, all UDD dashboards will be synced.</param>
37903793
public async Task<SdkResponse<long[], Exception>> sync_lookml_dashboard(
37913794
string lookml_dashboard_id,
3792-
WriteDashboard body,
37933795
bool? raw_locale = null,
3796+
DelimArray<string>? dashboard_ids = null,
37943797
ITransportSettings? options = null)
37953798
{
37963799
lookml_dashboard_id = SdkUtils.EncodeParam(lookml_dashboard_id);
37973800
return await AuthRequest<long[], Exception>(HttpMethod.Patch, $"/dashboards/{lookml_dashboard_id}/sync", new Values {
3798-
{ "raw_locale", raw_locale }},body,options);
3801+
{ "raw_locale", raw_locale },
3802+
{ "dashboard_ids", dashboard_ids }},null,options);
37993803
}
38003804

38013805
/// ### Get information about a dashboard

csharp/sdk/4.0/models.cs

Lines changed: 331 additions & 44 deletions
Large diffs are not rendered by default.

go/sdk/v4/methods.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,20 +3049,19 @@ func (l *LookerSDK) ImportLookmlDashboard(
30493049
// Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
30503050
// property value referring to a LookML dashboard's id (model::dashboardname) will be updated so that it matches the current state of the LookML dashboard.
30513051
//
3052+
// If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
3053+
//
30523054
// For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
30533055
// that the user has permission to update will be synced.
30543056
//
30553057
// To **link** or **unlink** a UDD set the `lookml_link_id` property with [update_dashboard()](#!/Dashboard/update_dashboard)
30563058
//
30573059
// PATCH /dashboards/{lookml_dashboard_id}/sync -> []int64
3058-
func (l *LookerSDK) SyncLookmlDashboard(
3059-
lookmlDashboardId string,
3060-
body WriteDashboard,
3061-
rawLocale bool,
3060+
func (l *LookerSDK) SyncLookmlDashboard(request RequestSyncLookmlDashboard,
30623061
options *rtl.ApiSettings) ([]int64, error) {
3063-
lookmlDashboardId = url.PathEscape(lookmlDashboardId)
3062+
request.LookmlDashboardId = url.PathEscape(request.LookmlDashboardId)
30643063
var result []int64
3065-
err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/sync", lookmlDashboardId), map[string]interface{}{"raw_locale": rawLocale}, body, options)
3064+
err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/sync", request.LookmlDashboardId), map[string]interface{}{"raw_locale": request.RawLocale, "dashboard_ids": request.DashboardIds}, nil, options)
30663065
return result, err
30673066

30683067
}

go/sdk/v4/models.go

Lines changed: 283 additions & 105 deletions
Large diffs are not rendered by default.

kotlin/src/main/com/looker/sdk/4.0/methods.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3810,27 +3810,31 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
38103810
* Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
38113811
* property value referring to a LookML dashboard's id (model::dashboardname) will be updated so that it matches the current state of the LookML dashboard.
38123812
*
3813+
* If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
3814+
*
38133815
* For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
38143816
* that the user has permission to update will be synced.
38153817
*
38163818
* To **link** or **unlink** a UDD set the `lookml_link_id` property with [update_dashboard()](#!/Dashboard/update_dashboard)
38173819
*
38183820
* @param {String} lookml_dashboard_id Id of LookML dashboard, in the form 'model::dashboardname'
3819-
* @param {WriteDashboard} body
38203821
* @param {Boolean} raw_locale If true, and this dashboard is localized, export it with the raw keys, not localized.
3822+
* @param {DelimArray<String>} dashboard_ids An array of UDD dashboard IDs to sync. If not specified, all UDD dashboards will be synced.
38213823
*
38223824
* PATCH /dashboards/{lookml_dashboard_id}/sync -> Array<Long>
38233825
*/
38243826
@JvmOverloads fun sync_lookml_dashboard(
38253827
lookml_dashboard_id: String,
3826-
body: WriteDashboard,
38273828
raw_locale: Boolean? = null,
3829+
dashboard_ids: DelimArray<String>? = null,
38283830
): SDKResponse {
38293831
val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id)
38303832
return this.patch<Array<Long>>(
38313833
"/dashboards/${path_lookml_dashboard_id}/sync",
3832-
mapOf("raw_locale" to raw_locale),
3833-
body,
3834+
mapOf(
3835+
"raw_locale" to raw_locale,
3836+
"dashboard_ids" to dashboard_ids,
3837+
),
38343838
)
38353839
}
38363840

0 commit comments

Comments
 (0)