Skip to content

Commit fba4161

Browse files
feat: generate SDKs for Looker 23.12 (#1335)
Release-As: 23.12.0
1 parent 8076b8f commit fba4161

35 files changed

+859
-101
lines changed

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 = "23.10";
64+
public const string LookerVersion = "23.12";
6565

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

csharp/sdk/3.1/methods.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,6 +2648,7 @@ public async Task<SdkResponse<MaterializePDT, Exception>> stop_pdt_build(
26482648
/// <param name="creator_id">Filter on folder created by a particular user.</param>
26492649
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
26502650
/// <param name="is_shared_root">Match is shared root</param>
2651+
/// <param name="is_users_root">Match is users root</param>
26512652
public async Task<SdkResponse<Folder[], Exception>> search_folders(
26522653
string? fields = null,
26532654
long? page = null,
@@ -2661,6 +2662,7 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
26612662
string? creator_id = null,
26622663
bool? filter_or = null,
26632664
bool? is_shared_root = null,
2665+
bool? is_users_root = null,
26642666
ITransportSettings? options = null)
26652667
{
26662668
return await AuthRequest<Folder[], Exception>(HttpMethod.Get, "/folders/search", new Values {
@@ -2675,7 +2677,8 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
26752677
{ "parent_id", parent_id },
26762678
{ "creator_id", creator_id },
26772679
{ "filter_or", filter_or },
2678-
{ "is_shared_root", is_shared_root }},null,options);
2680+
{ "is_shared_root", is_shared_root },
2681+
{ "is_users_root", is_users_root }},null,options);
26792682
}
26802683

26812684
/// ### Get information about the folder with a specific id.
@@ -5452,7 +5455,7 @@ public async Task<SdkResponse<SqlQuery, Exception>> create_sql_query(
54525455
/// </returns>
54535456
///
54545457
/// <param name="slug">slug of query</param>
5455-
/// <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>
5458+
/// <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>
54565459
/// <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>
54575460
public async Task<SdkResponse<TSuccess, Exception>> run_sql_query<TSuccess>(
54585461
string slug,
@@ -6680,6 +6683,7 @@ public async Task<SdkResponse<ApiSession, Exception>> update_session(
66806683
/// <param name="creator_id">Filter on spaces created by a particular user.</param>
66816684
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
66826685
/// <param name="is_shared_root">Match is shared root</param>
6686+
/// <param name="is_users_root">Match is users root</param>
66836687
[Obsolete("Deprecated")]
66846688
public async Task<SdkResponse<Space[], Exception>> search_spaces(
66856689
string? fields = null,
@@ -6694,6 +6698,7 @@ public async Task<SdkResponse<Space[], Exception>> search_spaces(
66946698
string? creator_id = null,
66956699
bool? filter_or = null,
66966700
bool? is_shared_root = null,
6701+
bool? is_users_root = null,
66976702
ITransportSettings? options = null)
66986703
{
66996704
return await AuthRequest<Space[], Exception>(HttpMethod.Get, "/spaces/search", new Values {
@@ -6708,7 +6713,8 @@ public async Task<SdkResponse<Space[], Exception>> search_spaces(
67086713
{ "parent_id", parent_id },
67096714
{ "creator_id", creator_id },
67106715
{ "filter_or", filter_or },
6711-
{ "is_shared_root", is_shared_root }},null,options);
6716+
{ "is_shared_root", is_shared_root },
6717+
{ "is_users_root", is_users_root }},null,options);
67126718
}
67136719

67146720
/// ### Get information about the space with a specific id.

csharp/sdk/3.1/models.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public class CreateQueryTask : SdkModel
499499
public StringDictionary<bool>? can { get; set; } = null;
500500
/// <summary>Id of query to run</summary>
501501
public long query_id { get; set; }
502-
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
502+
/// <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>
503503
[JsonConverter(typeof(StringEnumConverter))]
504504
public ResultFormat result_format { get; set; }
505505
/// <summary>Source of query task</summary>
@@ -3421,7 +3421,7 @@ public class RepositoryCredential : SdkModel
34213421
public bool? is_configured { get; set; } = null;
34223422
}
34233423

3424-
/// 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)
3424+
/// 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)
34253425
public enum ResultFormat
34263426
{
34273427
[EnumMember(Value = "inline_json")]
@@ -3432,6 +3432,8 @@ public enum ResultFormat
34323432
json_detail,
34333433
[EnumMember(Value = "json_fe")]
34343434
json_fe,
3435+
[EnumMember(Value = "json_bi")]
3436+
json_bi,
34353437
[EnumMember(Value = "csv")]
34363438
csv,
34373439
[EnumMember(Value = "html")]
@@ -4186,6 +4188,8 @@ public class ThemeSettings : SdkModel
41864188
public string? column_gap_size { get; set; } = null;
41874189
/// <summary>The horizontal gap/gutter size between tiles.</summary>
41884190
public string? row_gap_size { get; set; } = null;
4191+
/// <summary>The border radius for tiles.</summary>
4192+
public string? border_radius { get; set; } = null;
41894193
}
41904194

41914195
public class Timezone : SdkModel
@@ -4625,7 +4629,7 @@ public class WriteCreateQueryTask : SdkModel
46254629
{
46264630
/// <summary>Id of query to run</summary>
46274631
public long query_id { get; set; }
4628-
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
4632+
/// <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>
46294633
[JsonConverter(typeof(StringEnumConverter))]
46304634
public ResultFormat result_format { get; set; }
46314635
/// <summary>Source of query task</summary>

csharp/sdk/4.0/methods.cs

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

24-
/// 459 API methods
24+
/// 461 API methods
2525

2626
#nullable enable
2727
using System;
@@ -2473,6 +2473,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
24732473
/// - extension_framework_enabled
24742474
/// - extension_load_url_enabled
24752475
/// - marketplace_auto_install_enabled
2476+
/// - marketplace_terms_accepted
24762477
/// - marketplace_enabled
24772478
/// - onboarding_enabled
24782479
/// - privatelabel_configuration
@@ -2504,6 +2505,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
25042505
/// - extension_framework_enabled
25052506
/// - extension_load_url_enabled
25062507
/// - marketplace_auto_install_enabled
2508+
/// - marketplace_terms_accepted
25072509
/// - marketplace_enabled
25082510
/// - onboarding_enabled
25092511
/// - privatelabel_configuration
@@ -4458,6 +4460,7 @@ public async Task<SdkResponse<MaterializePDT, Exception>> stop_pdt_build(
44584460
/// <param name="creator_id">Filter on folder created by a particular user.</param>
44594461
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
44604462
/// <param name="is_shared_root">Match is shared root</param>
4463+
/// <param name="is_users_root">Match is users root</param>
44614464
public async Task<SdkResponse<Folder[], Exception>> search_folders(
44624465
string? fields = null,
44634466
long? page = null,
@@ -4471,6 +4474,7 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
44714474
string? creator_id = null,
44724475
bool? filter_or = null,
44734476
bool? is_shared_root = null,
4477+
bool? is_users_root = null,
44744478
ITransportSettings? options = null)
44754479
{
44764480
return await AuthRequest<Folder[], Exception>(HttpMethod.Get, "/folders/search", new Values {
@@ -4485,7 +4489,8 @@ public async Task<SdkResponse<Folder[], Exception>> search_folders(
44854489
{ "parent_id", parent_id },
44864490
{ "creator_id", creator_id },
44874491
{ "filter_or", filter_or },
4488-
{ "is_shared_root", is_shared_root }},null,options);
4492+
{ "is_shared_root", is_shared_root },
4493+
{ "is_users_root", is_users_root }},null,options);
44894494
}
44904495

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

53845389
#endregion Integration: Manage Integrations
53855390

5391+
#region JdbcInterface: LookML Model metadata for JDBC Clients
5392+
5393+
/// ### Handle Avatica RPC Requests
5394+
///
5395+
/// GET /__jdbc_interface__ -> JdbcInterface
5396+
///
5397+
/// <returns><c>JdbcInterface</c> (application/json)</returns>
5398+
///
5399+
/// <param name="avatica_request">Avatica RPC request</param>
5400+
public async Task<SdkResponse<JdbcInterface, Exception>> jdbc_interface(
5401+
string? avatica_request = null,
5402+
ITransportSettings? options = null)
5403+
{
5404+
return await AuthRequest<JdbcInterface, Exception>(HttpMethod.Get, "/__jdbc_interface__", new Values {
5405+
{ "avatica_request", avatica_request }},null,options);
5406+
}
5407+
5408+
#endregion JdbcInterface: LookML Model metadata for JDBC Clients
5409+
53865410
#region Look: Run and Manage Looks
53875411

53885412
/// ### Get information about all active Looks
@@ -7439,7 +7463,7 @@ public async Task<SdkResponse<SqlQuery, Exception>> create_sql_query(
74397463
/// </returns>
74407464
///
74417465
/// <param name="slug">slug of query</param>
7442-
/// <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>
7466+
/// <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>
74437467
/// <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>
74447468
public async Task<SdkResponse<TSuccess, Exception>> run_sql_query<TSuccess>(
74457469
string slug,

csharp/sdk/4.0/models.cs

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

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

2626
#nullable enable
2727
using System;
@@ -943,7 +943,7 @@ public class CreateQueryTask : SdkModel
943943
public StringDictionary<bool>? can { get; set; } = null;
944944
/// <summary>Id of query to run</summary>
945945
public string query_id { get; set; } = "";
946-
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
946+
/// <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>
947947
[JsonConverter(typeof(StringEnumConverter))]
948948
public ResultFormat result_format { get; set; }
949949
/// <summary>Source of query task</summary>
@@ -2578,6 +2578,12 @@ public enum InvestigativeContentType
25782578
dashboard
25792579
}
25802580

2581+
public class JdbcInterface : SdkModel
2582+
{
2583+
/// <summary>JDBC Metadata to inflate Avatica response classes. (read-only)</summary>
2584+
public string? results { get; set; } = null;
2585+
}
2586+
25812587
public class LDAPConfig : SdkModel
25822588
{
25832589
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
@@ -4197,7 +4203,7 @@ public class RepositoryCredential : SdkModel
41974203
public bool? is_configured { get; set; } = null;
41984204
}
41994205

4200-
/// 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)
4206+
/// 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)
42014207
public enum ResultFormat
42024208
{
42034209
[EnumMember(Value = "inline_json")]
@@ -4208,6 +4214,8 @@ public enum ResultFormat
42084214
json_detail,
42094215
[EnumMember(Value = "json_fe")]
42104216
json_fe,
4217+
[EnumMember(Value = "json_bi")]
4218+
json_bi,
42114219
[EnumMember(Value = "csv")]
42124220
csv,
42134221
[EnumMember(Value = "html")]
@@ -4733,6 +4741,8 @@ public class Setting : SdkModel
47334741
public bool? marketplace_auto_install_enabled { get; set; } = null;
47344742
/// <summary>Toggle marketplace on or off</summary>
47354743
public bool? marketplace_enabled { get; set; } = null;
4744+
/// <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>
4745+
public bool? marketplace_terms_accepted { get; set; } = null;
47364746
public PrivatelabelConfiguration? privatelabel_configuration { get; set; }
47374747
public CustomWelcomeEmail? custom_welcome_email { get; set; }
47384748
/// <summary>Toggle onboarding on or off</summary>
@@ -5127,6 +5137,8 @@ public class ThemeSettings : SdkModel
51275137
public string? column_gap_size { get; set; } = null;
51285138
/// <summary>The horizontal gap/gutter size between tiles.</summary>
51295139
public string? row_gap_size { get; set; } = null;
5140+
/// <summary>The border radius for tiles.</summary>
5141+
public string? border_radius { get; set; } = null;
51305142
}
51315143

51325144
public class Timezone : SdkModel
@@ -5687,7 +5699,7 @@ public class WriteCreateQueryTask : SdkModel
56875699
{
56885700
/// <summary>Id of query to run</summary>
56895701
public string query_id { get; set; } = "";
5690-
/// <summary>Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql".</summary>
5702+
/// <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>
56915703
[JsonConverter(typeof(StringEnumConverter))]
56925704
public ResultFormat result_format { get; set; }
56935705
/// <summary>Source of query task</summary>
@@ -6703,6 +6715,8 @@ public class WriteSetting : SdkModel
67036715
public bool? marketplace_auto_install_enabled { get; set; } = null;
67046716
/// <summary>Toggle marketplace on or off</summary>
67056717
public bool? marketplace_enabled { get; set; } = null;
6718+
/// <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>
6719+
public bool? marketplace_terms_accepted { get; set; } = null;
67066720
/// <summary>
67076721
/// Dynamic writeable type for PrivatelabelConfiguration removes:
67086722
/// logo_url, favicon_url

go/sdk/v4/methods.go

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SOFTWARE.
2626

2727
/*
2828
29-
459 API methods
29+
461 API methods
3030
*/
3131

3232
// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
@@ -2085,6 +2085,7 @@ func (l *LookerSDK) MobileSettings(
20852085
// - extension_framework_enabled
20862086
// - extension_load_url_enabled
20872087
// - marketplace_auto_install_enabled
2088+
// - marketplace_terms_accepted
20882089
// - marketplace_enabled
20892090
// - onboarding_enabled
20902091
// - privatelabel_configuration
@@ -2113,6 +2114,7 @@ func (l *LookerSDK) GetSetting(
21132114
// - extension_framework_enabled
21142115
// - extension_load_url_enabled
21152116
// - marketplace_auto_install_enabled
2117+
// - marketplace_terms_accepted
21162118
// - marketplace_enabled
21172119
// - onboarding_enabled
21182120
// - privatelabel_configuration
@@ -3591,7 +3593,7 @@ func (l *LookerSDK) StopPdtBuild(
35913593
func (l *LookerSDK) SearchFolders(request RequestSearchFolders,
35923594
options *rtl.ApiSettings) ([]Folder, error) {
35933595
var result []Folder
3594-
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)
3596+
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)
35953597
return result, err
35963598

35973599
}
@@ -4212,6 +4214,22 @@ func (l *LookerSDK) TestIntegration(
42124214

42134215
// endregion Integration: Manage Integrations
42144216

4217+
// region JdbcInterface: LookML Model metadata for JDBC Clients
4218+
4219+
// ### Handle Avatica RPC Requests
4220+
//
4221+
// GET /__jdbc_interface__ -> JdbcInterface
4222+
func (l *LookerSDK) JdbcInterface(
4223+
avaticaRequest string,
4224+
options *rtl.ApiSettings) (JdbcInterface, error) {
4225+
var result JdbcInterface
4226+
err := l.session.Do(&result, "GET", "/4.0", "/__jdbc_interface__", map[string]interface{}{"avatica_request": avaticaRequest}, nil, options)
4227+
return result, err
4228+
4229+
}
4230+
4231+
// endregion JdbcInterface: LookML Model metadata for JDBC Clients
4232+
42154233
// region Look: Run and Manage Looks
42164234

42174235
// ### Get information about all active Looks

0 commit comments

Comments
 (0)