diff --git a/csharp/rtl/Constants.cs b/csharp/rtl/Constants.cs index 94480d801..815dab86b 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 = "25.0"; + public const string LookerVersion = "25.2"; public const string Bearer = "Bearer"; public const string LookerAppiId = "x-looker-appid"; diff --git a/csharp/sdk/4.0/methods.cs b/csharp/sdk/4.0/methods.cs index e3347835a..a9a262e65 100644 --- a/csharp/sdk/4.0/methods.cs +++ b/csharp/sdk/4.0/methods.cs @@ -7206,6 +7206,7 @@ public async Task> create_query( /// Rebuild PDTS used in query. /// Perform table calculations on query results /// Specifies the source of this call. + /// Return a specialized OAuth error response if a database OAuth error occurs. public async Task> run_query( string query_id, string result_format, @@ -7222,6 +7223,7 @@ public async Task> run_query( bool? rebuild_pdts = null, bool? server_table_calcs = null, string? source = null, + bool? enable_oauth_error_response = null, ITransportSettings? options = null) where TSuccess : class { query_id = SdkUtils.EncodeParam(query_id); @@ -7239,7 +7241,8 @@ public async Task> run_query( { "path_prefix", path_prefix }, { "rebuild_pdts", rebuild_pdts }, { "server_table_calcs", server_table_calcs }, - { "source", source }},null,options); + { "source", source }, + { "enable_oauth_error_response", enable_oauth_error_response }},null,options); } /// ### Run the query that is specified inline in the posted body. @@ -7318,6 +7321,7 @@ public async Task> run_query( /// Prefix to use for drill links (url encoded). /// Rebuild PDTS used in query. /// Perform table calculations on query results + /// Return a specialized OAuth error response if a database OAuth error occurs. public async Task> run_inline_query( string result_format, WriteQuery body, @@ -7333,6 +7337,7 @@ public async Task> run_inline_query( string? path_prefix = null, bool? rebuild_pdts = null, bool? server_table_calcs = null, + bool? enable_oauth_error_response = null, ITransportSettings? options = null) where TSuccess : class { result_format = SdkUtils.EncodeParam(result_format); @@ -7348,7 +7353,8 @@ public async Task> run_inline_query( { "cache_only", cache_only }, { "path_prefix", path_prefix }, { "rebuild_pdts", rebuild_pdts }, - { "server_table_calcs", server_table_calcs }},body,options); + { "server_table_calcs", server_table_calcs }, + { "enable_oauth_error_response", enable_oauth_error_response }},body,options); } /// ### Run an URL encoded query. @@ -7550,7 +7556,7 @@ public async Task> sql_query( /// /// /// slug of query - /// Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + /// Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] /// Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. public async Task> run_sql_query( string slug, diff --git a/csharp/sdk/4.0/models.cs b/csharp/sdk/4.0/models.cs index 7dcbc0bed..1e68d8239 100644 --- a/csharp/sdk/4.0/models.cs +++ b/csharp/sdk/4.0/models.cs @@ -987,7 +987,7 @@ public class CreateQueryTask : SdkModel public StringDictionary? can { get; set; } = null; /// Id of query to run public string query_id { get; set; } = ""; - /// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + /// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". [JsonConverter(typeof(StringEnumConverter))] public ResultFormat result_format { get; set; } /// Source of query task @@ -1658,6 +1658,8 @@ public class DBConnection : SdkModel public Snippet[]? snippets { get; set; } = null; /// True if PDTs are enabled on this connection (read-only) public bool? pdts_enabled { get; set; } = null; + /// JDBC driver version name + public string? named_driver_version { get; set; } = null; /// Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. public string? host { get; set; } = null; /// Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. @@ -1763,6 +1765,8 @@ public class DBConnection : SdkModel public bool? bq_roles_verified { get; set; } = null; /// The name of P4SA service account that is associated with the Looker instance (read-only) public string? p4sa_name { get; set; } = null; + /// Disable query holding for this connection. + public bool? query_holding_disabled { get; set; } = null; } public class DBConnectionBase : SdkModel @@ -4452,7 +4456,7 @@ public class RepositoryCredential : SdkModel public bool? is_configured { get; set; } = null; } -/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask) +/// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask) public enum ResultFormat { [EnumMember(Value = "inline_json")] @@ -4478,7 +4482,9 @@ public enum ResultFormat [EnumMember(Value = "gsxml")] gsxml, [EnumMember(Value = "sql")] - sql + sql, + [EnumMember(Value = "odc")] + odc } public class ResultMakerFilterables : SdkModel @@ -5991,7 +5997,7 @@ public class WriteCreateQueryTask : SdkModel { /// Id of query to run public string query_id { get; set; } = ""; - /// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + /// Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". [JsonConverter(typeof(StringEnumConverter))] public ResultFormat result_format { get; set; } /// Source of query task @@ -6228,6 +6234,8 @@ public class WriteDBConnection : SdkModel { /// Name of the connection. Also used as the unique identifier public string? name { get; set; } = null; + /// JDBC driver version name + public string? named_driver_version { get; set; } = null; /// Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. public string? host { get; set; } = null; /// Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. @@ -6315,6 +6323,8 @@ public class WriteDBConnection : SdkModel public string? bq_storage_project_id { get; set; } = null; /// When true, represents that all project roles have been verified. public bool? bq_roles_verified { get; set; } = null; + /// Disable query holding for this connection. + public bool? query_holding_disabled { get; set; } = null; } /// Dynamic writeable type for DBConnectionOverride removes: diff --git a/go/sdk/v4/methods.go b/go/sdk/v4/methods.go index cad8b1277..40f709853 100644 --- a/go/sdk/v4/methods.go +++ b/go/sdk/v4/methods.go @@ -5528,7 +5528,7 @@ func (l *LookerSDK) RunQuery(request RequestRunQuery, request.QueryId = url.PathEscape(request.QueryId) request.ResultFormat = url.PathEscape(request.ResultFormat) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v/run/%v", request.QueryId, request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "source": request.Source}, nil, options) + err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v/run/%v", request.QueryId, request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "source": request.Source, "enable_oauth_error_response": request.EnableOauthErrorResponse}, nil, options) return result, err } @@ -5596,7 +5596,7 @@ func (l *LookerSDK) RunInlineQuery(request RequestRunInlineQuery, options *rtl.ApiSettings) (string, error) { request.ResultFormat = url.PathEscape(request.ResultFormat) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/queries/run/%v", request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs}, request.Body, options) + err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/queries/run/%v", request.ResultFormat), map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "image_width": request.ImageWidth, "image_height": request.ImageHeight, "generate_drill_links": request.GenerateDrillLinks, "force_production": request.ForceProduction, "cache_only": request.CacheOnly, "path_prefix": request.PathPrefix, "rebuild_pdts": request.RebuildPdts, "server_table_calcs": request.ServerTableCalcs, "enable_oauth_error_response": request.EnableOauthErrorResponse}, request.Body, options) return result, err } diff --git a/go/sdk/v4/models.go b/go/sdk/v4/models.go index 6ea9a2f68..015f87e2c 100644 --- a/go/sdk/v4/models.go +++ b/go/sdk/v4/models.go @@ -575,7 +575,7 @@ type CreateOAuthApplicationUserStateResponse struct { type CreateQueryTask struct { Can *map[string]bool `json:"can,omitempty"` // Operations the current user is able to perform on this object QueryId string `json:"query_id"` // Id of query to run - ResultFormat ResultFormat `json:"result_format"` // Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + ResultFormat ResultFormat `json:"result_format"` // Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". Source *string `json:"source,omitempty"` // Source of query task Deferred *bool `json:"deferred,omitempty"` // Create the task but defer execution LookId *string `json:"look_id,omitempty"` // Id of look associated with query. @@ -944,6 +944,7 @@ type DBConnection struct { Dialect *Dialect `json:"dialect,omitempty"` Snippets *[]Snippet `json:"snippets,omitempty"` // SQL Runner snippets for this connection PdtsEnabled *bool `json:"pdts_enabled,omitempty"` // True if PDTs are enabled on this connection + NamedDriverVersion *string `json:"named_driver_version,omitempty"` // JDBC driver version name Host *string `json:"host,omitempty"` // Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. Port *string `json:"port,omitempty"` // Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. Username *string `json:"username,omitempty"` // Username for server authentication @@ -997,6 +998,7 @@ type DBConnection struct { BqStorageProjectId *string `json:"bq_storage_project_id,omitempty"` // The project id of the default BigQuery storage project. BqRolesVerified *bool `json:"bq_roles_verified,omitempty"` // When true, represents that all project roles have been verified. P4saName *string `json:"p4sa_name,omitempty"` // The name of P4SA service account that is associated with the Looker instance + QueryHoldingDisabled *bool `json:"query_holding_disabled,omitempty"` // Disable query holding for this connection. } type DBConnectionBase struct { @@ -2786,20 +2788,21 @@ type RequestRunGitConnectionTest struct { // Dynamically generated request type for run_inline_query type RequestRunInlineQuery struct { - ResultFormat string `json:"result_format"` // Format of result - Body WriteQuery `json:"body"` - Limit *int64 `json:"limit,omitempty"` // Row limit (may override the limit in the saved query). - ApplyFormatting *bool `json:"apply_formatting,omitempty"` // Apply model-specified formatting to each result. - ApplyVis *bool `json:"apply_vis,omitempty"` // Apply visualization options to results. - Cache *bool `json:"cache,omitempty"` // Get results from cache if available. - ImageWidth *int64 `json:"image_width,omitempty"` // Render width for image formats. - ImageHeight *int64 `json:"image_height,omitempty"` // Render height for image formats. - GenerateDrillLinks *bool `json:"generate_drill_links,omitempty"` // Generate drill links (only applicable to 'json_detail' format. - ForceProduction *bool `json:"force_production,omitempty"` // Force use of production models even if the user is in development mode. Note that this flag being false does not guarantee development models will be used. - CacheOnly *bool `json:"cache_only,omitempty"` // Retrieve any results from cache even if the results have expired. - PathPrefix *string `json:"path_prefix,omitempty"` // Prefix to use for drill links (url encoded). - RebuildPdts *bool `json:"rebuild_pdts,omitempty"` // Rebuild PDTS used in query. - ServerTableCalcs *bool `json:"server_table_calcs,omitempty"` // Perform table calculations on query results + ResultFormat string `json:"result_format"` // Format of result + Body WriteQuery `json:"body"` + Limit *int64 `json:"limit,omitempty"` // Row limit (may override the limit in the saved query). + ApplyFormatting *bool `json:"apply_formatting,omitempty"` // Apply model-specified formatting to each result. + ApplyVis *bool `json:"apply_vis,omitempty"` // Apply visualization options to results. + Cache *bool `json:"cache,omitempty"` // Get results from cache if available. + ImageWidth *int64 `json:"image_width,omitempty"` // Render width for image formats. + ImageHeight *int64 `json:"image_height,omitempty"` // Render height for image formats. + GenerateDrillLinks *bool `json:"generate_drill_links,omitempty"` // Generate drill links (only applicable to 'json_detail' format. + ForceProduction *bool `json:"force_production,omitempty"` // Force use of production models even if the user is in development mode. Note that this flag being false does not guarantee development models will be used. + CacheOnly *bool `json:"cache_only,omitempty"` // Retrieve any results from cache even if the results have expired. + PathPrefix *string `json:"path_prefix,omitempty"` // Prefix to use for drill links (url encoded). + RebuildPdts *bool `json:"rebuild_pdts,omitempty"` // Rebuild PDTS used in query. + ServerTableCalcs *bool `json:"server_table_calcs,omitempty"` // Perform table calculations on query results + EnableOauthErrorResponse *bool `json:"enable_oauth_error_response,omitempty"` // Return a specialized OAuth error response if a database OAuth error occurs. } // Dynamically generated request type for run_look @@ -2830,21 +2833,22 @@ type RequestRunLookmlTest struct { // Dynamically generated request type for run_query type RequestRunQuery struct { - QueryId string `json:"query_id"` // Id of query - ResultFormat string `json:"result_format"` // Format of result - Limit *int64 `json:"limit,omitempty"` // Row limit (may override the limit in the saved query). - ApplyFormatting *bool `json:"apply_formatting,omitempty"` // Apply model-specified formatting to each result. - ApplyVis *bool `json:"apply_vis,omitempty"` // Apply visualization options to results. - Cache *bool `json:"cache,omitempty"` // Get results from cache if available. - ImageWidth *int64 `json:"image_width,omitempty"` // Render width for image formats. - ImageHeight *int64 `json:"image_height,omitempty"` // Render height for image formats. - GenerateDrillLinks *bool `json:"generate_drill_links,omitempty"` // Generate drill links (only applicable to 'json_detail' format. - ForceProduction *bool `json:"force_production,omitempty"` // Force use of production models even if the user is in development mode. Note that this flag being false does not guarantee development models will be used. - CacheOnly *bool `json:"cache_only,omitempty"` // Retrieve any results from cache even if the results have expired. - PathPrefix *string `json:"path_prefix,omitempty"` // Prefix to use for drill links (url encoded). - RebuildPdts *bool `json:"rebuild_pdts,omitempty"` // Rebuild PDTS used in query. - ServerTableCalcs *bool `json:"server_table_calcs,omitempty"` // Perform table calculations on query results - Source *string `json:"source,omitempty"` // Specifies the source of this call. + QueryId string `json:"query_id"` // Id of query + ResultFormat string `json:"result_format"` // Format of result + Limit *int64 `json:"limit,omitempty"` // Row limit (may override the limit in the saved query). + ApplyFormatting *bool `json:"apply_formatting,omitempty"` // Apply model-specified formatting to each result. + ApplyVis *bool `json:"apply_vis,omitempty"` // Apply visualization options to results. + Cache *bool `json:"cache,omitempty"` // Get results from cache if available. + ImageWidth *int64 `json:"image_width,omitempty"` // Render width for image formats. + ImageHeight *int64 `json:"image_height,omitempty"` // Render height for image formats. + GenerateDrillLinks *bool `json:"generate_drill_links,omitempty"` // Generate drill links (only applicable to 'json_detail' format. + ForceProduction *bool `json:"force_production,omitempty"` // Force use of production models even if the user is in development mode. Note that this flag being false does not guarantee development models will be used. + CacheOnly *bool `json:"cache_only,omitempty"` // Retrieve any results from cache even if the results have expired. + PathPrefix *string `json:"path_prefix,omitempty"` // Prefix to use for drill links (url encoded). + RebuildPdts *bool `json:"rebuild_pdts,omitempty"` // Rebuild PDTS used in query. + ServerTableCalcs *bool `json:"server_table_calcs,omitempty"` // Perform table calculations on query results + Source *string `json:"source,omitempty"` // Specifies the source of this call. + EnableOauthErrorResponse *bool `json:"enable_oauth_error_response,omitempty"` // Return a specialized OAuth error response if a database OAuth error occurs. } // Dynamically generated request type for scheduled_plans_for_dashboard @@ -3271,6 +3275,7 @@ const ResultFormat_Txt ResultFormat = "txt" const ResultFormat_Xlsx ResultFormat = "xlsx" const ResultFormat_Gsxml ResultFormat = "gsxml" const ResultFormat_Sql ResultFormat = "sql" +const ResultFormat_Odc ResultFormat = "odc" type ResultMakerFilterables struct { Model *string `json:"model,omitempty"` // The model this filterable comes from (used for field suggestions). @@ -4119,7 +4124,7 @@ type WriteCreateDashboardFilter struct { // can type WriteCreateQueryTask struct { QueryId string `json:"query_id"` // Id of query to run - ResultFormat ResultFormat `json:"result_format"` // Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + ResultFormat ResultFormat `json:"result_format"` // Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". Source *string `json:"source,omitempty"` // Source of query task Deferred *bool `json:"deferred,omitempty"` // Create the task but defer execution LookId *string `json:"look_id,omitempty"` // Id of look associated with query. @@ -4255,6 +4260,7 @@ type WriteDatagroup struct { // can, dialect, snippets, pdts_enabled, uses_oauth, uses_instance_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed, default_bq_connection, p4sa_name type WriteDBConnection struct { Name *string `json:"name,omitempty"` // Name of the connection. Also used as the unique identifier + NamedDriverVersion *string `json:"named_driver_version,omitempty"` // JDBC driver version name Host *string `json:"host,omitempty"` // Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. Port *string `json:"port,omitempty"` // Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. Username *string `json:"username,omitempty"` // Username for server authentication @@ -4298,6 +4304,7 @@ type WriteDBConnection struct { ConnectionPooling *bool `json:"connection_pooling,omitempty"` // Enable database connection pooling. BqStorageProjectId *string `json:"bq_storage_project_id,omitempty"` // The project id of the default BigQuery storage project. BqRolesVerified *bool `json:"bq_roles_verified,omitempty"` // When true, represents that all project roles have been verified. + QueryHoldingDisabled *bool `json:"query_holding_disabled,omitempty"` // Disable query holding for this connection. } // Dynamic writeable type for DBConnectionOverride removes: diff --git a/kotlin/src/main/com/looker/sdk/4.0/methods.kt b/kotlin/src/main/com/looker/sdk/4.0/methods.kt index 66bf4745c..f7243ccc1 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/methods.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/methods.kt @@ -7351,6 +7351,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * @param {Boolean} rebuild_pdts Rebuild PDTS used in query. * @param {Boolean} server_table_calcs Perform table calculations on query results * @param {String} source Specifies the source of this call. + * @param {Boolean} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. * * GET /queries/{query_id}/run/{result_format} -> String * @@ -7372,6 +7373,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, source: String? = null, + enable_oauth_error_response: Boolean? = null, ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) @@ -7391,6 +7393,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { "rebuild_pdts" to rebuild_pdts, "server_table_calcs" to server_table_calcs, "source" to source, + "enable_oauth_error_response" to enable_oauth_error_response, ), ) } @@ -7462,6 +7465,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * @param {String} path_prefix Prefix to use for drill links (url encoded). * @param {Boolean} rebuild_pdts Rebuild PDTS used in query. * @param {Boolean} server_table_calcs Perform table calculations on query results + * @param {Boolean} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. * * POST /queries/run/{result_format} -> String * @@ -7482,6 +7486,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { path_prefix: String? = null, rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, + enable_oauth_error_response: Boolean? = null, ): SDKResponse { val path_result_format = encodeParam(result_format) return this.post( @@ -7499,6 +7504,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { "path_prefix" to path_prefix, "rebuild_pdts" to rebuild_pdts, "server_table_calcs" to server_table_calcs, + "enable_oauth_error_response" to enable_oauth_error_response, ), body, ) @@ -7690,7 +7696,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * Execute a SQL Runner query in a given result_format. * * @param {String} slug slug of query - * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param {String} download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * * POST /sql_queries/{slug}/run/{result_format} -> String 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 e7d8e873a..c120b9fc0 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/models.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/models.kt @@ -1042,7 +1042,7 @@ data class CreateOAuthApplicationUserStateResponse( /** * @property can Operations the current user is able to perform on this object (read-only) * @property query_id Id of query to run - * @property result_format Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * @property result_format Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". * @property source Source of query task * @property deferred Create the task but defer execution * @property look_id Id of look associated with query. @@ -1749,6 +1749,7 @@ data class Datagroup( * @property dialect * @property snippets SQL Runner snippets for this connection (read-only) * @property pdts_enabled True if PDTs are enabled on this connection (read-only) + * @property named_driver_version JDBC driver version name * @property host Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. * @property port Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. * @property username Username for server authentication @@ -1802,6 +1803,7 @@ data class Datagroup( * @property bq_storage_project_id The project id of the default BigQuery storage project. * @property bq_roles_verified When true, represents that all project roles have been verified. * @property p4sa_name The name of P4SA service account that is associated with the Looker instance (read-only) + * @property query_holding_disabled Disable query holding for this connection. */ data class DBConnection( var can: Map? = null, @@ -1809,6 +1811,7 @@ data class DBConnection( var dialect: Dialect? = null, var snippets: Array? = null, var pdts_enabled: Boolean? = null, + var named_driver_version: String? = null, var host: String? = null, var port: String? = null, var username: String? = null, @@ -1862,6 +1865,7 @@ data class DBConnection( var bq_storage_project_id: String? = null, var bq_roles_verified: Boolean? = null, var p4sa_name: String? = null, + var query_holding_disabled: Boolean? = null, ) : Serializable /** @@ -4670,7 +4674,7 @@ data class RepositoryCredential( ) : Serializable /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask) + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask) */ enum class ResultFormat : Serializable { inline_json, @@ -4685,6 +4689,7 @@ enum class ResultFormat : Serializable { xlsx, gsxml, sql, + odc, } /** @@ -6256,7 +6261,7 @@ data class WriteCreateDashboardFilter( * can * * @property query_id Id of query to run - * @property result_format Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * @property result_format Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". * @property source Source of query task * @property deferred Create the task but defer execution * @property look_id Id of look associated with query. @@ -6503,6 +6508,7 @@ data class WriteDatagroup( * can, dialect, snippets, pdts_enabled, uses_oauth, uses_instance_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed, default_bq_connection, p4sa_name * * @property name Name of the connection. Also used as the unique identifier + * @property named_driver_version JDBC driver version name * @property host Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. * @property port Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. * @property username Username for server authentication @@ -6546,9 +6552,11 @@ data class WriteDatagroup( * @property connection_pooling Enable database connection pooling. * @property bq_storage_project_id The project id of the default BigQuery storage project. * @property bq_roles_verified When true, represents that all project roles have been verified. + * @property query_holding_disabled Disable query holding for this connection. */ data class WriteDBConnection( var name: String? = null, + var named_driver_version: String? = null, var host: String? = null, var port: String? = null, var username: String? = null, @@ -6591,6 +6599,7 @@ data class WriteDBConnection( var connection_pooling: Boolean? = null, var bq_storage_project_id: String? = null, var bq_roles_verified: Boolean? = null, + var query_holding_disabled: Boolean? = null, ) : Serializable /** diff --git a/kotlin/src/main/com/looker/sdk/4.0/streams.kt b/kotlin/src/main/com/looker/sdk/4.0/streams.kt index 95e8994f0..5f50118d3 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/streams.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/streams.kt @@ -7349,6 +7349,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * @param {Boolean} rebuild_pdts Rebuild PDTS used in query. * @param {Boolean} server_table_calcs Perform table calculations on query results * @param {String} source Specifies the source of this call. + * @param {Boolean} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. * * GET /queries/{query_id}/run/{result_format} -> ByteArray * @@ -7370,6 +7371,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, source: String? = null, + enable_oauth_error_response: Boolean? = null, ): SDKResponse { val path_query_id = encodeParam(query_id) val path_result_format = encodeParam(result_format) @@ -7389,6 +7391,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { "rebuild_pdts" to rebuild_pdts, "server_table_calcs" to server_table_calcs, "source" to source, + "enable_oauth_error_response" to enable_oauth_error_response, ), ) } @@ -7460,6 +7463,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * @param {String} path_prefix Prefix to use for drill links (url encoded). * @param {Boolean} rebuild_pdts Rebuild PDTS used in query. * @param {Boolean} server_table_calcs Perform table calculations on query results + * @param {Boolean} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. * * POST /queries/run/{result_format} -> ByteArray * @@ -7480,6 +7484,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { path_prefix: String? = null, rebuild_pdts: Boolean? = null, server_table_calcs: Boolean? = null, + enable_oauth_error_response: Boolean? = null, ): SDKResponse { val path_result_format = encodeParam(result_format) return this.post( @@ -7497,6 +7502,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { "path_prefix" to path_prefix, "rebuild_pdts" to rebuild_pdts, "server_table_calcs" to server_table_calcs, + "enable_oauth_error_response" to enable_oauth_error_response, ), body, ) @@ -7688,7 +7694,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * Execute a SQL Runner query in a given result_format. * * @param {String} slug slug of query - * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param {String} download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * * POST /sql_queries/{slug}/run/{result_format} -> ByteArray diff --git a/kotlin/src/main/com/looker/sdk/Constants.kt b/kotlin/src/main/com/looker/sdk/Constants.kt index 4dfa0fb5c..19e62f75f 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 = "25.0" +const val LOOKER_VERSION = "25.2" 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 ba6bd4163..a002ea7e8 100644 --- a/packages/sdk/src/4.0/funcs.ts +++ b/packages/sdk/src/4.0/funcs.ts @@ -9665,6 +9665,7 @@ export const run_query = async ( rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, source: request.source, + enable_oauth_error_response: request.enable_oauth_error_response, }, null, options @@ -9755,6 +9756,7 @@ export const run_inline_query = async ( path_prefix: request.path_prefix, rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, + enable_oauth_error_response: request.enable_oauth_error_response, }, request.body, options @@ -10016,7 +10018,7 @@ export const sql_query = async ( * * @param sdk IAPIMethods implementation * @param slug slug of query - * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * @param options one-time API call overrides * diff --git a/packages/sdk/src/4.0/methods.ts b/packages/sdk/src/4.0/methods.ts index f45a85c5b..051ec8a0b 100644 --- a/packages/sdk/src/4.0/methods.ts +++ b/packages/sdk/src/4.0/methods.ts @@ -9081,6 +9081,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, source: request.source, + enable_oauth_error_response: request.enable_oauth_error_response, }, null, options @@ -9169,6 +9170,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { path_prefix: request.path_prefix, rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, + enable_oauth_error_response: request.enable_oauth_error_response, }, request.body, options @@ -9415,7 +9417,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { * POST /sql_queries/{slug}/run/{result_format} -> string * * @param slug slug of query - * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * @param options one-time API call overrides * diff --git a/packages/sdk/src/4.0/methodsInterface.ts b/packages/sdk/src/4.0/methodsInterface.ts index deea9d822..1006b363f 100644 --- a/packages/sdk/src/4.0/methodsInterface.ts +++ b/packages/sdk/src/4.0/methodsInterface.ts @@ -6670,7 +6670,7 @@ export interface ILooker40SDK extends IAPIMethods { * POST /sql_queries/{slug}/run/{result_format} -> string * * @param slug slug of query - * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * @param options one-time API call overrides * diff --git a/packages/sdk/src/4.0/models.ts b/packages/sdk/src/4.0/models.ts index e86f7c4f7..bf1702106 100644 --- a/packages/sdk/src/4.0/models.ts +++ b/packages/sdk/src/4.0/models.ts @@ -1590,7 +1590,7 @@ export interface ICreateQueryTask { */ query_id: string | null; /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". */ result_format: ResultFormat | null; /** @@ -2779,6 +2779,10 @@ export interface IDBConnection { * True if PDTs are enabled on this connection (read-only) */ pdts_enabled?: boolean; + /** + * JDBC driver version name + */ + named_driver_version?: string | null; /** * Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. */ @@ -2988,6 +2992,10 @@ export interface IDBConnection { * The name of P4SA service account that is associated with the Looker instance (read-only) */ p4sa_name?: string | null; + /** + * Disable query holding for this connection. + */ + query_holding_disabled?: boolean; } export interface IDBConnectionBase { @@ -8505,6 +8513,10 @@ export interface IRequestRunInlineQuery { * Perform table calculations on query results */ server_table_calcs?: boolean | null; + /** + * Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response?: boolean | null; } /** @@ -8655,6 +8667,10 @@ export interface IRequestRunQuery { * Specifies the source of this call. */ source?: string | null; + /** + * Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response?: boolean | null; } /** @@ -9998,7 +10014,7 @@ export interface IRequestUserRoles { } /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask) + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask) */ export enum ResultFormat { inline_json = 'inline_json', @@ -10013,6 +10029,7 @@ export enum ResultFormat { xlsx = 'xlsx', gsxml = 'gsxml', sql = 'sql', + odc = 'odc', } export interface IResultMakerFilterables { @@ -12495,7 +12512,7 @@ export interface IWriteCreateQueryTask { */ query_id: string | null; /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". */ result_format: ResultFormat | null; /** @@ -12890,6 +12907,10 @@ export interface IWriteDBConnection { * Name of the connection. Also used as the unique identifier */ name?: string; + /** + * JDBC driver version name + */ + named_driver_version?: string | null; /** * Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. */ @@ -13059,6 +13080,10 @@ export interface IWriteDBConnection { * When true, represents that all project roles have been verified. */ bq_roles_verified?: boolean | null; + /** + * Disable query holding for this connection. + */ + query_holding_disabled?: boolean; } /** diff --git a/packages/sdk/src/4.0/streams.ts b/packages/sdk/src/4.0/streams.ts index 39d390ec3..ed977b187 100644 --- a/packages/sdk/src/4.0/streams.ts +++ b/packages/sdk/src/4.0/streams.ts @@ -10376,6 +10376,7 @@ export class Looker40SDKStream extends APIMethods { rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, source: request.source, + enable_oauth_error_response: request.enable_oauth_error_response, }, null, options @@ -10468,6 +10469,7 @@ export class Looker40SDKStream extends APIMethods { path_prefix: request.path_prefix, rebuild_pdts: request.rebuild_pdts, server_table_calcs: request.server_table_calcs, + enable_oauth_error_response: request.enable_oauth_error_response, }, request.body, options @@ -10743,7 +10745,7 @@ export class Looker40SDKStream extends APIMethods { * * @param callback streaming output function * @param slug slug of query - * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] * @param download Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. * @param options one-time API call overrides * diff --git a/packages/sdk/src/constants.ts b/packages/sdk/src/constants.ts index 790a588f9..310bc38f3 100644 --- a/packages/sdk/src/constants.ts +++ b/packages/sdk/src/constants.ts @@ -24,5 +24,5 @@ */ -export const sdkVersion = '25.0'; +export const sdkVersion = '25.2'; export const environmentPrefix = 'LOOKERSDK'; diff --git a/python/looker_sdk/sdk/api40/methods.py b/python/looker_sdk/sdk/api40/methods.py index 87a3959c5..c1356fa83 100644 --- a/python/looker_sdk/sdk/api40/methods.py +++ b/python/looker_sdk/sdk/api40/methods.py @@ -9202,6 +9202,8 @@ def run_query( server_table_calcs: Optional[bool] = None, # Specifies the source of this call. source: Optional[str] = None, + # Return a specialized OAuth error response if a database OAuth error occurs. + enable_oauth_error_response: Optional[bool] = None, transport_options: Optional[transport.TransportOptions] = None, ) -> Union[str, bytes]: """Run Query""" @@ -9226,6 +9228,7 @@ def run_query( "rebuild_pdts": rebuild_pdts, "server_table_calcs": server_table_calcs, "source": source, + "enable_oauth_error_response": enable_oauth_error_response, }, transport_options=transport_options, ), @@ -9314,6 +9317,8 @@ def run_inline_query( rebuild_pdts: Optional[bool] = None, # Perform table calculations on query results server_table_calcs: Optional[bool] = None, + # Return a specialized OAuth error response if a database OAuth error occurs. + enable_oauth_error_response: Optional[bool] = None, transport_options: Optional[transport.TransportOptions] = None, ) -> Union[str, bytes]: """Run Inline Query""" @@ -9336,6 +9341,7 @@ def run_inline_query( "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts, "server_table_calcs": server_table_calcs, + "enable_oauth_error_response": enable_oauth_error_response, }, body=body, transport_options=transport_options, @@ -9576,7 +9582,7 @@ def run_sql_query( self, # slug of query slug: str, - # Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + # Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] result_format: str, # Defaults to false. If set to true, the HTTP response will have content-disposition and other headers set to make the HTTP response behave as a downloadable attachment instead of as inline content. download: Optional[str] = None, diff --git a/python/looker_sdk/sdk/api40/models.py b/python/looker_sdk/sdk/api40/models.py index 99cb4689f..f689626cf 100644 --- a/python/looker_sdk/sdk/api40/models.py +++ b/python/looker_sdk/sdk/api40/models.py @@ -2186,7 +2186,7 @@ class CreateQueryTask(model.Model): """ Attributes: query_id: Id of query to run - result_format: Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + result_format: Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". can: Operations the current user is able to perform on this object source: Source of query task deferred: Create the task but defer execution @@ -3685,6 +3685,7 @@ class DBConnection(model.Model): dialect: snippets: SQL Runner snippets for this connection pdts_enabled: True if PDTs are enabled on this connection + named_driver_version: JDBC driver version name host: Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. port: Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. username: Username for server authentication @@ -3738,6 +3739,7 @@ class DBConnection(model.Model): bq_storage_project_id: The project id of the default BigQuery storage project. bq_roles_verified: When true, represents that all project roles have been verified. p4sa_name: The name of P4SA service account that is associated with the Looker instance + query_holding_disabled: Disable query holding for this connection. """ can: Optional[MutableMapping[str, bool]] = None @@ -3745,6 +3747,7 @@ class DBConnection(model.Model): dialect: Optional["Dialect"] = None snippets: Optional[Sequence["Snippet"]] = None pdts_enabled: Optional[bool] = None + named_driver_version: Optional[str] = None host: Optional[str] = None port: Optional[str] = None username: Optional[str] = None @@ -3798,6 +3801,7 @@ class DBConnection(model.Model): bq_storage_project_id: Optional[str] = None bq_roles_verified: Optional[bool] = None p4sa_name: Optional[str] = None + query_holding_disabled: Optional[bool] = None def __init__( self, @@ -3807,6 +3811,7 @@ def __init__( dialect: Optional["Dialect"] = None, snippets: Optional[Sequence["Snippet"]] = None, pdts_enabled: Optional[bool] = None, + named_driver_version: Optional[str] = None, host: Optional[str] = None, port: Optional[str] = None, username: Optional[str] = None, @@ -3859,13 +3864,15 @@ def __init__( default_bq_connection: Optional[bool] = None, bq_storage_project_id: Optional[str] = None, bq_roles_verified: Optional[bool] = None, - p4sa_name: Optional[str] = None + p4sa_name: Optional[str] = None, + query_holding_disabled: Optional[bool] = None ): self.can = can self.name = name self.dialect = dialect self.snippets = snippets self.pdts_enabled = pdts_enabled + self.named_driver_version = named_driver_version self.host = host self.port = port self.username = username @@ -3919,6 +3926,7 @@ def __init__( self.bq_storage_project_id = bq_storage_project_id self.bq_roles_verified = bq_roles_verified self.p4sa_name = p4sa_name + self.query_holding_disabled = query_holding_disabled @attr.s(auto_attribs=True, init=False) @@ -9817,7 +9825,7 @@ def __init__( class ResultFormat(enum.Enum): """ - Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask) + Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask) """ @@ -9833,6 +9841,7 @@ class ResultFormat(enum.Enum): xlsx = "xlsx" gsxml = "gsxml" sql = "sql" + odc = "odc" invalid_api_enum_value = "invalid_api_enum_value" @@ -13096,7 +13105,7 @@ class WriteCreateQueryTask(model.Model): Attributes: query_id: Id of query to run - result_format: Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + result_format: Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". source: Source of query task deferred: Create the task but defer execution look_id: Id of look associated with query. @@ -13587,6 +13596,7 @@ class WriteDBConnection(model.Model): Attributes: name: Name of the connection. Also used as the unique identifier + named_driver_version: JDBC driver version name host: Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. port: Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel. username: Username for server authentication @@ -13630,9 +13640,11 @@ class WriteDBConnection(model.Model): connection_pooling: Enable database connection pooling. bq_storage_project_id: The project id of the default BigQuery storage project. bq_roles_verified: When true, represents that all project roles have been verified. + query_holding_disabled: Disable query holding for this connection. """ name: Optional[str] = None + named_driver_version: Optional[str] = None host: Optional[str] = None port: Optional[str] = None username: Optional[str] = None @@ -13675,11 +13687,13 @@ class WriteDBConnection(model.Model): connection_pooling: Optional[bool] = None bq_storage_project_id: Optional[str] = None bq_roles_verified: Optional[bool] = None + query_holding_disabled: Optional[bool] = None def __init__( self, *, name: Optional[str] = None, + named_driver_version: Optional[str] = None, host: Optional[str] = None, port: Optional[str] = None, username: Optional[str] = None, @@ -13721,9 +13735,11 @@ def __init__( pdt_api_control_enabled: Optional[bool] = None, connection_pooling: Optional[bool] = None, bq_storage_project_id: Optional[str] = None, - bq_roles_verified: Optional[bool] = None + bq_roles_verified: Optional[bool] = None, + query_holding_disabled: Optional[bool] = None ): self.name = name + self.named_driver_version = named_driver_version self.host = host self.port = port self.username = username @@ -13766,6 +13782,7 @@ def __init__( self.connection_pooling = connection_pooling self.bq_storage_project_id = bq_storage_project_id self.bq_roles_verified = bq_roles_verified + self.query_holding_disabled = query_holding_disabled @attr.s(auto_attribs=True, init=False) diff --git a/python/looker_sdk/sdk/constants.py b/python/looker_sdk/sdk/constants.py index 5b441dde7..ee6207c4f 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 = "25.0" +sdk_version = "25.2" environment_prefix = "LOOKERSDK" diff --git a/spec/Looker.4.0.json b/spec/Looker.4.0.json index d84d03453..33f6e3012 100644 --- a/spec/Looker.4.0.json +++ b/spec/Looker.4.0.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "version": "4.0.25.0", - "x-looker-release-version": "25.0.9", + "version": "4.0.25.2", + "x-looker-release-version": "25.2.0", "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": { @@ -762,6 +762,13 @@ "description": "Specifies the source of this call.", "required": false, "type": "string" + }, + { + "name": "enable_oauth_error_response", + "in": "query", + "description": "Return a specialized OAuth error response if a database OAuth error occurs.", + "required": false, + "type": "boolean" } ], "responses": { @@ -777,6 +784,12 @@ "$ref": "#/definitions/Error" } }, + "403": { + "description": "Database OAuth Error", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, "404": { "description": "Not Found", "schema": { @@ -918,6 +931,13 @@ "description": "Perform table calculations on query results", "required": false, "type": "boolean" + }, + { + "name": "enable_oauth_error_response", + "in": "query", + "description": "Return a specialized OAuth error response if a database OAuth error occurs.", + "required": false, + "type": "boolean" } ], "responses": { @@ -933,6 +953,12 @@ "$ref": "#/definitions/Error" } }, + "403": { + "description": "Database OAuth Error", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, "404": { "description": "Not Found", "schema": { @@ -16918,6 +16944,12 @@ "$ref": "#/definitions/Error" } }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, "404": { "description": "Not Found", "schema": { @@ -17033,6 +17065,12 @@ "$ref": "#/definitions/Error" } }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, "404": { "description": "Not Found", "schema": { @@ -17503,6 +17541,12 @@ "$ref": "#/definitions/Error" } }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, "404": { "description": "Not Found", "schema": { @@ -22330,7 +22374,7 @@ { "name": "result_format", "in": "path", - "description": "Format of result, options are: [\"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"json_label\"]", + "description": "Format of result, options are: [\"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"odc\", \"json_label\"]", "required": true, "type": "string" }, @@ -32701,6 +32745,11 @@ "description": "True if PDTs are enabled on this connection", "x-looker-nullable": false }, + "named_driver_version": { + "type": "string", + "description": "JDBC driver version name", + "x-looker-nullable": true + }, "host": { "type": "string", "description": "Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel.", @@ -32988,6 +33037,11 @@ "readOnly": true, "description": "The name of P4SA service account that is associated with the Looker instance", "x-looker-nullable": true + }, + "query_holding_disabled": { + "type": "boolean", + "description": "Disable query holding for this connection.", + "x-looker-nullable": false } }, "x-looker-status": "stable" @@ -39643,9 +39697,10 @@ "txt", "xlsx", "gsxml", - "sql" + "sql", + "odc" ], - "description": "Desired async query result format. Valid values are: \"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\".", + "description": "Desired async query result format. Valid values are: \"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"odc\".", "x-looker-nullable": true }, "source": { diff --git a/spec/Looker.4.0.oas.json b/spec/Looker.4.0.oas.json index ffd8d0eb9..b4de6533e 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.25.0", - "x-looker-release-version": "25.0.9", + "version": "4.0.25.2", + "x-looker-release-version": "25.2.0", "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": { @@ -973,6 +973,15 @@ "schema": { "type": "string" } + }, + { + "name": "enable_oauth_error_response", + "in": "query", + "description": "Return a specialized OAuth error response if a database OAuth error occurs.", + "required": false, + "schema": { + "type": "boolean" + } } ], "responses": { @@ -1026,6 +1035,31 @@ } } }, + "403": { + "description": "Database OAuth Error", + "content": { + "text": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "image/png": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "image/jpeg": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + } + } + }, "404": { "description": "Not Found", "content": { @@ -1235,6 +1269,15 @@ "schema": { "type": "boolean" } + }, + { + "name": "enable_oauth_error_response", + "in": "query", + "description": "Return a specialized OAuth error response if a database OAuth error occurs.", + "required": false, + "schema": { + "type": "boolean" + } } ], "responses": { @@ -1288,6 +1331,31 @@ } } }, + "403": { + "description": "Database OAuth Error", + "content": { + "text": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "image/png": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + }, + "image/jpeg": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + } + } + }, "404": { "description": "Not Found", "content": { @@ -23418,6 +23486,16 @@ } } }, + "403": { + "description": "Permission Denied", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "404": { "description": "Not Found", "content": { @@ -23577,6 +23655,16 @@ } } }, + "403": { + "description": "Permission Denied", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "404": { "description": "Not Found", "content": { @@ -24221,6 +24309,16 @@ } } }, + "403": { + "description": "Permission Denied", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, "404": { "description": "Not Found", "content": { @@ -30864,7 +30962,7 @@ { "name": "result_format", "in": "path", - "description": "Format of result, options are: [\"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"json_label\"]", + "description": "Format of result, options are: [\"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"odc\", \"json_label\"]", "required": true, "schema": { "type": "string" @@ -43404,6 +43502,11 @@ "description": "True if PDTs are enabled on this connection", "nullable": false }, + "named_driver_version": { + "type": "string", + "description": "JDBC driver version name", + "nullable": true + }, "host": { "type": "string", "description": "Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel.", @@ -43689,6 +43792,11 @@ "readOnly": true, "description": "The name of P4SA service account that is associated with the Looker instance", "nullable": true + }, + "query_holding_disabled": { + "type": "boolean", + "description": "Disable query holding for this connection.", + "nullable": false } }, "x-looker-status": "stable" @@ -50290,9 +50398,10 @@ "txt", "xlsx", "gsxml", - "sql" + "sql", + "odc" ], - "description": "Desired async query result format. Valid values are: \"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\".", + "description": "Desired async query result format. Valid values are: \"inline_json\", \"json\", \"json_detail\", \"json_fe\", \"json_bi\", \"csv\", \"html\", \"md\", \"txt\", \"xlsx\", \"gsxml\", \"sql\", \"odc\".", "nullable": true }, "source": { diff --git a/swift/looker/rtl/constants.swift b/swift/looker/rtl/constants.swift index 862035639..50231a36b 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 = "25.0" + public static let lookerVersion = "25.2" 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/methods.swift b/swift/looker/sdk/methods.swift index 3b14f4505..958123cc9 100644 --- a/swift/looker/sdk/methods.swift +++ b/swift/looker/sdk/methods.swift @@ -8473,12 +8473,16 @@ open class LookerSDK: APIMethods { * @param {String} source Specifies the source of this call. */ source: String? = nil, + /** + * @param {Bool} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse { let path_query_id = encodeParam(query_id) let path_result_format = encodeParam(result_format) let result: SDKResponse = self.get("/queries/\(path_query_id)/run/\(path_result_format)", - ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "source": source], nil, options) + ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "source": source, "enable_oauth_error_response": enable_oauth_error_response as Any?], nil, options) return result } @@ -8596,11 +8600,15 @@ open class LookerSDK: APIMethods { * @param {Bool} server_table_calcs Perform table calculations on query results */ server_table_calcs: Bool? = nil, + /** + * @param {Bool} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse { let path_result_format = encodeParam(result_format) let result: SDKResponse = self.post("/queries/run/\(path_result_format)", - ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?], try! self.encode(body), options) + ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "enable_oauth_error_response": enable_oauth_error_response as Any?], try! self.encode(body), options) return result } @@ -8821,7 +8829,7 @@ open class LookerSDK: APIMethods { */ _ slug: String, /** - * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] */ _ result_format: String, /** diff --git a/swift/looker/sdk/models.swift b/swift/looker/sdk/models.swift index 03fbb10e1..03c3ea4f4 100644 --- a/swift/looker/sdk/models.swift +++ b/swift/looker/sdk/models.swift @@ -4051,7 +4051,7 @@ public struct CreateQueryTask: SDKModel { } /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". */ public var result_format: ResultFormat @@ -6995,6 +6995,7 @@ public struct DBConnection: SDKModel { case dialect case snippets case pdts_enabled + case _named_driver_version = "named_driver_version" case _host = "host" case _port = "port" case _username = "username" @@ -7048,6 +7049,7 @@ public struct DBConnection: SDKModel { case _bq_storage_project_id = "bq_storage_project_id" case bq_roles_verified case _p4sa_name = "p4sa_name" + case query_holding_disabled } /** * Operations the current user is able to perform on this object (read-only) @@ -7075,6 +7077,15 @@ public struct DBConnection: SDKModel { */ public var pdts_enabled: Bool? + private var _named_driver_version: AnyString? + /** + * JDBC driver version name + */ + public var named_driver_version: String? { + get { _named_driver_version?.value } + set { _named_driver_version = newValue.map(AnyString.init) } + } + private var _host: AnyString? /** * Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. @@ -7469,12 +7480,18 @@ public struct DBConnection: SDKModel { set { _p4sa_name = newValue.map(AnyString.init) } } - public init(can: StringDictionary? = nil, name: String? = nil, dialect: Dialect? = nil, snippets: [Snippet]? = nil, pdts_enabled: Bool? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, uses_oauth: Bool? = nil, uses_instance_oauth: Bool? = nil, certificate: String? = nil, file_type: String? = nil, database: String? = nil, db_timezone: String? = nil, query_timezone: String? = nil, schema: String? = nil, max_connections: Int64? = nil, max_queries: Int64? = nil, max_queries_per_user: Int64? = nil, max_billing_gigabytes: String? = nil, ssl: Bool? = nil, verify_ssl: Bool? = nil, tmp_db_name: String? = nil, tmp_db_host: String? = nil, jdbc_additional_params: String? = nil, pool_timeout: Int64? = nil, dialect_name: String? = nil, supports_data_studio_link: Bool? = nil, created_at: String? = nil, user_id: String? = nil, example: Bool? = nil, user_db_credentials: Bool? = nil, user_attribute_fields: [String]? = nil, maintenance_cron: String? = nil, last_regen_at: String? = nil, last_reap_at: String? = nil, sql_runner_precache_tables: Bool? = nil, sql_writing_with_info_schema: Bool? = nil, after_connect_statements: String? = nil, pdt_context_override: DBConnectionOverride? = nil, managed: Bool? = nil, custom_local_port: Int64? = nil, tunnel_id: String? = nil, uses_tns: Bool? = nil, pdt_concurrency: Int64? = nil, disable_context_comment: Bool? = nil, oauth_application_id: String? = nil, always_retry_failed_builds: Bool? = nil, uses_application_default_credentials: Bool? = nil, impersonated_service_account: String? = nil, cost_estimate_enabled: Bool? = nil, pdt_api_control_enabled: Bool? = nil, connection_pooling: Bool? = nil, default_bq_connection: Bool? = nil, bq_storage_project_id: String? = nil, bq_roles_verified: Bool? = nil, p4sa_name: String? = nil) { + /** + * Disable query holding for this connection. + */ + public var query_holding_disabled: Bool? + + public init(can: StringDictionary? = nil, name: String? = nil, dialect: Dialect? = nil, snippets: [Snippet]? = nil, pdts_enabled: Bool? = nil, named_driver_version: String? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, uses_oauth: Bool? = nil, uses_instance_oauth: Bool? = nil, certificate: String? = nil, file_type: String? = nil, database: String? = nil, db_timezone: String? = nil, query_timezone: String? = nil, schema: String? = nil, max_connections: Int64? = nil, max_queries: Int64? = nil, max_queries_per_user: Int64? = nil, max_billing_gigabytes: String? = nil, ssl: Bool? = nil, verify_ssl: Bool? = nil, tmp_db_name: String? = nil, tmp_db_host: String? = nil, jdbc_additional_params: String? = nil, pool_timeout: Int64? = nil, dialect_name: String? = nil, supports_data_studio_link: Bool? = nil, created_at: String? = nil, user_id: String? = nil, example: Bool? = nil, user_db_credentials: Bool? = nil, user_attribute_fields: [String]? = nil, maintenance_cron: String? = nil, last_regen_at: String? = nil, last_reap_at: String? = nil, sql_runner_precache_tables: Bool? = nil, sql_writing_with_info_schema: Bool? = nil, after_connect_statements: String? = nil, pdt_context_override: DBConnectionOverride? = nil, managed: Bool? = nil, custom_local_port: Int64? = nil, tunnel_id: String? = nil, uses_tns: Bool? = nil, pdt_concurrency: Int64? = nil, disable_context_comment: Bool? = nil, oauth_application_id: String? = nil, always_retry_failed_builds: Bool? = nil, uses_application_default_credentials: Bool? = nil, impersonated_service_account: String? = nil, cost_estimate_enabled: Bool? = nil, pdt_api_control_enabled: Bool? = nil, connection_pooling: Bool? = nil, default_bq_connection: Bool? = nil, bq_storage_project_id: String? = nil, bq_roles_verified: Bool? = nil, p4sa_name: String? = nil, query_holding_disabled: Bool? = nil) { self.can = can self._name = name.map(AnyString.init) self.dialect = dialect self.snippets = snippets self.pdts_enabled = pdts_enabled + self._named_driver_version = named_driver_version.map(AnyString.init) self._host = host.map(AnyString.init) self._port = port.map(AnyString.init) self._username = username.map(AnyString.init) @@ -7528,6 +7545,7 @@ public struct DBConnection: SDKModel { self._bq_storage_project_id = bq_storage_project_id.map(AnyString.init) self.bq_roles_verified = bq_roles_verified self._p4sa_name = p4sa_name.map(AnyString.init) + self.query_holding_disabled = query_holding_disabled } } @@ -18586,7 +18604,7 @@ public struct RepositoryCredential: SDKModel { } /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". (Enum defined in CreateQueryTask) + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". (Enum defined in CreateQueryTask) */ public enum ResultFormat: String, Codable { case inline_json = "inline_json" @@ -18601,6 +18619,7 @@ public enum ResultFormat: String, Codable { case xlsx = "xlsx" case gsxml = "gsxml" case sql = "sql" + case odc = "odc" } public struct ResultMakerFilterables: SDKModel { @@ -24565,7 +24584,7 @@ public struct WriteCreateQueryTask: SDKModel { } /** - * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql". + * Desired async query result format. Valid values are: "inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc". */ public var result_format: ResultFormat @@ -25480,6 +25499,7 @@ public struct WriteDBConnection: SDKModel { private enum CodingKeys : String, CodingKey { case _name = "name" + case _named_driver_version = "named_driver_version" case _host = "host" case _port = "port" case _username = "username" @@ -25522,6 +25542,7 @@ public struct WriteDBConnection: SDKModel { case connection_pooling case _bq_storage_project_id = "bq_storage_project_id" case bq_roles_verified + case query_holding_disabled } private var _name: AnyString? /** @@ -25532,6 +25553,15 @@ public struct WriteDBConnection: SDKModel { set { _name = newValue.map(AnyString.init) } } + private var _named_driver_version: AnyString? + /** + * JDBC driver version name + */ + public var named_driver_version: String? { + get { _named_driver_version?.value } + set { _named_driver_version = newValue.map(AnyString.init) } + } + private var _host: AnyString? /** * Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel. @@ -25855,8 +25885,14 @@ public struct WriteDBConnection: SDKModel { */ public var bq_roles_verified: Bool? - public init(name: String? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, certificate: String? = nil, file_type: String? = nil, database: String? = nil, db_timezone: String? = nil, query_timezone: String? = nil, schema: String? = nil, max_connections: Int64? = nil, max_queries: Int64? = nil, max_queries_per_user: Int64? = nil, max_billing_gigabytes: String? = nil, ssl: Bool? = nil, verify_ssl: Bool? = nil, tmp_db_name: String? = nil, tmp_db_host: String? = nil, jdbc_additional_params: String? = nil, pool_timeout: Int64? = nil, dialect_name: String? = nil, user_db_credentials: Bool? = nil, user_attribute_fields: [String]? = nil, maintenance_cron: String? = nil, sql_runner_precache_tables: Bool? = nil, sql_writing_with_info_schema: Bool? = nil, after_connect_statements: String? = nil, pdt_context_override: WriteDBConnectionOverride? = nil, custom_local_port: Int64? = nil, tunnel_id: String? = nil, uses_tns: Bool? = nil, pdt_concurrency: Int64? = nil, disable_context_comment: Bool? = nil, oauth_application_id: String? = nil, always_retry_failed_builds: Bool? = nil, uses_application_default_credentials: Bool? = nil, impersonated_service_account: String? = nil, cost_estimate_enabled: Bool? = nil, pdt_api_control_enabled: Bool? = nil, connection_pooling: Bool? = nil, bq_storage_project_id: String? = nil, bq_roles_verified: Bool? = nil) { + /** + * Disable query holding for this connection. + */ + public var query_holding_disabled: Bool? + + public init(name: String? = nil, named_driver_version: String? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, certificate: String? = nil, file_type: String? = nil, database: String? = nil, db_timezone: String? = nil, query_timezone: String? = nil, schema: String? = nil, max_connections: Int64? = nil, max_queries: Int64? = nil, max_queries_per_user: Int64? = nil, max_billing_gigabytes: String? = nil, ssl: Bool? = nil, verify_ssl: Bool? = nil, tmp_db_name: String? = nil, tmp_db_host: String? = nil, jdbc_additional_params: String? = nil, pool_timeout: Int64? = nil, dialect_name: String? = nil, user_db_credentials: Bool? = nil, user_attribute_fields: [String]? = nil, maintenance_cron: String? = nil, sql_runner_precache_tables: Bool? = nil, sql_writing_with_info_schema: Bool? = nil, after_connect_statements: String? = nil, pdt_context_override: WriteDBConnectionOverride? = nil, custom_local_port: Int64? = nil, tunnel_id: String? = nil, uses_tns: Bool? = nil, pdt_concurrency: Int64? = nil, disable_context_comment: Bool? = nil, oauth_application_id: String? = nil, always_retry_failed_builds: Bool? = nil, uses_application_default_credentials: Bool? = nil, impersonated_service_account: String? = nil, cost_estimate_enabled: Bool? = nil, pdt_api_control_enabled: Bool? = nil, connection_pooling: Bool? = nil, bq_storage_project_id: String? = nil, bq_roles_verified: Bool? = nil, query_holding_disabled: Bool? = nil) { self._name = name.map(AnyString.init) + self._named_driver_version = named_driver_version.map(AnyString.init) self._host = host.map(AnyString.init) self._port = port.map(AnyString.init) self._username = username.map(AnyString.init) @@ -25899,6 +25935,7 @@ public struct WriteDBConnection: SDKModel { self.connection_pooling = connection_pooling self._bq_storage_project_id = bq_storage_project_id.map(AnyString.init) self.bq_roles_verified = bq_roles_verified + self.query_holding_disabled = query_holding_disabled } } diff --git a/swift/looker/sdk/streams.swift b/swift/looker/sdk/streams.swift index d54645586..608a7c3c5 100644 --- a/swift/looker/sdk/streams.swift +++ b/swift/looker/sdk/streams.swift @@ -8471,12 +8471,16 @@ open class LookerSDKStream: APIMethods { * @param {String} source Specifies the source of this call. */ source: String? = nil, + /** + * @param {Bool} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse { let path_query_id = encodeParam(query_id) let path_result_format = encodeParam(result_format) let result: SDKResponse = self.get("/queries/\(path_query_id)/run/\(path_result_format)", - ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "source": source], nil, options) + ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "source": source, "enable_oauth_error_response": enable_oauth_error_response as Any?], nil, options) return result } @@ -8594,11 +8598,15 @@ open class LookerSDKStream: APIMethods { * @param {Bool} server_table_calcs Perform table calculations on query results */ server_table_calcs: Bool? = nil, + /** + * @param {Bool} enable_oauth_error_response Return a specialized OAuth error response if a database OAuth error occurs. + */ + enable_oauth_error_response: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse { let path_result_format = encodeParam(result_format) let result: SDKResponse = self.post("/queries/run/\(path_result_format)", - ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?], try! self.encode(body), options) + ["limit": limit, "apply_formatting": apply_formatting as Any?, "apply_vis": apply_vis as Any?, "cache": cache as Any?, "image_width": image_width, "image_height": image_height, "generate_drill_links": generate_drill_links as Any?, "force_production": force_production as Any?, "cache_only": cache_only as Any?, "path_prefix": path_prefix, "rebuild_pdts": rebuild_pdts as Any?, "server_table_calcs": server_table_calcs as Any?, "enable_oauth_error_response": enable_oauth_error_response as Any?], try! self.encode(body), options) return result } @@ -8819,7 +8827,7 @@ open class LookerSDKStream: APIMethods { */ _ slug: String, /** - * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "json_label"] + * @param {String} result_format Format of result, options are: ["inline_json", "json", "json_detail", "json_fe", "json_bi", "csv", "html", "md", "txt", "xlsx", "gsxml", "sql", "odc", "json_label"] */ _ result_format: String, /**