Skip to content

feat: generate SDKs for Looker 25.8 #1584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csharp/rtl/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct Constants

public const string DefaultApiVersion = "4.0";
public const string AgentPrefix = "CS-SDK";
public const string LookerVersion = "25.6";
public const string LookerVersion = "25.8";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
8 changes: 6 additions & 2 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3776,6 +3776,8 @@ public async Task<SdkResponse<Dashboard, Exception>> import_lookml_dashboard(
/// Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
/// 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.
///
/// If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
///
/// For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
/// that the user has permission to update will be synced.
///
Expand All @@ -3787,15 +3789,17 @@ public async Task<SdkResponse<Dashboard, Exception>> import_lookml_dashboard(
///
/// <param name="lookml_dashboard_id">Id of LookML dashboard, in the form 'model::dashboardname'</param>
/// <param name="raw_locale">If true, and this dashboard is localized, export it with the raw keys, not localized.</param>
/// <param name="dashboard_ids">An array of UDD dashboard IDs to sync. If not specified, all UDD dashboards will be synced.</param>
public async Task<SdkResponse<long[], Exception>> sync_lookml_dashboard(
string lookml_dashboard_id,
WriteDashboard body,
bool? raw_locale = null,
DelimArray<string>? dashboard_ids = null,
ITransportSettings? options = null)
{
lookml_dashboard_id = SdkUtils.EncodeParam(lookml_dashboard_id);
return await AuthRequest<long[], Exception>(HttpMethod.Patch, $"/dashboards/{lookml_dashboard_id}/sync", new Values {
{ "raw_locale", raw_locale }},body,options);
{ "raw_locale", raw_locale },
{ "dashboard_ids", dashboard_ids }},null,options);
}

/// ### Get information about a dashboard
Expand Down
375 changes: 331 additions & 44 deletions csharp/sdk/4.0/models.cs

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -3049,20 +3049,19 @@ func (l *LookerSDK) ImportLookmlDashboard(
// Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
// 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.
//
// If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
//
// For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
// that the user has permission to update will be synced.
//
// To **link** or **unlink** a UDD set the `lookml_link_id` property with [update_dashboard()](#!/Dashboard/update_dashboard)
//
// PATCH /dashboards/{lookml_dashboard_id}/sync -> []int64
func (l *LookerSDK) SyncLookmlDashboard(
lookmlDashboardId string,
body WriteDashboard,
rawLocale bool,
func (l *LookerSDK) SyncLookmlDashboard(request RequestSyncLookmlDashboard,
options *rtl.ApiSettings) ([]int64, error) {
lookmlDashboardId = url.PathEscape(lookmlDashboardId)
request.LookmlDashboardId = url.PathEscape(request.LookmlDashboardId)
var result []int64
err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/sync", lookmlDashboardId), map[string]interface{}{"raw_locale": rawLocale}, body, options)
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)
return result, err

}
Expand Down
388 changes: 283 additions & 105 deletions go/sdk/v4/models.go

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions kotlin/src/main/com/looker/sdk/4.0/methods.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3810,27 +3810,31 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
* Any UDD (a dashboard which exists in the Looker database rather than as a LookML file) which has a `lookml_link_id`
* 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.
*
* If the dashboard_ids parameter is specified, only the dashboards with the specified ids will be updated.
*
* For this operation to succeed the user must have permission to view the LookML dashboard, and only linked dashboards
* that the user has permission to update will be synced.
*
* To **link** or **unlink** a UDD set the `lookml_link_id` property with [update_dashboard()](#!/Dashboard/update_dashboard)
*
* @param {String} lookml_dashboard_id Id of LookML dashboard, in the form 'model::dashboardname'
* @param {WriteDashboard} body
* @param {Boolean} raw_locale If true, and this dashboard is localized, export it with the raw keys, not localized.
* @param {DelimArray<String>} dashboard_ids An array of UDD dashboard IDs to sync. If not specified, all UDD dashboards will be synced.
*
* PATCH /dashboards/{lookml_dashboard_id}/sync -> Array<Long>
*/
@JvmOverloads fun sync_lookml_dashboard(
lookml_dashboard_id: String,
body: WriteDashboard,
raw_locale: Boolean? = null,
dashboard_ids: DelimArray<String>? = null,
): SDKResponse {
val path_lookml_dashboard_id = encodeParam(lookml_dashboard_id)
return this.patch<Array<Long>>(
"/dashboards/${path_lookml_dashboard_id}/sync",
mapOf("raw_locale" to raw_locale),
body,
mapOf(
"raw_locale" to raw_locale,
"dashboard_ids" to dashboard_ids,
),
)
}

Expand Down
Loading
Loading