Skip to content

Commit 62cc1b1

Browse files
authored
Updated sdks to Looker 7.14 APIs (#307)
- published Typescript SDK
1 parent 80aacb8 commit 62cc1b1

29 files changed

+2170
-108
lines changed

csharp/rtl/Constants.cs

+1-1
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 = "7.12";
64+
public const string LookerVersion = "7.14";
6565

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

csharp/sdk/3.1/methods.cs

+59-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
/// SOFTWARE.
2222

23-
/// 372 API methods
23+
/// 374 API methods
2424

2525
#nullable enable
2626
using System;
@@ -29,7 +29,7 @@
2929
using Looker.RTL;
3030
// ReSharper disable InconsistentNaming
3131

32-
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.12 API 3.1
32+
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.14 API 3.1
3333

3434
namespace Looker.SDK.API31
3535
{
@@ -1490,6 +1490,44 @@ public async Task<SdkResponse<string, Exception>> delete_content_metadata_access
14901490
return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/content_metadata_access/{content_metadata_access_id}", null,null,options);
14911491
}
14921492

1493+
/// ### Get an image representing the contents of a dashboard or look.
1494+
///
1495+
/// The returned thumbnail is an abstract representation of the contents of a dashbord or look and does not
1496+
/// reflect the actual data displayed in the respective visualizations.
1497+
///
1498+
/// GET /content_thumbnail/{type}/{resource_id} -> string
1499+
///
1500+
/// **Note**: Binary content may be returned by this method.
1501+
///
1502+
/// <returns>
1503+
/// <c>string</c> Content thumbnail (image/svg+xml)
1504+
/// <c>string</c> Content thumbnail (image/png)
1505+
/// </returns>
1506+
///
1507+
/// <param name="type">Either dashboard or look</param>
1508+
/// <param name="resource_id">ID of the dashboard or look to render</param>
1509+
/// <param name="reload">Whether or not to refresh the rendered image with the latest content</param>
1510+
/// <param name="format">A value of png produces a thumbnail in PNG format instead of SVG</param>
1511+
/// <param name="width">The width of the image if format is supplied</param>
1512+
/// <param name="height">The height of the image if format is supplied</param>
1513+
public async Task<SdkResponse<TSuccess, Exception>> content_thumbnail<TSuccess>(
1514+
string type,
1515+
string resource_id,
1516+
string? reload = null,
1517+
string? format = null,
1518+
long? width = null,
1519+
long? height = null,
1520+
ITransportSettings? options = null) where TSuccess : class
1521+
{
1522+
type = SdkUtils.EncodeParam(type);
1523+
resource_id = SdkUtils.EncodeParam(resource_id);
1524+
return await AuthRequest<TSuccess, Exception>(HttpMethod.Get, $"/content_thumbnail/{type}/{resource_id}", new Values {
1525+
{ "reload", reload },
1526+
{ "format", format },
1527+
{ "width", width },
1528+
{ "height", height }},null,options);
1529+
}
1530+
14931531
/// ### Validate All Content
14941532
///
14951533
/// Performs validation of all looks and dashboards
@@ -1582,6 +1620,8 @@ public async Task<SdkResponse<ContentView[], Exception>> search_content_views(
15821620

15831621
/// ### Get a vector image representing the contents of a dashboard or look.
15841622
///
1623+
/// # DEPRECATED: Use [content_thumbnail()](#!/Content/content_thumbnail)
1624+
///
15851625
/// The returned thumbnail is an abstract representation of the contents of a dashbord or look and does not
15861626
/// reflect the actual data displayed in the respective visualizations.
15871627
///
@@ -3242,6 +3282,21 @@ public async Task<SdkResponse<string, Exception>> delete_homepage_section(
32423282
return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/homepage_sections/{homepage_section_id}", null,null,options);
32433283
}
32443284

3285+
/// ### Get information about the primary homepage's sections.
3286+
///
3287+
/// GET /primary_homepage_sections -> HomepageSection[]
3288+
///
3289+
/// <returns><c>HomepageSection[]</c> Primary homepage section (application/json)</returns>
3290+
///
3291+
/// <param name="fields">Requested fields.</param>
3292+
public async Task<SdkResponse<HomepageSection[], Exception>> all_primary_homepage_sections(
3293+
string? fields = null,
3294+
ITransportSettings? options = null)
3295+
{
3296+
return await AuthRequest<HomepageSection[], Exception>(HttpMethod.Get, "/primary_homepage_sections", new Values {
3297+
{ "fields", fields }},null,options);
3298+
}
3299+
32453300
#endregion Homepage: Manage Homepage
32463301

32473302
#region Integration: Manage Integrations
@@ -3408,10 +3463,11 @@ public async Task<SdkResponse<Integration, Exception>> update_integration(
34083463
/// <param name="integration_id">Id of integration</param>
34093464
public async Task<SdkResponse<DataActionForm, Exception>> fetch_integration_form(
34103465
string integration_id,
3466+
StringDictionary<string>? body = null,
34113467
ITransportSettings? options = null)
34123468
{
34133469
integration_id = SdkUtils.EncodeParam(integration_id);
3414-
return await AuthRequest<DataActionForm, Exception>(HttpMethod.Post, $"/integrations/{integration_id}/form", null,null,options);
3470+
return await AuthRequest<DataActionForm, Exception>(HttpMethod.Post, $"/integrations/{integration_id}/form", null,body,options);
34153471
}
34163472

34173473
/// Tests the integration to make sure all the settings are working.

csharp/sdk/3.1/models.cs

+38-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
/// SOFTWARE.
2222

23-
/// 251 API models: 183 Spec, 0 Request, 51 Write, 17 Enum
23+
/// 254 API models: 186 Spec, 0 Request, 51 Write, 17 Enum
2424

2525
#nullable enable
2626
using System;
@@ -32,7 +32,7 @@
3232
using Password = System.String;
3333
// ReSharper disable InconsistentNaming
3434

35-
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.12 API 3.1
35+
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.14 API 3.1
3636

3737
namespace Looker.SDK.API31
3838
{
@@ -216,10 +216,24 @@ public class ContentValidation : SdkModel
216216
public long? total_dashboard_filters_validated { get; set; } = null;
217217
/// <summary>The number of scheduled plans validated (read-only)</summary>
218218
public long? total_scheduled_plans_validated { get; set; } = null;
219+
/// <summary>The number of alerts validated (read-only)</summary>
220+
public long? total_alerts_validated { get; set; } = null;
219221
/// <summary>The number of explores used across all content validated (read-only)</summary>
220222
public long? total_explores_validated { get; set; } = null;
221223
}
222224

225+
public class ContentValidationAlert : SdkModel
226+
{
227+
/// <summary>ID of the alert</summary>
228+
public long? id { get; set; } = null;
229+
/// <summary>ID of the LookML dashboard associated with the alert</summary>
230+
public string? lookml_dashboard_id { get; set; } = null;
231+
/// <summary>ID of the LookML dashboard element associated with the alert</summary>
232+
public string? lookml_link_id { get; set; } = null;
233+
/// <summary>An optional, user-defined title for the alert</summary>
234+
public string? custom_title { get; set; } = null;
235+
}
236+
223237
public class ContentValidationDashboard : SdkModel
224238
{
225239
/// <summary>Description</summary>
@@ -318,6 +332,25 @@ public class ContentValidationLook : SdkModel
318332
public ContentValidationSpace? space { get; set; }
319333
}
320334

335+
public class ContentValidationLookMLDashboard : SdkModel
336+
{
337+
/// <summary>ID of the LookML Dashboard (read-only)</summary>
338+
public string? id { get; set; } = null;
339+
/// <summary>Title of the LookML Dashboard (read-only)</summary>
340+
public string? title { get; set; } = null;
341+
/// <summary>ID of Space (read-only)</summary>
342+
public string? space_id { get; set; } = null;
343+
public SpaceBase? space { get; set; }
344+
}
345+
346+
public class ContentValidationLookMLDashboardElement : SdkModel
347+
{
348+
/// <summary>Link ID of the LookML Dashboard Element (read-only)</summary>
349+
public string? lookml_link_id { get; set; } = null;
350+
/// <summary>Title of the LookML Dashboard Element (read-only)</summary>
351+
public string? title { get; set; } = null;
352+
}
353+
321354
public class ContentValidationScheduledPlan : SdkModel
322355
{
323356
/// <summary>Name of this scheduled plan</summary>
@@ -343,6 +376,9 @@ public class ContentValidatorError : SdkModel
343376
public ContentValidationDashboardElement? dashboard_element { get; set; }
344377
public ContentValidationDashboardFilter? dashboard_filter { get; set; }
345378
public ContentValidationScheduledPlan? scheduled_plan { get; set; }
379+
public ContentValidationAlert? alert { get; set; }
380+
public ContentValidationLookMLDashboard? lookml_dashboard { get; set; }
381+
public ContentValidationLookMLDashboardElement? lookml_dashboard_element { get; set; }
346382
/// <summary>A list of errors found for this piece of content (read-only)</summary>
347383
public ContentValidationError[]? errors { get; set; } = null;
348384
/// <summary>An id unique to this piece of content for this validation run (read-only)</summary>

csharp/sdk/4.0/methods.cs

+86-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
/// SOFTWARE.
2222

23-
/// 385 API methods
23+
/// 389 API methods
2424

2525
#nullable enable
2626
using System;
@@ -29,7 +29,7 @@
2929
using Looker.RTL;
3030
// ReSharper disable InconsistentNaming
3131

32-
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.12 API 4.0
32+
/// NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 7.14 API 4.0
3333

3434
namespace Looker.SDK.API40
3535
{
@@ -2270,6 +2270,44 @@ public async Task<SdkResponse<string, Exception>> delete_content_metadata_access
22702270
return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/content_metadata_access/{content_metadata_access_id}", null,null,options);
22712271
}
22722272

2273+
/// ### Get an image representing the contents of a dashboard or look.
2274+
///
2275+
/// The returned thumbnail is an abstract representation of the contents of a dashbord or look and does not
2276+
/// reflect the actual data displayed in the respective visualizations.
2277+
///
2278+
/// GET /content_thumbnail/{type}/{resource_id} -> string
2279+
///
2280+
/// **Note**: Binary content may be returned by this method.
2281+
///
2282+
/// <returns>
2283+
/// <c>string</c> Content thumbnail (image/svg+xml)
2284+
/// <c>string</c> Content thumbnail (image/png)
2285+
/// </returns>
2286+
///
2287+
/// <param name="type">Either dashboard or look</param>
2288+
/// <param name="resource_id">ID of the dashboard or look to render</param>
2289+
/// <param name="reload">Whether or not to refresh the rendered image with the latest content</param>
2290+
/// <param name="format">A value of png produces a thumbnail in PNG format instead of SVG</param>
2291+
/// <param name="width">The width of the image if format is supplied</param>
2292+
/// <param name="height">The height of the image if format is supplied</param>
2293+
public async Task<SdkResponse<TSuccess, Exception>> content_thumbnail<TSuccess>(
2294+
string type,
2295+
string resource_id,
2296+
string? reload = null,
2297+
string? format = null,
2298+
long? width = null,
2299+
long? height = null,
2300+
ITransportSettings? options = null) where TSuccess : class
2301+
{
2302+
type = SdkUtils.EncodeParam(type);
2303+
resource_id = SdkUtils.EncodeParam(resource_id);
2304+
return await AuthRequest<TSuccess, Exception>(HttpMethod.Get, $"/content_thumbnail/{type}/{resource_id}", new Values {
2305+
{ "reload", reload },
2306+
{ "format", format },
2307+
{ "width", width },
2308+
{ "height", height }},null,options);
2309+
}
2310+
22732311
/// ### Validate All Content
22742312
///
22752313
/// Performs validation of all looks and dashboards
@@ -2362,6 +2400,8 @@ public async Task<SdkResponse<ContentView[], Exception>> search_content_views(
23622400

23632401
/// ### Get a vector image representing the contents of a dashboard or look.
23642402
///
2403+
/// # DEPRECATED: Use [content_thumbnail()](#!/Content/content_thumbnail)
2404+
///
23652405
/// The returned thumbnail is an abstract representation of the contents of a dashbord or look and does not
23662406
/// reflect the actual data displayed in the respective visualizations.
23672407
///
@@ -3762,6 +3802,25 @@ public async Task<SdkResponse<string, Exception>> delete_user_attribute_group_va
37623802

37633803
#endregion Group: Manage Groups
37643804

3805+
#region Homepage: Manage Homepage
3806+
3807+
/// ### Get information about the primary homepage's sections.
3808+
///
3809+
/// GET /primary_homepage_sections -> HomepageSection[]
3810+
///
3811+
/// <returns><c>HomepageSection[]</c> Primary homepage section (application/json)</returns>
3812+
///
3813+
/// <param name="fields">Requested fields.</param>
3814+
public async Task<SdkResponse<HomepageSection[], Exception>> all_primary_homepage_sections(
3815+
string? fields = null,
3816+
ITransportSettings? options = null)
3817+
{
3818+
return await AuthRequest<HomepageSection[], Exception>(HttpMethod.Get, "/primary_homepage_sections", new Values {
3819+
{ "fields", fields }},null,options);
3820+
}
3821+
3822+
#endregion Homepage: Manage Homepage
3823+
37653824
#region Integration: Manage Integrations
37663825

37673826
/// ### Get information about all Integration Hubs.
@@ -3926,10 +3985,11 @@ public async Task<SdkResponse<Integration, Exception>> update_integration(
39263985
/// <param name="integration_id">Id of integration</param>
39273986
public async Task<SdkResponse<DataActionForm, Exception>> fetch_integration_form(
39283987
string integration_id,
3988+
StringDictionary<string>? body = null,
39293989
ITransportSettings? options = null)
39303990
{
39313991
integration_id = SdkUtils.EncodeParam(integration_id);
3932-
return await AuthRequest<DataActionForm, Exception>(HttpMethod.Post, $"/integrations/{integration_id}/form", null,null,options);
3992+
return await AuthRequest<DataActionForm, Exception>(HttpMethod.Post, $"/integrations/{integration_id}/form", null,body,options);
39333993
}
39343994

39353995
/// Tests the integration to make sure all the settings are working.
@@ -7982,6 +8042,29 @@ public async Task<SdkResponse<string, Exception>> delete_user_attribute_user_val
79828042
return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/users/{user_id}/attribute_values/{user_attribute_id}", null,null,options);
79838043
}
79848044

8045+
/// ### Send a password reset token.
8046+
/// This will send a password reset email to the user. If a password reset token does not already exist
8047+
/// for this user, it will create one and then send it.
8048+
/// If the user has not yet set up their account, it will send a setup email to the user.
8049+
/// The URL sent in the email is expressed as the 'password_reset_url' of the user's email/password credential object.
8050+
/// Password reset URLs will expire in 60 minutes.
8051+
/// This method can be called with an empty body.
8052+
///
8053+
/// POST /users/{user_id}/credentials_email/send_password_reset -> CredentialsEmail
8054+
///
8055+
/// <returns><c>CredentialsEmail</c> email/password credential (application/json)</returns>
8056+
///
8057+
/// <param name="user_id">Id of user</param>
8058+
/// <param name="fields">Requested fields.</param>
8059+
public async Task<SdkResponse<CredentialsEmail, Exception>> send_user_credentials_email_password_reset(
8060+
long user_id,
8061+
string? fields = null,
8062+
ITransportSettings? options = null)
8063+
{
8064+
return await AuthRequest<CredentialsEmail, Exception>(HttpMethod.Post, $"/users/{user_id}/credentials_email/send_password_reset", new Values {
8065+
{ "fields", fields }},null,options);
8066+
}
8067+
79858068
#endregion User: Manage Users
79868069

79878070
#region UserAttribute: Manage User Attributes

0 commit comments

Comments
 (0)