Skip to content

Commit

Permalink
Merge branch 'main' into customheadergo
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremytchang authored Apr 5, 2023
2 parents 36e8a02 + f719466 commit 0f60c79
Show file tree
Hide file tree
Showing 66 changed files with 555 additions and 1,196 deletions.
30 changes: 15 additions & 15 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
".": "23.2.1",
"packages/api-explorer": "0.9.44",
".": "23.4.0",
"packages/api-explorer": "0.9.45",
"packages/code-editor": "0.1.28",
"packages/extension-api-explorer": "22.21.1",
"packages/extension-sdk": "23.2.0",
"packages/extension-sdk-react": "23.2.0",
"packages/extension-utils": "0.1.21",
"packages/hackathon": "22.21.3",
"packages/run-it": "0.9.44",
"packages/sdk": "23.2.0",
"packages/extension-api-explorer": "22.21.2",
"packages/extension-sdk": "23.4.0",
"packages/extension-sdk-react": "23.4.0",
"packages/extension-utils": "0.1.22",
"packages/hackathon": "22.21.4",
"packages/run-it": "0.9.45",
"packages/sdk": "23.4.0",
"packages/sdk-codegen": "21.8.0",
"packages/sdk-codegen-scripts": "21.5.1",
"packages/sdk-codegen-scripts": "21.5.2",
"packages/sdk-codegen-utils": "21.0.11",
"packages/sdk-node": "23.2.0",
"packages/sdk-node": "23.4.0",
"packages/sdk-rtl": "21.6.0",
"packages/wholly-artifact": "0.1.2",
"packages/wholly-sheet": "0.5.40",
"python": "23.2.0",
"packages/extension-playground": "1.0.1"
"packages/wholly-artifact": "0.1.3",
"packages/wholly-sheet": "0.5.41",
"python": "23.4.0",
"packages/extension-playground": "1.0.2"
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [23.4.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v23.2.1...sdk-codegen-all-v23.4.0) (2023-03-31)


### Features

* embed playground ([#1280](https://github.com/looker-open-source/sdk-codegen/issues/1280)) ([28f1218](https://github.com/looker-open-source/sdk-codegen/commit/28f121830f116da59b7f1cd248433c15c98cc56e))
* generate SDKs for Looker 23.4 ([#1290](https://github.com/looker-open-source/sdk-codegen/issues/1290)) ([d7cd650](https://github.com/looker-open-source/sdk-codegen/commit/d7cd65054369a5eb93235a2d9b85b0f553bd1306))


### Bug Fixes

* Implement Go SDK timeout ([#1287](https://github.com/looker-open-source/sdk-codegen/issues/1287)) ([44974ec](https://github.com/looker-open-source/sdk-codegen/commit/44974eccdc4f1d454906a4236d865de0fdb71320))
* Make Go SDK set correct content-type header ([#1283](https://github.com/looker-open-source/sdk-codegen/issues/1283)) ([b1f98c6](https://github.com/looker-open-source/sdk-codegen/commit/b1f98c6745b5084b42d6d6a29336e86681b15f83))
* Oauth message on failed verify ([#1282](https://github.com/looker-open-source/sdk-codegen/issues/1282)) ([f3c1b2c](https://github.com/looker-open-source/sdk-codegen/commit/f3c1b2c3ef6e34ab3f984e3e28288a99f14d77b7))
* Set Go SDK's User-Agent header ([#1285](https://github.com/looker-open-source/sdk-codegen/issues/1285)) ([68fd4c4](https://github.com/looker-open-source/sdk-codegen/commit/68fd4c4b6081551ba4813547303ecdd19e8e4e04))

## [23.2.1](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v23.2.0...sdk-codegen-all-v23.2.1) (2023-03-09)


Expand Down
2 changes: 1 addition & 1 deletion csharp/rtl/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct Constants

public const string DefaultApiVersion = "4.0";
public const string AgentPrefix = "CS-SDK";
public const string LookerVersion = "23.2";
public const string LookerVersion = "23.4";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
2 changes: 1 addition & 1 deletion csharp/sdk/3.1/methods.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// MIT License
///
/// Copyright (c) 2021 Looker Data Sciences, Inc.
/// Copyright (c) 2023 Looker Data Sciences, Inc.
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion csharp/sdk/3.1/models.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// MIT License
///
/// Copyright (c) 2021 Looker Data Sciences, Inc.
/// Copyright (c) 2023 Looker Data Sciences, Inc.
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
Expand Down
50 changes: 19 additions & 31 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// MIT License
///
/// Copyright (c) 2021 Looker Data Sciences, Inc.
/// Copyright (c) 2023 Looker Data Sciences, Inc.
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
Expand All @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 460 API methods
/// 459 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -725,16 +725,20 @@ public async Task<SdkResponse<EmbedUrlResponse, Exception>> create_embed_url_as_
/// ### Acquire a cookieless embed session.
///
/// The acquire session endpoint negates the need for signing the embed url and passing it as a parameter
/// to the embed login. This endpoint accepts an embed user definition and creates it if it does not exist,
/// otherwise it reuses it. Note that this endpoint will not update the user, user attributes or group
/// attributes if the embed user already exists. This is the same behavior as the embed SSO login.
/// to the embed login. This endpoint accepts an embed user definition and creates or updates it. This is
/// similar behavior to the embed SSO login as they both can create and update embed user data.
///
/// The endpoint also accepts an optional `session_reference_token`. If present and the session has not expired
/// and the credentials match the credentials for the embed session, a new authentication token will be
/// generated. This allows the embed session to attach a new embedded IFRAME to the embed session. Note that
/// the session will NOT be extended in this scenario, in other words the session_length parameter is ignored.
/// the session is NOT extended in this scenario. In other words the session_length parameter is ignored.
///
/// If the session_reference_token has expired, it will be ignored and a new embed session will be created.
/// **IMPORTANT:** If the `session_reference_token` is provided and the session has NOT expired, the embed user
/// is NOT updated. This is done for performance reasons and to support the embed SSO usecase where the
/// first IFRAME created on a page uses a signed url and subsequently created IFRAMEs do not.
///
/// If the `session_reference_token` is provided but the session has expired, the token will be ignored and a
/// new embed session will be created. Note that the embed user definition will be updated in this scenario.
///
/// If the credentials do not match the credentials associated with an exisiting session_reference_token, a
/// 404 will be returned.
Expand Down Expand Up @@ -2167,20 +2171,6 @@ public async Task<SdkResponse<BackupConfiguration, Exception>> update_cloud_stor
return await AuthRequest<BackupConfiguration, Exception>(HttpMethod.Patch, "/cloud_storage", null,body,options);
}

/// ### Looker Configuration Refresh
///
/// This is an endpoint for manually calling refresh on Configuration manager.
///
/// PUT /configuration_force_refresh -> object
///
/// <returns><c>object</c> Refresh Looker Configuration (application/json)</returns>
///
public async Task<SdkResponse<object, Exception>> configuration_force_refresh(
ITransportSettings? options = null)
{
return await AuthRequest<object, Exception>(HttpMethod.Put, "/configuration_force_refresh", null,null,options);
}

/// ### Get the current status and content of custom welcome emails
///
/// GET /custom_welcome_email -> CustomWelcomeEmail
Expand Down Expand Up @@ -2409,7 +2399,6 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - timezone
/// - host_url
/// - email_domain_allowlist
/// - sisu
///
/// GET /setting -> Setting
///
Expand Down Expand Up @@ -2439,7 +2428,6 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - timezone
/// - host_url
/// - email_domain_allowlist
/// - sisu
///
/// See the `Setting` type for more information on the specific values that can be configured.
///
Expand Down Expand Up @@ -3747,28 +3735,28 @@ public async Task<SdkResponse<Dashboard, Exception>> move_dashboard(
/// Note that the created dashboard is not linked to any LookML Dashboard,
/// i.e. [sync_lookml_dashboard()](#!/Dashboard/sync_lookml_dashboard) will not update dashboards created by this method.
///
/// POST /dashboards/lookml -> DashboardLookml
/// POST /dashboards/lookml -> Dashboard
///
/// <returns><c>DashboardLookml</c> DashboardLookML (application/json)</returns>
/// <returns><c>Dashboard</c> dashboard (application/json)</returns>
///
public async Task<SdkResponse<DashboardLookml, Exception>> import_dashboard_from_lookml(
public async Task<SdkResponse<Dashboard, Exception>> import_dashboard_from_lookml(
WriteDashboardLookml body,
ITransportSettings? options = null)
{
return await AuthRequest<DashboardLookml, Exception>(HttpMethod.Post, "/dashboards/lookml", null,body,options);
return await AuthRequest<Dashboard, Exception>(HttpMethod.Post, "/dashboards/lookml", null,body,options);
}

/// # DEPRECATED: Use [import_dashboard_from_lookml()](#!/Dashboard/import_dashboard_from_lookml)
///
/// POST /dashboards/from_lookml -> DashboardLookml
/// POST /dashboards/from_lookml -> Dashboard
///
/// <returns><c>DashboardLookml</c> DashboardLookML (application/json)</returns>
/// <returns><c>Dashboard</c> dashboard (application/json)</returns>
///
public async Task<SdkResponse<DashboardLookml, Exception>> create_dashboard_from_lookml(
public async Task<SdkResponse<Dashboard, Exception>> create_dashboard_from_lookml(
WriteDashboardLookml body,
ITransportSettings? options = null)
{
return await AuthRequest<DashboardLookml, Exception>(HttpMethod.Post, "/dashboards/from_lookml", null,body,options);
return await AuthRequest<Dashboard, Exception>(HttpMethod.Post, "/dashboards/from_lookml", null,body,options);
}

/// ### Copy an existing dashboard
Expand Down
50 changes: 2 additions & 48 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// MIT License
///
/// Copyright (c) 2021 Looker Data Sciences, Inc.
/// Copyright (c) 2023 Looker Data Sciences, Inc.
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
Expand All @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 328 API models: 245 Spec, 0 Request, 61 Write, 22 Enum
/// 326 API models: 244 Spec, 0 Request, 60 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -4745,27 +4745,6 @@ public class Setting : SdkModel
public bool? override_warnings { get; set; } = null;
/// <summary>An array of Email Domain Allowlist of type string for Scheduled Content</summary>
public string[]? email_domain_allowlist { get; set; } = null;
public SisuSetting? sisu { get; set; }
}

public class SisuSetting : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Whether the Sisu integration is enabled</summary>
public bool? enabled { get; set; } = null;
/// <summary>The extension ID of the installed Sisu extension</summary>
public string? extension_id { get; set; } = null;
/// <summary>Whether the Looker instance has been configured with Sisu</summary>
public bool? configured { get; set; } = null;
/// <summary>The API key ID generated for use with Sisu</summary>
public string? api_key_id { get; set; } = null;
/// <summary>The user ID associated with the API key generated for use with Sisu</summary>
public string? api_user_id { get; set; } = null;
/// <summary>The marketplace installation id of the Sisu extension</summary>
public string? installation_id { get; set; } = null;
/// <summary>An alternate marketplace listing id to use for the Sisu extension.</summary>
public string? listing_id_override { get; set; } = null;
}

public class SmtpNodeStatus : SdkModel
Expand Down Expand Up @@ -6693,31 +6672,6 @@ public class WriteSetting : SdkModel
public bool? override_warnings { get; set; } = null;
/// <summary>An array of Email Domain Allowlist of type string for Scheduled Content</summary>
public string[]? email_domain_allowlist { get; set; } = null;
/// <summary>
/// Dynamic writeable type for SisuSetting removes:
/// can
/// </summary>
public WriteSisuSetting? sisu { get; set; }
}

/// Dynamic writeable type for SisuSetting removes:
/// can
public class WriteSisuSetting : SdkModel
{
/// <summary>Whether the Sisu integration is enabled</summary>
public bool? enabled { get; set; } = null;
/// <summary>The extension ID of the installed Sisu extension</summary>
public string? extension_id { get; set; } = null;
/// <summary>Whether the Looker instance has been configured with Sisu</summary>
public bool? configured { get; set; } = null;
/// <summary>The API key ID generated for use with Sisu</summary>
public string? api_key_id { get; set; } = null;
/// <summary>The user ID associated with the API key generated for use with Sisu</summary>
public string? api_user_id { get; set; } = null;
/// <summary>The marketplace installation id of the Sisu extension</summary>
public string? installation_id { get; set; } = null;
/// <summary>An alternate marketplace listing id to use for the Sisu extension.</summary>
public string? listing_id_override { get; set; } = null;
}

/// Dynamic writeable type for SshServer removes:
Expand Down
45 changes: 17 additions & 28 deletions go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Copyright (c) 2023 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -26,7 +26,7 @@ SOFTWARE.

/*
460 API methods
459 API methods
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand Down Expand Up @@ -596,16 +596,20 @@ func (l *LookerSDK) CreateEmbedUrlAsMe(
// ### Acquire a cookieless embed session.
//
// The acquire session endpoint negates the need for signing the embed url and passing it as a parameter
// to the embed login. This endpoint accepts an embed user definition and creates it if it does not exist,
// otherwise it reuses it. Note that this endpoint will not update the user, user attributes or group
// attributes if the embed user already exists. This is the same behavior as the embed SSO login.
// to the embed login. This endpoint accepts an embed user definition and creates or updates it. This is
// similar behavior to the embed SSO login as they both can create and update embed user data.
//
// The endpoint also accepts an optional `session_reference_token`. If present and the session has not expired
// and the credentials match the credentials for the embed session, a new authentication token will be
// generated. This allows the embed session to attach a new embedded IFRAME to the embed session. Note that
// the session will NOT be extended in this scenario, in other words the session_length parameter is ignored.
// the session is NOT extended in this scenario. In other words the session_length parameter is ignored.
//
// If the session_reference_token has expired, it will be ignored and a new embed session will be created.
// **IMPORTANT:** If the `session_reference_token` is provided and the session has NOT expired, the embed user
// is NOT updated. This is done for performance reasons and to support the embed SSO usecase where the
// first IFRAME created on a page uses a signed url and subsequently created IFRAMEs do not.
//
// If the `session_reference_token` is provided but the session has expired, the token will be ignored and a
// new embed session will be created. Note that the embed user definition will be updated in this scenario.
//
// If the credentials do not match the credentials associated with an exisiting session_reference_token, a
// 404 will be returned.
Expand Down Expand Up @@ -1799,19 +1803,6 @@ func (l *LookerSDK) UpdateCloudStorageConfiguration(

}

// ### Looker Configuration Refresh
//
// This is an endpoint for manually calling refresh on Configuration manager.
//
// PUT /configuration_force_refresh -> interface{}
func (l *LookerSDK) ConfigurationForceRefresh(
options *rtl.ApiSettings) (interface{}, error) {
var result interface{}
err := l.session.Do(&result, "PUT", "/4.0", "/configuration_force_refresh", nil, nil, options)
return result, err

}

// ### Get the current status and content of custom welcome emails
//
// GET /custom_welcome_email -> CustomWelcomeEmail
Expand Down Expand Up @@ -2022,7 +2013,6 @@ func (l *LookerSDK) MobileSettings(
// - timezone
// - host_url
// - email_domain_allowlist
// - sisu
//
// GET /setting -> Setting
func (l *LookerSDK) GetSetting(
Expand All @@ -2049,7 +2039,6 @@ func (l *LookerSDK) GetSetting(
// - timezone
// - host_url
// - email_domain_allowlist
// - sisu
//
// See the `Setting` type for more information on the specific values that can be configured.
//
Expand Down Expand Up @@ -3042,23 +3031,23 @@ func (l *LookerSDK) MoveDashboard(
// Note that the created dashboard is not linked to any LookML Dashboard,
// i.e. [sync_lookml_dashboard()](#!/Dashboard/sync_lookml_dashboard) will not update dashboards created by this method.
//
// POST /dashboards/lookml -> DashboardLookml
// POST /dashboards/lookml -> Dashboard
func (l *LookerSDK) ImportDashboardFromLookml(
body WriteDashboardLookml,
options *rtl.ApiSettings) (DashboardLookml, error) {
var result DashboardLookml
options *rtl.ApiSettings) (Dashboard, error) {
var result Dashboard
err := l.session.Do(&result, "POST", "/4.0", "/dashboards/lookml", nil, body, options)
return result, err

}

// # DEPRECATED: Use [import_dashboard_from_lookml()](#!/Dashboard/import_dashboard_from_lookml)
//
// POST /dashboards/from_lookml -> DashboardLookml
// POST /dashboards/from_lookml -> Dashboard
func (l *LookerSDK) CreateDashboardFromLookml(
body WriteDashboardLookml,
options *rtl.ApiSettings) (DashboardLookml, error) {
var result DashboardLookml
options *rtl.ApiSettings) (Dashboard, error) {
var result Dashboard
err := l.session.Do(&result, "POST", "/4.0", "/dashboards/from_lookml", nil, body, options)
return result, err

Expand Down
Loading

0 comments on commit 0f60c79

Please sign in to comment.