Skip to content

Commit 5792b41

Browse files
feat: generate SDKs for Looker 25.16 (#1605)
Release-As: 25.16.0
1 parent feff16e commit 5792b41

File tree

24 files changed

+1207
-977
lines changed

24 files changed

+1207
-977
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.14";
64+
public const string LookerVersion = "25.16";
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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,11 +3144,11 @@ public async Task<SdkResponse<SshPublicKey, Exception>> ssh_public_key(
31443144
/// <returns><c>ContentFavorite[]</c> Favorite Content (application/json)</returns>
31453145
///
31463146
/// <param name="id">Match content favorite id(s)</param>
3147-
/// <param name="user_id">Match user id(s).To create a list of multiple ids, use commas as separators</param>
3148-
/// <param name="content_metadata_id">Match content metadata id(s).To create a list of multiple ids, use commas as separators</param>
3149-
/// <param name="dashboard_id">Match dashboard id(s).To create a list of multiple ids, use commas as separators</param>
3150-
/// <param name="look_id">Match look id(s).To create a list of multiple ids, use commas as separators</param>
3151-
/// <param name="board_id">Match board id(s).To create a list of multiple ids, use commas as separators</param>
3147+
/// <param name="user_id">Match user id(s). To create a list of multiple ids, use commas as separators</param>
3148+
/// <param name="content_metadata_id">Match content metadata id(s). To create a list of multiple ids, use commas as separators</param>
3149+
/// <param name="dashboard_id">Match dashboard id(s). To create a list of multiple ids, use commas as separators</param>
3150+
/// <param name="look_id">Match look id(s). To create a list of multiple ids, use commas as separators</param>
3151+
/// <param name="board_id">Match board id(s). To create a list of multiple ids, use commas as separators</param>
31523152
/// <param name="include_board_items">If true, and board_id is provided, returns the content favorites for all items on the board. If false, returns the content favorite for the board itself.</param>
31533153
/// <param name="limit">Number of results to return. (used with offset)</param>
31543154
/// <param name="offset">Number of results to skip before returning any. (used with limit)</param>
@@ -6218,22 +6218,22 @@ public async Task<SdkResponse<CostEstimate, Exception>> connection_cost_estimate
62186218

62196219
/// ### Fetches a CI Run.
62206220
///
6221-
/// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
6221+
/// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun
62226222
///
6223-
/// <returns><c>ProjectCIRun</c> CI Run (application/json)</returns>
6223+
/// <returns><c>ProjectRun</c> CI Run (application/json)</returns>
62246224
///
62256225
/// <param name="project_id">Project Id</param>
62266226
/// <param name="run_id">Run Id</param>
62276227
/// <param name="fields">Requested fields</param>
6228-
public async Task<SdkResponse<ProjectCIRun, Exception>> get_ci_run(
6228+
public async Task<SdkResponse<ProjectRun, Exception>> get_ci_run(
62296229
string project_id,
62306230
string run_id,
62316231
string? fields = null,
62326232
ITransportSettings? options = null)
62336233
{
62346234
project_id = SdkUtils.EncodeParam(project_id);
62356235
run_id = SdkUtils.EncodeParam(run_id);
6236-
return await AuthRequest<ProjectCIRun, Exception>(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values {
6236+
return await AuthRequest<ProjectRun, Exception>(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values {
62376237
{ "fields", fields }},null,options);
62386238
}
62396239

csharp/sdk/4.0/models.cs

Lines changed: 72 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -504,38 +504,6 @@ public class CIGitState : SdkModel
504504
public string? target { get; set; } = null;
505505
}
506506

507-
public class CIRun : SdkModel
508-
{
509-
/// <summary>ID of the CI run (read-only)</summary>
510-
public string? run_id { get; set; } = null;
511-
/// <summary>Time and date that the CI run was initiated (read-only)</summary>
512-
public DateTime? created_at { get; set; } = null;
513-
/// <summary>Time and date that the CI run began executing (read-only)</summary>
514-
public DateTime? started_at { get; set; } = null;
515-
/// <summary>Time and date that the CI run completed (read-only)</summary>
516-
public DateTime? finished_at { get; set; } = null;
517-
/// <summary>Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only)</summary>
518-
public string? status_url { get; set; } = null;
519-
/// <summary>Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only)</summary>
520-
public string? status { get; set; } = null;
521-
/// <summary>Git service for CI run (e.g. GitHub) (read-only)</summary>
522-
public string? git_service { get; set; } = null;
523-
public CIGitState? git_state { get; set; }
524-
public CIRunResult? result { get; set; }
525-
public CIScheduleTrigger? schedule { get; set; }
526-
/// <summary>Git branch that the CI run compares against during validation, used for incremental runs (read-only)</summary>
527-
public string? target_branch { get; set; } = null;
528-
/// <summary>Name of the CI suite (read-only)</summary>
529-
public string? title { get; set; } = null;
530-
/// <summary>Trigger for CI run (unknown, manual, schedule, change_request) (read-only)</summary>
531-
public string? trigger { get; set; } = null;
532-
public CIChangeRequest? change_request { get; set; }
533-
/// <summary>ID of the CI suite (read-only)</summary>
534-
public string? suite_id { get; set; } = null;
535-
/// <summary>Username of the user who triggered the CI run, if the CI run was manually triggered (read-only)</summary>
536-
public string? username { get; set; } = null;
537-
}
538-
539507
public class CIRunResult : SdkModel
540508
{
541509
public SqlValidatorResult? sql_result { get; set; }
@@ -668,6 +636,9 @@ public class ContentFavorite : SdkModel
668636
public DashboardBase? dashboard { get; set; }
669637
/// <summary>Id of a board (read-only)</summary>
670638
public string? board_id { get; set; } = null;
639+
/// <summary>Id of a lookml dashboard (read-only)</summary>
640+
public string? lookml_dashboard_id { get; set; } = null;
641+
public DashboardBase? lookml_dashboard { get; set; }
671642
}
672643

673644
public class ContentMeta : SdkModel
@@ -4563,11 +4534,6 @@ public class Project : SdkModel
45634534
public string? dependency_status { get; set; } = null;
45644535
}
45654536

4566-
public class ProjectCIRun : SdkModel
4567-
{
4568-
public CIRun? run { get; set; }
4569-
}
4570-
45714537
public class ProjectError : SdkModel
45724538
{
45734539
/// <summary>A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language (read-only)</summary>
@@ -4617,6 +4583,11 @@ public class ProjectFile : SdkModel
46174583
public GitStatus? git_status { get; set; }
46184584
}
46194585

4586+
public class ProjectRun : SdkModel
4587+
{
4588+
public Run? run { get; set; }
4589+
}
4590+
46204591
public class ProjectValidation : SdkModel
46214592
{
46224593
/// <summary>A list of project errors (read-only)</summary>
@@ -4911,11 +4882,11 @@ public enum ResultFormat
49114882

49124883
public class ResultMakerFilterables : SdkModel
49134884
{
4914-
/// <summary>The model this filterable comes from (used for field suggestions). (read-only)</summary>
4885+
/// <summary>The model this filterable comes from (used for field suggestions).</summary>
49154886
public string? model { get; set; } = null;
4916-
/// <summary>The view this filterable comes from (used for field suggestions). (read-only)</summary>
4887+
/// <summary>The view this filterable comes from (used for field suggestions).</summary>
49174888
public string? view { get; set; } = null;
4918-
/// <summary>The name of the filterable thing (Query or Merged Results). (read-only)</summary>
4889+
/// <summary>The name of the filterable thing (Query or Merged Results).</summary>
49194890
public string? name { get; set; } = null;
49204891
/// <summary>array of dashboard_filter_name: and field: objects. (read-only)</summary>
49214892
public ResultMakerFilterablesListen[]? listen { get; set; } = null;
@@ -4933,22 +4904,22 @@ public class ResultMakerWithIdVisConfigAndDynamicFields : SdkModel
49334904
{
49344905
/// <summary>Unique Id. (read-only)</summary>
49354906
public string? id { get; set; } = null;
4936-
/// <summary>JSON string of dynamic field information. (read-only)</summary>
4907+
/// <summary>JSON string of dynamic field information.</summary>
49374908
public string? dynamic_fields { get; set; } = null;
4938-
/// <summary>array of items that can be filtered and information about them. (read-only)</summary>
4909+
/// <summary>array of items that can be filtered and information about them.</summary>
49394910
public ResultMakerFilterables[]? filterables { get; set; } = null;
4940-
/// <summary>Sorts of the constituent Look, Query, or Merge Query (read-only)</summary>
4911+
/// <summary>Sorts of the constituent Look, Query, or Merge Query</summary>
49414912
public string[]? sorts { get; set; } = null;
4942-
/// <summary>ID of merge result if this is a merge_result. (read-only)</summary>
4913+
/// <summary>ID of merge result if this is a merge_result.</summary>
49434914
public string? merge_result_id { get; set; } = null;
4944-
/// <summary>Total of the constituent Look, Query, or Merge Query (read-only)</summary>
4915+
/// <summary>Total of the constituent Look, Query, or Merge Query</summary>
49454916
public bool? total { get; set; } = null;
49464917
/// <summary>ID of query if this is a query. (read-only)</summary>
49474918
public string? query_id { get; set; } = null;
4948-
/// <summary>ID of SQL Query if this is a SQL Runner Query (read-only)</summary>
4919+
/// <summary>ID of SQL Query if this is a SQL Runner Query</summary>
49494920
public string? sql_query_id { get; set; } = null;
49504921
public Query? query { get; set; }
4951-
/// <summary>Vis config of the constituent Query, or Merge Query. (read-only)</summary>
4922+
/// <summary>Vis config of the constituent Query, or Merge Query.</summary>
49524923
public StringDictionary<object>? vis_config { get; set; } = null;
49534924
}
49544925

@@ -4994,6 +4965,38 @@ public class RoleSearch : SdkModel
49944965
public string? users_url { get; set; } = null;
49954966
}
49964967

4968+
public class Run : SdkModel
4969+
{
4970+
/// <summary>ID of the CI run (read-only)</summary>
4971+
public string? run_id { get; set; } = null;
4972+
/// <summary>Time and date that the CI run was initiated (read-only)</summary>
4973+
public DateTime? created_at { get; set; } = null;
4974+
/// <summary>Time and date that the CI run began executing (read-only)</summary>
4975+
public DateTime? started_at { get; set; } = null;
4976+
/// <summary>Time and date that the CI run completed (read-only)</summary>
4977+
public DateTime? finished_at { get; set; } = null;
4978+
/// <summary>Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only)</summary>
4979+
public string? status_url { get; set; } = null;
4980+
/// <summary>Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only)</summary>
4981+
public string? status { get; set; } = null;
4982+
/// <summary>Git service for CI run (e.g. GitHub) (read-only)</summary>
4983+
public string? git_service { get; set; } = null;
4984+
public CIGitState? git_state { get; set; }
4985+
public CIRunResult? result { get; set; }
4986+
public CIScheduleTrigger? schedule { get; set; }
4987+
/// <summary>Git branch that the CI run compares against during validation, used for incremental runs (read-only)</summary>
4988+
public string? target_branch { get; set; } = null;
4989+
/// <summary>Name of the CI suite (read-only)</summary>
4990+
public string? title { get; set; } = null;
4991+
/// <summary>Trigger for CI run (unknown, manual, schedule, change_request) (read-only)</summary>
4992+
public string? trigger { get; set; } = null;
4993+
public CIChangeRequest? change_request { get; set; }
4994+
/// <summary>ID of the CI suite (read-only)</summary>
4995+
public string? suite_id { get; set; } = null;
4996+
/// <summary>Username of the user who triggered the CI run, if the CI run was manually triggered (read-only)</summary>
4997+
public string? username { get; set; } = null;
4998+
}
4999+
49975000
public class RunningQueries : SdkModel
49985001
{
49995002
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
@@ -6420,7 +6423,7 @@ public class WriteColorCollection : SdkModel
64206423
}
64216424

64226425
/// Dynamic writeable type for ContentFavorite removes:
6423-
/// id, look_id, dashboard_id, board_id
6426+
/// id, look_id, dashboard_id, board_id, lookml_dashboard_id
64246427
public class WriteContentFavorite : SdkModel
64256428
{
64266429
/// <summary>User Id which owns this ContentFavorite</summary>
@@ -6437,6 +6440,11 @@ public class WriteContentFavorite : SdkModel
64376440
/// can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer
64386441
/// </summary>
64396442
public WriteDashboardBase? dashboard { get; set; }
6443+
/// <summary>
6444+
/// Dynamic writeable type for DashboardBase removes:
6445+
/// can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer
6446+
/// </summary>
6447+
public WriteDashboardBase? lookml_dashboard { get; set; }
64406448
}
64416449

64426450
/// Dynamic writeable type for ContentMeta removes:
@@ -6619,7 +6627,7 @@ public class WriteDashboardElement : SdkModel
66196627
public string? refresh_interval { get; set; } = null;
66206628
/// <summary>
66216629
/// Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes:
6622-
/// id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config
6630+
/// id, query_id
66236631
/// </summary>
66246632
public WriteResultMakerWithIdVisConfigAndDynamicFields? result_maker { get; set; }
66256633
/// <summary>ID of the ResultMakerLookup entry.</summary>
@@ -7401,14 +7409,28 @@ public class WriteRepositoryCredential : SdkModel
74017409
}
74027410

74037411
/// Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes:
7404-
/// id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config
7412+
/// id, query_id
74057413
public class WriteResultMakerWithIdVisConfigAndDynamicFields : SdkModel
74067414
{
7415+
/// <summary>JSON string of dynamic field information.</summary>
7416+
public string? dynamic_fields { get; set; } = null;
7417+
/// <summary>array of items that can be filtered and information about them.</summary>
7418+
public ResultMakerFilterables[]? filterables { get; set; } = null;
7419+
/// <summary>Sorts of the constituent Look, Query, or Merge Query</summary>
7420+
public string[]? sorts { get; set; } = null;
7421+
/// <summary>ID of merge result if this is a merge_result.</summary>
7422+
public string? merge_result_id { get; set; } = null;
7423+
/// <summary>Total of the constituent Look, Query, or Merge Query</summary>
7424+
public bool? total { get; set; } = null;
7425+
/// <summary>ID of SQL Query if this is a SQL Runner Query</summary>
7426+
public string? sql_query_id { get; set; } = null;
74077427
/// <summary>
74087428
/// Dynamic writeable type for Query removes:
74097429
/// can, id, slug, share_url, expanded_share_url, url, has_table_calculations
74107430
/// </summary>
74117431
public WriteQuery? query { get; set; }
7432+
/// <summary>Vis config of the constituent Query, or Merge Query.</summary>
7433+
public StringDictionary<object>? vis_config { get; set; } = null;
74127434
}
74137435

74147436
/// Dynamic writeable type for Role removes:

go/sdk/v4/methods.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4749,15 +4749,15 @@ func (l *LookerSDK) ConnectionCostEstimate(
47494749

47504750
// ### Fetches a CI Run.
47514751
//
4752-
// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
4752+
// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun
47534753
func (l *LookerSDK) GetCiRun(
47544754
projectId string,
47554755
runId string,
47564756
fields string,
4757-
options *rtl.ApiSettings) (ProjectCIRun, error) {
4757+
options *rtl.ApiSettings) (ProjectRun, error) {
47584758
projectId = url.PathEscape(projectId)
47594759
runId = url.PathEscape(runId)
4760-
var result ProjectCIRun
4760+
var result ProjectRun
47614761
err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/ci/runs/%v", projectId, runId), map[string]interface{}{"fields": fields}, nil, options)
47624762
return result, err
47634763

0 commit comments

Comments
 (0)