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_20 #1537

Merged
merged 2 commits into from
Nov 7, 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.18";
public const string LookerVersion = "24.20";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
4 changes: 2 additions & 2 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4309,7 +4309,7 @@ public class Query : SdkModel
public string? filter_expression { get; set; } = null;
/// <summary>Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.</summary>
public string[]? sorts { get; set; } = null;
/// <summary>Limit</summary>
/// <summary>Row limit. To download unlimited results, set the limit to -1 (negative one).</summary>
public string? limit { get; set; } = null;
/// <summary>Column Limit</summary>
public string? column_limit { get; set; } = null;
Expand Down Expand Up @@ -6800,7 +6800,7 @@ public class WriteQuery : SdkModel
public string? filter_expression { get; set; } = null;
/// <summary>Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.</summary>
public string[]? sorts { get; set; } = null;
/// <summary>Limit</summary>
/// <summary>Row limit. To download unlimited results, set the limit to -1 (negative one).</summary>
public string? limit { get; set; } = null;
/// <summary>Column Limit</summary>
public string? column_limit { get; set; } = null;
Expand Down
4 changes: 2 additions & 2 deletions go/sdk/v4/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -2402,7 +2402,7 @@ type Query struct {
Filters *map[string]interface{} `json:"filters,omitempty"` // Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
FilterExpression *string `json:"filter_expression,omitempty"` // Filter Expression
Sorts *[]string `json:"sorts,omitempty"` // Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
Limit *string `json:"limit,omitempty"` // Limit
Limit *string `json:"limit,omitempty"` // Row limit. To download unlimited results, set the limit to -1 (negative one).
ColumnLimit *string `json:"column_limit,omitempty"` // Column Limit
Total *bool `json:"total,omitempty"` // Total
RowTotal *string `json:"row_total,omitempty"` // Raw Total
Expand Down Expand Up @@ -4579,7 +4579,7 @@ type WriteQuery struct {
Filters *map[string]interface{} `json:"filters,omitempty"` // Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
FilterExpression *string `json:"filter_expression,omitempty"` // Filter Expression
Sorts *[]string `json:"sorts,omitempty"` // Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
Limit *string `json:"limit,omitempty"` // Limit
Limit *string `json:"limit,omitempty"` // Row limit. To download unlimited results, set the limit to -1 (negative one).
ColumnLimit *string `json:"column_limit,omitempty"` // Column Limit
Total *bool `json:"total,omitempty"` // Total
RowTotal *string `json:"row_total,omitempty"` // Raw Total
Expand Down
2 changes: 1 addition & 1 deletion kotlin/src/main/com/looker/rtl/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ internal fun ZonedDateTime(utcDateTime: String): ZonedDateTime {
}

internal fun Date(utcDateTime: String): Date {
val utcFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
val utcFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US)
utcFormat.timeZone = TimeZone.getTimeZone("UTC")
return utcFormat.parse(utcDateTime)
}
Expand Down
4 changes: 2 additions & 2 deletions kotlin/src/main/com/looker/sdk/4.0/models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4510,7 +4510,7 @@ enum class PullRequestMode : Serializable {
* @property filters Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
* @property filter_expression Filter Expression
* @property sorts Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
* @property limit Limit
* @property limit Row limit. To download unlimited results, set the limit to -1 (negative one).
* @property column_limit Column Limit
* @property total Total
* @property row_total Raw Total
Expand Down Expand Up @@ -7111,7 +7111,7 @@ data class WriteProject(
* @property filters Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
* @property filter_expression Filter Expression
* @property sorts Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
* @property limit Limit
* @property limit Row limit. To download unlimited results, set the limit to -1 (negative one).
* @property column_limit Column Limit
* @property total Total
* @property row_total Raw Total
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.18"
const val LOOKER_VERSION = "24.20"
const val API_VERSION = "4.0"
const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION"
const val LOOKER_APPID = "x-looker-appid"
4 changes: 2 additions & 2 deletions packages/sdk/src/4.0/funcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13256,9 +13256,9 @@ export const set_user_roles = async (
body: Partial<string[]>,
fields?: string,
options?: Partial<ITransportSettings>
): Promise<SDKResponse<IRole[], IError>> => {
): Promise<SDKResponse<IRole[], IError | IValidationError>> => {
user_id = encodeParam(user_id);
return sdk.put<IRole[], IError>(
return sdk.put<IRole[], IError | IValidationError>(
`/users/${user_id}/roles`,
{ fields },
body,
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/4.0/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12483,9 +12483,9 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK {
body: Partial<string[]>,
fields?: string,
options?: Partial<ITransportSettings>
): Promise<SDKResponse<IRole[], IError>> {
): Promise<SDKResponse<IRole[], IError | IValidationError>> {
user_id = encodeParam(user_id);
return this.put<IRole[], IError>(
return this.put<IRole[], IError | IValidationError>(
`/users/${user_id}/roles`,
{ fields },
body,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/4.0/methodsInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8872,7 +8872,7 @@ export interface ILooker40SDK extends IAPIMethods {
body: Partial<string[]>,
fields?: string,
options?: Partial<ITransportSettings>
): Promise<SDKResponse<IRole[], IError>>;
): Promise<SDKResponse<IRole[], IError | IValidationError>>;

/**
* ### Get user attribute values for a given user.
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/4.0/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7314,7 +7314,7 @@ export interface IQuery {
*/
sorts?: string[] | null;
/**
* Limit
* Row limit. To download unlimited results, set the limit to -1 (negative one).
*/
limit?: string | null;
/**
Expand Down Expand Up @@ -13857,7 +13857,7 @@ export interface IWriteQuery {
*/
sorts?: string[] | null;
/**
* Limit
* Row limit. To download unlimited results, set the limit to -1 (negative one).
*/
limit?: string | null;
/**
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.18';
export const sdkVersion = '24.20';
export const environmentPrefix = 'LOOKERSDK';
4 changes: 2 additions & 2 deletions python/looker_sdk/sdk/api40/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9477,7 +9477,7 @@ class Query(model.Model):
filters: Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
filter_expression: Filter Expression
sorts: Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
limit: Limit
limit: Row limit. To download unlimited results, set the limit to -1 (negative one).
column_limit: Column Limit
total: Total
row_total: Raw Total
Expand Down Expand Up @@ -14758,7 +14758,7 @@ class WriteQuery(model.Model):
filters: Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
filter_expression: Filter Expression
sorts: Sorting for the query results. Use the format `["view.field", ...]` to sort on fields in ascending order. Use the format `["view.field desc", ...]` to sort on fields in descending order. Use `["__UNSORTED__"]` (2 underscores before and after) to disable sorting entirely. Empty sorts `[]` will trigger a default sort.
limit: Limit
limit: Row limit. To download unlimited results, set the limit to -1 (negative one).
column_limit: Column Limit
total: Total
row_total: Raw Total
Expand Down
2 changes: 1 addition & 1 deletion python/looker_sdk/sdk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

sdk_version = "24.18"
sdk_version = "24.20"
environment_prefix = "LOOKERSDK"
12 changes: 9 additions & 3 deletions spec/Looker.4.0.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
"version": "4.0.24.18",
"x-looker-release-version": "24.18.48",
"version": "4.0.24.20",
"x-looker-release-version": "24.20.9",
"title": "Looker API 4.0 Reference",
"description": "\nAPI 4.0 is the current release of the Looker API. API 3.x has been removed.\n\n### Authorization\n\nThe classic method of API authorization uses Looker **API** credentials for authorization and access control.\nLooker admins can create API credentials on Looker's **Admin/Users** page.\n\nAPI 4.0 adds additional ways to authenticate API requests, including OAuth and CORS requests.\n\nFor details, see [Looker API Authorization](https://cloud.google.com/looker/docs/r/api/authorization).\n\n\n### API Explorer\n\nThe API Explorer is a Looker-provided utility with many new and unique features for learning and using the Looker API and SDKs.\n\nFor details, see the [API Explorer documentation](https://cloud.google.com/looker/docs/r/api/explorer).\n\n\n### Looker Language SDKs\n\nThe Looker API is a RESTful system that should be usable by any programming language capable of making\nHTTPS requests. SDKs for a variety of programming languages are also provided to streamline using the API. Looker\nhas an OpenSource [sdk-codegen project](https://github.com/looker-open-source/sdk-codegen) that provides several\nlanguage SDKs. Language SDKs generated by `sdk-codegen` have an Authentication manager that can automatically\nauthenticate API requests when needed.\n\nFor details on available Looker SDKs, see [Looker API Client SDKs](https://cloud.google.com/looker/docs/r/api/client_sdks).\n\n\n### API Versioning\n\nFuture releases of Looker expand the latest API version release-by-release to securely expose more and more of the core\npower of the Looker platform to API client applications. API endpoints marked as \"beta\" may receive breaking changes without\nwarning (but we will try to avoid doing that). Stable (non-beta) API endpoints should not receive breaking\nchanges in future releases.\n\nFor details, see [Looker API Versioning](https://cloud.google.com/looker/docs/r/api/versioning).\n\n\n### In This Release\n\nAPI 4.0 is the only supported API version for Looker starting with release 23.18. API 3.0 and 3.1 have been removed.\n\nAPI 4.0 has better support for strongly typed languages like TypeScript, Kotlin, Swift, Go, C#, and more.\n\nSee the [API 4.0 GA announcement](https://developers.looker.com/api/advanced-usage/version-4-ga) for more information\nabout API 4.0.\n\nThe API Explorer can be used to [interactively compare](https://cloud.google.com/looker/docs/r/api/explorer#comparing_api_versions) the differences between API 3.1 and 4.0.\n\n\n### API and SDK Support Policies\n\nLooker API versions and language SDKs have varying support levels. Please read the API and SDK\n[support policies](https://cloud.google.com/looker/docs/r/api/support-policy) for more information.\n\n\n",
"contact": {
Expand Down Expand Up @@ -27271,6 +27271,12 @@
"$ref": "#/definitions/Error"
}
},
"422": {
"description": "Validation Error",
"schema": {
"$ref": "#/definitions/ValidationError"
}
},
"429": {
"description": "Too Many Requests",
"schema": {
Expand Down Expand Up @@ -39386,7 +39392,7 @@
},
"limit": {
"type": "string",
"description": "Limit",
"description": "Row limit. To download unlimited results, set the limit to -1 (negative one).",
"x-looker-nullable": true
},
"column_limit": {
Expand Down
16 changes: 13 additions & 3 deletions spec/Looker.4.0.oas.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"openapi": "3.0.0",
"info": {
"version": "4.0.24.18",
"x-looker-release-version": "24.18.48",
"version": "4.0.24.20",
"x-looker-release-version": "24.20.9",
"title": "Looker API 4.0 Reference",
"description": "\nAPI 4.0 is the current release of the Looker API. API 3.x has been removed.\n\n### Authorization\n\nThe classic method of API authorization uses Looker **API** credentials for authorization and access control.\nLooker admins can create API credentials on Looker's **Admin/Users** page.\n\nAPI 4.0 adds additional ways to authenticate API requests, including OAuth and CORS requests.\n\nFor details, see [Looker API Authorization](https://cloud.google.com/looker/docs/r/api/authorization).\n\n\n### API Explorer\n\nThe API Explorer is a Looker-provided utility with many new and unique features for learning and using the Looker API and SDKs.\n\nFor details, see the [API Explorer documentation](https://cloud.google.com/looker/docs/r/api/explorer).\n\n\n### Looker Language SDKs\n\nThe Looker API is a RESTful system that should be usable by any programming language capable of making\nHTTPS requests. SDKs for a variety of programming languages are also provided to streamline using the API. Looker\nhas an OpenSource [sdk-codegen project](https://github.com/looker-open-source/sdk-codegen) that provides several\nlanguage SDKs. Language SDKs generated by `sdk-codegen` have an Authentication manager that can automatically\nauthenticate API requests when needed.\n\nFor details on available Looker SDKs, see [Looker API Client SDKs](https://cloud.google.com/looker/docs/r/api/client_sdks).\n\n\n### API Versioning\n\nFuture releases of Looker expand the latest API version release-by-release to securely expose more and more of the core\npower of the Looker platform to API client applications. API endpoints marked as \"beta\" may receive breaking changes without\nwarning (but we will try to avoid doing that). Stable (non-beta) API endpoints should not receive breaking\nchanges in future releases.\n\nFor details, see [Looker API Versioning](https://cloud.google.com/looker/docs/r/api/versioning).\n\n\n### In This Release\n\nAPI 4.0 is the only supported API version for Looker starting with release 23.18. API 3.0 and 3.1 have been removed.\n\nAPI 4.0 has better support for strongly typed languages like TypeScript, Kotlin, Swift, Go, C#, and more.\n\nSee the [API 4.0 GA announcement](https://developers.looker.com/api/advanced-usage/version-4-ga) for more information\nabout API 4.0.\n\nThe API Explorer can be used to [interactively compare](https://cloud.google.com/looker/docs/r/api/explorer#comparing_api_versions) the differences between API 3.1 and 4.0.\n\n\n### API and SDK Support Policies\n\nLooker API versions and language SDKs have varying support levels. Please read the API and SDK\n[support policies](https://cloud.google.com/looker/docs/r/api/support-policy) for more information.\n\n\n",
"contact": {
Expand Down Expand Up @@ -37683,6 +37683,16 @@
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ValidationError"
}
}
}
},
"429": {
"description": "Too Many Requests",
"content": {
Expand Down Expand Up @@ -49973,7 +49983,7 @@
},
"limit": {
"type": "string",
"description": "Limit",
"description": "Row limit. To download unlimited results, set the limit to -1 (negative one).",
"nullable": true
},
"column_limit": {
Expand Down
2 changes: 1 addition & 1 deletion swift/looker/rtl/constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extension String {
}

public struct Constants {
public static let lookerVersion = "24.18"
public static let lookerVersion = "24.20"
public static let apiVersion = "4.0"
public static let defaultApiVersion = "4.0" // Swift requires API 4.0
public static let sdkVersion = #"\#(apiVersion).\#(lookerVersion)"#
Expand Down
4 changes: 2 additions & 2 deletions swift/looker/sdk/models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17925,7 +17925,7 @@ public struct Query: SDKModel {

private var _limit: AnyString?
/**
* Limit
* Row limit. To download unlimited results, set the limit to -1 (negative one).
*/
public var limit: String? {
get { _limit?.value }
Expand Down Expand Up @@ -27792,7 +27792,7 @@ public struct WriteQuery: SDKModel {

private var _limit: AnyString?
/**
* Limit
* Row limit. To download unlimited results, set the limit to -1 (negative one).
*/
public var limit: String? {
get { _limit?.value }
Expand Down
Loading