Skip to content

Commit 98d759f

Browse files
feat: generate SDKs for Looker 25.20
Release-As: 25.20.0
1 parent 3b8cd99 commit 98d759f

File tree

23 files changed

+1163
-291
lines changed

23 files changed

+1163
-291
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.18";
64+
public const string LookerVersion = "25.20";
6565

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

csharp/sdk/4.0/methods.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5943,13 +5943,15 @@ public async Task<SdkResponse<LookWithQuery, Exception>> move_look(
59435943
/// <param name="exclude_empty">Whether or not to exclude models with no explores from the response (Defaults to false)</param>
59445944
/// <param name="exclude_hidden">Whether or not to exclude hidden explores from the response (Defaults to false)</param>
59455945
/// <param name="include_internal">Whether or not to include built-in models such as System Activity (Defaults to false)</param>
5946+
/// <param name="include_self_service">Whether or not to include self service models (Defaults to false)</param>
59465947
public async Task<SdkResponse<LookmlModel[], Exception>> all_lookml_models(
59475948
string? fields = null,
59485949
long? limit = null,
59495950
long? offset = null,
59505951
bool? exclude_empty = null,
59515952
bool? exclude_hidden = null,
59525953
bool? include_internal = null,
5954+
bool? include_self_service = null,
59535955
ITransportSettings? options = null)
59545956
{
59555957
return await AuthRequest<LookmlModel[], Exception>(HttpMethod.Get, "/lookml_models", new Values {
@@ -5958,7 +5960,8 @@ public async Task<SdkResponse<LookmlModel[], Exception>> all_lookml_models(
59585960
{ "offset", offset },
59595961
{ "exclude_empty", exclude_empty },
59605962
{ "exclude_hidden", exclude_hidden },
5961-
{ "include_internal", include_internal }},null,options);
5963+
{ "include_internal", include_internal },
5964+
{ "include_self_service", include_self_service }},null,options);
59625965
}
59635966

59645967
/// ### Create a lookml model using the specified configuration.

csharp/sdk/4.0/models.cs

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

24-
/// 377 API models: 289 Spec, 0 Request, 64 Write, 24 Enum
24+
/// 380 API models: 290 Spec, 0 Request, 65 Write, 25 Enum
2525

2626
#nullable enable
2727
using System;
@@ -179,6 +179,8 @@ public class AlertNotifications : SdkModel
179179
/// <summary>The time at which the alert query ran (read-only)</summary>
180180
public string? ran_at { get; set; } = null;
181181
public MobilePayload? alert { get; set; }
182+
/// <summary>The type of notification, 'email' or 'slack' (read-only)</summary>
183+
public string? notification_type { get; set; } = null;
182184
}
183185

184186
public class AlertPatch : SdkModel
@@ -480,6 +482,28 @@ public enum Category
480482
dimension
481483
}
482484

485+
public class Certification : SdkModel
486+
{
487+
/// <summary>Certification status: "certified" or "revoked" Valid values are: "certified", "revoked".</summary>
488+
[JsonConverter(typeof(StringEnumConverter))]
489+
public CertificationStatus? certification_status { get; set; }
490+
/// <summary>Display name of user who certified the content, derived from user_id (read-only)</summary>
491+
public string? user_name { get; set; } = null;
492+
/// <summary>Certification notes</summary>
493+
public string? notes { get; set; } = null;
494+
/// <summary>Timestamp of certification (read-only)</summary>
495+
public DateTime? updated_at { get; set; } = null;
496+
}
497+
498+
/// Certification status: "certified" or "revoked" Valid values are: "certified", "revoked". (Enum defined in Certification)
499+
public enum CertificationStatus
500+
{
501+
[EnumMember(Value = "certified")]
502+
certified,
503+
[EnumMember(Value = "revoked")]
504+
revoked
505+
}
506+
483507
public class CIChangeRequest : SdkModel
484508
{
485509
/// <summary>Numeric identifier of the change request (read-only)</summary>
@@ -504,19 +528,6 @@ public class CIGitState : SdkModel
504528
public string? target { get; set; } = null;
505529
}
506530

507-
public class CIRunResult : SdkModel
508-
{
509-
public SqlValidatorResult? sql_result { get; set; }
510-
public GenericError? sql_error { get; set; }
511-
public AssertValidatorResult? assert_result { get; set; }
512-
public GenericError? assert_error { get; set; }
513-
public ContentValidatorResult? content_result { get; set; }
514-
public GenericError? content_error { get; set; }
515-
public LookMLValidatorResult? lookml_result { get; set; }
516-
public GenericError? lookml_error { get; set; }
517-
public GenericError? generic_error { get; set; }
518-
}
519-
520531
public class CIScheduleTrigger : SdkModel
521532
{
522533
/// <summary>Whether the CI run schedule is active (read-only)</summary>
@@ -753,6 +764,7 @@ public class ContentSummary : SdkModel
753764
public float? suggestion_score { get; set; } = null;
754765
/// <summary>The preferred route for viewing this content (ie: dashboards or dashboards-next) (read-only)</summary>
755766
public string? preferred_viewer { get; set; } = null;
767+
public Certification? certification_metadata { get; set; }
756768
}
757769

758770
public class ContentValidation : SdkModel
@@ -1467,6 +1479,7 @@ public class Dashboard : SdkModel
14671479
public string? slug { get; set; } = null;
14681480
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
14691481
public string? preferred_viewer { get; set; } = null;
1482+
public Certification? certification_metadata { get; set; }
14701483
/// <summary>Enables alerts to keep in sync with dashboard filter changes</summary>
14711484
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
14721485
/// <summary>Background color</summary>
@@ -1592,6 +1605,7 @@ public class DashboardBase : SdkModel
15921605
public string? slug { get; set; } = null;
15931606
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next) (read-only)</summary>
15941607
public string? preferred_viewer { get; set; } = null;
1608+
public Certification? certification_metadata { get; set; }
15951609
}
15961610

15971611
public class DashboardElement : SdkModel
@@ -1604,6 +1618,8 @@ public class DashboardElement : SdkModel
16041618
public string? body_text_as_html { get; set; } = null;
16051619
/// <summary>Id of Dashboard</summary>
16061620
public string? dashboard_id { get; set; } = null;
1621+
/// <summary>Id of Dashboard Layout</summary>
1622+
public string? dashboard_layout_id { get; set; } = null;
16071623
/// <summary>Relative path of URI of LookML file to edit the dashboard element (LookML dashboard only). (read-only)</summary>
16081624
public string? edit_uri { get; set; } = null;
16091625
/// <summary>Unique Id (read-only)</summary>
@@ -2445,6 +2461,8 @@ public class ExternalOauthApplication : SdkModel
24452461
public string? tenant_id { get; set; } = null;
24462462
/// <summary>The database dialect for this application.</summary>
24472463
public string? dialect_name { get; set; } = null;
2464+
/// <summary>Whether this application supports bi-directional data access.</summary>
2465+
public bool? bi_directional_data_access { get; set; } = null;
24482466
/// <summary>Creation time for this application (read-only)</summary>
24492467
public DateTime? created_at { get; set; } = null;
24502468
}
@@ -3337,6 +3355,7 @@ public class Look : SdkModel
33373355
public string? title { get; set; } = null;
33383356
/// <summary>User Id</summary>
33393357
public string? user_id { get; set; } = null;
3358+
public Certification? certification_metadata { get; set; }
33403359
/// <summary>Content Favorite Id (read-only)</summary>
33413360
public string? content_favorite_id { get; set; } = null;
33423361
/// <summary>Time that the Look was created. (read-only)</summary>
@@ -3401,6 +3420,7 @@ public class LookBasic : SdkModel
34013420
public string? title { get; set; } = null;
34023421
/// <summary>User Id</summary>
34033422
public string? user_id { get; set; } = null;
3423+
public Certification? certification_metadata { get; set; }
34043424
}
34053425

34063426
public class LookmlFieldLink : SdkModel
@@ -3681,6 +3701,10 @@ public class LookmlModelExploreField : SdkModel
36813701
public long? times_used { get; set; } = null;
36823702
/// <summary>The name of the view this field is defined in. This will be different than "view" when the view has been joined via a different name using the "from" parameter. (read-only)</summary>
36833703
public string? original_view { get; set; } = null;
3704+
/// <summary>The data_type for a date in lookml (read-only)</summary>
3705+
public string? datatype { get; set; } = null;
3706+
/// <summary>Whether time zones should be converted for datetime fields (read-only)</summary>
3707+
public bool? convert_tz { get; set; } = null;
36843708
}
36853709

36863710
public class LookmlModelExploreFieldEnumeration : SdkModel
@@ -3935,6 +3959,7 @@ public class LookWithDashboards : SdkModel
39353959
public string? title { get; set; } = null;
39363960
/// <summary>User Id</summary>
39373961
public string? user_id { get; set; } = null;
3962+
public Certification? certification_metadata { get; set; }
39383963
/// <summary>Content Favorite Id (read-only)</summary>
39393964
public string? content_favorite_id { get; set; } = null;
39403965
/// <summary>Time that the Look was created. (read-only)</summary>
@@ -4001,6 +4026,7 @@ public class LookWithQuery : SdkModel
40014026
public string? title { get; set; } = null;
40024027
/// <summary>User Id</summary>
40034028
public string? user_id { get; set; } = null;
4029+
public Certification? certification_metadata { get; set; }
40044030
/// <summary>Content Favorite Id (read-only)</summary>
40054031
public string? content_favorite_id { get; set; } = null;
40064032
/// <summary>Time that the Look was created. (read-only)</summary>
@@ -5002,7 +5028,7 @@ public class Run : SdkModel
50025028
/// <summary>Git service for CI run (e.g. GitHub) (read-only)</summary>
50035029
public string? git_service { get; set; } = null;
50045030
public CIGitState? git_state { get; set; }
5005-
public CIRunResult? result { get; set; }
5031+
public RunResult? result { get; set; }
50065032
public CIScheduleTrigger? schedule { get; set; }
50075033
/// <summary>Git branch that the CI run compares against during validation, used for incremental runs (read-only)</summary>
50085034
public string? target_branch { get; set; } = null;
@@ -5061,6 +5087,19 @@ public class RunningQueries : SdkModel
50615087
public string? sql_interface_sql { get; set; } = null;
50625088
}
50635089

5090+
public class RunResult : SdkModel
5091+
{
5092+
public SqlValidatorResult? sql_result { get; set; }
5093+
public GenericError? sql_error { get; set; }
5094+
public AssertValidatorResult? assert_result { get; set; }
5095+
public GenericError? assert_error { get; set; }
5096+
public ContentValidatorResult? content_result { get; set; }
5097+
public GenericError? content_error { get; set; }
5098+
public LookMLValidatorResult? lookml_result { get; set; }
5099+
public GenericError? lookml_error { get; set; }
5100+
public GenericError? generic_error { get; set; }
5101+
}
5102+
50645103
public class SamlConfig : SdkModel
50655104
{
50665105
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
@@ -6466,6 +6505,17 @@ public class WriteBoardSection : SdkModel
64666505
public string? title { get; set; } = null;
64676506
}
64686507

6508+
/// Dynamic writeable type for Certification removes:
6509+
/// user_name, updated_at
6510+
public class WriteCertification : SdkModel
6511+
{
6512+
/// <summary>Certification status: "certified" or "revoked" Valid values are: "certified", "revoked".</summary>
6513+
[JsonConverter(typeof(StringEnumConverter))]
6514+
public CertificationStatus? certification_status { get; set; }
6515+
/// <summary>Certification notes</summary>
6516+
public string? notes { get; set; } = null;
6517+
}
6518+
64696519
/// Dynamic writeable type for ColorCollection removes:
64706520
/// id
64716521
public class WriteColorCollection : SdkModel
@@ -6605,6 +6655,11 @@ public class WriteDashboard : SdkModel
66056655
public string? slug { get; set; } = null;
66066656
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
66076657
public string? preferred_viewer { get; set; } = null;
6658+
/// <summary>
6659+
/// Dynamic writeable type for Certification removes:
6660+
/// user_name, updated_at
6661+
/// </summary>
6662+
public WriteCertification? certification_metadata { get; set; }
66086663
/// <summary>Enables alerts to keep in sync with dashboard filter changes</summary>
66096664
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
66106665
/// <summary>Background color</summary>
@@ -6649,6 +6704,11 @@ public class WriteDashboardBase : SdkModel
66496704
/// id, content_metadata_id, created_at, creator_id, child_count, external_id, is_embed, is_embed_shared_root, is_embed_users_root, is_personal, is_personal_descendant, is_shared_root, is_users_root, can
66506705
/// </summary>
66516706
public WriteFolderBase? folder { get; set; }
6707+
/// <summary>
6708+
/// Dynamic writeable type for Certification removes:
6709+
/// user_name, updated_at
6710+
/// </summary>
6711+
public WriteCertification? certification_metadata { get; set; }
66526712
}
66536713

66546714
/// Dynamic writeable type for DashboardElement removes:
@@ -6659,6 +6719,8 @@ public class WriteDashboardElement : SdkModel
66596719
public string? body_text { get; set; } = null;
66606720
/// <summary>Id of Dashboard</summary>
66616721
public string? dashboard_id { get; set; } = null;
6722+
/// <summary>Id of Dashboard Layout</summary>
6723+
public string? dashboard_layout_id { get; set; } = null;
66626724
/// <summary>
66636725
/// Dynamic writeable type for LookWithQuery removes:
66646726
/// can, content_metadata_id, id, content_favorite_id, created_at, deleted_at, deleter_id, embed_url, excel_file_url, favorite_count, google_spreadsheet_formula, image_embed_url, last_accessed_at, last_updater_id, last_viewed_at, model, public_slug, public_url, short_url, updated_at, user_name, view_count, url
@@ -7002,6 +7064,8 @@ public class WriteExternalOauthApplication : SdkModel
70027064
public string? tenant_id { get; set; } = null;
70037065
/// <summary>The database dialect for this application.</summary>
70047066
public string? dialect_name { get; set; } = null;
7067+
/// <summary>Whether this application supports bi-directional data access.</summary>
7068+
public bool? bi_directional_data_access { get; set; } = null;
70057069
}
70067070

70077071
/// Dynamic writeable type for FolderBase removes:
@@ -7162,6 +7226,11 @@ public class WriteLookBasic : SdkModel
71627226
{
71637227
/// <summary>User Id</summary>
71647228
public string? user_id { get; set; } = null;
7229+
/// <summary>
7230+
/// Dynamic writeable type for Certification removes:
7231+
/// user_name, updated_at
7232+
/// </summary>
7233+
public WriteCertification? certification_metadata { get; set; }
71657234
}
71667235

71677236
/// Dynamic writeable type for LookmlModel removes:
@@ -7186,6 +7255,11 @@ public class WriteLookWithQuery : SdkModel
71867255
public string? title { get; set; } = null;
71877256
/// <summary>User Id</summary>
71887257
public string? user_id { get; set; } = null;
7258+
/// <summary>
7259+
/// Dynamic writeable type for Certification removes:
7260+
/// user_name, updated_at
7261+
/// </summary>
7262+
public WriteCertification? certification_metadata { get; set; }
71897263
/// <summary>Whether or not a look is 'soft' deleted.</summary>
71907264
public bool? deleted { get; set; } = null;
71917265
/// <summary>Description</summary>

go/sdk/v4/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4569,7 +4569,7 @@ func (l *LookerSDK) MoveLook(
45694569
func (l *LookerSDK) AllLookmlModels(request RequestAllLookmlModels,
45704570
options *rtl.ApiSettings) ([]LookmlModel, error) {
45714571
var result []LookmlModel
4572-
err := l.AuthSession.Do(&result, "GET", "/4.0", "/lookml_models", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "exclude_empty": request.ExcludeEmpty, "exclude_hidden": request.ExcludeHidden, "include_internal": request.IncludeInternal}, nil, options)
4572+
err := l.AuthSession.Do(&result, "GET", "/4.0", "/lookml_models", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "exclude_empty": request.ExcludeEmpty, "exclude_hidden": request.ExcludeHidden, "include_internal": request.IncludeInternal, "include_self_service": request.IncludeSelfService}, nil, options)
45734573
return result, err
45744574

45754575
}

0 commit comments

Comments
 (0)