|
20 | 20 | /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 | 21 | /// SOFTWARE.
|
22 | 22 |
|
23 |
| -/// 385 API methods |
| 23 | +/// 389 API methods |
24 | 24 |
|
25 | 25 | #nullable enable
|
26 | 26 | using System;
|
|
29 | 29 | using Looker.RTL;
|
30 | 30 | // ReSharper disable InconsistentNaming
|
31 | 31 |
|
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 |
33 | 33 |
|
34 | 34 | namespace Looker.SDK.API40
|
35 | 35 | {
|
@@ -2270,6 +2270,44 @@ public async Task<SdkResponse<string, Exception>> delete_content_metadata_access
|
2270 | 2270 | return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/content_metadata_access/{content_metadata_access_id}", null,null,options);
|
2271 | 2271 | }
|
2272 | 2272 |
|
| 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 | + |
2273 | 2311 | /// ### Validate All Content
|
2274 | 2312 | ///
|
2275 | 2313 | /// Performs validation of all looks and dashboards
|
@@ -2362,6 +2400,8 @@ public async Task<SdkResponse<ContentView[], Exception>> search_content_views(
|
2362 | 2400 |
|
2363 | 2401 | /// ### Get a vector image representing the contents of a dashboard or look.
|
2364 | 2402 | ///
|
| 2403 | + /// # DEPRECATED: Use [content_thumbnail()](#!/Content/content_thumbnail) |
| 2404 | + /// |
2365 | 2405 | /// The returned thumbnail is an abstract representation of the contents of a dashbord or look and does not
|
2366 | 2406 | /// reflect the actual data displayed in the respective visualizations.
|
2367 | 2407 | ///
|
@@ -3762,6 +3802,25 @@ public async Task<SdkResponse<string, Exception>> delete_user_attribute_group_va
|
3762 | 3802 |
|
3763 | 3803 | #endregion Group: Manage Groups
|
3764 | 3804 |
|
| 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 | + |
3765 | 3824 | #region Integration: Manage Integrations
|
3766 | 3825 |
|
3767 | 3826 | /// ### Get information about all Integration Hubs.
|
@@ -3926,10 +3985,11 @@ public async Task<SdkResponse<Integration, Exception>> update_integration(
|
3926 | 3985 | /// <param name="integration_id">Id of integration</param>
|
3927 | 3986 | public async Task<SdkResponse<DataActionForm, Exception>> fetch_integration_form(
|
3928 | 3987 | string integration_id,
|
| 3988 | + StringDictionary<string>? body = null, |
3929 | 3989 | ITransportSettings? options = null)
|
3930 | 3990 | {
|
3931 | 3991 | 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); |
3933 | 3993 | }
|
3934 | 3994 |
|
3935 | 3995 | /// 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
|
7982 | 8042 | return await AuthRequest<string, Exception>(HttpMethod.Delete, $"/users/{user_id}/attribute_values/{user_attribute_id}", null,null,options);
|
7983 | 8043 | }
|
7984 | 8044 |
|
| 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 | + |
7985 | 8068 | #endregion User: Manage Users
|
7986 | 8069 |
|
7987 | 8070 | #region UserAttribute: Manage User Attributes
|
|
0 commit comments