Skip to content

Commit

Permalink
feat: generate SDKs for Looker 23.8 (#1311)
Browse files Browse the repository at this point in the history
Release-As: 23.8.0
  • Loading branch information
drstrangelooker authored May 11, 2023
1 parent f0eded6 commit e0b6597
Show file tree
Hide file tree
Showing 34 changed files with 2,626 additions and 841 deletions.
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 = "23.6";
public const string LookerVersion = "23.8";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
112 changes: 111 additions & 1 deletion csharp/sdk/3.1/methods.cs

Large diffs are not rendered by default.

135 changes: 134 additions & 1 deletion csharp/sdk/4.0/methods.cs

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,8 @@ public class EmbedCookielessSessionAcquire : SdkModel
public StringDictionary<object>? user_attributes { get; set; } = null;
/// <summary>Token referencing the embed session and is used to generate new authentication, navigation and api tokens.</summary>
public string? session_reference_token { get; set; } = null;
/// <summary>The domain of the server embedding the Looker IFRAME. This is an alternative to specifying the domain in the embedded domain allow list in the Looker embed admin page.</summary>
public string? embed_domain { get; set; } = null;
}

public class EmbedCookielessSessionAcquireResponse : SdkModel
Expand Down Expand Up @@ -4745,6 +4747,8 @@ public class Setting : SdkModel
public bool? override_warnings { get; set; } = null;
/// <summary>An array of Email Domain Allowlist of type string for Scheduled Content</summary>
public string[]? email_domain_allowlist { get; set; } = null;
/// <summary>Toggle cookieless embed setting</summary>
public bool? embed_cookieless_v2 { get; set; } = null;
}

public class SmtpNodeStatus : SdkModel
Expand Down Expand Up @@ -5180,6 +5184,8 @@ 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>
public bool? is_iam_admin { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
public string? url { get; set; } = null;
}
Expand Down Expand Up @@ -6676,6 +6682,8 @@ public class WriteSetting : SdkModel
public bool? override_warnings { get; set; } = null;
/// <summary>An array of Email Domain Allowlist of type string for Scheduled Content</summary>
public string[]? email_domain_allowlist { get; set; } = null;
/// <summary>Toggle cookieless embed setting</summary>
public bool? embed_cookieless_v2 { get; set; } = null;
}

/// Dynamic writeable type for SshServer removes:
Expand Down Expand Up @@ -6720,7 +6728,7 @@ public class WriteTheme : SdkModel
}

/// Dynamic writeable type for User removes:
/// can, avatar_url, avatar_url_without_sizing, credentials_api3, credentials_embed, credentials_google, credentials_ldap, credentials_looker_openid, credentials_oidc, credentials_saml, credentials_totp, display_name, email, embed_group_space_id, group_ids, id, looker_versions, personal_folder_id, presumed_looker_employee, role_ids, sessions, verified_looker_employee, roles_externally_managed, allow_direct_roles, allow_normal_group_membership, allow_roles_from_normal_groups, embed_group_folder_id, url
/// can, avatar_url, avatar_url_without_sizing, credentials_api3, credentials_embed, credentials_google, credentials_ldap, credentials_looker_openid, credentials_oidc, credentials_saml, credentials_totp, display_name, email, embed_group_space_id, group_ids, id, looker_versions, personal_folder_id, presumed_looker_employee, role_ids, sessions, verified_looker_employee, roles_externally_managed, allow_direct_roles, allow_normal_group_membership, allow_roles_from_normal_groups, embed_group_folder_id, is_iam_admin, url
public class WriteUser : SdkModel
{
/// <summary>
Expand Down
146 changes: 139 additions & 7 deletions go/sdk/v4/methods.go

Large diffs are not rendered by default.

74 changes: 6 additions & 68 deletions go/sdk/v4/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

/*
391 API models: 244 Spec, 66 Request, 59 Write, 22 Enum
386 API models: 244 Spec, 60 Request, 60 Write, 22 Enum
*/

// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
Expand Down Expand Up @@ -1104,6 +1104,7 @@ type EmbedCookielessSessionAcquire struct {
ExternalGroupId *string `json:"external_group_id,omitempty"` // A unique value identifying an embed-exclusive group. Multiple embed users using the same `external_group_id` value will be able to share Looker content with each other. Content and embed users associated with the `external_group_id` will not be accessible to normal Looker users or embed users not associated with this `external_group_id`.
UserAttributes *map[string]interface{} `json:"user_attributes,omitempty"` // A dictionary of name-value pairs associating a Looker user attribute name with a value.
SessionReferenceToken *string `json:"session_reference_token,omitempty"` // Token referencing the embed session and is used to generate new authentication, navigation and api tokens.
EmbedDomain *string `json:"embed_domain,omitempty"` // The domain of the server embedding the Looker IFRAME. This is an alternative to specifying the domain in the embedded domain allow list in the Looker embed admin page.
}

type EmbedCookielessSessionAcquireResponse struct {
Expand Down Expand Up @@ -2398,13 +2399,6 @@ type RequestAllIntegrations struct {
IntegrationHubId *string `json:"integration_hub_id,omitempty"` // Filter to a specific provider
}

// Dynamically generated request type for all_lookml_models
type RequestAllLookmlModels struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Limit *int64 `json:"limit,omitempty"` // Number of results to return. (can be used with offset)
Offset *int64 `json:"offset,omitempty"` // Number of results to skip before returning any. (Defaults to 0 if not set when limit is used)
}

// Dynamically generated request type for all_roles
type RequestAllRoles struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Expand All @@ -2418,12 +2412,6 @@ type RequestAllScheduledPlans struct {
AllUsers *bool `json:"all_users,omitempty"` // Return scheduled plans belonging to all users (caller needs see_schedules permission)
}

// Dynamically generated request type for all_user_attributes
type RequestAllUserAttributes struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Sorts *string `json:"sorts,omitempty"` // Fields to order the results by. Sortable fields include: name, label
}

// Dynamically generated request type for all_users
type RequestAllUsers struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Expand Down Expand Up @@ -2864,34 +2852,6 @@ type RequestSearchGroups struct {
ExternallyOrphaned *bool `json:"externally_orphaned,omitempty"` // Match group externally_orphaned.
}

// Dynamically generated request type for search_groups_with_hierarchy
type RequestSearchGroupsWithHierarchy struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Limit *int64 `json:"limit,omitempty"` // Number of results to return (used with `offset`).
Offset *int64 `json:"offset,omitempty"` // Number of results to skip before returning any (used with `limit`).
Sorts *string `json:"sorts,omitempty"` // Fields to sort by.
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression
Id *string `json:"id,omitempty"` // Match group id.
Name *string `json:"name,omitempty"` // Match group name.
ExternalGroupId *string `json:"external_group_id,omitempty"` // Match group external_group_id.
ExternallyManaged *bool `json:"externally_managed,omitempty"` // Match group externally_managed.
ExternallyOrphaned *bool `json:"externally_orphaned,omitempty"` // Match group externally_orphaned.
}

// Dynamically generated request type for search_groups_with_roles
type RequestSearchGroupsWithRoles struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Limit *int64 `json:"limit,omitempty"` // Number of results to return (used with `offset`).
Offset *int64 `json:"offset,omitempty"` // Number of results to skip before returning any (used with `limit`).
Sorts *string `json:"sorts,omitempty"` // Fields to sort by.
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression
Id *string `json:"id,omitempty"` // Match group id.
Name *string `json:"name,omitempty"` // Match group name.
ExternalGroupId *string `json:"external_group_id,omitempty"` // Match group external_group_id.
ExternallyManaged *bool `json:"externally_managed,omitempty"` // Match group externally_managed.
ExternallyOrphaned *bool `json:"externally_orphaned,omitempty"` // Match group externally_orphaned.
}

// Dynamically generated request type for search_looks
type RequestSearchLooks struct {
Id *string `json:"id,omitempty"` // Match look id.
Expand Down Expand Up @@ -2927,19 +2887,6 @@ type RequestSearchModelSets struct {
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression.
}

// Dynamically generated request type for search_permission_sets
type RequestSearchPermissionSets struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Limit *int64 `json:"limit,omitempty"` // Number of results to return (used with `offset`).
Offset *int64 `json:"offset,omitempty"` // Number of results to skip before returning any (used with `limit`).
Sorts *string `json:"sorts,omitempty"` // Fields to sort by.
Id *string `json:"id,omitempty"` // Match permission set id.
Name *string `json:"name,omitempty"` // Match permission set name.
AllAccess *bool `json:"all_access,omitempty"` // Match permission sets by all_access status.
BuiltIn *bool `json:"built_in,omitempty"` // Match permission sets by built_in status.
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression.
}

// Dynamically generated request type for search_roles
type RequestSearchRoles struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Expand All @@ -2952,18 +2899,6 @@ type RequestSearchRoles struct {
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression.
}

// Dynamically generated request type for search_roles_with_user_count
type RequestSearchRolesWithUserCount struct {
Fields *string `json:"fields,omitempty"` // Requested fields.
Limit *int64 `json:"limit,omitempty"` // Number of results to return (used with `offset`).
Offset *int64 `json:"offset,omitempty"` // Number of results to skip before returning any (used with `limit`).
Sorts *string `json:"sorts,omitempty"` // Fields to sort by.
Id *string `json:"id,omitempty"` // Match role id.
Name *string `json:"name,omitempty"` // Match role name.
BuiltIn *bool `json:"built_in,omitempty"` // Match roles by built_in status.
FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression.
}

// Dynamically generated request type for search_themes
type RequestSearchThemes struct {
Id *string `json:"id,omitempty"` // Match theme id.
Expand Down Expand Up @@ -3367,6 +3302,7 @@ type Setting struct {
HostUrl *string `json:"host_url,omitempty"` // Change the base portion of your Looker instance URL setting
OverrideWarnings *bool `json:"override_warnings,omitempty"` // (Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings.
EmailDomainAllowlist *[]string `json:"email_domain_allowlist,omitempty"` // An array of Email Domain Allowlist of type string for Scheduled Content
EmbedCookielessV2 *bool `json:"embed_cookieless_v2,omitempty"` // Toggle cookieless embed setting
}

type SmtpNodeStatus struct {
Expand Down Expand Up @@ -3611,6 +3547,7 @@ type User struct {
AllowNormalGroupMembership *bool `json:"allow_normal_group_membership,omitempty"` // User can be a direct member of a normal Looker group.
AllowRolesFromNormalGroups *bool `json:"allow_roles_from_normal_groups,omitempty"` // User can inherit roles from a normal Looker group.
EmbedGroupFolderId *string `json:"embed_group_folder_id,omitempty"` // (Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login
IsIamAdmin *bool `json:"is_iam_admin,omitempty"` // User is an IAM Admin - only available in Looker (Google Cloud core)
Url *string `json:"url,omitempty"` // Link to get this item
}

Expand Down Expand Up @@ -4470,6 +4407,7 @@ type WriteSetting struct {
HostUrl *string `json:"host_url,omitempty"` // Change the base portion of your Looker instance URL setting
OverrideWarnings *bool `json:"override_warnings,omitempty"` // (Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings.
EmailDomainAllowlist *[]string `json:"email_domain_allowlist,omitempty"` // An array of Email Domain Allowlist of type string for Scheduled Content
EmbedCookielessV2 *bool `json:"embed_cookieless_v2,omitempty"` // Toggle cookieless embed setting
}

// Dynamic writeable type for SshServer removes:
Expand Down Expand Up @@ -4500,7 +4438,7 @@ type WriteTheme struct {
}

// Dynamic writeable type for User removes:
// can, avatar_url, avatar_url_without_sizing, credentials_api3, credentials_embed, credentials_google, credentials_ldap, credentials_looker_openid, credentials_oidc, credentials_saml, credentials_totp, display_name, email, embed_group_space_id, group_ids, id, looker_versions, personal_folder_id, presumed_looker_employee, role_ids, sessions, verified_looker_employee, roles_externally_managed, allow_direct_roles, allow_normal_group_membership, allow_roles_from_normal_groups, embed_group_folder_id, url
// can, avatar_url, avatar_url_without_sizing, credentials_api3, credentials_embed, credentials_google, credentials_ldap, credentials_looker_openid, credentials_oidc, credentials_saml, credentials_totp, display_name, email, embed_group_space_id, group_ids, id, looker_versions, personal_folder_id, presumed_looker_employee, role_ids, sessions, verified_looker_employee, roles_externally_managed, allow_direct_roles, allow_normal_group_membership, allow_roles_from_normal_groups, embed_group_folder_id, is_iam_admin, url
type WriteUser struct {
CredentialsEmail *WriteCredentialsEmail `json:"credentials_email,omitempty"` // Dynamic writeable type for CredentialsEmail removes:
// can, created_at, user_id, is_disabled, logged_in_at, password_reset_url, account_setup_url, type, url, user_url
Expand Down
Loading

0 comments on commit e0b6597

Please sign in to comment.