Skip to content

Commit

Permalink
feat: generate SDKs for Looker 24.12 (#1483)
Browse files Browse the repository at this point in the history
Release-As: 24.12.0
  • Loading branch information
drstrangelooker committed Jul 15, 2024
1 parent 98a687e commit fba2a3a
Show file tree
Hide file tree
Showing 25 changed files with 258 additions and 61 deletions.
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 = "24.10";
public const string LookerVersion = "24.12";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
7 changes: 6 additions & 1 deletion csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,11 @@ public async Task<SdkResponse<string, Exception>> delete_embed_secret(
///
/// This function does not strictly require all group_ids, user attribute names, or model names to exist at the moment the
/// embed url is created. Unknown group_id, user attribute names or model names will be passed through to the output URL.
/// Because of this, **these parameters are not validated** when the API call is made.
///
/// To diagnose potential problems with an SSO embed URL, you can copy the signed URL into the Embed URI Validator text box in `<your looker instance>/admin/embed`.
/// The [Get Embed Url](https://cloud.google.com/looker/docs/r/get-signed-url) dialog can be used to determine and validate the correct permissions for signing an embed url.
/// This dialog also provides the SDK syntax for the API call to make. Alternatively, you can copy the signed URL into the Embed URI Validator text box
/// in `<your looker instance>/admin/embed` to diagnose potential problems.
///
/// The `secret_id` parameter is optional. If specified, its value must be the id of an active secret defined in the Looker instance.
/// if not specified, the URL will be signed using the most recent active signing secret. If there is no active secret for signing embed urls,
Expand Down Expand Up @@ -2498,6 +2501,7 @@ public async Task<SdkResponse<MobileSettings, Exception>> mobile_settings(
/// - data_connector_default_enabled
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
/// - marketplace_auto_install_enabled
/// - marketplace_automation
/// - marketplace_terms_accepted
Expand Down Expand Up @@ -2533,6 +2537,7 @@ public async Task<SdkResponse<Setting, Exception>> get_setting(
/// - data_connector_default_enabled
/// - extension_framework_enabled
/// - extension_load_url_enabled
/// - instance_config
/// - marketplace_auto_install_enabled
/// - marketplace_automation
/// - marketplace_terms_accepted
Expand Down
17 changes: 13 additions & 4 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 341 API models: 258 Spec, 0 Request, 61 Write, 22 Enum
/// 342 API models: 259 Spec, 0 Request, 61 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -2479,6 +2479,14 @@ public class ImportedProject : SdkModel
public bool? is_remote { get; set; } = null;
}

public class InstanceConfig : SdkModel
{
/// <summary>Feature flags enabled on the instance (read-only)</summary>
public StringDictionary<bool>? feature_flags { get; set; } = null;
/// <summary>License features enabled on the instance (read-only)</summary>
public StringDictionary<bool>? license_features { get; set; } = null;
}

public class Integration : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
Expand Down Expand Up @@ -2665,8 +2673,8 @@ public class JsonBiFields : SdkModel
public JsonBiField[] measures { get; set; } = null;
/// <summary>Pivots (read-only)</summary>
public JsonBiField[] pivots { get; set; } = null;
/// <summary>Table Calculations (beta: May not be included) (read-only)</summary>
public JsonBiTableCalc[]? table_calculations { get; set; } = null;
/// <summary>Table Calculations (read-only)</summary>
public JsonBiTableCalc[] table_calculations { get; set; } = null;
}

public class JsonBiMetadata : SdkModel
Expand Down Expand Up @@ -4915,6 +4923,7 @@ public class SessionConfig : SdkModel

public class Setting : SdkModel
{
public InstanceConfig? instance_config { get; set; }
/// <summary>Toggle extension framework on or off</summary>
public bool? extension_framework_enabled { get; set; } = null;
/// <summary>(DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.</summary>
Expand Down Expand Up @@ -6926,7 +6935,7 @@ public class WriteSessionConfig : SdkModel
}

/// Dynamic writeable type for Setting removes:
/// marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
/// instance_config, marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
public class WriteSetting : SdkModel
{
/// <summary>Toggle extension framework on or off</summary>
Expand Down
7 changes: 6 additions & 1 deletion go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,11 @@ func (l *LookerSDK) DeleteEmbedSecret(
//
// This function does not strictly require all group_ids, user attribute names, or model names to exist at the moment the
// embed url is created. Unknown group_id, user attribute names or model names will be passed through to the output URL.
// Because of this, **these parameters are not validated** when the API call is made.
//
// To diagnose potential problems with an SSO embed URL, you can copy the signed URL into the Embed URI Validator text box in `<your looker instance>/admin/embed`.
// The [Get Embed Url](https://cloud.google.com/looker/docs/r/get-signed-url) dialog can be used to determine and validate the correct permissions for signing an embed url.
// This dialog also provides the SDK syntax for the API call to make. Alternatively, you can copy the signed URL into the Embed URI Validator text box
// in `<your looker instance>/admin/embed` to diagnose potential problems.
//
// The `secret_id` parameter is optional. If specified, its value must be the id of an active secret defined in the Looker instance.
// if not specified, the URL will be signed using the most recent active signing secret. If there is no active secret for signing embed urls,
Expand Down Expand Up @@ -2107,6 +2110,7 @@ func (l *LookerSDK) MobileSettings(
// - data_connector_default_enabled
// - extension_framework_enabled
// - extension_load_url_enabled
// - instance_config
// - marketplace_auto_install_enabled
// - marketplace_automation
// - marketplace_terms_accepted
Expand Down Expand Up @@ -2139,6 +2143,7 @@ func (l *LookerSDK) GetSetting(
// - data_connector_default_enabled
// - extension_framework_enabled
// - extension_load_url_enabled
// - instance_config
// - marketplace_auto_install_enabled
// - marketplace_automation
// - marketplace_terms_accepted
Expand Down
18 changes: 12 additions & 6 deletions go/sdk/v4/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*
407 API models: 258 Spec, 67 Request, 60 Write, 22 Enum
408 API models: 259 Spec, 67 Request, 60 Write, 22 Enum
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand Down Expand Up @@ -1396,6 +1396,11 @@ type ImportedProject struct {
IsRemote *bool `json:"is_remote,omitempty"` // Flag signifying if a dependency is remote or local
}

type InstanceConfig struct {
FeatureFlags *map[string]bool `json:"feature_flags,omitempty"` // Feature flags enabled on the instance
LicenseFeatures *map[string]bool `json:"license_features,omitempty"` // License features enabled on the instance
}

type Integration struct {
Can *map[string]bool `json:"can,omitempty"` // Operations the current user is able to perform on this object
Id *string `json:"id,omitempty"` // ID of the integration.
Expand Down Expand Up @@ -1497,10 +1502,10 @@ type JsonBiField struct {
}

type JsonBiFields struct {
Dimensions []JsonBiField `json:"dimensions"` // Dimensions represent a column in a table, or a computed value based on some sort of column manipulation or combination
Measures []JsonBiField `json:"measures"` // Measures are similar to aggregate functions in SQL (for example, COUNT, SUM, AVG) and represent information about multiple rows
Pivots []JsonBiField `json:"pivots"` // Pivots
TableCalculations *[]JsonBiTableCalc `json:"table_calculations,omitempty"` // Table Calculations (beta: May not be included)
Dimensions []JsonBiField `json:"dimensions"` // Dimensions represent a column in a table, or a computed value based on some sort of column manipulation or combination
Measures []JsonBiField `json:"measures"` // Measures are similar to aggregate functions in SQL (for example, COUNT, SUM, AVG) and represent information about multiple rows
Pivots []JsonBiField `json:"pivots"` // Pivots
TableCalculations []JsonBiTableCalc `json:"table_calculations"` // Table Calculations
}

type JsonBiMetadata struct {
Expand Down Expand Up @@ -3473,6 +3478,7 @@ type SessionConfig struct {
}

type Setting struct {
InstanceConfig *InstanceConfig `json:"instance_config,omitempty"`
ExtensionFrameworkEnabled *bool `json:"extension_framework_enabled,omitempty"` // Toggle extension framework on or off
ExtensionLoadUrlEnabled *bool `json:"extension_load_url_enabled,omitempty"` // (DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.
MarketplaceAutoInstallEnabled *bool `json:"marketplace_auto_install_enabled,omitempty"` // (DEPRECATED) Toggle marketplace auto install on or off. Deprecated - do not use. Auto install can now be enabled via marketplace automation settings
Expand Down Expand Up @@ -4621,7 +4627,7 @@ type WriteSessionConfig struct {
}

// Dynamic writeable type for Setting removes:
// marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
// instance_config, marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
type WriteSetting struct {
ExtensionFrameworkEnabled *bool `json:"extension_framework_enabled,omitempty"` // Toggle extension framework on or off
ExtensionLoadUrlEnabled *bool `json:"extension_load_url_enabled,omitempty"` // (DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.
Expand Down
7 changes: 6 additions & 1 deletion kotlin/src/main/com/looker/sdk/4.0/methods.kt
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,11 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
*
* This function does not strictly require all group_ids, user attribute names, or model names to exist at the moment the
* embed url is created. Unknown group_id, user attribute names or model names will be passed through to the output URL.
* Because of this, **these parameters are not validated** when the API call is made.
*
* To diagnose potential problems with an SSO embed URL, you can copy the signed URL into the Embed URI Validator text box in `<your looker instance>/admin/embed`.
* The [Get Embed Url](https://cloud.google.com/looker/docs/r/get-signed-url) dialog can be used to determine and validate the correct permissions for signing an embed url.
* This dialog also provides the SDK syntax for the API call to make. Alternatively, you can copy the signed URL into the Embed URI Validator text box
* in `<your looker instance>/admin/embed` to diagnose potential problems.
*
* The `secret_id` parameter is optional. If specified, its value must be the id of an active secret defined in the Looker instance.
* if not specified, the URL will be signed using the most recent active signing secret. If there is no active secret for signing embed urls,
Expand Down Expand Up @@ -2494,6 +2497,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down Expand Up @@ -2530,6 +2534,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down
19 changes: 15 additions & 4 deletions kotlin/src/main/com/looker/sdk/4.0/models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

/**
* 341 API models: 258 Spec, 0 Request, 61 Write, 22 Enum
* 342 API models: 259 Spec, 0 Request, 61 Write, 22 Enum
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0
Expand Down Expand Up @@ -2610,6 +2610,15 @@ data class ImportedProject(
var is_remote: Boolean? = null,
) : Serializable

/**
* @property feature_flags Feature flags enabled on the instance (read-only)
* @property license_features License features enabled on the instance (read-only)
*/
data class InstanceConfig(
var feature_flags: Map<String, Boolean>? = null,
var license_features: Map<String, Boolean>? = null,
) : Serializable

/**
* @property can Operations the current user is able to perform on this object (read-only)
* @property id ID of the integration. (read-only)
Expand Down Expand Up @@ -2803,13 +2812,13 @@ data class JsonBiField(
* @property dimensions Dimensions represent a column in a table, or a computed value based on some sort of column manipulation or combination (read-only)
* @property measures Measures are similar to aggregate functions in SQL (for example, COUNT, SUM, AVG) and represent information about multiple rows (read-only)
* @property pivots Pivots (read-only)
* @property table_calculations Table Calculations (beta: May not be included) (read-only)
* @property table_calculations Table Calculations (read-only)
*/
data class JsonBiFields(
var dimensions: Array<JsonBiField>,
var measures: Array<JsonBiField>,
var pivots: Array<JsonBiField>,
var table_calculations: Array<JsonBiTableCalc>? = null,
var table_calculations: Array<JsonBiTableCalc>,
) : Serializable

/**
Expand Down Expand Up @@ -5150,6 +5159,7 @@ data class SessionConfig(
) : Serializable

/**
* @property instance_config
* @property extension_framework_enabled Toggle extension framework on or off
* @property extension_load_url_enabled (DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.
* @property marketplace_auto_install_enabled (DEPRECATED) Toggle marketplace auto install on or off. Deprecated - do not use. Auto install can now be enabled via marketplace automation settings
Expand All @@ -5173,6 +5183,7 @@ data class SessionConfig(
* @property login_notification_text Login notification text (read-only)
*/
data class Setting(
var instance_config: InstanceConfig? = null,
var extension_framework_enabled: Boolean? = null,
var extension_load_url_enabled: Boolean? = null,
var marketplace_auto_install_enabled: Boolean? = null,
Expand Down Expand Up @@ -7253,7 +7264,7 @@ data class WriteSessionConfig(

/**
* Dynamic writeable type for Setting removes:
* marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
* instance_config, marketplace_site, embed_enabled, login_notification_enabled, login_notification_text
*
* @property extension_framework_enabled Toggle extension framework on or off
* @property extension_load_url_enabled (DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.
Expand Down
7 changes: 6 additions & 1 deletion kotlin/src/main/com/looker/sdk/4.0/streams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,11 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
*
* This function does not strictly require all group_ids, user attribute names, or model names to exist at the moment the
* embed url is created. Unknown group_id, user attribute names or model names will be passed through to the output URL.
* Because of this, **these parameters are not validated** when the API call is made.
*
* To diagnose potential problems with an SSO embed URL, you can copy the signed URL into the Embed URI Validator text box in `<your looker instance>/admin/embed`.
* The [Get Embed Url](https://cloud.google.com/looker/docs/r/get-signed-url) dialog can be used to determine and validate the correct permissions for signing an embed url.
* This dialog also provides the SDK syntax for the API call to make. Alternatively, you can copy the signed URL into the Embed URI Validator text box
* in `<your looker instance>/admin/embed` to diagnose potential problems.
*
* The `secret_id` parameter is optional. If specified, its value must be the id of an active secret defined in the Looker instance.
* if not specified, the URL will be signed using the most recent active signing secret. If there is no active secret for signing embed urls,
Expand Down Expand Up @@ -2492,6 +2495,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down Expand Up @@ -2528,6 +2532,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down
2 changes: 1 addition & 1 deletion kotlin/src/main/com/looker/sdk/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package com.looker.sdk

const val ENVIRONMENT_PREFIX = "LOOKERSDK"
const val SDK_TAG = "KT-SDK"
const val LOOKER_VERSION = "24.10"
const val LOOKER_VERSION = "24.12"
const val API_VERSION = "4.0"
const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION"
const val LOOKER_APPID = "x-looker-appid"
7 changes: 6 additions & 1 deletion packages/sdk/src/4.0/funcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,11 @@ export const delete_embed_secret = async (
*
* This function does not strictly require all group_ids, user attribute names, or model names to exist at the moment the
* embed url is created. Unknown group_id, user attribute names or model names will be passed through to the output URL.
* Because of this, **these parameters are not validated** when the API call is made.
*
* To diagnose potential problems with an SSO embed URL, you can copy the signed URL into the Embed URI Validator text box in `<your looker instance>/admin/embed`.
* The [Get Embed Url](https://cloud.google.com/looker/docs/r/get-signed-url) dialog can be used to determine and validate the correct permissions for signing an embed url.
* This dialog also provides the SDK syntax for the API call to make. Alternatively, you can copy the signed URL into the Embed URI Validator text box
* in `<your looker instance>/admin/embed` to diagnose potential problems.
*
* The `secret_id` parameter is optional. If specified, its value must be the id of an active secret defined in the Looker instance.
* if not specified, the URL will be signed using the most recent active signing secret. If there is no active secret for signing embed urls,
Expand Down Expand Up @@ -3706,6 +3709,7 @@ export const mobile_settings = async (
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down Expand Up @@ -3749,6 +3753,7 @@ export const get_setting = async (
* - data_connector_default_enabled
* - extension_framework_enabled
* - extension_load_url_enabled
* - instance_config
* - marketplace_auto_install_enabled
* - marketplace_automation
* - marketplace_terms_accepted
Expand Down
Loading

0 comments on commit fba2a3a

Please sign in to comment.