Unverified Commit 328d3e57 authored by John Kaster's avatar John Kaster Committed by GitHub
Browse files

feat: generate SDKs for Looker 22.14 (#1176)

* feat: generate SDKs for Looker 22.14

* applied CalVer for 22.14
parent 6f427a71
Showing with 74 additions and 31 deletions
+74 -31
......@@ -61,7 +61,7 @@ namespace Looker.RTL
public const string DefaultApiVersion = "4.0";
public const string AgentPrefix = "CS-SDK";
public const string LookerVersion = "22.12";
public const string LookerVersion = "22.14";
public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
......
......@@ -1169,6 +1169,8 @@ public class DBConnection : SdkModel
public long? pool_timeout { get; set; } = null;
/// <summary>(Read/Write) SQL Dialect name</summary>
public string? dialect_name { get; set; } = null;
/// <summary>Database connection has the ability to support open data studio from explore (read-only)</summary>
public bool? supports_data_studio_link { get; set; } = null;
/// <summary>Creation date for this connection (read-only)</summary>
public string? created_at { get; set; } = null;
/// <summary>Id of user who last modified this connection configuration (read-only)</summary>
......@@ -4761,7 +4763,7 @@ public class WriteDatagroup : SdkModel
}
/// Dynamic writeable type for DBConnection removes:
/// can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
/// can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
public class WriteDBConnection : SdkModel
{
/// <summary>Name of the connection. Also used as the unique identifier</summary>
......
......@@ -1381,6 +1381,7 @@ namespace Looker.SDK.API40
/// <param name="offset">The number of items to skip before returning any. (used with limit and takes priority over page and per_page)</param>
/// <param name="limit">The maximum number of items to return. (used with offset and takes priority over page and per_page)</param>
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
/// <param name="permission">Filter results based on permission, either show (default) or update</param>
public async Task<SdkResponse<Board[], Exception>> search_boards(
string? title = null,
string? created_at = null,
......@@ -1395,6 +1396,7 @@ namespace Looker.SDK.API40
long? offset = null,
long? limit = null,
bool? filter_or = null,
string? permission = null,
ITransportSettings? options = null)
{
return await AuthRequest<Board[], Exception>(HttpMethod.Get, "/boards/search", new Values {
......@@ -1410,7 +1412,8 @@ namespace Looker.SDK.API40
{ "per_page", per_page },
{ "offset", offset },
{ "limit", limit },
{ "filter_or", filter_or }},null,options);
{ "filter_or", filter_or },
{ "permission", permission }},null,options);
}
/// ### Get information about a board.
......
......@@ -1554,6 +1554,8 @@ public class DBConnection : SdkModel
public long? pool_timeout { get; set; } = null;
/// <summary>(Read/Write) SQL Dialect name</summary>
public string? dialect_name { get; set; } = null;
/// <summary>Database connection has the ability to support open data studio from explore (read-only)</summary>
public bool? supports_data_studio_link { get; set; } = null;
/// <summary>Creation date for this connection (read-only)</summary>
public string? created_at { get; set; } = null;
/// <summary>Id of user who last modified this connection configuration (read-only)</summary>
......@@ -5603,7 +5605,7 @@ public class WriteDatagroup : SdkModel
}
/// Dynamic writeable type for DBConnection removes:
/// can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
/// can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
public class WriteDBConnection : SdkModel
{
/// <summary>Name of the connection. Also used as the unique identifier</summary>
......
......@@ -1190,7 +1190,7 @@ func (l *LookerSDK) CreateBoard(
func (l *LookerSDK) SearchBoards(request RequestSearchBoards,
options *rtl.ApiSettings) ([]Board, error) {
var result []Board
err := l.session.Do(&result, "GET", "/4.0", "/boards/search", map[string]interface{}{"title": request.Title, "created_at": request.CreatedAt, "first_name": request.FirstName, "last_name": request.LastName, "fields": request.Fields, "favorited": request.Favorited, "creator_id": request.CreatorId, "sorts": request.Sorts, "page": request.Page, "per_page": request.PerPage, "offset": request.Offset, "limit": request.Limit, "filter_or": request.FilterOr}, nil, options)
err := l.session.Do(&result, "GET", "/4.0", "/boards/search", map[string]interface{}{"title": request.Title, "created_at": request.CreatedAt, "first_name": request.FirstName, "last_name": request.LastName, "fields": request.Fields, "favorited": request.Favorited, "creator_id": request.CreatorId, "sorts": request.Sorts, "page": request.Page, "per_page": request.PerPage, "offset": request.Offset, "limit": request.Limit, "filter_or": request.FilterOr, "permission": request.Permission}, nil, options)
return result, err
}
......
......@@ -887,6 +887,7 @@ type DBConnection struct {
JdbcAdditionalParams *string `json:"jdbc_additional_params,omitempty"` // Additional params to add to JDBC connection string
PoolTimeout *int64 `json:"pool_timeout,omitempty"` // Connection Pool Timeout, in seconds
DialectName *string `json:"dialect_name,omitempty"` // (Read/Write) SQL Dialect name
SupportsDataStudioLink *bool `json:"supports_data_studio_link,omitempty"` // Database connection has the ability to support open data studio from explore
CreatedAt *string `json:"created_at,omitempty"` // Creation date for this connection
UserId *string `json:"user_id,omitempty"` // Id of user who last modified this connection configuration
Example *bool `json:"example,omitempty"` // Is this an example connection?
......@@ -2594,19 +2595,20 @@ type RequestSearchAlerts struct {
// Dynamically generated request type for search_boards
type RequestSearchBoards struct {
Title *string `json:"title,omitempty"` // Matches board title.
CreatedAt *string `json:"created_at,omitempty"` // Matches the timestamp for when the board was created.
FirstName *string `json:"first_name,omitempty"` // The first name of the user who created this board.
LastName *string `json:"last_name,omitempty"` // The last name of the user who created this board.
Fields *string `json:"fields,omitempty"` // Requested fields.
Favorited *bool `json:"favorited,omitempty"` // Return favorited boards when true.
CreatorId *string `json:"creator_id,omitempty"` // Filter on boards created by a particular user.
Sorts *string `json:"sorts,omitempty"` // The fields to sort the results by
Page *int64 `json:"page,omitempty"` // The page to return. DEPRECATED. Use offset instead.
PerPage *int64 `json:"per_page,omitempty"` // The number of items in the returned page. DEPRECATED. Use limit instead.
Offset *int64 `json:"offset,omitempty"` // The number of items to skip before returning any. (used with limit and takes priority over page and per_page)
Limit *int64 `json:"limit,omitempty"` // The maximum number of items to return. (used with offset and takes priority over page and per_page)
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression
Title *string `json:"title,omitempty"` // Matches board title.
CreatedAt *string `json:"created_at,omitempty"` // Matches the timestamp for when the board was created.
FirstName *string `json:"first_name,omitempty"` // The first name of the user who created this board.
LastName *string `json:"last_name,omitempty"` // The last name of the user who created this board.
Fields *string `json:"fields,omitempty"` // Requested fields.
Favorited *bool `json:"favorited,omitempty"` // Return favorited boards when true.
CreatorId *string `json:"creator_id,omitempty"` // Filter on boards created by a particular user.
Sorts *string `json:"sorts,omitempty"` // The fields to sort the results by
Page *int64 `json:"page,omitempty"` // The page to return. DEPRECATED. Use offset instead.
PerPage *int64 `json:"per_page,omitempty"` // The number of items in the returned page. DEPRECATED. Use limit instead.
Offset *int64 `json:"offset,omitempty"` // The number of items to skip before returning any. (used with limit and takes priority over page and per_page)
Limit *int64 `json:"limit,omitempty"` // The maximum number of items to return. (used with offset and takes priority over page and per_page)
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression
Permission *string `json:"permission,omitempty"` // Filter results based on permission, either show (default) or update
}
// Dynamically generated request type for search_content_favorites
......@@ -3823,7 +3825,7 @@ type WriteDatagroup struct {
}
// Dynamic writeable type for DBConnection removes:
// can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
// can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
type WriteDBConnection struct {
Name *string `json:"name,omitempty"` // Name of the connection. Also used as the unique identifier
Host *string `json:"host,omitempty"` // Host name/address of server
......
......@@ -1401,6 +1401,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
* @param {Long} offset The number of items to skip before returning any. (used with limit and takes priority over page and per_page)
* @param {Long} limit The maximum number of items to return. (used with offset and takes priority over page and per_page)
* @param {Boolean} filter_or Combine given search criteria in a boolean OR expression
* @param {String} permission Filter results based on permission, either show (default) or update
*
* GET /boards/search -> Array<Board>
*/
......@@ -1417,7 +1418,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
per_page: Long? = null,
offset: Long? = null,
limit: Long? = null,
filter_or: Boolean? = null
filter_or: Boolean? = null,
permission: String? = null
) : SDKResponse {
return this.get<Array<Board>>("/boards/search",
mapOf("title" to title,
......@@ -1432,7 +1434,8 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
"per_page" to per_page,
"offset" to offset,
"limit" to limit,
"filter_or" to filter_or))
"filter_or" to filter_or,
"permission" to permission))
}
......
......@@ -1622,6 +1622,7 @@ data class Datagroup (
* @property jdbc_additional_params Additional params to add to JDBC connection string
* @property pool_timeout Connection Pool Timeout, in seconds
* @property dialect_name (Read/Write) SQL Dialect name
* @property supports_data_studio_link Database connection has the ability to support open data studio from explore (read-only)
* @property created_at Creation date for this connection (read-only)
* @property user_id Id of user who last modified this connection configuration (read-only)
* @property example Is this an example connection? (read-only)
......@@ -1668,6 +1669,7 @@ data class DBConnection (
var jdbc_additional_params: String? = null,
var pool_timeout: Long? = null,
var dialect_name: String? = null,
var supports_data_studio_link: Boolean? = null,
var created_at: String? = null,
var user_id: String? = null,
var example: Boolean? = null,
......@@ -5856,7 +5858,7 @@ data class WriteDatagroup (
/**
* Dynamic writeable type for DBConnection removes:
* can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
* can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
*
* @property name Name of the connection. Also used as the unique identifier
* @property host Host name/address of server
......
......@@ -1400,6 +1400,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
* @param {Long} offset The number of items to skip before returning any. (used with limit and takes priority over page and per_page)
* @param {Long} limit The maximum number of items to return. (used with offset and takes priority over page and per_page)
* @param {Boolean} filter_or Combine given search criteria in a boolean OR expression
* @param {String} permission Filter results based on permission, either show (default) or update
*
* GET /boards/search -> ByteArray
*/
......@@ -1416,7 +1417,8 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
per_page: Long? = null,
offset: Long? = null,
limit: Long? = null,
filter_or: Boolean? = null
filter_or: Boolean? = null,
permission: String? = null
) : SDKResponse {
return this.get<ByteArray>("/boards/search",
mapOf("title" to title,
......@@ -1431,7 +1433,8 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) {
"per_page" to per_page,
"offset" to offset,
"limit" to limit,
"filter_or" to filter_or))
"filter_or" to filter_or,
"permission" to permission))
}
......
......@@ -28,7 +28,7 @@ package com.looker.sdk
const val ENVIRONMENT_PREFIX = "LOOKERSDK"
const val SDK_TAG = "KT-SDK"
const val LOOKER_VERSION = "22.12"
const val LOOKER_VERSION = "22.14"
const val API_VERSION = "4.0"
const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION"
const val LOOKER_APPID = "x-looker-appid"
......@@ -1955,6 +1955,10 @@ export interface IDBConnection {
* (Read/Write) SQL Dialect name
*/
dialect_name?: string | null
/**
* Database connection has the ability to support open data studio from explore (read-only)
*/
supports_data_studio_link?: boolean
/**
* Creation date for this connection (read-only)
*/
......@@ -9788,7 +9792,7 @@ export interface IWriteDatagroup {
/**
* Dynamic writeable type for DBConnection removes:
* can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
* can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
*/
export interface IWriteDBConnection {
/**
......
......@@ -2164,6 +2164,7 @@ export const search_boards = async (
offset: request.offset,
limit: request.limit,
filter_or: request.filter_or,
permission: request.permission,
},
null,
options
......
......@@ -2042,6 +2042,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK {
offset: request.offset,
limit: request.limit,
filter_or: request.filter_or,
permission: request.permission,
},
null,
options
......
......@@ -2596,6 +2596,10 @@ export interface IDBConnection {
* (Read/Write) SQL Dialect name
*/
dialect_name?: string | null
/**
* Database connection has the ability to support open data studio from explore (read-only)
*/
supports_data_studio_link?: boolean
/**
* Creation date for this connection (read-only)
*/
......@@ -7892,6 +7896,10 @@ export interface IRequestSearchBoards {
* Combine given search criteria in a boolean OR expression
*/
filter_or?: boolean | null
/**
* Filter results based on permission, either show (default) or update
*/
permission?: string | null
}
/**
......@@ -11502,7 +11510,7 @@ export interface IWriteDatagroup {
/**
* Dynamic writeable type for DBConnection removes:
* can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
* can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
*/
export interface IWriteDBConnection {
/**
......
......@@ -2330,6 +2330,7 @@ export class Looker40SDKStream extends APIMethods {
offset: request.offset,
limit: request.limit,
filter_or: request.filter_or,
permission: request.permission,
},
null,
options
......
......@@ -24,5 +24,5 @@
*/
export const sdkVersion = '22.12'
export const sdkVersion = '22.14'
export const environmentPrefix = 'LOOKERSDK'
......@@ -2532,6 +2532,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Additional params to add to JDBC connection string
pool_timeout: Connection Pool Timeout, in seconds
dialect_name: (Read/Write) SQL Dialect name
supports_data_studio_link: Database connection has the ability to support open data studio from explore
created_at: Creation date for this connection
user_id: Id of user who last modified this connection configuration
example: Is this an example connection?
......@@ -2571,6 +2572,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Optional[str] = None
pool_timeout: Optional[int] = None
dialect_name: Optional[str] = None
supports_data_studio_link: Optional[bool] = None
created_at: Optional[str] = None
user_id: Optional[str] = None
example: Optional[bool] = None
......@@ -2612,6 +2614,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Optional[str] = None,
pool_timeout: Optional[int] = None,
dialect_name: Optional[str] = None,
supports_data_studio_link: Optional[bool] = None,
created_at: Optional[str] = None,
user_id: Optional[str] = None,
example: Optional[bool] = None,
......@@ -2650,6 +2653,7 @@ class DBConnection(model.Model):
self.jdbc_additional_params = jdbc_additional_params
self.pool_timeout = pool_timeout
self.dialect_name = dialect_name
self.supports_data_studio_link = supports_data_studio_link
self.created_at = created_at
self.user_id = user_id
self.example = example
......@@ -10300,7 +10304,7 @@ class WriteDatagroup(model.Model):
class WriteDBConnection(model.Model):
"""
Dynamic writeable type for DBConnection removes:
can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
Attributes:
name: Name of the connection. Also used as the unique identifier
......
......@@ -1793,6 +1793,8 @@ class Looker40SDK(api_methods.APIMethods):
limit: Optional[int] = None,
# Combine given search criteria in a boolean OR expression
filter_or: Optional[bool] = None,
# Filter results based on permission, either show (default) or update
permission: Optional[str] = None,
transport_options: Optional[transport.TransportOptions] = None,
) -> Sequence[mdls.Board]:
"""Search Boards"""
......@@ -1815,6 +1817,7 @@ class Looker40SDK(api_methods.APIMethods):
"offset": offset,
"limit": limit,
"filter_or": filter_or,
"permission": permission,
},
transport_options=transport_options,
),
......
......@@ -3401,6 +3401,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Additional params to add to JDBC connection string
pool_timeout: Connection Pool Timeout, in seconds
dialect_name: (Read/Write) SQL Dialect name
supports_data_studio_link: Database connection has the ability to support open data studio from explore
created_at: Creation date for this connection
user_id: Id of user who last modified this connection configuration
example: Is this an example connection?
......@@ -3447,6 +3448,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Optional[str] = None
pool_timeout: Optional[int] = None
dialect_name: Optional[str] = None
supports_data_studio_link: Optional[bool] = None
created_at: Optional[str] = None
user_id: Optional[str] = None
example: Optional[bool] = None
......@@ -3495,6 +3497,7 @@ class DBConnection(model.Model):
jdbc_additional_params: Optional[str] = None,
pool_timeout: Optional[int] = None,
dialect_name: Optional[str] = None,
supports_data_studio_link: Optional[bool] = None,
created_at: Optional[str] = None,
user_id: Optional[str] = None,
example: Optional[bool] = None,
......@@ -3540,6 +3543,7 @@ class DBConnection(model.Model):
self.jdbc_additional_params = jdbc_additional_params
self.pool_timeout = pool_timeout
self.dialect_name = dialect_name
self.supports_data_studio_link = supports_data_studio_link
self.created_at = created_at
self.user_id = user_id
self.example = example
......@@ -12227,7 +12231,7 @@ class WriteDatagroup(model.Model):
class WriteDBConnection(model.Model):
"""
Dynamic writeable type for DBConnection removes:
can, dialect, snippets, pdts_enabled, uses_oauth, created_at, user_id, example, last_regen_at, last_reap_at, managed
can, dialect, snippets, pdts_enabled, uses_oauth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed
 
Attributes:
name: Name of the connection. Also used as the unique identifier
......
......@@ -20,5 +20,5 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
sdk_version = "22.12"
sdk_version = "22.14"
environment_prefix = "LOOKERSDK"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment