Skip to content

Commit 854bb4f

Browse files
feat: generate SDKs for Looker 26.12 (#1734)
Release-As: 26.12.0
1 parent ad54373 commit 854bb4f

26 files changed

Lines changed: 12247 additions & 6232 deletions

File tree

‎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 = "26.10";
64+
public const string LookerVersion = "26.12";
6565

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

‎csharp/sdk/4.0/methods.cs‎

Lines changed: 134 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// SOFTWARE.
2222
///
2323

24-
/// 512 API methods
24+
/// 518 API methods
2525

2626
#nullable enable
2727
using System;
@@ -2519,6 +2519,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
25192519
/// - onboarding_enabled
25202520
/// - privatelabel_configuration
25212521
/// - revoke_certification_on_edits
2522+
/// - automated_mfa_enabled
25222523
/// - timezone
25232524
/// - host_url
25242525
/// - email_domain_allowlist
@@ -2563,6 +2564,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
25632564
/// - onboarding_enabled
25642565
/// - privatelabel_configuration
25652566
/// - revoke_certification_on_edits
2567+
/// - automated_mfa_enabled
25662568
/// - timezone
25672569
/// - host_url
25682570
/// - email_domain_allowlist
@@ -7667,6 +7669,59 @@ public async Task<SdkResponse<TSuccess, Exception>> tag_ref<TSuccess>(
76677669
{ "tag_message", tag_message }},body,options);
76687670
}
76697671

7672+
/// ### Initiate Git Diagnosis Suite
7673+
///
7674+
/// POST /projects/{project_id}/git_diagnostic_report -> GitDiagnosticReport
7675+
///
7676+
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
7677+
///
7678+
/// <param name="project_id">Looker Project ID</param>
7679+
public async Task<SdkResponse<GitDiagnosticReport, Exception>> create_git_diagnostic_report(
7680+
string project_id,
7681+
WriteGitDiagnosticReport body,
7682+
ITransportSettings? options = null)
7683+
{
7684+
project_id = SdkUtils.EncodeParam(project_id);
7685+
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Post, $"/projects/{project_id}/git_diagnostic_report", null,body,options);
7686+
}
7687+
7688+
/// ### Retrieve Live Git Diagnostic Suite Execution Status
7689+
///
7690+
/// GET /projects/{project_id}/git_diagnostic_report/{report_id} -> GitDiagnosticReport
7691+
///
7692+
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
7693+
///
7694+
/// <param name="project_id">Looker Project ID</param>
7695+
/// <param name="report_id">Report ID</param>
7696+
public async Task<SdkResponse<GitDiagnosticReport, Exception>> get_git_diagnostic_report(
7697+
string project_id,
7698+
string report_id,
7699+
ITransportSettings? options = null)
7700+
{
7701+
project_id = SdkUtils.EncodeParam(project_id);
7702+
report_id = SdkUtils.EncodeParam(report_id);
7703+
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Get, $"/projects/{project_id}/git_diagnostic_report/{report_id}", null,null,options);
7704+
}
7705+
7706+
/// ### Repair Git Configuration Issues
7707+
///
7708+
/// POST /projects/{project_id}/git_diagnostic_report/{report_id}/repair -> GitDiagnosticReport
7709+
///
7710+
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
7711+
///
7712+
/// <param name="project_id">Looker Project ID</param>
7713+
/// <param name="report_id">Report ID</param>
7714+
public async Task<SdkResponse<GitDiagnosticReport, Exception>> repair_git_diagnostic_report(
7715+
string project_id,
7716+
string report_id,
7717+
WriteGitDiagnosticReport body,
7718+
ITransportSettings? options = null)
7719+
{
7720+
project_id = SdkUtils.EncodeParam(project_id);
7721+
report_id = SdkUtils.EncodeParam(report_id);
7722+
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Post, $"/projects/{project_id}/git_diagnostic_report/{report_id}/repair", null,body,options);
7723+
}
7724+
76707725
/// ### Configure Repository Credential for a remote dependency
76717726
///
76727727
/// Admin required.
@@ -9734,6 +9789,21 @@ public async Task<SdkResponse<string[], Exception>> get_self_service_model_allow
97349789
{ "google_sheets", google_sheets }},null,options);
97359790
}
97369791

9792+
/// ### Get Generated LookML for a Self Service Model
9793+
///
9794+
/// GET /self_service_models/{model_name}/lookml -> string
9795+
///
9796+
/// <returns><c>string</c> Self service lookml (application/json)</returns>
9797+
///
9798+
/// <param name="model_name">Name of self service model</param>
9799+
public async Task<SdkResponse<string, Exception>> get_self_service_model_lookml(
9800+
string model_name,
9801+
ITransportSettings? options = null)
9802+
{
9803+
model_name = SdkUtils.EncodeParam(model_name);
9804+
return await AuthRequest<string, Exception>(HttpMethod.Get, $"/self_service_models/{model_name}/lookml", null,null,options);
9805+
}
9806+
97379807
/// ### Update certification for a Self Service Explore
97389808
///
97399809
/// PATCH /self_service_models/{model_name}/certification -> Certification
@@ -10002,6 +10072,8 @@ public async Task<SdkResponse<Theme[], Exception>> search_themes(
1000210072

1000310073
/// ### Get the default theme
1000410074
///
10075+
/// This endpoint is deprecated. [Get Default Theme (with type)](#!/Theme/default_theme_by_type) should be used instead.
10076+
///
1000510077
/// Returns the active theme object set as the default.
1000610078
///
1000710079
/// The **default** theme name can be set in the UI on the Admin|Theme UI page
@@ -10013,6 +10085,7 @@ public async Task<SdkResponse<Theme[], Exception>> search_themes(
1001310085
/// <returns><c>Theme</c> Theme (application/json)</returns>
1001410086
///
1001510087
/// <param name="ts">Timestamp representing the target datetime for the active period. Defaults to 'now'</param>
10088+
[Obsolete("Deprecated")]
1001610089
public async Task<SdkResponse<Theme, Exception>> default_theme(
1001710090
DateTime? ts = null,
1001810091
ITransportSettings? options = null)
@@ -10023,6 +10096,8 @@ public async Task<SdkResponse<Theme, Exception>> default_theme(
1002310096

1002410097
/// ### Set the global default theme by theme name
1002510098
///
10099+
/// This endpoint is deprecated. [Set Default Theme (with type)](#!/Theme/set_default_theme_by_type) should be used instead.
10100+
///
1002610101
/// Only Admin users can call this function.
1002710102
///
1002810103
/// Only an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.
@@ -10038,6 +10113,7 @@ public async Task<SdkResponse<Theme, Exception>> default_theme(
1003810113
/// <returns><c>Theme</c> Theme (application/json)</returns>
1003910114
///
1004010115
/// <param name="name">Name of theme to set as default</param>
10116+
[Obsolete("Deprecated")]
1004110117
public async Task<SdkResponse<Theme, Exception>> set_default_theme(
1004210118
string name,
1004310119
ITransportSettings? options = null)
@@ -10046,6 +10122,60 @@ public async Task<SdkResponse<Theme, Exception>> set_default_theme(
1004610122
{ "name", name }},null,options);
1004710123
}
1004810124

10125+
/// ### Get the default theme
10126+
///
10127+
/// Returns the active theme object set as the default.
10128+
///
10129+
/// The **default** theme name can be set in the UI on the Admin|Theme UI page
10130+
///
10131+
/// The optional `ts` parameter can specify a different timestamp than "now." If specified, it returns the default theme at the time indicated.
10132+
///
10133+
/// The optional `theme_type` parameter can specify the theme type to select for.
10134+
///
10135+
/// GET /themes/default_theme -> Theme
10136+
///
10137+
/// <returns><c>Theme</c> Theme (application/json)</returns>
10138+
///
10139+
/// <param name="ts">Timestamp representing the target datetime for the active period. Defaults to 'now'</param>
10140+
/// <param name="theme_type">Theme type.</param>
10141+
public async Task<SdkResponse<Theme, Exception>> default_theme_by_type(
10142+
string theme_type,
10143+
DateTime? ts = null,
10144+
ITransportSettings? options = null)
10145+
{
10146+
return await AuthRequest<Theme, Exception>(HttpMethod.Get, "/themes/default_theme", new Values {
10147+
{ "ts", ts },
10148+
{ "theme_type", theme_type }},null,options);
10149+
}
10150+
10151+
/// ### Set the global default theme by theme name
10152+
///
10153+
/// Only Admin users can call this function.
10154+
///
10155+
/// Only an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.
10156+
///
10157+
/// [Create Theme](#!/Theme/create) has detailed information on rules for default and active themes
10158+
///
10159+
/// Returns the new specified default theme object.
10160+
///
10161+
/// The optional `theme_type` parameter can specify the theme type to select for.
10162+
///
10163+
/// PUT /themes/default_theme -> Theme
10164+
///
10165+
/// <returns><c>Theme</c> Theme (application/json)</returns>
10166+
///
10167+
/// <param name="name">Name of theme to set as default</param>
10168+
/// <param name="theme_type">Theme type.</param>
10169+
public async Task<SdkResponse<Theme, Exception>> set_default_theme_by_type(
10170+
string name,
10171+
string theme_type,
10172+
ITransportSettings? options = null)
10173+
{
10174+
return await AuthRequest<Theme, Exception>(HttpMethod.Put, "/themes/default_theme", new Values {
10175+
{ "name", name },
10176+
{ "theme_type", theme_type }},null,options);
10177+
}
10178+
1004910179
/// ### Get active themes
1005010180
///
1005110181
/// Returns an array of active themes.
@@ -10062,16 +10192,19 @@ public async Task<SdkResponse<Theme, Exception>> set_default_theme(
1006210192
///
1006310193
/// <param name="name">Name of theme</param>
1006410194
/// <param name="ts">Timestamp representing the target datetime for the active period. Defaults to 'now'</param>
10195+
/// <param name="theme_type">Theme type.</param>
1006510196
/// <param name="fields">Requested fields.</param>
1006610197
public async Task<SdkResponse<Theme[], Exception>> active_themes(
1006710198
string? name = null,
1006810199
DateTime? ts = null,
10200+
string? theme_type = null,
1006910201
string? fields = null,
1007010202
ITransportSettings? options = null)
1007110203
{
1007210204
return await AuthRequest<Theme[], Exception>(HttpMethod.Get, "/themes/active", new Values {
1007310205
{ "name", name },
1007410206
{ "ts", ts },
10207+
{ "theme_type", theme_type },
1007510208
{ "fields", fields }},null,options);
1007610209
}
1007710210

‎csharp/sdk/4.0/models.cs‎

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

24-
/// 458 API models: 361 Spec, 0 Request, 71 Write, 26 Enum
24+
/// 461 API models: 363 Spec, 0 Request, 72 Write, 26 Enum
2525

2626
#nullable enable
2727
using System;
@@ -3423,6 +3423,54 @@ public class GitConnectionTestResult : SdkModel
34233423
public string? status { get; set; } = null;
34243424
}
34253425

3426+
public class GitDiagnosticIssue : SdkModel
3427+
{
3428+
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
3429+
public StringDictionary<bool>? can { get; set; } = null;
3430+
/// <summary>Unique ID of the diagnostic issue. (read-only)</summary>
3431+
public string? id { get; set; } = null;
3432+
/// <summary>Parent diagnostic report ID. (read-only)</summary>
3433+
public string? report_id { get; set; } = null;
3434+
/// <summary>Target Looker Project ID. (read-only)</summary>
3435+
public string? project_id { get; set; } = null;
3436+
/// <summary>Environment scope (developer/production). (read-only)</summary>
3437+
public string? project_type { get; set; } = null;
3438+
/// <summary>Git diagnostic issue category. (read-only)</summary>
3439+
public string? issue_type { get; set; } = null;
3440+
/// <summary>Version schema. (read-only)</summary>
3441+
public string? issue_version { get; set; } = null;
3442+
/// <summary>Current execution status. (read-only)</summary>
3443+
public string? state { get; set; } = null;
3444+
/// <summary>Creation timestamp. (read-only)</summary>
3445+
public DateTime? created_at { get; set; } = null;
3446+
/// <summary>Last update timestamp. (read-only)</summary>
3447+
public DateTime? updated_at { get; set; } = null;
3448+
}
3449+
3450+
public class GitDiagnosticReport : SdkModel
3451+
{
3452+
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
3453+
public StringDictionary<bool>? can { get; set; } = null;
3454+
/// <summary>Unique ID of the git diagnostic report. (read-only)</summary>
3455+
public string? id { get; set; } = null;
3456+
/// <summary>Target Looker Project ID. (read-only)</summary>
3457+
public string? project_id { get; set; } = null;
3458+
/// <summary>ID of the user initiating the diagnosis. (read-only)</summary>
3459+
public string? user_id { get; set; } = null;
3460+
/// <summary>Raw lifecycle state. (read-only)</summary>
3461+
public string? state { get; set; } = null;
3462+
/// <summary>Status derived from state. (read-only)</summary>
3463+
public string? status { get; set; } = null;
3464+
/// <summary>Creation time. (read-only)</summary>
3465+
public DateTime? created_at { get; set; } = null;
3466+
/// <summary>Update time. (read-only)</summary>
3467+
public DateTime? updated_at { get; set; } = null;
3468+
/// <summary>Project structure type.</summary>
3469+
public string? project_type { get; set; } = null;
3470+
/// <summary>Diagnostic issues associated with this report. (read-only)</summary>
3471+
public GitDiagnosticIssue[]? issues { get; set; } = null;
3472+
}
3473+
34263474
public class GitStatus : SdkModel
34273475
{
34283476
/// <summary>Git action: add, delete, etc (read-only)</summary>
@@ -3457,6 +3505,20 @@ public class GoldenQuery : SdkModel
34573505
public DateTime? created_at { get; set; } = null;
34583506
/// <summary>Time when the question was last updated (read-only)</summary>
34593507
public DateTime? last_updated_at { get; set; } = null;
3508+
/// <summary>The explore name of the golden query (read-only)</summary>
3509+
public string? explore { get; set; } = null;
3510+
/// <summary>The LookML model name of the golden query (read-only)</summary>
3511+
public string? model { get; set; } = null;
3512+
/// <summary>Fields of the associated Looker Query (read-only)</summary>
3513+
public string[]? fields { get; set; } = null;
3514+
/// <summary>Filters of the associated Looker Query (read-only)</summary>
3515+
public StringDictionary<string>? filters { get; set; } = null;
3516+
/// <summary>Sorts of the associated Looker Query (read-only)</summary>
3517+
public string[]? sorts { get; set; } = null;
3518+
/// <summary>Limit of the associated Looker Query (read-only)</summary>
3519+
public string? limit { get; set; } = null;
3520+
/// <summary>Client ID of the associated Looker Query (read-only)</summary>
3521+
public string? client_id { get; set; } = null;
34603522
}
34613523

34623524
public class Group : SdkModel
@@ -4448,6 +4510,8 @@ public class LookmlModelExploreField : SdkModel
44484510
public Align? align { get; set; }
44494511
/// <summary>An array of custom timeframes available for this field for filtering, if applicable. (read-only)</summary>
44504512
public string[]? available_custom_timeframes { get; set; } = null;
4513+
/// <summary>A map of timeframe keys to their localized labels. (read-only)</summary>
4514+
public StringDictionary<string>? timeframe_labels { get; set; } = null;
44514515
/// <summary>Whether it's possible to filter on this field. (read-only)</summary>
44524516
public bool? can_filter { get; set; } = null;
44534517
/// <summary>Field category Valid values are: "parameter", "filter", "measure", "dimension". (read-only)</summary>
@@ -6245,6 +6309,8 @@ public class ScheduledPlan : SdkModel
62456309
public bool? run_once { get; set; } = null;
62466310
/// <summary>Whether links back to Looker should be included in this ScheduledPlan</summary>
62476311
public bool? include_links { get; set; } = null;
6312+
/// <summary>Whether to include a dashboard summary in the scheduled email</summary>
6313+
public bool? include_dashboard_summary { get; set; } = null;
62486314
/// <summary>Custom url domain for the scheduled entity</summary>
62496315
public string? custom_url_base { get; set; } = null;
62506316
/// <summary>Custom url path and parameters for the scheduled entity</summary>
@@ -6419,6 +6485,8 @@ public class SelfServiceModelUploadData : SdkModel
64196485
public string? drive_url { get; set; } = null;
64206486
/// <summary>User ID of the uploaded data owner (read-only)</summary>
64216487
public string? owner_id { get; set; } = null;
6488+
/// <summary>GUID of the visual canvas (read-only)</summary>
6489+
public string? canvas_guid { get; set; } = null;
64226490
}
64236491

64246492
public class ServiceAccount : SdkModel
@@ -6546,11 +6614,13 @@ public class Setting : SdkModel
65466614
public string? content_certification_documentation_link { get; set; } = null;
65476615
/// <summary>Allow content certification to be revoked on edits.</summary>
65486616
public bool? revoke_certification_on_edits { get; set; } = null;
6617+
/// <summary>Automatically enable Multi-Factor Authentication for users.</summary>
6618+
public bool? automated_mfa_enabled { get; set; } = null;
65496619
/// <summary>Allow content certification.</summary>
65506620
public bool? is_content_certification_enabled { get; set; } = null;
65516621
/// <summary>Allow auto certification of lookml content.</summary>
65526622
public bool? auto_certify_lookml_content { get; set; } = null;
6553-
/// <summary>Toggle CA agent observability</summary>
6623+
/// <summary>Toggle Conversational Analytics Agent Token usage</summary>
65546624
public bool? ca_agent_observability { get; set; } = null;
65556625
public McpTools? mcp_tools { get; set; }
65566626
}
@@ -8261,8 +8331,16 @@ public class WriteGitBranch : SdkModel
82618331
public string? @ref { get; set; } = null;
82628332
}
82638333

8334+
/// Dynamic writeable type for GitDiagnosticReport removes:
8335+
/// can, id, project_id, user_id, state, status, created_at, updated_at, issues
8336+
public class WriteGitDiagnosticReport : SdkModel
8337+
{
8338+
/// <summary>Project structure type.</summary>
8339+
public string? project_type { get; set; } = null;
8340+
}
8341+
82648342
/// Dynamic writeable type for GoldenQuery removes:
8265-
/// can, id, query_id, created_by_user_id, last_updated_by_user_id, created_at, last_updated_at
8343+
/// can, id, query_id, created_by_user_id, last_updated_by_user_id, created_at, last_updated_at, explore, model, fields, filters, sorts, limit, client_id
82668344
public class WriteGoldenQuery : SdkModel
82678345
{
82688346
/// <summary>Variations of the golden question text</summary>
@@ -9100,6 +9178,8 @@ public class WriteScheduledPlan : SdkModel
91009178
public bool? run_once { get; set; } = null;
91019179
/// <summary>Whether links back to Looker should be included in this ScheduledPlan</summary>
91029180
public bool? include_links { get; set; } = null;
9181+
/// <summary>Whether to include a dashboard summary in the scheduled email</summary>
9182+
public bool? include_dashboard_summary { get; set; } = null;
91039183
/// <summary>Custom url domain for the scheduled entity</summary>
91049184
public string? custom_url_base { get; set; } = null;
91059185
/// <summary>Custom url path and parameters for the scheduled entity</summary>
@@ -9206,11 +9286,13 @@ public class WriteSetting : SdkModel
92069286
public string? content_certification_documentation_link { get; set; } = null;
92079287
/// <summary>Allow content certification to be revoked on edits.</summary>
92089288
public bool? revoke_certification_on_edits { get; set; } = null;
9289+
/// <summary>Automatically enable Multi-Factor Authentication for users.</summary>
9290+
public bool? automated_mfa_enabled { get; set; } = null;
92099291
/// <summary>Allow content certification.</summary>
92109292
public bool? is_content_certification_enabled { get; set; } = null;
92119293
/// <summary>Allow auto certification of lookml content.</summary>
92129294
public bool? auto_certify_lookml_content { get; set; } = null;
9213-
/// <summary>Toggle CA agent observability</summary>
9295+
/// <summary>Toggle Conversational Analytics Agent Token usage</summary>
92149296
public bool? ca_agent_observability { get; set; } = null;
92159297
/// <summary>Dynamic writeable type for McpTools</summary>
92169298
public WriteMcpTools? mcp_tools { get; set; }

0 commit comments

Comments
 (0)