Skip to content

Commit

Permalink
feat: generate SDKs for Looker 24.8 (#1462)
Browse files Browse the repository at this point in the history
Release-As: 24.8.0
  • Loading branch information
drstrangelooker committed May 7, 2024
1 parent 6781219 commit 79228ad
Show file tree
Hide file tree
Showing 13 changed files with 425 additions and 28 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.6";
public const string LookerVersion = "24.8";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
26 changes: 25 additions & 1 deletion csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 340 API models: 257 Spec, 0 Request, 61 Write, 22 Enum
/// 341 API models: 258 Spec, 0 Request, 61 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -1689,6 +1689,8 @@ public class DBConnection : SdkModel
public bool? cost_estimate_enabled { get; set; } = null;
/// <summary>PDT builds on this connection can be kicked off and cancelled via API.</summary>
public bool? pdt_api_control_enabled { get; set; } = null;
/// <summary>Enable database connection pooling.</summary>
public bool? connection_pooling { get; set; } = null;
}

public class DBConnectionBase : SdkModel
Expand Down Expand Up @@ -1890,6 +1892,8 @@ public class DialectInfoOptions : SdkModel
public bool? username { get; set; } = null;
/// <summary>Username is required (read-only)</summary>
public bool? username_required { get; set; } = null;
/// <summary>Has support for connection pooling (read-only)</summary>
public bool? supports_connection_pooling { get; set; } = null;
}

public class DigestEmails : SdkModel
Expand Down Expand Up @@ -2657,6 +2661,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;
}

public class JsonBiMetadata : SdkModel
Expand Down Expand Up @@ -2691,6 +2697,22 @@ public class JsonBiPivots : SdkModel
public bool is_total { get; set; }
}

public class JsonBiTableCalc : SdkModel
{
/// <summary>Table Calc Name (read-only)</summary>
public string name { get; set; } = "";
/// <summary>Table Calc Label (read-only)</summary>
public string label { get; set; } = "";
/// <summary>Alignment (read-only)</summary>
public string align { get; set; } = "";
/// <summary>Evaluated table calculation expression (read-only)</summary>
public string expression { get; set; } = "";
/// <summary>Value format (read-only)</summary>
public string value_format { get; set; } = "";
/// <summary>If table calculation is a measure (read-only)</summary>
public bool measure { get; set; }
}

public class LDAPConfig : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
Expand Down Expand Up @@ -6199,6 +6221,8 @@ public class WriteDBConnection : SdkModel
public bool? cost_estimate_enabled { get; set; } = null;
/// <summary>PDT builds on this connection can be kicked off and cancelled via API.</summary>
public bool? pdt_api_control_enabled { get; set; } = null;
/// <summary>Enable database connection pooling.</summary>
public bool? connection_pooling { get; set; } = null;
}

/// Dynamic writeable type for DBConnectionOverride removes:
Expand Down
21 changes: 17 additions & 4 deletions go/sdk/v4/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*
406 API models: 257 Spec, 67 Request, 60 Write, 22 Enum
407 API models: 258 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 @@ -959,6 +959,7 @@ type DBConnection struct {
AlwaysRetryFailedBuilds *bool `json:"always_retry_failed_builds,omitempty"` // When true, error PDTs will be retried every regenerator cycle
CostEstimateEnabled *bool `json:"cost_estimate_enabled,omitempty"` // When true, query cost estimate will be displayed in explore.
PdtApiControlEnabled *bool `json:"pdt_api_control_enabled,omitempty"` // PDT builds on this connection can be kicked off and cancelled via API.
ConnectionPooling *bool `json:"connection_pooling,omitempty"` // Enable database connection pooling.
}

type DBConnectionBase struct {
Expand Down Expand Up @@ -1070,6 +1071,7 @@ type DialectInfoOptions struct {
Tns *bool `json:"tns,omitempty"` // Has Oracle TNS support
Username *bool `json:"username,omitempty"` // Username can be specified
UsernameRequired *bool `json:"username_required,omitempty"` // Username is required
SupportsConnectionPooling *bool `json:"supports_connection_pooling,omitempty"` // Has support for connection pooling
}

type DigestEmails struct {
Expand Down Expand Up @@ -1493,9 +1495,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
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)
}

type JsonBiMetadata struct {
Expand All @@ -1517,6 +1520,15 @@ type JsonBiPivots struct {
IsTotal bool `json:"is_total"` // If the value is a total
}

type JsonBiTableCalc struct {
Name string `json:"name"` // Table Calc Name
Label string `json:"label"` // Table Calc Label
Align string `json:"align"` // Alignment
Expression string `json:"expression"` // Evaluated table calculation expression
ValueFormat string `json:"value_format"` // Value format
Measure bool `json:"measure"` // If table calculation is a measure
}

type LDAPConfig struct {
Can *map[string]bool `json:"can,omitempty"` // Operations the current user is able to perform on this object
AlternateEmailLoginAllowed *bool `json:"alternate_email_login_allowed,omitempty"` // Allow alternate email-based login via '/login/email' for admins and for specified users with the 'login_special_email' permission. This option is useful as a fallback during ldap setup, if ldap config problems occur later, or if you need to support some users who are not in your ldap directory. Looker email/password logins are always disabled for regular users when ldap is enabled.
Expand Down Expand Up @@ -4196,6 +4208,7 @@ type WriteDBConnection struct {
AlwaysRetryFailedBuilds *bool `json:"always_retry_failed_builds,omitempty"` // When true, error PDTs will be retried every regenerator cycle
CostEstimateEnabled *bool `json:"cost_estimate_enabled,omitempty"` // When true, query cost estimate will be displayed in explore.
PdtApiControlEnabled *bool `json:"pdt_api_control_enabled,omitempty"` // PDT builds on this connection can be kicked off and cancelled via API.
ConnectionPooling *bool `json:"connection_pooling,omitempty"` // Enable database connection pooling.
}

// Dynamic writeable type for DBConnectionOverride removes:
Expand Down
27 changes: 26 additions & 1 deletion 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 @@
*/

/**
* 340 API models: 257 Spec, 0 Request, 61 Write, 22 Enum
* 341 API models: 258 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 @@ -1738,6 +1738,7 @@ data class Datagroup(
* @property always_retry_failed_builds When true, error PDTs will be retried every regenerator cycle
* @property cost_estimate_enabled When true, query cost estimate will be displayed in explore.
* @property pdt_api_control_enabled PDT builds on this connection can be kicked off and cancelled via API.
* @property connection_pooling Enable database connection pooling.
*/
data class DBConnection(
var can: Map<String, Boolean>? = null,
Expand Down Expand Up @@ -1787,6 +1788,7 @@ data class DBConnection(
var always_retry_failed_builds: Boolean? = null,
var cost_estimate_enabled: Boolean? = null,
var pdt_api_control_enabled: Boolean? = null,
var connection_pooling: Boolean? = null,
) : Serializable

/**
Expand Down Expand Up @@ -1970,6 +1972,7 @@ data class DialectInfo(
* @property tns Has Oracle TNS support (read-only)
* @property username Username can be specified (read-only)
* @property username_required Username is required (read-only)
* @property supports_connection_pooling Has support for connection pooling (read-only)
*/
data class DialectInfoOptions(
var additional_params: Boolean? = null,
Expand All @@ -1993,6 +1996,7 @@ data class DialectInfoOptions(
var tns: Boolean? = null,
var username: Boolean? = null,
var username_required: Boolean? = null,
var supports_connection_pooling: Boolean? = null,
) : Serializable

/**
Expand Down Expand Up @@ -2795,11 +2799,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)
*/
data class JsonBiFields(
var dimensions: Array<JsonBiField>,
var measures: Array<JsonBiField>,
var pivots: Array<JsonBiField>,
var table_calculations: Array<JsonBiTableCalc>? = null,
) : Serializable

/**
Expand Down Expand Up @@ -2838,6 +2844,23 @@ data class JsonBiPivots(
var is_total: Boolean,
) : Serializable

/**
* @property name Table Calc Name (read-only)
* @property label Table Calc Label (read-only)
* @property align Alignment (read-only)
* @property expression Evaluated table calculation expression (read-only)
* @property value_format Value format (read-only)
* @property measure If table calculation is a measure (read-only)
*/
data class JsonBiTableCalc(
var name: String,
var label: String,
var align: String,
var expression: String,
var value_format: String,
var measure: Boolean,
) : Serializable

/**
* @property can Operations the current user is able to perform on this object (read-only)
* @property alternate_email_login_allowed Allow alternate email-based login via '/login/email' for admins and for specified users with the 'login_special_email' permission. This option is useful as a fallback during ldap setup, if ldap config problems occur later, or if you need to support some users who are not in your ldap directory. Looker email/password logins are always disabled for regular users when ldap is enabled.
Expand Down Expand Up @@ -6436,6 +6459,7 @@ data class WriteDatagroup(
* @property always_retry_failed_builds When true, error PDTs will be retried every regenerator cycle
* @property cost_estimate_enabled When true, query cost estimate will be displayed in explore.
* @property pdt_api_control_enabled PDT builds on this connection can be kicked off and cancelled via API.
* @property connection_pooling Enable database connection pooling.
*/
data class WriteDBConnection(
var name: String? = null,
Expand Down Expand Up @@ -6473,6 +6497,7 @@ data class WriteDBConnection(
var always_retry_failed_builds: Boolean? = null,
var cost_estimate_enabled: Boolean? = null,
var pdt_api_control_enabled: Boolean? = null,
var connection_pooling: Boolean? = null,
) : Serializable

/**
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.6"
const val LOOKER_VERSION = "24.8"
const val API_VERSION = "4.0"
const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION"
const val LOOKER_APPID = "x-looker-appid"
45 changes: 44 additions & 1 deletion packages/sdk/src/4.0/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

/**
* 407 API models: 257 Spec, 67 Request, 61 Write, 22 Enum
* 408 API models: 258 Spec, 67 Request, 61 Write, 22 Enum
*/

import type { DelimArray, IDictionary } from '@looker/sdk-rtl';
Expand Down Expand Up @@ -2845,6 +2845,10 @@ export interface IDBConnection {
* PDT builds on this connection can be kicked off and cancelled via API.
*/
pdt_api_control_enabled?: boolean | null;
/**
* Enable database connection pooling.
*/
connection_pooling?: boolean;
}

export interface IDBConnectionBase {
Expand Down Expand Up @@ -3169,6 +3173,10 @@ export interface IDialectInfoOptions {
* Username is required (read-only)
*/
username_required?: boolean;
/**
* Has support for connection pooling (read-only)
*/
supports_connection_pooling?: boolean;
}

export interface IDigestEmails {
Expand Down Expand Up @@ -4475,6 +4483,10 @@ export interface IJsonBiFields {
* Pivots (read-only)
*/
pivots: IJsonBiField[];
/**
* Table Calculations (beta: May not be included) (read-only)
*/
table_calculations?: IJsonBiTableCalc[];
}

export interface IJsonBiMetadata {
Expand Down Expand Up @@ -4529,6 +4541,33 @@ export interface IJsonBiPivots {
is_total: boolean;
}

export interface IJsonBiTableCalc {
/**
* Table Calc Name (read-only)
*/
name: string | null;
/**
* Table Calc Label (read-only)
*/
label: string | null;
/**
* Alignment (read-only)
*/
align: string | null;
/**
* Evaluated table calculation expression (read-only)
*/
expression: string | null;
/**
* Value format (read-only)
*/
value_format: string | null;
/**
* If table calculation is a measure (read-only)
*/
measure: boolean | null;
}

export interface ILDAPConfig {
/**
* Operations the current user is able to perform on this object (read-only)
Expand Down Expand Up @@ -12699,6 +12738,10 @@ export interface IWriteDBConnection {
* PDT builds on this connection can be kicked off and cancelled via API.
*/
pdt_api_control_enabled?: boolean | null;
/**
* Enable database connection pooling.
*/
connection_pooling?: boolean;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
*/

export const sdkVersion = '24.6';
export const sdkVersion = '24.8';
export const environmentPrefix = 'LOOKERSDK';
Loading

0 comments on commit 79228ad

Please sign in to comment.