Skip to content

Commit e3a2e80

Browse files
feat: generate SDKs for Looker 26.10 (#1721)
Release-As: 26.10.0
1 parent 01e249b commit e3a2e80

24 files changed

Lines changed: 5082 additions & 287 deletions

File tree

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

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

csharp/sdk/4.0/methods.cs

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

24-
/// 504 API methods
24+
/// 512 API methods
2525

2626
#nullable enable
2727
using System;
@@ -3647,6 +3647,7 @@ public async Task<SdkResponse<string, Exception>> vector_thumbnail(
36473647
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
36483648
/// <param name="not_owned_by">Filter out the agents owned by the user passed at the :created_by_user_id params</param>
36493649
/// <param name="deleted">Filter on soft deleted agents.</param>
3650+
/// <param name="primary_agent_id">Match workflow agents with a particular primary agent (parent). Pass "null" to find agents with no primary agent.</param>
36503651
public async Task<SdkResponse<Agent[], Exception>> search_agents(
36513652
string? id = null,
36523653
string? name = null,
@@ -3660,6 +3661,7 @@ public async Task<SdkResponse<Agent[], Exception>> search_agents(
36603661
bool? filter_or = null,
36613662
bool? not_owned_by = null,
36623663
bool? deleted = null,
3664+
string? primary_agent_id = null,
36633665
ITransportSettings? options = null)
36643666
{
36653667
return await AuthRequest<Agent[], Exception>(HttpMethod.Get, "/agents/search", new Values {
@@ -3674,7 +3676,8 @@ public async Task<SdkResponse<Agent[], Exception>> search_agents(
36743676
{ "sorts", sorts },
36753677
{ "filter_or", filter_or },
36763678
{ "not_owned_by", not_owned_by },
3677-
{ "deleted", deleted }},null,options);
3679+
{ "deleted", deleted },
3680+
{ "primary_agent_id", primary_agent_id }},null,options);
36783681
}
36793682

36803683
/// ### Create Agent
@@ -4015,6 +4018,54 @@ public async Task<SdkResponse<ChatMessage[], Exception>> conversational_analytic
40154018
return await AuthRequest<ChatMessage[], Exception>(HttpMethod.Post, "/conversational_analytics/chat", null,body,options);
40164019
}
40174020

4021+
/// ### Create Golden Query
4022+
///
4023+
/// Creates a golden query.
4024+
///
4025+
/// POST /golden_queries -> GoldenQuery
4026+
///
4027+
/// <returns><c>GoldenQuery</c> Golden Query (application/json)</returns>
4028+
///
4029+
public async Task<SdkResponse<GoldenQuery, Exception>> create_golden_query(
4030+
WriteGoldenQuery body,
4031+
ITransportSettings? options = null)
4032+
{
4033+
return await AuthRequest<GoldenQuery, Exception>(HttpMethod.Post, "/golden_queries", null,body,options);
4034+
}
4035+
4036+
/// ### Update Golden Query
4037+
///
4038+
/// Updates a golden query.
4039+
///
4040+
/// PATCH /golden_queries/{golden_query_id} -> GoldenQuery
4041+
///
4042+
/// <returns><c>GoldenQuery</c> Golden Query (application/json)</returns>
4043+
///
4044+
/// <param name="golden_query_id">Golden Query ID</param>
4045+
public async Task<SdkResponse<GoldenQuery, Exception>> update_golden_query(
4046+
long golden_query_id,
4047+
WriteGoldenQuery body,
4048+
ITransportSettings? options = null)
4049+
{
4050+
return await AuthRequest<GoldenQuery, Exception>(HttpMethod.Patch, $"/golden_queries/{golden_query_id}", null,body,options);
4051+
}
4052+
4053+
/// ### Delete Golden Query
4054+
///
4055+
/// Deletes a golden query by ID.
4056+
///
4057+
/// DELETE /golden_queries/{golden_query_id} -> string
4058+
///
4059+
/// <returns><c>string</c> Successfully deleted. (application/json)</returns>
4060+
///
4061+
/// <param name="golden_query_id">Golden Query ID</param>
4062+
public async Task<SdkResponse<string, Exception>> delete_golden_query(
4063+
long golden_query_id,
4064+
ITransportSettings? options = null)
4065+
{
4066+
return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/golden_queries/{golden_query_id}", null,null,options);
4067+
}
4068+
40184069
#endregion ConversationalAnalytics: Manage Conversations, Agents and Messages
40194070

40204071
#region Dashboard: Manage Dashboards
@@ -4890,6 +4941,36 @@ public async Task<SdkResponse<DashboardLayout, Exception>> create_dashboard_layo
48904941
{ "fields", fields }},body,options);
48914942
}
48924943

4944+
/// ### Get Dashboard Filter State
4945+
/// Returns the stored filter state for a given GUID.
4946+
///
4947+
/// GET /dashboard_filter_state/{guid} -> string
4948+
///
4949+
/// <returns><c>string</c> JSON string of filter state (application/json)</returns>
4950+
///
4951+
/// <param name="guid">GUID of the filter state</param>
4952+
public async Task<SdkResponse<string, Exception>> dashboard_filter_state(
4953+
string guid,
4954+
ITransportSettings? options = null)
4955+
{
4956+
guid = SdkUtils.EncodeParam(guid);
4957+
return await AuthRequest<string, Exception>(HttpMethod.Get, $"/dashboard_filter_state/{guid}", null,null,options);
4958+
}
4959+
4960+
/// ### Create Dashboard Filter State
4961+
/// Saves the filter state and returns a GUID.
4962+
///
4963+
/// POST /dashboard_filter_state -> Dashboard
4964+
///
4965+
/// <returns><c>Dashboard</c> Dashboard Filter State (application/json)</returns>
4966+
///
4967+
public async Task<SdkResponse<Dashboard, Exception>> create_dashboard_filter_state(
4968+
string body,
4969+
ITransportSettings? options = null)
4970+
{
4971+
return await AuthRequest<Dashboard, Exception>(HttpMethod.Post, "/dashboard_filter_state", null,body,options);
4972+
}
4973+
48934974
#endregion Dashboard: Manage Dashboards
48944975

48954976
#region DataAction: Run Data Actions
@@ -7065,6 +7146,50 @@ public async Task<SdkResponse<TSuccess, Exception>> deploy_ref_to_production<TSu
70657146
{ "ref", @ref }},null,options);
70667147
}
70677148

7149+
/// ### Asynchronously Deploy a Remote Branch or Ref to Production
7150+
///
7151+
/// Git must have been configured and deploy permission required.
7152+
/// This endpoint kicks off the deploy process and returns immediately.
7153+
///
7154+
/// Can only specify either a branch or a ref.
7155+
///
7156+
/// POST /projects/{project_id}/async_deploy_ref_to_production -> AsyncDeployResponse
7157+
///
7158+
/// <returns><c>AsyncDeployResponse</c> Returns 200 if project deploy was successfully queued (application/json)</returns>
7159+
///
7160+
/// <param name="project_id">Id of project</param>
7161+
/// <param name="branch">Branch to deploy to production</param>
7162+
/// <param name="ref">Ref to deploy to production</param>
7163+
public async Task<SdkResponse<AsyncDeployResponse, Exception>> async_deploy_ref_to_production(
7164+
string project_id,
7165+
string? branch = null,
7166+
string? @ref = null,
7167+
ITransportSettings? options = null)
7168+
{
7169+
project_id = SdkUtils.EncodeParam(project_id);
7170+
return await AuthRequest<AsyncDeployResponse, Exception>(HttpMethod.Post, $"/projects/{project_id}/async_deploy_ref_to_production", new Values {
7171+
{ "branch", branch },
7172+
{ "ref", @ref }},null,options);
7173+
}
7174+
7175+
/// ### Check Status of Asynchronous Deploy
7176+
/// Get the status of an asynchronous deploy operation.
7177+
///
7178+
/// GET /projects/{project_id}/deploy_status/{deployment_id} -> DeployStatusResponse
7179+
///
7180+
/// <returns><c>DeployStatusResponse</c> Returns 200 if status was successfully retrieved (application/json)</returns>
7181+
///
7182+
/// <param name="project_id">Id of project</param>
7183+
/// <param name="deployment_id">Id of deployment</param>
7184+
public async Task<SdkResponse<DeployStatusResponse, Exception>> async_deploy_status(
7185+
string project_id,
7186+
long deployment_id,
7187+
ITransportSettings? options = null)
7188+
{
7189+
project_id = SdkUtils.EncodeParam(project_id);
7190+
return await AuthRequest<DeployStatusResponse, Exception>(HttpMethod.Get, $"/projects/{project_id}/deploy_status/{deployment_id}", null,null,options);
7191+
}
7192+
70687193
/// ### Deploy LookML from this Development Mode Project to Production
70697194
///
70707195
/// Git must have been configured, must be in dev mode and deploy permission required
@@ -9591,6 +9716,24 @@ public async Task<SdkResponse<ScheduledPlan, Exception>> scheduled_plan_run_once
95919716

95929717
#region SelfService: Self Service Models
95939718

9719+
/// ### Get Allowed Connections under advanced connection governance
9720+
///
9721+
/// This endpoint returns the list of allowed connection names for self-service models
9722+
/// when advanced connection governance is enabled.
9723+
///
9724+
/// GET /self_service_models/allowed_connections -> string[]
9725+
///
9726+
/// <returns><c>string[]</c> List of allowed connection names (application/json)</returns>
9727+
///
9728+
/// <param name="google_sheets">Include connections allowed for Google Sheets.</param>
9729+
public async Task<SdkResponse<string[], Exception>> get_self_service_model_allowed_connections(
9730+
bool? google_sheets = null,
9731+
ITransportSettings? options = null)
9732+
{
9733+
return await AuthRequest<string[], Exception>(HttpMethod.Get, "/self_service_models/allowed_connections", new Values {
9734+
{ "google_sheets", google_sheets }},null,options);
9735+
}
9736+
95949737
/// ### Update certification for a Self Service Explore
95959738
///
95969739
/// PATCH /self_service_models/{model_name}/certification -> Certification
@@ -9830,6 +9973,7 @@ public async Task<SdkResponse<Theme, Exception>> create_theme(
98309973
/// <param name="sorts">Fields to sort by.</param>
98319974
/// <param name="fields">Requested fields.</param>
98329975
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
9976+
/// <param name="theme_type">Match theme type ('internal', 'embed', or 'all').</param>
98339977
public async Task<SdkResponse<Theme[], Exception>> search_themes(
98349978
string? id = null,
98359979
string? name = null,
@@ -9840,6 +9984,7 @@ public async Task<SdkResponse<Theme[], Exception>> search_themes(
98409984
string? sorts = null,
98419985
string? fields = null,
98429986
bool? filter_or = null,
9987+
string? theme_type = null,
98439988
ITransportSettings? options = null)
98449989
{
98459990
return await AuthRequest<Theme[], Exception>(HttpMethod.Get, "/themes/search", new Values {
@@ -9851,7 +9996,8 @@ public async Task<SdkResponse<Theme[], Exception>> search_themes(
98519996
{ "offset", offset },
98529997
{ "sorts", sorts },
98539998
{ "fields", fields },
9854-
{ "filter_or", filter_or }},null,options);
9999+
{ "filter_or", filter_or },
10000+
{ "theme_type", theme_type }},null,options);
985510001
}
985610002

985710003
/// ### Get the default theme

0 commit comments

Comments
 (0)