Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generate SDKs for Looker 24.4 #1442

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2";
public const string LookerVersion = "24.4";

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

/// 339 API models: 256 Spec, 0 Request, 61 Write, 22 Enum
/// 340 API models: 257 Spec, 0 Request, 61 Write, 22 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -2608,24 +2608,9 @@ public enum InvestigativeContentType

public class JsonBi : SdkModel
{
public JsonBiBigQueryMetadata big_query_metadata { get; set; } = null;
public JsonBiFields fields { get; set; } = null;
/// <summary>Pivots (read-only)</summary>
public JsonBiPivots[] pivots { get; set; } = null;
/// <summary>If the query has subtotals (read-only)</summary>
public bool has_subtotals { get; set; }
/// <summary>If the query has totals (read-only)</summary>
public bool has_totals { get; set; }
/// <summary>If the query results hit the maximum column limit and additional columns were truncated (read-only)</summary>
public string columns_truncated { get; set; } = "";
/// <summary>Filter expression applied to the query results (read-only)</summary>
public string filter_expression { get; set; } = "";
/// <summary>Filters applied to the query results (read-only)</summary>
public StringDictionary<string> filters { get; set; } = null;
/// <summary>Raw sql query. Null if user does not have permission to view sql (read-only)</summary>
public string sql { get; set; } = "";
public JsonBiMetadata metadata { get; set; } = null;
/// <summary>Json query results (read-only)</summary>
public string[] data { get; set; } = null;
public string[] rows { get; set; } = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kenvlooker do we have documentation about this breaking API change?

}

public class JsonBiBigQueryMetadata : SdkModel
Expand Down Expand Up @@ -2674,6 +2659,26 @@ public class JsonBiFields : SdkModel
public JsonBiField[] pivots { get; set; } = null;
}

public class JsonBiMetadata : SdkModel
{
public JsonBiBigQueryMetadata big_query_metadata { get; set; } = null;
public JsonBiFields fields { get; set; } = null;
/// <summary>Pivots (read-only)</summary>
public JsonBiPivots[] pivots { get; set; } = null;
/// <summary>If the query has subtotals (read-only)</summary>
public bool has_subtotals { get; set; }
/// <summary>If the query has totals (read-only)</summary>
public bool has_totals { get; set; }
/// <summary>If the query results hit the maximum column limit and additional columns were truncated (read-only)</summary>
public string columns_truncated { get; set; } = "";
/// <summary>Filter expression applied to the query results (read-only)</summary>
public string filter_expression { get; set; } = "";
/// <summary>Filters applied to the query results (read-only)</summary>
public StringDictionary<string> filters { get; set; } = null;
/// <summary>Raw sql query. Null if user does not have permission to view sql (read-only)</summary>
public string sql { get; set; } = "";
}

public class JsonBiPivots : SdkModel
{
/// <summary>Pivot Column Value (read-only)</summary>
Expand Down
26 changes: 15 additions & 11 deletions go/sdk/v4/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*

405 API models: 256 Spec, 67 Request, 60 Write, 22 Enum
406 API models: 257 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 @@ -1468,16 +1468,8 @@ type InvestigativeContentType string
const InvestigativeContentType_Dashboard InvestigativeContentType = "dashboard"

type JsonBi struct {
BigQueryMetadata JsonBiBigQueryMetadata `json:"big_query_metadata"`
Fields JsonBiFields `json:"fields"`
Pivots []JsonBiPivots `json:"pivots"` // Pivots
HasSubtotals bool `json:"has_subtotals"` // If the query has subtotals
HasTotals bool `json:"has_totals"` // If the query has totals
ColumnsTruncated string `json:"columns_truncated"` // If the query results hit the maximum column limit and additional columns were truncated
FilterExpression string `json:"filter_expression"` // Filter expression applied to the query results
Filters map[string]interface{} `json:"filters"` // Filters applied to the query results
Sql string `json:"sql"` // Raw sql query. Null if user does not have permission to view sql
Data []string `json:"data"` // Json query results
Metadata JsonBiMetadata `json:"metadata"`
Rows []string `json:"rows"` // Json query results
}

type JsonBiBigQueryMetadata struct {
Expand Down Expand Up @@ -1506,6 +1498,18 @@ type JsonBiFields struct {
Pivots []JsonBiField `json:"pivots"` // Pivots
}

type JsonBiMetadata struct {
BigQueryMetadata JsonBiBigQueryMetadata `json:"big_query_metadata"`
Fields JsonBiFields `json:"fields"`
Pivots []JsonBiPivots `json:"pivots"` // Pivots
HasSubtotals bool `json:"has_subtotals"` // If the query has subtotals
HasTotals bool `json:"has_totals"` // If the query has totals
ColumnsTruncated string `json:"columns_truncated"` // If the query results hit the maximum column limit and additional columns were truncated
FilterExpression string `json:"filter_expression"` // Filter expression applied to the query results
Filters map[string]interface{} `json:"filters"` // Filters applied to the query results
Sql string `json:"sql"` // Raw sql query. Null if user does not have permission to view sql
}

type JsonBiPivots struct {
Key string `json:"key"` // Pivot Column Value
Data map[string]interface{} `json:"data"` // Pivot Data
Expand Down
49 changes: 28 additions & 21 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 @@
*/

/**
* 339 API models: 256 Spec, 0 Request, 61 Write, 22 Enum
* 340 API models: 257 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 @@ -2745,28 +2745,12 @@ enum class InvestigativeContentType : Serializable {
}

/**
* @property big_query_metadata
* @property fields
* @property pivots Pivots (read-only)
* @property has_subtotals If the query has subtotals (read-only)
* @property has_totals If the query has totals (read-only)
* @property columns_truncated If the query results hit the maximum column limit and additional columns were truncated (read-only)
* @property filter_expression Filter expression applied to the query results (read-only)
* @property filters Filters applied to the query results (read-only)
* @property sql Raw sql query. Null if user does not have permission to view sql (read-only)
* @property data Json query results (read-only)
* @property metadata
* @property rows Json query results (read-only)
*/
data class JsonBi(
var big_query_metadata: JsonBiBigQueryMetadata,
var fields: JsonBiFields,
var pivots: Array<JsonBiPivots>,
var has_subtotals: Boolean,
var has_totals: Boolean,
var columns_truncated: String,
var filter_expression: String,
var filters: Map<String, Any>,
var sql: String,
var data: Array<String>,
var metadata: JsonBiMetadata,
var rows: Array<String>,
) : Serializable

/**
Expand Down Expand Up @@ -2818,6 +2802,29 @@ data class JsonBiFields(
var pivots: Array<JsonBiField>,
) : Serializable

/**
* @property big_query_metadata
* @property fields
* @property pivots Pivots (read-only)
* @property has_subtotals If the query has subtotals (read-only)
* @property has_totals If the query has totals (read-only)
* @property columns_truncated If the query results hit the maximum column limit and additional columns were truncated (read-only)
* @property filter_expression Filter expression applied to the query results (read-only)
* @property filters Filters applied to the query results (read-only)
* @property sql Raw sql query. Null if user does not have permission to view sql (read-only)
*/
data class JsonBiMetadata(
var big_query_metadata: JsonBiBigQueryMetadata,
var fields: JsonBiFields,
var pivots: Array<JsonBiPivots>,
var has_subtotals: Boolean,
var has_totals: Boolean,
var columns_truncated: String,
var filter_expression: String,
var filters: Map<String, Any>,
var sql: String,
) : Serializable

/**
* @property key Pivot Column Value (read-only)
* @property data Pivot Data (read-only)
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.2"
const val LOOKER_VERSION = "24.4"
const val API_VERSION = "4.0"
const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION"
const val LOOKER_APPID = "x-looker-appid"
68 changes: 36 additions & 32 deletions packages/sdk/src/4.0/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

/**
* 406 API models: 256 Spec, 67 Request, 61 Write, 22 Enum
* 407 API models: 257 Spec, 67 Request, 61 Write, 22 Enum
*/

import type { DelimArray, IDictionary } from '@looker/sdk-rtl';
Expand Down Expand Up @@ -4393,40 +4393,11 @@ export enum InvestigativeContentType {
}

export interface IJsonBi {
big_query_metadata: IJsonBiBigQueryMetadata;
fields: IJsonBiFields;
/**
* Pivots (read-only)
*/
pivots: IJsonBiPivots[];
/**
* If the query has subtotals (read-only)
*/
has_subtotals: boolean;
/**
* If the query has totals (read-only)
*/
has_totals: boolean;
/**
* If the query results hit the maximum column limit and additional columns were truncated (read-only)
*/
columns_truncated: string;
/**
* Filter expression applied to the query results (read-only)
*/
filter_expression: string | null;
/**
* Filters applied to the query results (read-only)
*/
filters: IDictionary<string>;
/**
* Raw sql query. Null if user does not have permission to view sql (read-only)
*/
sql: string | null;
metadata: IJsonBiMetadata;
/**
* Json query results (read-only)
*/
data: string[];
rows: string[];
}

export interface IJsonBiBigQueryMetadata {
Expand Down Expand Up @@ -4506,6 +4477,39 @@ export interface IJsonBiFields {
pivots: IJsonBiField[];
}

export interface IJsonBiMetadata {
big_query_metadata: IJsonBiBigQueryMetadata;
fields: IJsonBiFields;
/**
* Pivots (read-only)
*/
pivots: IJsonBiPivots[];
/**
* If the query has subtotals (read-only)
*/
has_subtotals: boolean;
/**
* If the query has totals (read-only)
*/
has_totals: boolean;
/**
* If the query results hit the maximum column limit and additional columns were truncated (read-only)
*/
columns_truncated: string;
/**
* Filter expression applied to the query results (read-only)
*/
filter_expression: string | null;
/**
* Filters applied to the query results (read-only)
*/
filters: IDictionary<string>;
/**
* Raw sql query. Null if user does not have permission to view sql (read-only)
*/
sql: string | null;
}

export interface IJsonBiPivots {
/**
* Pivot Column Value (read-only)
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.2';
export const sdkVersion = '24.4';
export const environmentPrefix = 'LOOKERSDK';
Loading
Loading