diff --git a/csharp/rtl/Constants.cs b/csharp/rtl/Constants.cs index 7f52c9ef4..3e3750fca 100644 --- a/csharp/rtl/Constants.cs +++ b/csharp/rtl/Constants.cs @@ -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"; diff --git a/csharp/sdk/4.0/models.cs b/csharp/sdk/4.0/models.cs index 6c0d3415e..6389ddfe9 100644 --- a/csharp/sdk/4.0/models.cs +++ b/csharp/sdk/4.0/models.cs @@ -4309,7 +4309,7 @@ public class Query : SdkModel public string? filter_expression { get; set; } = null; /// 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. public string[]? sorts { get; set; } = null; - /// Limit + /// Row limit. To download unlimited results, set the limit to -1 (negative one). public string? limit { get; set; } = null; /// Column Limit public string? column_limit { get; set; } = null; @@ -6800,7 +6800,7 @@ public class WriteQuery : SdkModel public string? filter_expression { get; set; } = null; /// 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. public string[]? sorts { get; set; } = null; - /// Limit + /// Row limit. To download unlimited results, set the limit to -1 (negative one). public string? limit { get; set; } = null; /// Column Limit public string? column_limit { get; set; } = null; diff --git a/go/sdk/v4/models.go b/go/sdk/v4/models.go index 589437002..8d49a0c83 100644 --- a/go/sdk/v4/models.go +++ b/go/sdk/v4/models.go @@ -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 @@ -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 diff --git a/kotlin/src/main/com/looker/rtl/Constants.kt b/kotlin/src/main/com/looker/rtl/Constants.kt index 22db702e8..65c99d725 100644 --- a/kotlin/src/main/com/looker/rtl/Constants.kt +++ b/kotlin/src/main/com/looker/rtl/Constants.kt @@ -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) } diff --git a/kotlin/src/main/com/looker/sdk/4.0/models.kt b/kotlin/src/main/com/looker/sdk/4.0/models.kt index cfe8bf8c5..b7dd0a51a 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/models.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/models.kt @@ -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 @@ -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 diff --git a/kotlin/src/main/com/looker/sdk/Constants.kt b/kotlin/src/main/com/looker/sdk/Constants.kt index 5f8a081f9..0f7d794b0 100644 --- a/kotlin/src/main/com/looker/sdk/Constants.kt +++ b/kotlin/src/main/com/looker/sdk/Constants.kt @@ -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" diff --git a/packages/sdk/src/4.0/funcs.ts b/packages/sdk/src/4.0/funcs.ts index 4f166e59e..1be6dec55 100644 --- a/packages/sdk/src/4.0/funcs.ts +++ b/packages/sdk/src/4.0/funcs.ts @@ -13256,9 +13256,9 @@ export const set_user_roles = async ( body: Partial, fields?: string, options?: Partial -): Promise> => { +): Promise> => { user_id = encodeParam(user_id); - return sdk.put( + return sdk.put( `/users/${user_id}/roles`, { fields }, body, diff --git a/packages/sdk/src/4.0/methods.ts b/packages/sdk/src/4.0/methods.ts index 07b696537..c60c50462 100644 --- a/packages/sdk/src/4.0/methods.ts +++ b/packages/sdk/src/4.0/methods.ts @@ -12483,9 +12483,9 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { body: Partial, fields?: string, options?: Partial - ): Promise> { + ): Promise> { user_id = encodeParam(user_id); - return this.put( + return this.put( `/users/${user_id}/roles`, { fields }, body, diff --git a/packages/sdk/src/4.0/methodsInterface.ts b/packages/sdk/src/4.0/methodsInterface.ts index 482c1ab17..cc432275e 100644 --- a/packages/sdk/src/4.0/methodsInterface.ts +++ b/packages/sdk/src/4.0/methodsInterface.ts @@ -8872,7 +8872,7 @@ export interface ILooker40SDK extends IAPIMethods { body: Partial, fields?: string, options?: Partial - ): Promise>; + ): Promise>; /** * ### Get user attribute values for a given user. diff --git a/packages/sdk/src/4.0/models.ts b/packages/sdk/src/4.0/models.ts index 5364a7ef7..9f075f19a 100644 --- a/packages/sdk/src/4.0/models.ts +++ b/packages/sdk/src/4.0/models.ts @@ -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; /** @@ -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; /** diff --git a/packages/sdk/src/constants.ts b/packages/sdk/src/constants.ts index c31f5bfcf..106aad5fb 100644 --- a/packages/sdk/src/constants.ts +++ b/packages/sdk/src/constants.ts @@ -24,5 +24,5 @@ */ -export const sdkVersion = '24.18'; +export const sdkVersion = '24.20'; export const environmentPrefix = 'LOOKERSDK'; diff --git a/python/looker_sdk/sdk/api40/models.py b/python/looker_sdk/sdk/api40/models.py index c930426da..b4b2177b1 100644 --- a/python/looker_sdk/sdk/api40/models.py +++ b/python/looker_sdk/sdk/api40/models.py @@ -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 @@ -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 diff --git a/python/looker_sdk/sdk/constants.py b/python/looker_sdk/sdk/constants.py index fc218091e..9e937fd22 100644 --- a/python/looker_sdk/sdk/constants.py +++ b/python/looker_sdk/sdk/constants.py @@ -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" diff --git a/spec/Looker.4.0.json b/spec/Looker.4.0.json index a8d3ab3a9..de39111a0 100644 --- a/spec/Looker.4.0.json +++ b/spec/Looker.4.0.json @@ -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": { @@ -27271,6 +27271,12 @@ "$ref": "#/definitions/Error" } }, + "422": { + "description": "Validation Error", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, "429": { "description": "Too Many Requests", "schema": { @@ -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": { diff --git a/spec/Looker.4.0.oas.json b/spec/Looker.4.0.oas.json index d9ec94240..a42bb3392 100644 --- a/spec/Looker.4.0.oas.json +++ b/spec/Looker.4.0.oas.json @@ -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": { @@ -37683,6 +37683,16 @@ } } }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + } + } + }, "429": { "description": "Too Many Requests", "content": { @@ -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": { diff --git a/swift/looker/rtl/constants.swift b/swift/looker/rtl/constants.swift index 5e6d1f01a..44ae341b8 100644 --- a/swift/looker/rtl/constants.swift +++ b/swift/looker/rtl/constants.swift @@ -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)"# diff --git a/swift/looker/sdk/models.swift b/swift/looker/sdk/models.swift index b66096634..697b59532 100644 --- a/swift/looker/sdk/models.swift +++ b/swift/looker/sdk/models.swift @@ -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 } @@ -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 }