Skip to content

feat: generate SDKs for Looker 25.0 #1558

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 1 commit into from
Jan 13, 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 = "24.20";
public const string LookerVersion = "25.0";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
47 changes: 31 additions & 16 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ namespace = SdkUtils.EncodeParam(namespace);
///
/// The value of the `secret` field will be set by Looker and returned.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// POST /embed_config/secrets -> EmbedSecret
///
Expand All @@ -630,7 +630,7 @@ public async Task<SdkResponse<EmbedSecret, Exception>> create_embed_secret(

/// ### Delete an embed secret.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// DELETE /embed_config/secrets/{embed_secret_id} -> string
///
Expand Down Expand Up @@ -688,7 +688,7 @@ public async Task<SdkResponse<string, Exception>> delete_embed_secret(
/// encrypted transport.
///
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// POST /embed/sso_url -> EmbedUrlResponse
///
Expand Down Expand Up @@ -728,7 +728,7 @@ public async Task<SdkResponse<EmbedUrlResponse, Exception>> create_sso_embed_url
/// encrypted transport.
///
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// POST /embed/token_url/me -> EmbedUrlResponse
///
Expand Down Expand Up @@ -787,7 +787,7 @@ public async Task<SdkResponse<EmbedUrlResponse, Exception>> validate_embed_url(
/// - Navigation token - lives for 10 minutes. The Looker client will ask for this token once it is loaded into
/// the iframe.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// POST /embed/cookieless_session/acquire -> EmbedCookielessSessionAcquireResponse
///
Expand All @@ -806,7 +806,7 @@ public async Task<SdkResponse<EmbedCookielessSessionAcquireResponse, Exception>>
/// in the session and session reference data being cleared from the system. This endpoint can be used to log an embed
/// user out of the Looker instance.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// DELETE /embed/cookieless_session/{session_reference_token} -> string
///
Expand Down Expand Up @@ -836,7 +836,7 @@ public async Task<SdkResponse<string, Exception>> delete_embed_cookieless_sessio
/// the session time to live in the `session_reference_token_ttl` response property. If this property
/// contains a zero, the embed session has expired.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// PUT /embed/cookieless_session/generate_tokens -> EmbedCookielessSessionGenerateTokensResponse
///
Expand Down Expand Up @@ -2504,6 +2504,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
/// - managed_certificate_uri
/// - marketplace_auto_install_enabled
/// - marketplace_automation
/// - marketplace_terms_accepted
Expand Down Expand Up @@ -2542,6 +2543,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
/// - managed_certificate_uri
/// - marketplace_auto_install_enabled
/// - marketplace_automation
/// - marketplace_terms_accepted
Expand Down Expand Up @@ -3468,12 +3470,18 @@ public async Task<SdkResponse<TSuccess, Exception>> content_thumbnail<TSuccess>(
/// <returns><c>ContentValidation</c> Content validation results (application/json)</returns>
///
/// <param name="fields">Requested fields.</param>
/// <param name="project_names">Optional list of project names to filter by</param>
/// <param name="space_ids">Optional list of space ids to filter by</param>
public async Task<SdkResponse<ContentValidation, Exception>> content_validation(
string? fields = null,
DelimArray<string>? project_names = null,
DelimArray<string>? space_ids = null,
ITransportSettings? options = null)
{
return await AuthRequest<ContentValidation, Exception>(HttpMethod.Get, "/content_validation", new Values {
{ "fields", fields }},null,options);
{ "fields", fields },
{ "project_names", project_names },
{ "space_ids", space_ids }},null,options);
}

/// ### Search Content Views
Expand Down Expand Up @@ -5839,16 +5847,25 @@ public async Task<SdkResponse<LookWithQuery, Exception>> move_look(
/// <param name="fields">Requested fields.</param>
/// <param name="limit">Number of results to return. (can be used with offset)</param>
/// <param name="offset">Number of results to skip before returning any. (Defaults to 0 if not set when limit is used)</param>
/// <param name="exclude_empty">Whether or not to exclude models with no explores from the response (Defaults to false)</param>
/// <param name="exclude_hidden">Whether or not to exclude hidden explores from the response (Defaults to false)</param>
/// <param name="include_internal">Whether or not to include built-in models such as System Activity (Defaults to false)</param>
public async Task<SdkResponse<LookmlModel[], Exception>> all_lookml_models(
string? fields = null,
long? limit = null,
long? offset = null,
bool? exclude_empty = null,
bool? exclude_hidden = null,
bool? include_internal = null,
ITransportSettings? options = null)
{
return await AuthRequest<LookmlModel[], Exception>(HttpMethod.Get, "/lookml_models", new Values {
{ "fields", fields },
{ "limit", limit },
{ "offset", offset }},null,options);
{ "offset", offset },
{ "exclude_empty", exclude_empty },
{ "exclude_hidden", exclude_hidden },
{ "include_internal", include_internal }},null,options);
}

/// ### Create a lookml model using the specified configuration.
Expand Down Expand Up @@ -7013,7 +7030,7 @@ public async Task<SdkResponse<QueryTask, Exception>> query_task(
///
/// Returns the results of an async query task if the query has completed.
///
/// If the query task is still running or waiting to run, this function returns 204 No Content.
/// If the query task is still running or waiting to run, this function returns 202 Accepted.
///
/// If the query task ID is invalid or the cached results of the query task have expired, this function returns 404 Not Found.
///
Expand All @@ -7038,8 +7055,6 @@ public async Task<SdkResponse<QueryTask, Exception>> query_task(
/// <returns>
/// <c>string</c> The query results. (text)
/// <c>string</c> The query results. (application/json)
/// <c>string</c> The query is not finished (text)
/// <c>string</c> The query is not finished (application/json)
/// </returns>
///
/// <param name="query_task_id">ID of the Query Task</param>
Expand Down Expand Up @@ -10000,7 +10015,7 @@ public async Task<SdkResponse<CreateCredentialsApi3, Exception>> create_user_cre

/// ### Embed login information for the specified user.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// GET /users/{user_id}/credentials_embed/{credentials_embed_id} -> CredentialsEmbed
///
Expand All @@ -10023,7 +10038,7 @@ public async Task<SdkResponse<CredentialsEmbed, Exception>> user_credentials_emb

/// ### Embed login information for the specified user.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// DELETE /users/{user_id}/credentials_embed/{credentials_embed_id} -> string
///
Expand All @@ -10043,7 +10058,7 @@ public async Task<SdkResponse<string, Exception>> delete_user_credentials_embed(

/// ### Embed login information for the specified user.
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// GET /users/{user_id}/credentials_embed -> CredentialsEmbed[]
///
Expand Down Expand Up @@ -10373,7 +10388,7 @@ public async Task<SdkResponse<User, Exception>> wipeout_user_emails(

/// Create an embed user from an external user ID
///
/// Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled
/// **NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.
///
/// POST /users/embed_user -> UserPublic
///
Expand Down
46 changes: 44 additions & 2 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 342 API models: 259 Spec, 0 Request, 61 Write, 22 Enum
/// 343 API models: 259 Spec, 0 Request, 62 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -1696,6 +1696,8 @@ public class DBConnection : SdkModel
public bool? verify_ssl { get; set; } = null;
/// <summary>Name of temporary database (if used)</summary>
public string? tmp_db_name { get; set; } = null;
/// <summary>Name of temporary host (if used)</summary>
public string? tmp_db_host { get; set; } = null;
/// <summary>Additional params to add to JDBC connection string</summary>
public string? jdbc_additional_params { get; set; } = null;
/// <summary>Connection Pool Timeout, in seconds</summary>
Expand Down Expand Up @@ -2022,6 +2024,8 @@ public class EmbedConfig : SdkModel
public bool? look_filters { get; set; } = null;
/// <summary>When true, removes navigation to Looks from embedded dashboards and explores.</summary>
public bool? hide_look_navigation { get; set; } = null;
/// <summary>True if embedding is licensed for this Looker instance. (read-only)</summary>
public bool? embed_enabled { get; set; } = null;
}

public class EmbedCookielessSessionAcquire : SdkModel
Expand Down Expand Up @@ -5023,6 +5027,8 @@ public class Setting : SdkModel
public bool? dashboard_auto_refresh_restriction { get; set; } = null;
/// <summary>Minimum time interval for dashboard element automatic refresh. Examples: (30 seconds, 1 minute)</summary>
public string? dashboard_auto_refresh_minimum_interval { get; set; } = null;
/// <summary>URI pointing to the location of a private root certificate in Secret Manager</summary>
public string? managed_certificate_uri { get; set; } = null;
}

public class SmtpNodeStatus : SdkModel
Expand Down Expand Up @@ -6256,6 +6262,8 @@ public class WriteDBConnection : SdkModel
public bool? verify_ssl { get; set; } = null;
/// <summary>Name of temporary database (if used)</summary>
public string? tmp_db_name { get; set; } = null;
/// <summary>Name of temporary host (if used)</summary>
public string? tmp_db_host { get; set; } = null;
/// <summary>Additional params to add to JDBC connection string</summary>
public string? jdbc_additional_params { get; set; } = null;
/// <summary>Connection Pool Timeout, in seconds</summary>
Expand Down Expand Up @@ -6337,6 +6345,34 @@ public class WriteDBConnectionOverride : SdkModel
public string? after_connect_statements { get; set; } = null;
}

/// Dynamic writeable type for EmbedConfig removes:
/// embed_enabled
public class WriteEmbedConfig : SdkModel
{
/// <summary>List of domains to allow for embedding</summary>
public string[]? domain_allowlist { get; set; } = null;
/// <summary>List of base urls to allow for alert/schedule</summary>
public string[]? alert_url_allowlist { get; set; } = null;
/// <summary>Owner of who defines the alert/schedule params on the base url</summary>
public string? alert_url_param_owner { get; set; } = null;
/// <summary>Label for the alert/schedule url</summary>
public string? alert_url_label { get; set; } = null;
/// <summary>Is SSO embedding enabled for this Looker</summary>
public bool? sso_auth_enabled { get; set; } = null;
/// <summary>Is Cookieless embedding enabled for this Looker</summary>
public bool? embed_cookieless_v2 { get; set; } = null;
/// <summary>Is embed content navigation enabled for this looker</summary>
public bool? embed_content_navigation { get; set; } = null;
/// <summary>Is embed content management enabled for this Looker</summary>
public bool? embed_content_management { get; set; } = null;
/// <summary>When true, prohibits the use of Looker login pages in non-Looker iframes. When false, Looker login pages may be used in non-Looker hosted iframes.</summary>
public bool? strict_sameorigin_for_login { get; set; } = null;
/// <summary>When true, filters are enabled on embedded Looks</summary>
public bool? look_filters { get; set; } = null;
/// <summary>When true, removes navigation to Looks from embedded dashboards and explores.</summary>
public bool? hide_look_navigation { get; set; } = null;
}

/// Dynamic writeable type for EmbedSecret removes:
/// created_at, id, secret, user_id
public class WriteEmbedSecret : SdkModel
Expand Down Expand Up @@ -7042,11 +7078,17 @@ public class WriteSetting : SdkModel
public string[]? email_domain_allowlist { get; set; } = null;
/// <summary>(DEPRECATED) Use embed_config.embed_cookieless_v2 instead. If embed_config.embed_cookieless_v2 is specified, it overrides this value.</summary>
public bool? embed_cookieless_v2 { get; set; } = null;
public EmbedConfig? embed_config { get; set; }
/// <summary>
/// Dynamic writeable type for EmbedConfig removes:
/// embed_enabled
/// </summary>
public WriteEmbedConfig? embed_config { get; set; }
/// <summary>Toggle Dashboard Auto Refresh restriction</summary>
public bool? dashboard_auto_refresh_restriction { get; set; } = null;
/// <summary>Minimum time interval for dashboard element automatic refresh. Examples: (30 seconds, 1 minute)</summary>
public string? dashboard_auto_refresh_minimum_interval { get; set; } = null;
/// <summary>URI pointing to the location of a private root certificate in Secret Manager</summary>
public string? managed_certificate_uri { get; set; } = null;
}

/// Dynamic writeable type for SqlInterfaceQueryCreate removes:
Expand Down
Loading
Loading