Skip to content

Commit

Permalink
feat: generate SDKs for Looker 23.12 (#1335)
Browse files Browse the repository at this point in the history
Release-As: 23.12.0
  • Loading branch information
drstrangelooker authored Jul 13, 2023
1 parent 8076b8f commit fba4161
Show file tree
Hide file tree
Showing 35 changed files with 859 additions and 101 deletions.
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 = "23.10";
public const string LookerVersion = "23.12";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
12 changes: 9 additions & 3 deletions csharp/sdk/3.1/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2648,6 +2648,7 @@ public async Task<SdkResponse<MaterializePDT, Exception>> stop_pdt_build(
/// <param name="creator_id">Filter on folder created by a particular user.</param>
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
/// <param name="is_shared_root">Match is shared root</param>
/// <param name="is_users_root">Match is users root</param>
public async Task<SdkResponse<Folder[], Exception>> search_folders(
string? fields = null,
long? page = null,
Expand All @@ -2661,6 +2662,7 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
string? creator_id = null,
bool? filter_or = null,
bool? is_shared_root = null,
bool? is_users_root = null,
ITransportSettings? options = null)
{
return await AuthRequest<Folder[], Exception>(HttpMethod.Get, "/folders/search", new Values {
Expand All @@ -2675,7 +2677,8 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
{ "parent_id", parent_id },
{ "creator_id", creator_id },
{ "filter_or", filter_or },
{ "is_shared_root", is_shared_root }},null,options);
{ "is_shared_root", is_shared_root },
{ "is_users_root", is_users_root }},null,options);
}

/// ### Get information about the folder with a specific id.
Expand Down Expand Up @@ -5452,7 +5455,7 @@ public async Task<SdkResponse<SqlQuery, Exception>> create_sql_query(
/// </returns>
///
/// <param name="slug">slug of query</param>
/// <param name="result_format">Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"]</param>
/// <param name="result_format">Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"]</param>
/// <param name="download">Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content.</param>
public async Task<SdkResponse<TSuccess, Exception>> run_sql_query<TSuccess>(
string slug,
Expand Down Expand Up @@ -6680,6 +6683,7 @@ public async Task<SdkResponse<ApiSession, Exception>> update_session(
/// <param name="creator_id">Filter on spaces created by a particular user.</param>
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
/// <param name="is_shared_root">Match is shared root</param>
/// <param name="is_users_root">Match is users root</param>
[Obsolete("Deprecated")]
public async Task<SdkResponse<Space[], Exception>> search_spaces(
string? fields = null,
Expand All @@ -6694,6 +6698,7 @@ public async Task<SdkResponse<Space[], Exception>> search_spaces(
string? creator_id = null,
bool? filter_or = null,
bool? is_shared_root = null,
bool? is_users_root = null,
ITransportSettings? options = null)
{
return await AuthRequest<Space[], Exception>(HttpMethod.Get, "/spaces/search", new Values {
Expand All @@ -6708,7 +6713,8 @@ public async Task<SdkResponse<Space[], Exception>> search_spaces(
{ "parent_id", parent_id },
{ "creator_id", creator_id },
{ "filter_or", filter_or },
{ "is_shared_root", is_shared_root }},null,options);
{ "is_shared_root", is_shared_root },
{ "is_users_root", is_users_root }},null,options);
}

/// ### Get information about the space with a specific id.
Expand Down
10 changes: 7 additions & 3 deletions csharp/sdk/3.1/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public class CreateQueryTask : SdkModel
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Id of query to run</summary>
public long query_id { get; set; }
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
[JsonConverter(typeof(StringEnumConverter))]
public ResultFormat result_format { get; set; }
/// <summary>Source of query task</summary>
Expand Down Expand Up @@ -3421,7 +3421,7 @@ public class RepositoryCredential : SdkModel
public bool? is_configured { get; set; } = null;
}

/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask)
/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask)
public enum ResultFormat
{
[EnumMember(Value = "inline_json")]
Expand All @@ -3432,6 +3432,8 @@ public enum ResultFormat
json_detail,
[EnumMember(Value = "json_fe")]
json_fe,
[EnumMember(Value = "json_bi")]
json_bi,
[EnumMember(Value = "csv")]
csv,
[EnumMember(Value = "html")]
Expand Down Expand Up @@ -4186,6 +4188,8 @@ public class ThemeSettings : SdkModel
public string? column_gap_size { get; set; } = null;
/// <summary>The horizontal gap/gutter size between tiles.</summary>
public string? row_gap_size { get; set; } = null;
/// <summary>The border radius for tiles.</summary>
public string? border_radius { get; set; } = null;
}

public class Timezone : SdkModel
Expand Down Expand Up @@ -4625,7 +4629,7 @@ public class WriteCreateQueryTask : SdkModel
{
/// <summary>Id of query to run</summary>
public long query_id { get; set; }
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
[JsonConverter(typeof(StringEnumConverter))]
public ResultFormat result_format { get; set; }
/// <summary>Source of query task</summary>
Expand Down
30 changes: 27 additions & 3 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 459 API methods
/// 461 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -2473,6 +2473,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - marketplace_auto_install_enabled
/// - marketplace_terms_accepted
/// - marketplace_enabled
/// - onboarding_enabled
/// - privatelabel_configuration
Expand Down Expand Up @@ -2504,6 +2505,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - marketplace_auto_install_enabled
/// - marketplace_terms_accepted
/// - marketplace_enabled
/// - onboarding_enabled
/// - privatelabel_configuration
Expand Down Expand Up @@ -4458,6 +4460,7 @@ public async Task<SdkResponse<MaterializePDT, Exception>> stop_pdt_build(
/// <param name="creator_id">Filter on folder created by a particular user.</param>
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
/// <param name="is_shared_root">Match is shared root</param>
/// <param name="is_users_root">Match is users root</param>
public async Task<SdkResponse<Folder[], Exception>> search_folders(
string? fields = null,
long? page = null,
Expand All @@ -4471,6 +4474,7 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
string? creator_id = null,
bool? filter_or = null,
bool? is_shared_root = null,
bool? is_users_root = null,
ITransportSettings? options = null)
{
return await AuthRequest<Folder[], Exception>(HttpMethod.Get, "/folders/search", new Values {
Expand All @@ -4485,7 +4489,8 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
{ "parent_id", parent_id },
{ "creator_id", creator_id },
{ "filter_or", filter_or },
{ "is_shared_root", is_shared_root }},null,options);
{ "is_shared_root", is_shared_root },
{ "is_users_root", is_users_root }},null,options);
}

/// ### Get information about the folder with a specific id.
Expand Down Expand Up @@ -5383,6 +5388,25 @@ public async Task<SdkResponse<IntegrationTestResult, Exception>> test_integratio

#endregion Integration: Manage Integrations

#region JdbcInterface: LookML Model metadata for JDBC Clients

/// ### Handle Avatica RPC Requests
///
/// GET /__jdbc_interface__ -> JdbcInterface
///
/// <returns><c>JdbcInterface</c> (application/json)</returns>
///
/// <param name="avatica_request">Avatica RPC request</param>
public async Task<SdkResponse<JdbcInterface, Exception>> jdbc_interface(
string? avatica_request = null,
ITransportSettings? options = null)
{
return await AuthRequest<JdbcInterface, Exception>(HttpMethod.Get, "/__jdbc_interface__", new Values {
{ "avatica_request", avatica_request }},null,options);
}

#endregion JdbcInterface: LookML Model metadata for JDBC Clients

#region Look: Run and Manage Looks

/// ### Get information about all active Looks
Expand Down Expand Up @@ -7439,7 +7463,7 @@ public async Task<SdkResponse<SqlQuery, Exception>> create_sql_query(
/// </returns>
///
/// <param name="slug">slug of query</param>
/// <param name="result_format">Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"]</param>
/// <param name="result_format">Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"]</param>
/// <param name="download">Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content.</param>
public async Task<SdkResponse<TSuccess, Exception>> run_sql_query<TSuccess>(
string slug,
Expand Down
22 changes: 18 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.
///

/// 326 API models: 244 Spec, 0 Request, 60 Write, 22 Enum
/// 327 API models: 245 Spec, 0 Request, 60 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -943,7 +943,7 @@ public class CreateQueryTask : SdkModel
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Id of query to run</summary>
public string query_id { get; set; } = "";
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
[JsonConverter(typeof(StringEnumConverter))]
public ResultFormat result_format { get; set; }
/// <summary>Source of query task</summary>
Expand Down Expand Up @@ -2578,6 +2578,12 @@ public enum InvestigativeContentType
dashboard
}

public class JdbcInterface : SdkModel
{
/// <summary>JDBC Metadata to inflate Avatica response classes. (read-only)</summary>
public string? results { get; set; } = null;
}

public class LDAPConfig : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
Expand Down Expand Up @@ -4197,7 +4203,7 @@ public class RepositoryCredential : SdkModel
public bool? is_configured { get; set; } = null;
}

/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask)
/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask)
public enum ResultFormat
{
[EnumMember(Value = "inline_json")]
Expand All @@ -4208,6 +4214,8 @@ public enum ResultFormat
json_detail,
[EnumMember(Value = "json_fe")]
json_fe,
[EnumMember(Value = "json_bi")]
json_bi,
[EnumMember(Value = "csv")]
csv,
[EnumMember(Value = "html")]
Expand Down Expand Up @@ -4733,6 +4741,8 @@ public class Setting : SdkModel
public bool? marketplace_auto_install_enabled { get; set; } = null;
/// <summary>Toggle marketplace on or off</summary>
public bool? marketplace_enabled { get; set; } = null;
/// <summary>Accept marketplace terms by setting this value to true, or get the current status. Marketplace terms CANNOT be declined once accepted. Accepting marketplace terms automatically enables the marketplace. The marketplace can still be disabled after it has been enabled.</summary>
public bool? marketplace_terms_accepted { get; set; } = null;
public PrivatelabelConfiguration? privatelabel_configuration { get; set; }
public CustomWelcomeEmail? custom_welcome_email { get; set; }
/// <summary>Toggle onboarding on or off</summary>
Expand Down Expand Up @@ -5127,6 +5137,8 @@ public class ThemeSettings : SdkModel
public string? column_gap_size { get; set; } = null;
/// <summary>The horizontal gap/gutter size between tiles.</summary>
public string? row_gap_size { get; set; } = null;
/// <summary>The border radius for tiles.</summary>
public string? border_radius { get; set; } = null;
}

public class Timezone : SdkModel
Expand Down Expand Up @@ -5687,7 +5699,7 @@ public class WriteCreateQueryTask : SdkModel
{
/// <summary>Id of query to run</summary>
public string query_id { get; set; } = "";
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
[JsonConverter(typeof(StringEnumConverter))]
public ResultFormat result_format { get; set; }
/// <summary>Source of query task</summary>
Expand Down Expand Up @@ -6703,6 +6715,8 @@ public class WriteSetting : SdkModel
public bool? marketplace_auto_install_enabled { get; set; } = null;
/// <summary>Toggle marketplace on or off</summary>
public bool? marketplace_enabled { get; set; } = null;
/// <summary>Accept marketplace terms by setting this value to true, or get the current status. Marketplace terms CANNOT be declined once accepted. Accepting marketplace terms automatically enables the marketplace. The marketplace can still be disabled after it has been enabled.</summary>
public bool? marketplace_terms_accepted { get; set; } = null;
/// <summary>
/// Dynamic writeable type for PrivatelabelConfiguration removes:
/// logo_url, favicon_url
Expand Down
22 changes: 20 additions & 2 deletions go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*
459 API methods
461 API methods
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand Down Expand Up @@ -2085,6 +2085,7 @@ func (l *LookerSDK) MobileSettings(
// - extension_framework_enabled
// - extension_load_url_enabled
// - marketplace_auto_install_enabled
// - marketplace_terms_accepted
// - marketplace_enabled
// - onboarding_enabled
// - privatelabel_configuration
Expand Down Expand Up @@ -2113,6 +2114,7 @@ func (l *LookerSDK) GetSetting(
// - extension_framework_enabled
// - extension_load_url_enabled
// - marketplace_auto_install_enabled
// - marketplace_terms_accepted
// - marketplace_enabled
// - onboarding_enabled
// - privatelabel_configuration
Expand Down Expand Up @@ -3591,7 +3593,7 @@ func (l *LookerSDK) StopPdtBuild(
func (l *LookerSDK) SearchFolders(request RequestSearchFolders,
options *rtl.ApiSettings) ([]Folder, error) {
var result []Folder
err := l.session.Do(&result, "GET", "/4.0", "/folders/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "id": request.Id, "parent_id": request.ParentId, "creator_id": request.CreatorId, "filter_or": request.FilterOr, "is_shared_root": request.IsSharedRoot}, nil, options)
err := l.session.Do(&result, "GET", "/4.0", "/folders/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "id": request.Id, "parent_id": request.ParentId, "creator_id": request.CreatorId, "filter_or": request.FilterOr, "is_shared_root": request.IsSharedRoot, "is_users_root": request.IsUsersRoot}, nil, options)
return result, err

}
Expand Down Expand Up @@ -4212,6 +4214,22 @@ func (l *LookerSDK) TestIntegration(

// endregion Integration: Manage Integrations

// region JdbcInterface: LookML Model metadata for JDBC Clients

// ### Handle Avatica RPC Requests
//
// GET /__jdbc_interface__ -> JdbcInterface
func (l *LookerSDK) JdbcInterface(
avaticaRequest string,
options *rtl.ApiSettings) (JdbcInterface, error) {
var result JdbcInterface
err := l.session.Do(&result, "GET", "/4.0", "/__jdbc_interface__", map[string]interface{}{"avatica_request": avaticaRequest}, nil, options)
return result, err

}

// endregion JdbcInterface: LookML Model metadata for JDBC Clients

// region Look: Run and Manage Looks

// ### Get information about all active Looks
Expand Down
Loading

0 comments on commit fba4161

Please sign in to comment.