Skip to content

Commit b2ffa49

Browse files
feat: generate SDKs for Looker 25.2
Release-As: 25.2.0
1 parent 272a287 commit b2ffa49

File tree

24 files changed

+399
-84
lines changed

24 files changed

+399
-84
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 = "25.0";
64+
public const string LookerVersion = "25.2";
6565

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

csharp/sdk/4.0/methods.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7206,6 +7206,7 @@ public async Task<SdkResponse<Query, Exception>> create_query(
72067206
/// <param name="rebuild_pdts">Rebuild PDTS used in query.</param>
72077207
/// <param name="server_table_calcs">Perform table calculations on query results</param>
72087208
/// <param name="source">Specifies the source of this call.</param>
7209+
/// <param name="enable_oauth_error_response">Return a specialized OAuth error response if a database OAuth error occurs.</param>
72097210
public async Task<SdkResponse<TSuccess, Exception>> run_query<TSuccess>(
72107211
string query_id,
72117212
string result_format,
@@ -7222,6 +7223,7 @@ public async Task<SdkResponse<TSuccess, Exception>> run_query<TSuccess>(
72227223
bool? rebuild_pdts = null,
72237224
bool? server_table_calcs = null,
72247225
string? source = null,
7226+
bool? enable_oauth_error_response = null,
72257227
ITransportSettings? options = null) where TSuccess : class
72267228
{
72277229
query_id = SdkUtils.EncodeParam(query_id);
@@ -7239,7 +7241,8 @@ public async Task<SdkResponse<TSuccess, Exception>> run_query<TSuccess>(
72397241
{ "path_prefix", path_prefix },
72407242
{ "rebuild_pdts", rebuild_pdts },
72417243
{ "server_table_calcs", server_table_calcs },
7242-
{ "source", source }},null,options);
7244+
{ "source", source },
7245+
{ "enable_oauth_error_response", enable_oauth_error_response }},null,options);
72437246
}
72447247

72457248
/// ### Run the query that is specified inline in the posted body.
@@ -7318,6 +7321,7 @@ public async Task<SdkResponse<TSuccess, Exception>> run_query<TSuccess>(
73187321
/// <param name="path_prefix">Prefix to use for drill links (url encoded).</param>
73197322
/// <param name="rebuild_pdts">Rebuild PDTS used in query.</param>
73207323
/// <param name="server_table_calcs">Perform table calculations on query results</param>
7324+
/// <param name="enable_oauth_error_response">Return a specialized OAuth error response if a database OAuth error occurs.</param>
73217325
public async Task<SdkResponse<TSuccess, Exception>> run_inline_query<TSuccess>(
73227326
string result_format,
73237327
WriteQuery body,
@@ -7333,6 +7337,7 @@ public async Task<SdkResponse<TSuccess, Exception>> run_inline_query<TSuccess>(
73337337
string? path_prefix = null,
73347338
bool? rebuild_pdts = null,
73357339
bool? server_table_calcs = null,
7340+
bool? enable_oauth_error_response = null,
73367341
ITransportSettings? options = null) where TSuccess : class
73377342
{
73387343
result_format = SdkUtils.EncodeParam(result_format);
@@ -7348,7 +7353,8 @@ public async Task<SdkResponse<TSuccess, Exception>> run_inline_query<TSuccess>(
73487353
{ "cache_only", cache_only },
73497354
{ "path_prefix", path_prefix },
73507355
{ "rebuild_pdts", rebuild_pdts },
7351-
{ "server_table_calcs", server_table_calcs }},body,options);
7356+
{ "server_table_calcs", server_table_calcs },
7357+
{ "enable_oauth_error_response", enable_oauth_error_response }},body,options);
73527358
}
73537359

73547360
/// ### Run an URL encoded query.
@@ -7550,7 +7556,7 @@ public async Task<SdkResponse<SqlQuery, Exception>> sql_query(
75507556
/// </returns>
75517557
///
75527558
/// <param name="slug">slug of query</param>
7553-
/// <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>
7559+
/// <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", "odc", "json_label"]</param>
75547560
/// <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>
75557561
public async Task<SdkResponse<TSuccess, Exception>> run_sql_query<TSuccess>(
75567562
string slug,

csharp/sdk/4.0/models.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ public class CreateQueryTask : SdkModel
987987
public StringDictionary<bool>? can { get; set; } = null;
988988
/// <summary>Id of query to run</summary>
989989
public string query_id { get; set; } = "";
990-
/// <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>
990+
/// <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", "odc".</summary>
991991
[JsonConverter(typeof(StringEnumConverter))]
992992
public ResultFormat result_format { get; set; }
993993
/// <summary>Source of query task</summary>
@@ -1658,6 +1658,8 @@ public class DBConnection : SdkModel
16581658
public Snippet[]? snippets { get; set; } = null;
16591659
/// <summary>True if PDTs are enabled on this connection (read-only)</summary>
16601660
public bool? pdts_enabled { get; set; } = null;
1661+
/// <summary>JDBC driver version name</summary>
1662+
public string? named_driver_version { get; set; } = null;
16611663
/// <summary>Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel.</summary>
16621664
public string? host { get; set; } = null;
16631665
/// <summary>Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel.</summary>
@@ -1763,6 +1765,8 @@ public class DBConnection : SdkModel
17631765
public bool? bq_roles_verified { get; set; } = null;
17641766
/// <summary>The name of P4SA service account that is associated with the Looker instance (read-only)</summary>
17651767
public string? p4sa_name { get; set; } = null;
1768+
/// <summary>Disable query holding for this connection.</summary>
1769+
public bool? query_holding_disabled { get; set; } = null;
17661770
}
17671771

17681772
public class DBConnectionBase : SdkModel
@@ -4452,7 +4456,7 @@ public class RepositoryCredential : SdkModel
44524456
public bool? is_configured { get; set; } = null;
44534457
}
44544458

4455-
/// 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)
4459+
/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask)
44564460
public enum ResultFormat
44574461
{
44584462
[EnumMember(Value = "inline_json")]
@@ -4478,7 +4482,9 @@ public enum ResultFormat
44784482
[EnumMember(Value = "gsxml")]
44794483
gsxml,
44804484
[EnumMember(Value = "sql")]
4481-
sql
4485+
sql,
4486+
[EnumMember(Value = "odc")]
4487+
odc
44824488
}
44834489

44844490
public class ResultMakerFilterables : SdkModel
@@ -5991,7 +5997,7 @@ public class WriteCreateQueryTask : SdkModel
59915997
{
59925998
/// <summary>Id of query to run</summary>
59935999
public string query_id { get; set; } = "";
5994-
/// <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>
6000+
/// <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", "odc".</summary>
59956001
[JsonConverter(typeof(StringEnumConverter))]
59966002
public ResultFormat result_format { get; set; }
59976003
/// <summary>Source of query task</summary>
@@ -6228,6 +6234,8 @@ public class WriteDBConnection : SdkModel
62286234
{
62296235
/// <summary>Name of the connection. Also used as the unique identifier</summary>
62306236
public string? name { get; set; } = null;
6237+
/// <summary>JDBC driver version name</summary>
6238+
public string? named_driver_version { get; set; } = null;
62316239
/// <summary>Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel.</summary>
62326240
public string? host { get; set; } = null;
62336241
/// <summary>Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel.</summary>
@@ -6315,6 +6323,8 @@ public class WriteDBConnection : SdkModel
63156323
public string? bq_storage_project_id { get; set; } = null;
63166324
/// <summary>When true, represents that all project roles have been verified.</summary>
63176325
public bool? bq_roles_verified { get; set; } = null;
6326+
/// <summary>Disable query holding for this connection.</summary>
6327+
public bool? query_holding_disabled { get; set; } = null;
63186328
}
63196329

63206330
/// Dynamic writeable type for DBConnectionOverride removes:

go/sdk/v4/methods.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5528,7 +5528,7 @@ func (l *LookerSDK) RunQuery(request RequestRunQuery,
55285528
request.QueryId = url.PathEscape(request.QueryId)
55295529
request.ResultFormat = url.PathEscape(request.ResultFormat)
55305530
var result string
5531-
err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v/run/%v", request.QueryId, request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "source": request.Source}, nil, options)
5531+
err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v/run/%v", request.QueryId, request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "source": request.Source, "enable_oauth_error_response": request.EnableOauthErrorResponse}, nil, options)
55325532
return result, err
55335533

55345534
}
@@ -5596,7 +5596,7 @@ func (l *LookerSDK) RunInlineQuery(request RequestRunInlineQuery,
55965596
options *rtl.ApiSettings) (string, error) {
55975597
request.ResultFormat = url.PathEscape(request.ResultFormat)
55985598
var result string
5599-
err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/queries/run/%v", request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs}, request.Body, options)
5599+
err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/queries/run/%v", request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "enable_oauth_error_response": request.EnableOauthErrorResponse}, request.Body, options)
56005600
return result, err
56015601

56025602
}

0 commit comments

Comments
 (0)