Skip to content
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 = "26.10";
public const string LookerVersion = "26.12";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
135 changes: 134 additions & 1 deletion csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 512 API methods
/// 518 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -2519,6 +2519,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - onboarding_enabled
/// - privatelabel_configuration
/// - revoke_certification_on_edits
/// - automated_mfa_enabled
/// - timezone
/// - host_url
/// - email_domain_allowlist
Expand Down Expand Up @@ -2563,6 +2564,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - onboarding_enabled
/// - privatelabel_configuration
/// - revoke_certification_on_edits
/// - automated_mfa_enabled
/// - timezone
/// - host_url
/// - email_domain_allowlist
Expand Down Expand Up @@ -7667,6 +7669,59 @@ public async Task<SdkResponse<TSuccess, Exception>> tag_ref<TSuccess>(
{ "tag_message", tag_message }},body,options);
}

/// ### Initiate Git Diagnosis Suite
///
/// POST /projects/{project_id}/git_diagnostic_report -> GitDiagnosticReport
///
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
///
/// <param name="project_id">Looker Project ID</param>
public async Task<SdkResponse<GitDiagnosticReport, Exception>> create_git_diagnostic_report(
string project_id,
WriteGitDiagnosticReport body,
ITransportSettings? options = null)
{
project_id = SdkUtils.EncodeParam(project_id);
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Post, $"/projects/{project_id}/git_diagnostic_report", null,body,options);
}

/// ### Retrieve Live Git Diagnostic Suite Execution Status
///
/// GET /projects/{project_id}/git_diagnostic_report/{report_id} -> GitDiagnosticReport
///
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
///
/// <param name="project_id">Looker Project ID</param>
/// <param name="report_id">Report ID</param>
public async Task<SdkResponse<GitDiagnosticReport, Exception>> get_git_diagnostic_report(
string project_id,
string report_id,
ITransportSettings? options = null)
{
project_id = SdkUtils.EncodeParam(project_id);
report_id = SdkUtils.EncodeParam(report_id);
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Get, $"/projects/{project_id}/git_diagnostic_report/{report_id}", null,null,options);
}

/// ### Repair Git Configuration Issues
///
/// POST /projects/{project_id}/git_diagnostic_report/{report_id}/repair -> GitDiagnosticReport
///
/// <returns><c>GitDiagnosticReport</c> GitDiagnosticReport (application/json)</returns>
///
/// <param name="project_id">Looker Project ID</param>
/// <param name="report_id">Report ID</param>
public async Task<SdkResponse<GitDiagnosticReport, Exception>> repair_git_diagnostic_report(
string project_id,
string report_id,
WriteGitDiagnosticReport body,
ITransportSettings? options = null)
{
project_id = SdkUtils.EncodeParam(project_id);
report_id = SdkUtils.EncodeParam(report_id);
return await AuthRequest<GitDiagnosticReport, Exception>(HttpMethod.Post, $"/projects/{project_id}/git_diagnostic_report/{report_id}/repair", null,body,options);
}

/// ### Configure Repository Credential for a remote dependency
///
/// Admin required.
Expand Down Expand Up @@ -9734,6 +9789,21 @@ public async Task<SdkResponse<string[], Exception>> get_self_service_model_allow
{ "google_sheets", google_sheets }},null,options);
}

/// ### Get Generated LookML for a Self Service Model
///
/// GET /self_service_models/{model_name}/lookml -> string
///
/// <returns><c>string</c> Self service lookml (application/json)</returns>
///
/// <param name="model_name">Name of self service model</param>
public async Task<SdkResponse<string, Exception>> get_self_service_model_lookml(
string model_name,
ITransportSettings? options = null)
{
model_name = SdkUtils.EncodeParam(model_name);
return await AuthRequest<string, Exception>(HttpMethod.Get, $"/self_service_models/{model_name}/lookml", null,null,options);
}

/// ### Update certification for a Self Service Explore
///
/// PATCH /self_service_models/{model_name}/certification -> Certification
Expand Down Expand Up @@ -10002,6 +10072,8 @@ public async Task<SdkResponse<Theme[], Exception>> search_themes(

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

/// ### Set the global default theme by theme name
///
/// This endpoint is deprecated. [Set Default Theme (with type)](#!/Theme/set_default_theme_by_type) should be used instead.
///
/// Only Admin users can call this function.
///
/// 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.
Expand All @@ -10038,6 +10113,7 @@ public async Task<SdkResponse<Theme, Exception>> default_theme(
/// <returns><c>Theme</c> Theme (application/json)</returns>
///
/// <param name="name">Name of theme to set as default</param>
[Obsolete("Deprecated")]
public async Task<SdkResponse<Theme, Exception>> set_default_theme(
string name,
ITransportSettings? options = null)
Expand All @@ -10046,6 +10122,60 @@ public async Task<SdkResponse<Theme, Exception>> set_default_theme(
{ "name", name }},null,options);
}

/// ### Get the default theme
///
/// Returns the active theme object set as the default.
///
/// The **default** theme name can be set in the UI on the Admin|Theme UI page
///
/// The optional `ts` parameter can specify a different timestamp than "now." If specified, it returns the default theme at the time indicated.
///
/// The optional `theme_type` parameter can specify the theme type to select for.
///
/// GET /themes/default_theme -> Theme
///
/// <returns><c>Theme</c> Theme (application/json)</returns>
///
/// <param name="ts">Timestamp representing the target datetime for the active period. Defaults to 'now'</param>
/// <param name="theme_type">Theme type.</param>
public async Task<SdkResponse<Theme, Exception>> default_theme_by_type(
string theme_type,
DateTime? ts = null,
ITransportSettings? options = null)
{
return await AuthRequest<Theme, Exception>(HttpMethod.Get, "/themes/default_theme", new Values {
{ "ts", ts },
{ "theme_type", theme_type }},null,options);
}

/// ### Set the global default theme by theme name
///
/// Only Admin users can call this function.
///
/// 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.
///
/// [Create Theme](#!/Theme/create) has detailed information on rules for default and active themes
///
/// Returns the new specified default theme object.
///
/// The optional `theme_type` parameter can specify the theme type to select for.
///
/// PUT /themes/default_theme -> Theme
///
/// <returns><c>Theme</c> Theme (application/json)</returns>
///
/// <param name="name">Name of theme to set as default</param>
/// <param name="theme_type">Theme type.</param>
public async Task<SdkResponse<Theme, Exception>> set_default_theme_by_type(
string name,
string theme_type,
ITransportSettings? options = null)
{
return await AuthRequest<Theme, Exception>(HttpMethod.Put, "/themes/default_theme", new Values {
{ "name", name },
{ "theme_type", theme_type }},null,options);
}

/// ### Get active themes
///
/// Returns an array of active themes.
Expand All @@ -10062,16 +10192,19 @@ public async Task<SdkResponse<Theme, Exception>> set_default_theme(
///
/// <param name="name">Name of theme</param>
/// <param name="ts">Timestamp representing the target datetime for the active period. Defaults to 'now'</param>
/// <param name="theme_type">Theme type.</param>
/// <param name="fields">Requested fields.</param>
public async Task<SdkResponse<Theme[], Exception>> active_themes(
string? name = null,
DateTime? ts = null,
string? theme_type = null,
string? fields = null,
ITransportSettings? options = null)
{
return await AuthRequest<Theme[], Exception>(HttpMethod.Get, "/themes/active", new Values {
{ "name", name },
{ "ts", ts },
{ "theme_type", theme_type },
{ "fields", fields }},null,options);
}

Expand Down
90 changes: 86 additions & 4 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

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

#nullable enable
using System;
Expand Down Expand Up @@ -3423,6 +3423,54 @@ public class GitConnectionTestResult : SdkModel
public string? status { get; set; } = null;
}

public class GitDiagnosticIssue : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Unique ID of the diagnostic issue. (read-only)</summary>
public string? id { get; set; } = null;
/// <summary>Parent diagnostic report ID. (read-only)</summary>
public string? report_id { get; set; } = null;
/// <summary>Target Looker Project ID. (read-only)</summary>
public string? project_id { get; set; } = null;
/// <summary>Environment scope (developer/production). (read-only)</summary>
public string? project_type { get; set; } = null;
/// <summary>Git diagnostic issue category. (read-only)</summary>
public string? issue_type { get; set; } = null;
/// <summary>Version schema. (read-only)</summary>
public string? issue_version { get; set; } = null;
/// <summary>Current execution status. (read-only)</summary>
public string? state { get; set; } = null;
/// <summary>Creation timestamp. (read-only)</summary>
public DateTime? created_at { get; set; } = null;
/// <summary>Last update timestamp. (read-only)</summary>
public DateTime? updated_at { get; set; } = null;
}

public class GitDiagnosticReport : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Unique ID of the git diagnostic report. (read-only)</summary>
public string? id { get; set; } = null;
/// <summary>Target Looker Project ID. (read-only)</summary>
public string? project_id { get; set; } = null;
/// <summary>ID of the user initiating the diagnosis. (read-only)</summary>
public string? user_id { get; set; } = null;
/// <summary>Raw lifecycle state. (read-only)</summary>
public string? state { get; set; } = null;
/// <summary>Status derived from state. (read-only)</summary>
public string? status { get; set; } = null;
/// <summary>Creation time. (read-only)</summary>
public DateTime? created_at { get; set; } = null;
/// <summary>Update time. (read-only)</summary>
public DateTime? updated_at { get; set; } = null;
/// <summary>Project structure type.</summary>
public string? project_type { get; set; } = null;
/// <summary>Diagnostic issues associated with this report. (read-only)</summary>
public GitDiagnosticIssue[]? issues { get; set; } = null;
}

public class GitStatus : SdkModel
{
/// <summary>Git action: add, delete, etc (read-only)</summary>
Expand Down Expand Up @@ -3457,6 +3505,20 @@ public class GoldenQuery : SdkModel
public DateTime? created_at { get; set; } = null;
/// <summary>Time when the question was last updated (read-only)</summary>
public DateTime? last_updated_at { get; set; } = null;
/// <summary>The explore name of the golden query (read-only)</summary>
public string? explore { get; set; } = null;
/// <summary>The LookML model name of the golden query (read-only)</summary>
public string? model { get; set; } = null;
/// <summary>Fields of the associated Looker Query (read-only)</summary>
public string[]? fields { get; set; } = null;
/// <summary>Filters of the associated Looker Query (read-only)</summary>
public StringDictionary<string>? filters { get; set; } = null;
/// <summary>Sorts of the associated Looker Query (read-only)</summary>
public string[]? sorts { get; set; } = null;
/// <summary>Limit of the associated Looker Query (read-only)</summary>
public string? limit { get; set; } = null;
/// <summary>Client ID of the associated Looker Query (read-only)</summary>
public string? client_id { get; set; } = null;
}

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

public class ServiceAccount : SdkModel
Expand Down Expand Up @@ -6546,11 +6614,13 @@ public class Setting : SdkModel
public string? content_certification_documentation_link { get; set; } = null;
/// <summary>Allow content certification to be revoked on edits.</summary>
public bool? revoke_certification_on_edits { get; set; } = null;
/// <summary>Automatically enable Multi-Factor Authentication for users.</summary>
public bool? automated_mfa_enabled { get; set; } = null;
/// <summary>Allow content certification.</summary>
public bool? is_content_certification_enabled { get; set; } = null;
/// <summary>Allow auto certification of lookml content.</summary>
public bool? auto_certify_lookml_content { get; set; } = null;
/// <summary>Toggle CA agent observability</summary>
/// <summary>Toggle Conversational Analytics Agent Token usage</summary>
public bool? ca_agent_observability { get; set; } = null;
public McpTools? mcp_tools { get; set; }
}
Expand Down Expand Up @@ -8261,8 +8331,16 @@ public class WriteGitBranch : SdkModel
public string? @ref { get; set; } = null;
}

/// Dynamic writeable type for GitDiagnosticReport removes:
/// can, id, project_id, user_id, state, status, created_at, updated_at, issues
public class WriteGitDiagnosticReport : SdkModel
{
/// <summary>Project structure type.</summary>
public string? project_type { get; set; } = null;
}

/// Dynamic writeable type for GoldenQuery removes:
/// can, id, query_id, created_by_user_id, last_updated_by_user_id, created_at, last_updated_at
/// 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
public class WriteGoldenQuery : SdkModel
{
/// <summary>Variations of the golden question text</summary>
Expand Down Expand Up @@ -9100,6 +9178,8 @@ public class WriteScheduledPlan : SdkModel
public bool? run_once { get; set; } = null;
/// <summary>Whether links back to Looker should be included in this ScheduledPlan</summary>
public bool? include_links { get; set; } = null;
/// <summary>Whether to include a dashboard summary in the scheduled email</summary>
public bool? include_dashboard_summary { get; set; } = null;
/// <summary>Custom url domain for the scheduled entity</summary>
public string? custom_url_base { get; set; } = null;
/// <summary>Custom url path and parameters for the scheduled entity</summary>
Expand Down Expand Up @@ -9206,11 +9286,13 @@ public class WriteSetting : SdkModel
public string? content_certification_documentation_link { get; set; } = null;
/// <summary>Allow content certification to be revoked on edits.</summary>
public bool? revoke_certification_on_edits { get; set; } = null;
/// <summary>Automatically enable Multi-Factor Authentication for users.</summary>
public bool? automated_mfa_enabled { get; set; } = null;
/// <summary>Allow content certification.</summary>
public bool? is_content_certification_enabled { get; set; } = null;
/// <summary>Allow auto certification of lookml content.</summary>
public bool? auto_certify_lookml_content { get; set; } = null;
/// <summary>Toggle CA agent observability</summary>
/// <summary>Toggle Conversational Analytics Agent Token usage</summary>
public bool? ca_agent_observability { get; set; } = null;
/// <summary>Dynamic writeable type for McpTools</summary>
public WriteMcpTools? mcp_tools { get; set; }
Expand Down
Loading
Loading