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 = "24.12";
public const string LookerVersion = "24.14";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
24 changes: 23 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.
///

/// 464 API methods
/// 465 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -2499,6 +2499,8 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - allow_user_timezones
/// - custom_welcome_email
/// - data_connector_default_enabled
/// - dashboard_auto_refresh_restriction
/// - dashboard_auto_refresh_minimum_interval
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
Expand Down Expand Up @@ -2535,6 +2537,8 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - allow_user_timezones
/// - custom_welcome_email
/// - data_connector_default_enabled
/// - dashboard_auto_refresh_restriction
/// - dashboard_auto_refresh_minimum_interval
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
Expand Down Expand Up @@ -2880,6 +2884,24 @@ public async Task<SdkResponse<ExternalOauthApplication, Exception>> create_exter
return await AuthRequest<ExternalOauthApplication, Exception>(HttpMethod.Post, "/external_oauth_applications", null,body,options);
}

/// ### Update an OAuth Application's client secret.
///
/// This is an OAuth Application which Looker uses to access external systems.
///
/// PATCH /external_oauth_applications/{client_id} -> ExternalOauthApplication
///
/// <returns><c>ExternalOauthApplication</c> External OAuth Application (application/json)</returns>
///
/// <param name="client_id">The client ID of the OAuth App to update</param>
public async Task<SdkResponse<ExternalOauthApplication, Exception>> update_external_oauth_application(
string client_id,
WriteExternalOauthApplication body,
ITransportSettings? options = null)
{
client_id = SdkUtils.EncodeParam(client_id);
return await AuthRequest<ExternalOauthApplication, Exception>(HttpMethod.Patch, $"/external_oauth_applications/{client_id}", null,body,options);
}

/// ### Create OAuth User state.
///
/// POST /external_oauth_applications/user_state -> CreateOAuthApplicationUserStateResponse
Expand Down
52 changes: 48 additions & 4 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,10 @@ public class CredentialsEmail : SdkModel
public string? password_reset_url { get; set; } = null;
/// <summary>Url with one-time use secret token that the user can use to setup account (read-only)</summary>
public string? account_setup_url { get; set; } = null;
/// <summary>Is password_reset_url expired or not present? (read-only)</summary>
public bool? password_reset_url_expired { get; set; } = null;
/// <summary>Is account_setup_url expired or not present? (read-only)</summary>
public bool? account_setup_url_expired { get; set; } = null;
/// <summary>Short name for the type of this kind of credential (read-only)</summary>
public string? type { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
Expand Down Expand Up @@ -1022,6 +1026,10 @@ public class CredentialsEmailSearch : SdkModel
public string? password_reset_url { get; set; } = null;
/// <summary>Url with one-time use secret token that the user can use to setup account (read-only)</summary>
public string? account_setup_url { get; set; } = null;
/// <summary>Is password_reset_url expired or not present? (read-only)</summary>
public bool? password_reset_url_expired { get; set; } = null;
/// <summary>Is account_setup_url expired or not present? (read-only)</summary>
public bool? account_setup_url_expired { get; set; } = null;
/// <summary>Short name for the type of this kind of credential (read-only)</summary>
public string? type { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
Expand Down Expand Up @@ -1616,6 +1624,8 @@ public class DBConnection : SdkModel
public string? password { get; set; } = null;
/// <summary>Whether the connection uses OAuth for authentication. (read-only)</summary>
public bool? uses_oauth { get; set; } = null;
/// <summary>Whether the integration uses the oauth instance account. (read-only)</summary>
public bool? uses_instance_oauth { get; set; } = null;
/// <summary>(Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect).</summary>
public string? certificate { get; set; } = null;
/// <summary>(Write-Only) Certificate keyfile type - .json or .p12</summary>
Expand All @@ -1630,6 +1640,10 @@ public class DBConnection : SdkModel
public string? schema { get; set; } = null;
/// <summary>Maximum number of concurrent connection to use</summary>
public long? max_connections { get; set; } = null;
/// <summary>Maximum number of concurrent queries to begin on this connection</summary>
public long? max_queries { get; set; } = null;
/// <summary>Maximum number of concurrent queries per user to begin on this connection</summary>
public long? max_queries_per_user { get; set; } = null;
/// <summary>Maximum size of query in GBs (BigQuery only, can be a user_attribute name)</summary>
public string? max_billing_gigabytes { get; set; } = null;
/// <summary>Use SSL/TLS when connecting to server</summary>
Expand Down Expand Up @@ -1685,12 +1699,22 @@ public class DBConnection : SdkModel
public string? oauth_application_id { get; set; } = null;
/// <summary>When true, error PDTs will be retried every regenerator cycle</summary>
public bool? always_retry_failed_builds { get; set; } = null;
/// <summary>Whether the connection should authenticate with the Application Default Credentials of the host environment (limited to GCP and certain dialects).</summary>
public bool? uses_application_default_credentials { get; set; } = null;
/// <summary>An alternative Service Account to use for querying datasets (used primarily with `uses_application_default_credentials`) (limited to GCP and certain dialects).</summary>
public string? impersonated_service_account { get; set; } = null;
/// <summary>When true, query cost estimate will be displayed in explore.</summary>
public bool? cost_estimate_enabled { get; set; } = null;
/// <summary>PDT builds on this connection can be kicked off and cancelled via API.</summary>
public bool? pdt_api_control_enabled { get; set; } = null;
/// <summary>Enable database connection pooling.</summary>
public bool? connection_pooling { get; set; } = null;
/// <summary>When true, represents that this connection is the default BQ connection. (read-only)</summary>
public bool? default_bq_connection { get; set; } = null;
/// <summary>The project id of the default BigQuery storage project.</summary>
public string? bq_storage_project_id { get; set; } = null;
/// <summary>When true, represents that all project roles have been verified. (read-only)</summary>
public bool? bq_roles_verified { get; set; } = null;
}

public class DBConnectionBase : SdkModel
Expand Down Expand Up @@ -4547,6 +4571,8 @@ public class RunningQueries : SdkModel
public double? runtime { get; set; } = null;
/// <summary>SQL text of the query as run (read-only)</summary>
public string? sql { get; set; } = null;
/// <summary>SQL text of the SQL Interface query as run (read-only)</summary>
public string? sql_interface_sql { get; set; } = null;
}

public class SamlConfig : SdkModel
Expand Down Expand Up @@ -4962,6 +4988,10 @@ public class Setting : SdkModel
public bool? login_notification_enabled { get; set; } = null;
/// <summary>Login notification text (read-only)</summary>
public string? login_notification_text { get; set; } = null;
/// <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;
}

public class SmtpNodeStatus : SdkModel
Expand Down Expand Up @@ -5443,7 +5473,7 @@ public class User : SdkModel
public bool? models_dir_validated { get; set; } = null;
/// <summary>ID of user's personal folder (read-only)</summary>
public string? personal_folder_id { get; set; } = null;
/// <summary>User is identified as an employee of Looker (read-only)</summary>
/// <summary>(DEPRECATED) User is identified as an employee of Looker (read-only)</summary>
public bool? presumed_looker_employee { get; set; } = null;
/// <summary>Array of ids of the roles for this user (read-only)</summary>
public string[]? role_ids { get; set; } = null;
Expand Down Expand Up @@ -5940,7 +5970,7 @@ public class WriteCreateQueryTask : SdkModel
}

/// Dynamic writeable type for CredentialsEmail removes:
/// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, type, url, user_url
/// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, password_reset_url_expired, account_setup_url_expired, type, url, user_url
public class WriteCredentialsEmail : SdkModel
{
/// <summary>EMail address used for user login</summary>
Expand Down Expand Up @@ -6158,7 +6188,7 @@ public class WriteDatagroup : SdkModel
}

/// Dynamic writeable type for DBConnection removes:
/// can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
/// can, dialect, snippets, pdts_enabled, uses_oauth, uses_instance_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed, default_bq_connection, bq_roles_verified
public class WriteDBConnection : SdkModel
{
/// <summary>Name of the connection. Also used as the unique identifier</summary>
Expand All @@ -6185,6 +6215,10 @@ public class WriteDBConnection : SdkModel
public string? schema { get; set; } = null;
/// <summary>Maximum number of concurrent connection to use</summary>
public long? max_connections { get; set; } = null;
/// <summary>Maximum number of concurrent queries to begin on this connection</summary>
public long? max_queries { get; set; } = null;
/// <summary>Maximum number of concurrent queries per user to begin on this connection</summary>
public long? max_queries_per_user { get; set; } = null;
/// <summary>Maximum size of query in GBs (BigQuery only, can be a user_attribute name)</summary>
public string? max_billing_gigabytes { get; set; } = null;
/// <summary>Use SSL/TLS when connecting to server</summary>
Expand Down Expand Up @@ -6230,12 +6264,18 @@ public class WriteDBConnection : SdkModel
public string? oauth_application_id { get; set; } = null;
/// <summary>When true, error PDTs will be retried every regenerator cycle</summary>
public bool? always_retry_failed_builds { get; set; } = null;
/// <summary>Whether the connection should authenticate with the Application Default Credentials of the host environment (limited to GCP and certain dialects).</summary>
public bool? uses_application_default_credentials { get; set; } = null;
/// <summary>An alternative Service Account to use for querying datasets (used primarily with `uses_application_default_credentials`) (limited to GCP and certain dialects).</summary>
public string? impersonated_service_account { get; set; } = null;
/// <summary>When true, query cost estimate will be displayed in explore.</summary>
public bool? cost_estimate_enabled { get; set; } = null;
/// <summary>PDT builds on this connection can be kicked off and cancelled via API.</summary>
public bool? pdt_api_control_enabled { get; set; } = null;
/// <summary>Enable database connection pooling.</summary>
public bool? connection_pooling { get; set; } = null;
/// <summary>The project id of the default BigQuery storage project.</summary>
public string? bq_storage_project_id { get; set; } = null;
}

/// Dynamic writeable type for DBConnectionOverride removes:
Expand Down Expand Up @@ -6972,6 +7012,10 @@ public class WriteSetting : SdkModel
/// <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>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;
}

/// Dynamic writeable type for SqlInterfaceQueryCreate removes:
Expand Down Expand Up @@ -7031,7 +7075,7 @@ public class WriteUser : SdkModel
{
/// <summary>
/// Dynamic writeable type for CredentialsEmail removes:
/// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, type, url, user_url
/// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, password_reset_url_expired, account_setup_url_expired, type, url, user_url
/// </summary>
public WriteCredentialsEmail? credentials_email { get; set; }
/// <summary>First name</summary>
Expand Down
30 changes: 27 additions & 3 deletions go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*

464 API methods
465 API methods
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand All @@ -40,11 +40,15 @@ import (
"time"
)

type authSessionDoer interface {
Do(result interface{}, method, ver, path string, reqPars map[string]interface{}, body interface{}, options *rtl.ApiSettings) error
}

type LookerSDK struct {
session *rtl.AuthSession
session authSessionDoer
}

func NewLookerSDK(session *rtl.AuthSession) *LookerSDK {
func NewLookerSDK(session authSessionDoer) *LookerSDK {
return &LookerSDK{
session: session,
}
Expand Down Expand Up @@ -2108,6 +2112,8 @@ func (l *LookerSDK) MobileSettings(
// - allow_user_timezones
// - custom_welcome_email
// - data_connector_default_enabled
// - dashboard_auto_refresh_restriction
// - dashboard_auto_refresh_minimum_interval
// - extension_framework_enabled
// - extension_load_url_enabled
// - instance_config
Expand Down Expand Up @@ -2141,6 +2147,8 @@ func (l *LookerSDK) GetSetting(
// - allow_user_timezones
// - custom_welcome_email
// - data_connector_default_enabled
// - dashboard_auto_refresh_restriction
// - dashboard_auto_refresh_minimum_interval
// - extension_framework_enabled
// - extension_load_url_enabled
// - instance_config
Expand Down Expand Up @@ -2437,6 +2445,22 @@ func (l *LookerSDK) CreateExternalOauthApplication(

}

// ### Update an OAuth Application's client secret.
//
// This is an OAuth Application which Looker uses to access external systems.
//
// PATCH /external_oauth_applications/{client_id} -> ExternalOauthApplication
func (l *LookerSDK) UpdateExternalOauthApplication(
clientId string,
body WriteExternalOauthApplication,
options *rtl.ApiSettings) (ExternalOauthApplication, error) {
clientId = url.PathEscape(clientId)
var result ExternalOauthApplication
err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/external_oauth_applications/%v", clientId), nil, body, options)
return result, err

}

// ### Create OAuth User state.
//
// POST /external_oauth_applications/user_state -> CreateOAuthApplicationUserStateResponse
Expand Down
Loading
Loading