Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csharp/rtl/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct Constants

public const string DefaultApiVersion = "4.0";
public const string AgentPrefix = "CS-SDK";
public const string LookerVersion = "25.10";
public const string LookerVersion = "25.14";

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

/// 471 API methods
/// 472 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -3149,6 +3149,7 @@ public async Task<SdkResponse<SshPublicKey, Exception>> ssh_public_key(
/// <param name="dashboard_id">Match dashboard id(s).To create a list of multiple ids, use commas as separators</param>
/// <param name="look_id">Match look id(s).To create a list of multiple ids, use commas as separators</param>
/// <param name="board_id">Match board id(s).To create a list of multiple ids, use commas as separators</param>
/// <param name="include_board_items">If true, and board_id is provided, returns the content favorites for all items on the board. If false, returns the content favorite for the board itself.</param>
/// <param name="limit">Number of results to return. (used with offset)</param>
/// <param name="offset">Number of results to skip before returning any. (used with limit)</param>
/// <param name="sorts">Fields to sort by.</param>
Expand All @@ -3161,6 +3162,7 @@ public async Task<SdkResponse<ContentFavorite[], Exception>> search_content_favo
string? dashboard_id = null,
string? look_id = null,
string? board_id = null,
bool? include_board_items = null,
long? limit = null,
long? offset = null,
string? sorts = null,
Expand All @@ -3175,6 +3177,7 @@ public async Task<SdkResponse<ContentFavorite[], Exception>> search_content_favo
{ "dashboard_id", dashboard_id },
{ "look_id", look_id },
{ "board_id", board_id },
{ "include_board_items", include_board_items },
{ "limit", limit },
{ "offset", offset },
{ "sorts", sorts },
Expand Down Expand Up @@ -9559,6 +9562,7 @@ public async Task<SdkResponse<User, Exception>> create_user(
/// <param name="filter_or">Combine given search criteria in a boolean OR expression</param>
/// <param name="content_metadata_id">Search for users who have access to this content_metadata item</param>
/// <param name="group_id">Search for users who are direct members of this group</param>
/// <param name="can_manage_api3_creds">Search for users who can manage API3 credentials</param>
public async Task<SdkResponse<User[], Exception>> search_users(
string? fields = null,
long? page = null,
Expand All @@ -9576,6 +9580,7 @@ public async Task<SdkResponse<User[], Exception>> search_users(
bool? filter_or = null,
string? content_metadata_id = null,
string? group_id = null,
bool? can_manage_api3_creds = null,
ITransportSettings? options = null)
{
return await AuthRequest<User[], Exception>(HttpMethod.Get, "/users/search", new Values {
Expand All @@ -9594,7 +9599,8 @@ public async Task<SdkResponse<User[], Exception>> search_users(
{ "is_disabled", is_disabled },
{ "filter_or", filter_or },
{ "content_metadata_id", content_metadata_id },
{ "group_id", group_id }},null,options);
{ "group_id", group_id },
{ "can_manage_api3_creds", can_manage_api3_creds }},null,options);
}

/// ### Search for user accounts by name
Expand Down Expand Up @@ -10069,6 +10075,30 @@ public async Task<SdkResponse<CredentialsApi3, Exception>> user_credentials_api3
{ "fields", fields }},null,options);
}

/// ### API login information for the specified user. This is for the newer API keys that can be added for any user.
///
/// Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
///
/// PATCH /users/{user_id}/credentials_api3/{credentials_api3_id} -> CredentialsApi3
///
/// <returns><c>CredentialsApi3</c> API Credential (application/json)</returns>
///
/// <param name="user_id">Id of user</param>
/// <param name="credentials_api3_id">Id of API Credential</param>
/// <param name="fields">Requested fields.</param>
public async Task<SdkResponse<CredentialsApi3, Exception>> update_user_credentials_api3(
string user_id,
string credentials_api3_id,
WriteCredentialsApi3 body,
string? fields = null,
ITransportSettings? options = null)
{
user_id = SdkUtils.EncodeParam(user_id);
credentials_api3_id = SdkUtils.EncodeParam(credentials_api3_id);
return await AuthRequest<CredentialsApi3, Exception>(HttpMethod.Patch, $"/users/{user_id}/credentials_api3/{credentials_api3_id}", new Values {
{ "fields", fields }},body,options);
}

/// ### API login information for the specified user. This is for the newer API keys that can be added for any user.
///
/// Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
Expand Down
30 changes: 26 additions & 4 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 373 API models: 287 Spec, 0 Request, 62 Write, 24 Enum
/// 374 API models: 287 Spec, 0 Request, 63 Write, 24 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -686,6 +686,10 @@ public class ContentMeta : SdkModel
public string? look_id { get; set; } = null;
/// <summary>Id of associated folder when content_type is "space" (read-only)</summary>
public string? folder_id { get; set; } = null;
/// <summary>Id of associated board when content_type is "board" (read-only)</summary>
public string? homepage_id { get; set; } = null;
/// <summary>Id of associated agent when content_type is "agent" (read-only)</summary>
public string? agent_id { get; set; } = null;
/// <summary>Content Type ("dashboard", "look", or "folder") (read-only)</summary>
public string? content_type { get; set; } = null;
/// <summary>Whether content inherits its access levels from parent</summary>
Expand Down Expand Up @@ -1117,6 +1121,8 @@ public class CreateCredentialsApi3 : SdkModel
public bool? is_disabled { get; set; } = null;
/// <summary>Short name for the type of this kind of credential (read-only)</summary>
public string? type { get; set; } = null;
/// <summary>User defined purpose for this credential.</summary>
public string? purpose { get; set; } = null;
/// <summary>API key client_secret (read-only)</summary>
public string? client_secret { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
Expand Down Expand Up @@ -1229,6 +1235,8 @@ public class CredentialsApi3 : SdkModel
public bool? is_disabled { get; set; } = null;
/// <summary>Short name for the type of this kind of credential (read-only)</summary>
public string? type { get; set; } = null;
/// <summary>User defined purpose for this credential.</summary>
public string? purpose { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
public string? url { get; set; } = null;
}
Expand Down Expand Up @@ -1891,6 +1899,8 @@ public class DBConnection : SdkModel
public bool? uses_key_pair_auth { get; set; } = null;
/// <summary>Whether the integration uses the oauth instance account. (read-only)</summary>
public bool? uses_instance_oauth { get; set; } = null;
/// <summary>Whether the connection uses service authentication certificate. (read-only)</summary>
public bool? uses_service_auth { get; set; } = null;
/// <summary>(Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect).</summary>
public string? certificate { get; set; } = null;
/// <summary>(Write-Only) Certificate keyfile type - .json, .p8 or .p12</summary>
Expand Down Expand Up @@ -6010,8 +6020,10 @@ public class User : SdkModel
public bool? allow_roles_from_normal_groups { get; set; } = null;
/// <summary>(Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login (read-only)</summary>
public string? embed_group_folder_id { get; set; } = null;
/// <summary>User is an IAM Admin - only available in Looker (Google Cloud core) (read-only)</summary>
/// <summary>User is an IAM Admin - only available in Looker (Google Cloud core). The is_iam_admin is not returned by default. Please explicitly request this attribute if needed via the fields query param. Note: Including the optional is_iam_admin attribute can increase API latency. For best performance, use this attribute only when filtering for users with the 'Admin via IAM' role. When using this filter, always paginate your results with the offset and limit fields to optimize response time. (read-only)</summary>
public bool? is_iam_admin { get; set; } = null;
/// <summary>Indicates if the user can manage API3 credentials</summary>
public bool? can_manage_api3_creds { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
public string? url { get; set; } = null;
}
Expand Down Expand Up @@ -6428,7 +6440,7 @@ public class WriteContentFavorite : SdkModel
}

/// Dynamic writeable type for ContentMeta removes:
/// can, id, name, parent_id, dashboard_id, look_id, folder_id, content_type, inheriting_id, slug
/// can, id, name, parent_id, dashboard_id, look_id, folder_id, homepage_id, agent_id, content_type, inheriting_id, slug
public class WriteContentMeta : SdkModel
{
/// <summary>Whether content inherits its access levels from parent</summary>
Expand Down Expand Up @@ -6486,6 +6498,14 @@ public class WriteCreateQueryTask : SdkModel
public string? dashboard_id { get; set; } = null;
}

/// Dynamic writeable type for CredentialsApi3 removes:
/// can, id, client_id, created_at, is_disabled, type, url
public class WriteCredentialsApi3 : SdkModel
{
/// <summary>User defined purpose for this credential.</summary>
public string? purpose { get; set; } = null;
}

/// Dynamic writeable type for CredentialsEmail removes:
/// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, password_reset_url_expired, account_setup_url_expired, type, url, user_url
public class WriteCredentialsEmail : SdkModel
Expand Down Expand Up @@ -6705,7 +6725,7 @@ public class WriteDatagroup : SdkModel
}

/// Dynamic writeable type for DBConnection removes:
/// can, dialect, snippets, pdts_enabled, named_driver_version_actual, 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
/// can, dialect, snippets, pdts_enabled, named_driver_version_actual, uses_oauth, uses_instance_oauth, uses_service_auth, supports_data_studio_link, created_at, user_id, example, last_regen_at, last_reap_at, managed, default_bq_connection, p4sa_name
public class WriteDBConnection : SdkModel
{
/// <summary>Name of the connection. Also used as the unique identifier</summary>
Expand Down Expand Up @@ -7673,6 +7693,8 @@ public class WriteUser : SdkModel
public bool? models_dir_validated { get; set; } = null;
/// <summary>Per user dictionary of undocumented state information owned by the Looker UI.</summary>
public StringDictionary<string>? ui_state { get; set; } = null;
/// <summary>Indicates if the user can manage API3 credentials</summary>
public bool? can_manage_api3_creds { get; set; } = null;
}

/// Dynamic writeable type for UserAttribute removes:
Expand Down
25 changes: 22 additions & 3 deletions go/sdk/v4/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*

471 API methods
472 API methods
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand Down Expand Up @@ -2672,7 +2672,7 @@ func (l *LookerSDK) SshPublicKey(
func (l *LookerSDK) SearchContentFavorites(request RequestSearchContentFavorites,
options *rtl.ApiSettings) ([]ContentFavorite, error) {
var result []ContentFavorite
err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_favorite/search", map[string]interface{}{"id": request.Id, "user_id": request.UserId, "content_metadata_id": request.ContentMetadataId, "dashboard_id": request.DashboardId, "look_id": request.LookId, "board_id": request.BoardId, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "fields": request.Fields, "filter_or": request.FilterOr}, nil, options)
err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_favorite/search", map[string]interface{}{"id": request.Id, "user_id": request.UserId, "content_metadata_id": request.ContentMetadataId, "dashboard_id": request.DashboardId, "look_id": request.LookId, "board_id": request.BoardId, "include_board_items": request.IncludeBoardItems, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "fields": request.Fields, "filter_or": request.FilterOr}, nil, options)
return result, err

}
Expand Down Expand Up @@ -7224,7 +7224,7 @@ func (l *LookerSDK) CreateUser(
func (l *LookerSDK) SearchUsers(request RequestSearchUsers,
options *rtl.ApiSettings) ([]User, error) {
var result []User
err := l.AuthSession.Do(&result, "GET", "/4.0", "/users/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "first_name": request.FirstName, "last_name": request.LastName, "verified_looker_employee": request.VerifiedLookerEmployee, "embed_user": request.EmbedUser, "email": request.Email, "is_disabled": request.IsDisabled, "filter_or": request.FilterOr, "content_metadata_id": request.ContentMetadataId, "group_id": request.GroupId}, nil, options)
err := l.AuthSession.Do(&result, "GET", "/4.0", "/users/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "first_name": request.FirstName, "last_name": request.LastName, "verified_looker_employee": request.VerifiedLookerEmployee, "embed_user": request.EmbedUser, "email": request.Email, "is_disabled": request.IsDisabled, "filter_or": request.FilterOr, "content_metadata_id": request.ContentMetadataId, "group_id": request.GroupId, "can_manage_api3_creds": request.CanManageApi3Creds}, nil, options)
return result, err

}
Expand Down Expand Up @@ -7594,6 +7594,25 @@ func (l *LookerSDK) UserCredentialsApi3(

}

// ### API login information for the specified user. This is for the newer API keys that can be added for any user.
//
// Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
//
// PATCH /users/{user_id}/credentials_api3/{credentials_api3_id} -> CredentialsApi3
func (l *LookerSDK) UpdateUserCredentialsApi3(
userId string,
credentialsApi3Id string,
body WriteCredentialsApi3,
fields string,
options *rtl.ApiSettings) (CredentialsApi3, error) {
userId = url.PathEscape(userId)
credentialsApi3Id = url.PathEscape(credentialsApi3Id)
var result CredentialsApi3
err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v/credentials_api3/%v", userId, credentialsApi3Id), map[string]interface{}{"fields": fields}, body, options)
return result, err

}

// ### API login information for the specified user. This is for the newer API keys that can be added for any user.
//
// Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
Expand Down
Loading
Loading