diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml index 19e6e8ef1..607d44398 100644 --- a/.github/workflows/go-ci.yml +++ b/.github/workflows/go-ci.yml @@ -37,7 +37,7 @@ jobs: matrix: os: - ubuntu - go-version: [1.17.6, 1.16.13] + go-version: [1.23.0, 1.24.4] steps: - name: Cancel Previous Runs @@ -165,7 +165,7 @@ jobs: - name: Install Go ${{ matrix.go-version }} uses: actions/setup-go@v5 with: - go-version: 1.17.6 + go-version: 1.23.0 check-latest: true - name: Install dependencies diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 67ef77b18..e71bb79a8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,24 +1,24 @@ { - ".": "25.10.0", - "packages/api-explorer": "0.9.77", - "packages/code-editor": "0.1.44", - "packages/extension-api-explorer": "22.21.34", - "packages/extension-sdk": "25.10.0", - "packages/extension-sdk-react": "25.10.0", - "packages/extension-utils": "0.1.54", - "packages/hackathon": "22.21.36", - "packages/run-it": "0.9.77", - "packages/sdk": "25.10.0", - "packages/sdk-codegen": "21.9.13", - "packages/sdk-codegen-scripts": "21.5.34", - "packages/sdk-codegen-utils": "21.0.24", - "packages/sdk-node": "25.10.0", + ".": "25.16.0", + "packages/api-explorer": "0.9.78", + "packages/code-editor": "0.1.45", + "packages/extension-api-explorer": "22.21.35", + "packages/extension-sdk": "25.16.0", + "packages/extension-sdk-react": "25.16.0", + "packages/extension-utils": "0.1.55", + "packages/hackathon": "22.21.37", + "packages/run-it": "0.9.78", + "packages/sdk": "25.16.0", + "packages/sdk-codegen": "21.10.0", + "packages/sdk-codegen-scripts": "21.5.35", + "packages/sdk-codegen-utils": "21.0.25", + "packages/sdk-node": "25.16.0", "packages/sdk-rtl": "21.6.4", - "packages/wholly-artifact": "0.1.35", - "packages/wholly-sheet": "0.5.73", - "python": "25.10.0", - "packages/extension-playground": "1.0.34", - "packages/extension-tile-playground": "1.1.21", - "packages/embed-services": "25.10.0", - "packages/embed-components": "25.10.0" + "packages/wholly-artifact": "0.1.36", + "packages/wholly-sheet": "0.5.74", + "python": "25.16.0", + "packages/extension-playground": "1.0.35", + "packages/extension-tile-playground": "1.1.22", + "packages/embed-services": "25.16.0", + "packages/embed-components": "25.16.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e5e8b04..abd127ffe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v25.10.0...sdk-codegen-all-v25.16.0) (2025-09-17) + + +### Features + +* generate SDKs for Looker 25.14 ([#1600](https://github.com/looker-open-source/sdk-codegen/issues/1600)) ([feff16e](https://github.com/looker-open-source/sdk-codegen/commit/feff16eca79224737f991fc903790473f163c28c)) +* generate SDKs for Looker 25.16 ([#1605](https://github.com/looker-open-source/sdk-codegen/issues/1605)) ([5792b41](https://github.com/looker-open-source/sdk-codegen/commit/5792b41311b75e1841561e53e13362f8f473bf3c)) +* **go:** Expose session object in Go SDK ([#1602](https://github.com/looker-open-source/sdk-codegen/issues/1602)) ([6afa715](https://github.com/looker-open-source/sdk-codegen/commit/6afa7158d6786994b7f2592e634c95f2723c7f8a)) + + +### Bug Fixes + +* fixed bug in go example ([#1595](https://github.com/looker-open-source/sdk-codegen/issues/1595)) ([6e45409](https://github.com/looker-open-source/sdk-codegen/commit/6e454098089a27053f4b26d376fdff8716de6929)) + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v25.8.0...sdk-codegen-all-v25.10.0) (2025-06-20) diff --git a/csharp/rtl/Constants.cs b/csharp/rtl/Constants.cs index d1f16fdb7..f7252aca7 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.10"; + public const string LookerVersion = "25.16"; 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 90678041a..d172f993f 100644 --- a/csharp/sdk/4.0/methods.cs +++ b/csharp/sdk/4.0/methods.cs @@ -21,7 +21,7 @@ /// SOFTWARE. /// -/// 471 API methods +/// 472 API methods #nullable enable using System; @@ -3144,11 +3144,12 @@ public async Task> ssh_public_key( /// ContentFavorite[] Favorite Content (application/json) /// /// Match content favorite id(s) - /// Match user id(s).To create a list of multiple ids, use commas as separators - /// Match content metadata id(s).To create a list of multiple ids, use commas as separators - /// Match dashboard id(s).To create a list of multiple ids, use commas as separators - /// Match look id(s).To create a list of multiple ids, use commas as separators - /// Match board id(s).To create a list of multiple ids, use commas as separators + /// Match user id(s). To create a list of multiple ids, use commas as separators + /// Match content metadata id(s). To create a list of multiple ids, use commas as separators + /// Match dashboard id(s). To create a list of multiple ids, use commas as separators + /// Match look id(s). To create a list of multiple ids, use commas as separators + /// Match board id(s). To create a list of multiple ids, use commas as separators + /// 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. /// Number of results to return. (used with offset) /// Number of results to skip before returning any. (used with limit) /// Fields to sort by. @@ -3161,6 +3162,7 @@ public async Task> 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, @@ -3175,6 +3177,7 @@ public async Task> 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 }, @@ -6215,14 +6218,14 @@ public async Task> connection_cost_estimate /// ### Fetches a CI Run. /// - /// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun + /// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun /// - /// ProjectCIRun CI Run (application/json) + /// ProjectRun CI Run (application/json) /// /// Project Id /// Run Id /// Requested fields - public async Task> get_ci_run( + public async Task> get_ci_run( string project_id, string run_id, string? fields = null, @@ -6230,7 +6233,7 @@ public async Task> get_ci_run( { project_id = SdkUtils.EncodeParam(project_id); run_id = SdkUtils.EncodeParam(run_id); - return await AuthRequest(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values { + return await AuthRequest(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values { { "fields", fields }},null,options); } @@ -9559,6 +9562,7 @@ public async Task> create_user( /// Combine given search criteria in a boolean OR expression /// Search for users who have access to this content_metadata item /// Search for users who are direct members of this group + /// Search for users who can manage API3 credentials public async Task> search_users( string? fields = null, long? page = null, @@ -9576,6 +9580,7 @@ public async Task> 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(HttpMethod.Get, "/users/search", new Values { @@ -9594,7 +9599,8 @@ public async Task> 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 @@ -10069,6 +10075,30 @@ public async Task> 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 + /// + /// CredentialsApi3 API Credential (application/json) + /// + /// Id of user + /// Id of API Credential + /// Requested fields. + public async Task> 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(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). diff --git a/csharp/sdk/4.0/models.cs b/csharp/sdk/4.0/models.cs index 521fdd4a3..fb3d5ad2c 100644 --- a/csharp/sdk/4.0/models.cs +++ b/csharp/sdk/4.0/models.cs @@ -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; @@ -504,38 +504,6 @@ public class CIGitState : SdkModel public string? target { get; set; } = null; } -public class CIRun : SdkModel -{ - /// ID of the CI run (read-only) - public string? run_id { get; set; } = null; - /// Time and date that the CI run was initiated (read-only) - public DateTime? created_at { get; set; } = null; - /// Time and date that the CI run began executing (read-only) - public DateTime? started_at { get; set; } = null; - /// Time and date that the CI run completed (read-only) - public DateTime? finished_at { get; set; } = null; - /// Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) - public string? status_url { get; set; } = null; - /// Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) - public string? status { get; set; } = null; - /// Git service for CI run (e.g. GitHub) (read-only) - public string? git_service { get; set; } = null; - public CIGitState? git_state { get; set; } - public CIRunResult? result { get; set; } - public CIScheduleTrigger? schedule { get; set; } - /// Git branch that the CI run compares against during validation, used for incremental runs (read-only) - public string? target_branch { get; set; } = null; - /// Name of the CI suite (read-only) - public string? title { get; set; } = null; - /// Trigger for CI run (unknown, manual, schedule, change_request) (read-only) - public string? trigger { get; set; } = null; - public CIChangeRequest? change_request { get; set; } - /// ID of the CI suite (read-only) - public string? suite_id { get; set; } = null; - /// Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) - public string? username { get; set; } = null; -} - public class CIRunResult : SdkModel { public SqlValidatorResult? sql_result { get; set; } @@ -668,6 +636,9 @@ public class ContentFavorite : SdkModel public DashboardBase? dashboard { get; set; } /// Id of a board (read-only) public string? board_id { get; set; } = null; + /// Id of a lookml dashboard (read-only) + public string? lookml_dashboard_id { get; set; } = null; + public DashboardBase? lookml_dashboard { get; set; } } public class ContentMeta : SdkModel @@ -686,6 +657,10 @@ public class ContentMeta : SdkModel public string? look_id { get; set; } = null; /// Id of associated folder when content_type is "space" (read-only) public string? folder_id { get; set; } = null; + /// Id of associated board when content_type is "board" (read-only) + public string? homepage_id { get; set; } = null; + /// Id of associated agent when content_type is "agent" (read-only) + public string? agent_id { get; set; } = null; /// Content Type ("dashboard", "look", or "folder") (read-only) public string? content_type { get; set; } = null; /// Whether content inherits its access levels from parent @@ -1117,6 +1092,8 @@ public class CreateCredentialsApi3 : SdkModel public bool? is_disabled { get; set; } = null; /// Short name for the type of this kind of credential (read-only) public string? type { get; set; } = null; + /// User defined purpose for this credential. + public string? purpose { get; set; } = null; /// API key client_secret (read-only) public string? client_secret { get; set; } = null; /// Link to get this item (read-only) @@ -1229,6 +1206,8 @@ public class CredentialsApi3 : SdkModel public bool? is_disabled { get; set; } = null; /// Short name for the type of this kind of credential (read-only) public string? type { get; set; } = null; + /// User defined purpose for this credential. + public string? purpose { get; set; } = null; /// Link to get this item (read-only) public string? url { get; set; } = null; } @@ -1891,6 +1870,8 @@ public class DBConnection : SdkModel public bool? uses_key_pair_auth { get; set; } = null; /// Whether the integration uses the oauth instance account. (read-only) public bool? uses_instance_oauth { get; set; } = null; + /// Whether the connection uses service authentication certificate. (read-only) + public bool? uses_service_auth { get; set; } = null; /// (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). public string? certificate { get; set; } = null; /// (Write-Only) Certificate keyfile type - .json, .p8 or .p12 @@ -4553,11 +4534,6 @@ public class Project : SdkModel public string? dependency_status { get; set; } = null; } -public class ProjectCIRun : SdkModel -{ - public CIRun? run { get; set; } -} - public class ProjectError : SdkModel { /// A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language (read-only) @@ -4607,6 +4583,11 @@ public class ProjectFile : SdkModel public GitStatus? git_status { get; set; } } +public class ProjectRun : SdkModel +{ + public Run? run { get; set; } +} + public class ProjectValidation : SdkModel { /// A list of project errors (read-only) @@ -4901,11 +4882,11 @@ public enum ResultFormat public class ResultMakerFilterables : SdkModel { - /// The model this filterable comes from (used for field suggestions). (read-only) + /// The model this filterable comes from (used for field suggestions). public string? model { get; set; } = null; - /// The view this filterable comes from (used for field suggestions). (read-only) + /// The view this filterable comes from (used for field suggestions). public string? view { get; set; } = null; - /// The name of the filterable thing (Query or Merged Results). (read-only) + /// The name of the filterable thing (Query or Merged Results). public string? name { get; set; } = null; /// array of dashboard_filter_name: and field: objects. (read-only) public ResultMakerFilterablesListen[]? listen { get; set; } = null; @@ -4923,22 +4904,22 @@ public class ResultMakerWithIdVisConfigAndDynamicFields : SdkModel { /// Unique Id. (read-only) public string? id { get; set; } = null; - /// JSON string of dynamic field information. (read-only) + /// JSON string of dynamic field information. public string? dynamic_fields { get; set; } = null; - /// array of items that can be filtered and information about them. (read-only) + /// array of items that can be filtered and information about them. public ResultMakerFilterables[]? filterables { get; set; } = null; - /// Sorts of the constituent Look, Query, or Merge Query (read-only) + /// Sorts of the constituent Look, Query, or Merge Query public string[]? sorts { get; set; } = null; - /// ID of merge result if this is a merge_result. (read-only) + /// ID of merge result if this is a merge_result. public string? merge_result_id { get; set; } = null; - /// Total of the constituent Look, Query, or Merge Query (read-only) + /// Total of the constituent Look, Query, or Merge Query public bool? total { get; set; } = null; /// ID of query if this is a query. (read-only) public string? query_id { get; set; } = null; - /// ID of SQL Query if this is a SQL Runner Query (read-only) + /// ID of SQL Query if this is a SQL Runner Query public string? sql_query_id { get; set; } = null; public Query? query { get; set; } - /// Vis config of the constituent Query, or Merge Query. (read-only) + /// Vis config of the constituent Query, or Merge Query. public StringDictionary? vis_config { get; set; } = null; } @@ -4984,6 +4965,38 @@ public class RoleSearch : SdkModel public string? users_url { get; set; } = null; } +public class Run : SdkModel +{ + /// ID of the CI run (read-only) + public string? run_id { get; set; } = null; + /// Time and date that the CI run was initiated (read-only) + public DateTime? created_at { get; set; } = null; + /// Time and date that the CI run began executing (read-only) + public DateTime? started_at { get; set; } = null; + /// Time and date that the CI run completed (read-only) + public DateTime? finished_at { get; set; } = null; + /// Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) + public string? status_url { get; set; } = null; + /// Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) + public string? status { get; set; } = null; + /// Git service for CI run (e.g. GitHub) (read-only) + public string? git_service { get; set; } = null; + public CIGitState? git_state { get; set; } + public CIRunResult? result { get; set; } + public CIScheduleTrigger? schedule { get; set; } + /// Git branch that the CI run compares against during validation, used for incremental runs (read-only) + public string? target_branch { get; set; } = null; + /// Name of the CI suite (read-only) + public string? title { get; set; } = null; + /// Trigger for CI run (unknown, manual, schedule, change_request) (read-only) + public string? trigger { get; set; } = null; + public CIChangeRequest? change_request { get; set; } + /// ID of the CI suite (read-only) + public string? suite_id { get; set; } = null; + /// Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) + public string? username { get; set; } = null; +} + public class RunningQueries : SdkModel { /// Operations the current user is able to perform on this object (read-only) @@ -6010,8 +6023,10 @@ public class User : SdkModel public bool? allow_roles_from_normal_groups { get; set; } = null; /// (Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login (read-only) public string? embed_group_folder_id { get; set; } = null; - /// User is an IAM Admin - only available in Looker (Google Cloud core) (read-only) + /// 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) public bool? is_iam_admin { get; set; } = null; + /// Indicates if the user can manage API3 credentials + public bool? can_manage_api3_creds { get; set; } = null; /// Link to get this item (read-only) public string? url { get; set; } = null; } @@ -6408,7 +6423,7 @@ public class WriteColorCollection : SdkModel } /// Dynamic writeable type for ContentFavorite removes: -/// id, look_id, dashboard_id, board_id +/// id, look_id, dashboard_id, board_id, lookml_dashboard_id public class WriteContentFavorite : SdkModel { /// User Id which owns this ContentFavorite @@ -6425,10 +6440,15 @@ public class WriteContentFavorite : SdkModel /// can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer /// public WriteDashboardBase? dashboard { get; set; } + /// + /// Dynamic writeable type for DashboardBase removes: + /// can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + /// + public WriteDashboardBase? lookml_dashboard { get; set; } } /// 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 { /// Whether content inherits its access levels from parent @@ -6486,6 +6506,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 +{ + /// User defined purpose for this credential. + 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 @@ -6599,7 +6627,7 @@ public class WriteDashboardElement : SdkModel public string? refresh_interval { get; set; } = null; /// /// Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - /// id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + /// id, query_id /// public WriteResultMakerWithIdVisConfigAndDynamicFields? result_maker { get; set; } /// ID of the ResultMakerLookup entry. @@ -6705,7 +6733,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 { /// Name of the connection. Also used as the unique identifier @@ -7381,14 +7409,28 @@ public class WriteRepositoryCredential : SdkModel } /// Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: -/// id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config +/// id, query_id public class WriteResultMakerWithIdVisConfigAndDynamicFields : SdkModel { + /// JSON string of dynamic field information. + public string? dynamic_fields { get; set; } = null; + /// array of items that can be filtered and information about them. + public ResultMakerFilterables[]? filterables { get; set; } = null; + /// Sorts of the constituent Look, Query, or Merge Query + public string[]? sorts { get; set; } = null; + /// ID of merge result if this is a merge_result. + public string? merge_result_id { get; set; } = null; + /// Total of the constituent Look, Query, or Merge Query + public bool? total { get; set; } = null; + /// ID of SQL Query if this is a SQL Runner Query + public string? sql_query_id { get; set; } = null; /// /// Dynamic writeable type for Query removes: /// can, id, slug, share_url, expanded_share_url, url, has_table_calculations /// public WriteQuery? query { get; set; } + /// Vis config of the constituent Query, or Merge Query. + public StringDictionary? vis_config { get; set; } = null; } /// Dynamic writeable type for Role removes: @@ -7673,6 +7715,8 @@ public class WriteUser : SdkModel public bool? models_dir_validated { get; set; } = null; /// Per user dictionary of undocumented state information owned by the Looker UI. public StringDictionary? ui_state { get; set; } = null; + /// Indicates if the user can manage API3 credentials + public bool? can_manage_api3_creds { get; set; } = null; } /// Dynamic writeable type for UserAttribute removes: diff --git a/go/example/main.go b/go/example/main.go index 16adec344..1a7cef431 100644 --- a/go/example/main.go +++ b/go/example/main.go @@ -48,7 +48,7 @@ func printAboutMe(sdk *v4.LookerSDK) { fmt.Printf("Error getting myself %v\n", err) } if len(users) != 1 { - fmt.Printf("Found %d users with my email expected 1\n") + fmt.Printf("Found %d users with my email expected 1\n", len(users)) } } diff --git a/go/go.mod b/go/go.mod index 9cd4fcadf..2b6bdbb79 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,9 +1,16 @@ module github.com/looker-open-source/sdk-codegen/go -go 1.14 +go 1.23.0 require ( github.com/json-iterator/go v1.1.12 - golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect + golang.org/x/oauth2 v0.27.0 gopkg.in/ini.v1 v1.61.0 ) + +require ( + github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/smartystreets/goconvey v1.8.1 // indirect + github.com/stretchr/testify v1.4.0 // indirect +) diff --git a/go/go.sum b/go/go.sum index 7e9063fc5..0aa548b27 100644 --- a/go/go.sum +++ b/go/go.sum @@ -1,376 +1,33 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g= +github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/smarty/assertions v1.15.0 h1:cR//PqUBUiQRakZWqBiFFQ9wb8emQGDb0HeGdqGByCY= +github.com/smarty/assertions v1.15.0/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec= +github.com/smartystreets/goconvey v1.8.1 h1:qGjIddxOk4grTu9JPOU31tVfq3cNdBlNa5sSznIX1xY= +github.com/smartystreets/goconvey v1.8.1/go.mod h1:+/u4qLyY6x1jReYOp7GOM2FSt8aP9CzCZL03bI28W60= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= +golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/ini.v1 v1.61.0 h1:LBCdW4FmFYL4s/vDZD1RQYX7oAR6IjujCYgMdbHBR10= gopkg.in/ini.v1 v1.61.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/go/sdk/v4/methods.go b/go/sdk/v4/methods.go index c80a182e2..3e9a01546 100644 --- a/go/sdk/v4/methods.go +++ b/go/sdk/v4/methods.go @@ -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 @@ -35,22 +35,23 @@ package v4 import ( "fmt" - "github.com/looker-open-source/sdk-codegen/go/rtl" "net/url" "time" + + "github.com/looker-open-source/sdk-codegen/go/rtl" ) -type authSessionDoer interface { +type AuthSessionDoer interface { Do(result interface{}, method, ver, path string, reqPars map[string]interface{}, body interface{}, options *rtl.ApiSettings) error } type LookerSDK struct { - session authSessionDoer + AuthSession AuthSessionDoer } -func NewLookerSDK(session authSessionDoer) *LookerSDK { +func NewLookerSDK(session AuthSessionDoer) *LookerSDK { return &LookerSDK{ - session: session, + AuthSession: session, } } @@ -63,7 +64,7 @@ func (l *LookerSDK) FollowAlert( alertId string, options *rtl.ApiSettings) error { alertId = url.PathEscape(alertId) - err := l.session.Do(nil, "POST", "/4.0", fmt.Sprintf("/alerts/%v/follow", alertId), nil, nil, options) + err := l.AuthSession.Do(nil, "POST", "/4.0", fmt.Sprintf("/alerts/%v/follow", alertId), nil, nil, options) return err } @@ -75,7 +76,7 @@ func (l *LookerSDK) UnfollowAlert( alertId string, options *rtl.ApiSettings) error { alertId = url.PathEscape(alertId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/alerts/%v/follow", alertId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/alerts/%v/follow", alertId), nil, nil, options) return err } @@ -86,7 +87,7 @@ func (l *LookerSDK) UnfollowAlert( func (l *LookerSDK) SearchAlerts(request RequestSearchAlerts, options *rtl.ApiSettings) ([]Alert, error) { var result []Alert - err := l.session.Do(&result, "GET", "/4.0", "/alerts/search", map[string]interface{}{"limit": request.Limit, "offset": request.Offset, "group_by": request.GroupBy, "fields": request.Fields, "disabled": request.Disabled, "frequency": request.Frequency, "condition_met": request.ConditionMet, "last_run_start": request.LastRunStart, "last_run_end": request.LastRunEnd, "all_owners": request.AllOwners}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/alerts/search", map[string]interface{}{"limit": request.Limit, "offset": request.Offset, "group_by": request.GroupBy, "fields": request.Fields, "disabled": request.Disabled, "frequency": request.Frequency, "condition_met": request.ConditionMet, "last_run_start": request.LastRunStart, "last_run_end": request.LastRunEnd, "all_owners": request.AllOwners}, nil, options) return result, err } @@ -99,7 +100,7 @@ func (l *LookerSDK) GetAlert( options *rtl.ApiSettings) (Alert, error) { alertId = url.PathEscape(alertId) var result Alert - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, nil, options) return result, err } @@ -115,7 +116,7 @@ func (l *LookerSDK) UpdateAlert( options *rtl.ApiSettings) (Alert, error) { alertId = url.PathEscape(alertId) var result Alert - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, body, options) return result, err } @@ -131,7 +132,7 @@ func (l *LookerSDK) UpdateAlertField( options *rtl.ApiSettings) (Alert, error) { alertId = url.PathEscape(alertId) var result Alert - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, body, options) return result, err } @@ -143,7 +144,7 @@ func (l *LookerSDK) DeleteAlert( alertId string, options *rtl.ApiSettings) error { alertId = url.PathEscape(alertId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/alerts/%v", alertId), nil, nil, options) return err } @@ -191,7 +192,7 @@ func (l *LookerSDK) CreateAlert( body WriteAlert, options *rtl.ApiSettings) (Alert, error) { var result Alert - err := l.session.Do(&result, "POST", "/4.0", "/alerts", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/alerts", nil, body, options) return result, err } @@ -204,7 +205,7 @@ func (l *LookerSDK) EnqueueAlert( force bool, options *rtl.ApiSettings) error { alertId = url.PathEscape(alertId) - err := l.session.Do(nil, "POST", "/4.0", fmt.Sprintf("/alerts/%v/enqueue", alertId), map[string]interface{}{"force": force}, nil, options) + err := l.AuthSession.Do(nil, "POST", "/4.0", fmt.Sprintf("/alerts/%v/enqueue", alertId), map[string]interface{}{"force": force}, nil, options) return err } @@ -217,7 +218,7 @@ func (l *LookerSDK) EnqueueAlert( func (l *LookerSDK) AlertNotifications(request RequestAlertNotifications, options *rtl.ApiSettings) ([]AlertNotifications, error) { var result []AlertNotifications - err := l.session.Do(&result, "GET", "/4.0", "/alert_notifications", map[string]interface{}{"limit": request.Limit, "offset": request.Offset}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/alert_notifications", map[string]interface{}{"limit": request.Limit, "offset": request.Offset}, nil, options) return result, err } @@ -232,7 +233,7 @@ func (l *LookerSDK) ReadAlertNotification( options *rtl.ApiSettings) (AlertNotifications, error) { alertNotificationId = url.PathEscape(alertNotificationId) var result AlertNotifications - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/alert_notifications/%v", alertNotificationId), nil, nil, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/alert_notifications/%v", alertNotificationId), nil, nil, options) return result, err } @@ -274,7 +275,7 @@ func (l *LookerSDK) ReadAlertNotification( func (l *LookerSDK) Login(request RequestLogin, options *rtl.ApiSettings) (AccessToken, error) { var result AccessToken - err := l.session.Do(&result, "POST", "/4.0", "/login", map[string]interface{}{"client_id": request.ClientId, "client_secret": request.ClientSecret}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/login", map[string]interface{}{"client_id": request.ClientId, "client_secret": request.ClientSecret}, nil, options) return result, err } @@ -305,7 +306,7 @@ func (l *LookerSDK) LoginUser( options *rtl.ApiSettings) (AccessToken, error) { userId = url.PathEscape(userId) var result AccessToken - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/login/%v", userId), map[string]interface{}{"associative": associative}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/login/%v", userId), map[string]interface{}{"associative": associative}, nil, options) return result, err } @@ -316,7 +317,7 @@ func (l *LookerSDK) LoginUser( func (l *LookerSDK) Logout( options *rtl.ApiSettings) (string, error) { var result string - err := l.session.Do(&result, "DELETE", "/4.0", "/logout", nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", "/logout", nil, nil, options) return result, err } @@ -334,7 +335,7 @@ func (l *LookerSDK) ArtifactUsage( fields string, options *rtl.ApiSettings) (ArtifactUsage, error) { var result ArtifactUsage - err := l.session.Do(&result, "GET", "/4.0", "/artifact/usage", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/artifact/usage", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -347,7 +348,7 @@ func (l *LookerSDK) ArtifactUsage( func (l *LookerSDK) ArtifactNamespaces(request RequestArtifactNamespaces, options *rtl.ApiSettings) ([]ArtifactNamespace, error) { var result []ArtifactNamespace - err := l.session.Do(&result, "GET", "/4.0", "/artifact/namespaces", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/artifact/namespaces", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset}, nil, options) return result, err } @@ -365,7 +366,7 @@ func (l *LookerSDK) ArtifactValue( options *rtl.ApiSettings) (string, error) { namespace = url.PathEscape(namespace) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v/value", namespace), map[string]interface{}{"key": key}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v/value", namespace), map[string]interface{}{"key": key}, nil, options) return result, err } @@ -379,7 +380,7 @@ func (l *LookerSDK) PurgeArtifacts( namespace string, options *rtl.ApiSettings) error { namespace = url.PathEscape(namespace) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/artifact/%v/purge", namespace), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/artifact/%v/purge", namespace), nil, nil, options) return err } @@ -407,7 +408,7 @@ func (l *LookerSDK) SearchArtifacts(request RequestSearchArtifacts, options *rtl.ApiSettings) ([]Artifact, error) { request.Namespace = url.PathEscape(request.Namespace) var result []Artifact - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v/search", request.Namespace), map[string]interface{}{"fields": request.Fields, "key": request.Key, "user_ids": request.UserIds, "min_size": request.MinSize, "max_size": request.MaxSize, "limit": request.Limit, "offset": request.Offset, "tally": request.Tally}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v/search", request.Namespace), map[string]interface{}{"fields": request.Fields, "key": request.Key, "user_ids": request.UserIds, "min_size": request.MinSize, "max_size": request.MaxSize, "limit": request.Limit, "offset": request.Offset, "tally": request.Tally}, nil, options) return result, err } @@ -423,7 +424,7 @@ func (l *LookerSDK) Artifact(request RequestArtifact, options *rtl.ApiSettings) ([]Artifact, error) { request.Namespace = url.PathEscape(request.Namespace) var result []Artifact - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v", request.Namespace), map[string]interface{}{"key": request.Key, "fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "tally": request.Tally}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/artifact/%v", request.Namespace), map[string]interface{}{"key": request.Key, "fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "tally": request.Tally}, nil, options) return result, err } @@ -440,7 +441,7 @@ func (l *LookerSDK) DeleteArtifact( key string, options *rtl.ApiSettings) error { namespace = url.PathEscape(namespace) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/artifact/%v", namespace), map[string]interface{}{"key": key}, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/artifact/%v", namespace), map[string]interface{}{"key": key}, nil, options) return err } @@ -482,7 +483,7 @@ func (l *LookerSDK) UpdateArtifacts( options *rtl.ApiSettings) ([]Artifact, error) { namespace = url.PathEscape(namespace) var result []Artifact - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/artifacts/%v", namespace), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/artifacts/%v", namespace), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -502,7 +503,7 @@ func (l *LookerSDK) CreateEmbedSecret( body WriteEmbedSecret, options *rtl.ApiSettings) (EmbedSecret, error) { var result EmbedSecret - err := l.session.Do(&result, "POST", "/4.0", "/embed_config/secrets", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/embed_config/secrets", nil, body, options) return result, err } @@ -517,7 +518,7 @@ func (l *LookerSDK) DeleteEmbedSecret( options *rtl.ApiSettings) (string, error) { embedSecretId = url.PathEscape(embedSecretId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/embed_config/secrets/%v", embedSecretId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/embed_config/secrets/%v", embedSecretId), nil, nil, options) return result, err } @@ -571,7 +572,7 @@ func (l *LookerSDK) CreateSsoEmbedUrl( body EmbedSsoParams, options *rtl.ApiSettings) (EmbedUrlResponse, error) { var result EmbedUrlResponse - err := l.session.Do(&result, "POST", "/4.0", "/embed/sso_url", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/embed/sso_url", nil, body, options) return result, err } @@ -607,7 +608,7 @@ func (l *LookerSDK) CreateEmbedUrlAsMe( body EmbedParams, options *rtl.ApiSettings) (EmbedUrlResponse, error) { var result EmbedUrlResponse - err := l.session.Do(&result, "POST", "/4.0", "/embed/token_url/me", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/embed/token_url/me", nil, body, options) return result, err } @@ -619,7 +620,7 @@ func (l *LookerSDK) ValidateEmbedUrl( url string, options *rtl.ApiSettings) (EmbedUrlResponse, error) { var result EmbedUrlResponse - err := l.session.Do(&result, "GET", "/4.0", "/embed/sso/validate", map[string]interface{}{"url": url}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/embed/sso/validate", map[string]interface{}{"url": url}, nil, options) return result, err } @@ -662,7 +663,7 @@ func (l *LookerSDK) AcquireEmbedCookielessSession( body EmbedCookielessSessionAcquire, options *rtl.ApiSettings) (EmbedCookielessSessionAcquireResponse, error) { var result EmbedCookielessSessionAcquireResponse - err := l.session.Do(&result, "POST", "/4.0", "/embed/cookieless_session/acquire", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/embed/cookieless_session/acquire", nil, body, options) return result, err } @@ -681,7 +682,7 @@ func (l *LookerSDK) DeleteEmbedCookielessSession( options *rtl.ApiSettings) (string, error) { sessionReferenceToken = url.PathEscape(sessionReferenceToken) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/embed/cookieless_session/%v", sessionReferenceToken), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/embed/cookieless_session/%v", sessionReferenceToken), nil, nil, options) return result, err } @@ -708,7 +709,7 @@ func (l *LookerSDK) GenerateTokensForCookielessSession( body EmbedCookielessSessionGenerateTokens, options *rtl.ApiSettings) (EmbedCookielessSessionGenerateTokensResponse, error) { var result EmbedCookielessSessionGenerateTokensResponse - err := l.session.Do(&result, "PUT", "/4.0", "/embed/cookieless_session/generate_tokens", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/embed/cookieless_session/generate_tokens", nil, body, options) return result, err } @@ -736,7 +737,7 @@ func (l *LookerSDK) GenerateTokensForCookielessSession( func (l *LookerSDK) LdapConfig( options *rtl.ApiSettings) (LDAPConfig, error) { var result LDAPConfig - err := l.session.Do(&result, "GET", "/4.0", "/ldap_config", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/ldap_config", nil, nil, options) return result, err } @@ -760,7 +761,7 @@ func (l *LookerSDK) UpdateLdapConfig( body WriteLDAPConfig, options *rtl.ApiSettings) (LDAPConfig, error) { var result LDAPConfig - err := l.session.Do(&result, "PATCH", "/4.0", "/ldap_config", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/ldap_config", nil, body, options) return result, err } @@ -793,7 +794,7 @@ func (l *LookerSDK) TestLdapConfigConnection( body WriteLDAPConfig, options *rtl.ApiSettings) (LDAPConfigTestResult, error) { var result LDAPConfigTestResult - err := l.session.Do(&result, "PUT", "/4.0", "/ldap_config/test_connection", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/ldap_config/test_connection", nil, body, options) return result, err } @@ -828,7 +829,7 @@ func (l *LookerSDK) TestLdapConfigAuth( body WriteLDAPConfig, options *rtl.ApiSettings) (LDAPConfigTestResult, error) { var result LDAPConfigTestResult - err := l.session.Do(&result, "PUT", "/4.0", "/ldap_config/test_auth", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/ldap_config/test_auth", nil, body, options) return result, err } @@ -850,7 +851,7 @@ func (l *LookerSDK) TestLdapConfigUserInfo( body WriteLDAPConfig, options *rtl.ApiSettings) (LDAPConfigTestResult, error) { var result LDAPConfigTestResult - err := l.session.Do(&result, "PUT", "/4.0", "/ldap_config/test_user_info", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/ldap_config/test_user_info", nil, body, options) return result, err } @@ -872,7 +873,7 @@ func (l *LookerSDK) TestLdapConfigUserAuth( body WriteLDAPConfig, options *rtl.ApiSettings) (LDAPConfigTestResult, error) { var result LDAPConfigTestResult - err := l.session.Do(&result, "PUT", "/4.0", "/ldap_config/test_user_auth", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/ldap_config/test_user_auth", nil, body, options) return result, err } @@ -885,7 +886,7 @@ func (l *LookerSDK) RegisterMobileDevice( body WriteMobileToken, options *rtl.ApiSettings) (MobileToken, error) { var result MobileToken - err := l.session.Do(&result, "POST", "/4.0", "/mobile/device", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/mobile/device", nil, body, options) return result, err } @@ -898,7 +899,7 @@ func (l *LookerSDK) UpdateMobileDeviceRegistration( options *rtl.ApiSettings) (MobileToken, error) { deviceId = url.PathEscape(deviceId) var result MobileToken - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/mobile/device/%v", deviceId), nil, nil, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/mobile/device/%v", deviceId), nil, nil, options) return result, err } @@ -910,7 +911,7 @@ func (l *LookerSDK) DeregisterMobileDevice( deviceId string, options *rtl.ApiSettings) error { deviceId = url.PathEscape(deviceId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/mobile/device/%v", deviceId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/mobile/device/%v", deviceId), nil, nil, options) return err } @@ -928,7 +929,7 @@ func (l *LookerSDK) AllOauthClientApps( fields string, options *rtl.ApiSettings) ([]OauthClientApp, error) { var result []OauthClientApp - err := l.session.Do(&result, "GET", "/4.0", "/oauth_client_apps", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/oauth_client_apps", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -944,7 +945,7 @@ func (l *LookerSDK) OauthClientApp( options *rtl.ApiSettings) (OauthClientApp, error) { clientGuid = url.PathEscape(clientGuid) var result OauthClientApp - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -964,7 +965,7 @@ func (l *LookerSDK) RegisterOauthClientApp( options *rtl.ApiSettings) (OauthClientApp, error) { clientGuid = url.PathEscape(clientGuid) var result OauthClientApp - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -981,7 +982,7 @@ func (l *LookerSDK) UpdateOauthClientApp( options *rtl.ApiSettings) (OauthClientApp, error) { clientGuid = url.PathEscape(clientGuid) var result OauthClientApp - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1002,7 +1003,7 @@ func (l *LookerSDK) DeleteOauthClientApp( options *rtl.ApiSettings) (string, error) { clientGuid = url.PathEscape(clientGuid) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v", clientGuid), nil, nil, options) return result, err } @@ -1018,7 +1019,7 @@ func (l *LookerSDK) InvalidateTokens( options *rtl.ApiSettings) (string, error) { clientGuid = url.PathEscape(clientGuid) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/tokens", clientGuid), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/tokens", clientGuid), nil, nil, options) return result, err } @@ -1040,7 +1041,7 @@ func (l *LookerSDK) ActivateAppUser( clientGuid = url.PathEscape(clientGuid) userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/users/%v", clientGuid, userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/users/%v", clientGuid, userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1065,7 +1066,7 @@ func (l *LookerSDK) DeactivateAppUser( clientGuid = url.PathEscape(clientGuid) userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/users/%v", clientGuid, userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oauth_client_apps/%v/users/%v", clientGuid, userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1089,7 +1090,7 @@ func (l *LookerSDK) DeactivateAppUser( func (l *LookerSDK) OidcConfig( options *rtl.ApiSettings) (OIDCConfig, error) { var result OIDCConfig - err := l.session.Do(&result, "GET", "/4.0", "/oidc_config", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/oidc_config", nil, nil, options) return result, err } @@ -1111,7 +1112,7 @@ func (l *LookerSDK) UpdateOidcConfig( body WriteOIDCConfig, options *rtl.ApiSettings) (OIDCConfig, error) { var result OIDCConfig - err := l.session.Do(&result, "PATCH", "/4.0", "/oidc_config", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/oidc_config", nil, body, options) return result, err } @@ -1126,7 +1127,7 @@ func (l *LookerSDK) OidcTestConfig( options *rtl.ApiSettings) (OIDCConfig, error) { testSlug = url.PathEscape(testSlug) var result OIDCConfig - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/oidc_test_configs/%v", testSlug), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/oidc_test_configs/%v", testSlug), nil, nil, options) return result, err } @@ -1141,7 +1142,7 @@ func (l *LookerSDK) DeleteOidcTestConfig( options *rtl.ApiSettings) (string, error) { testSlug = url.PathEscape(testSlug) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oidc_test_configs/%v", testSlug), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/oidc_test_configs/%v", testSlug), nil, nil, options) return result, err } @@ -1155,7 +1156,7 @@ func (l *LookerSDK) CreateOidcTestConfig( body WriteOIDCConfig, options *rtl.ApiSettings) (OIDCConfig, error) { var result OIDCConfig - err := l.session.Do(&result, "POST", "/4.0", "/oidc_test_configs", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/oidc_test_configs", nil, body, options) return result, err } @@ -1168,7 +1169,7 @@ func (l *LookerSDK) CreateOidcTestConfig( func (l *LookerSDK) PasswordConfig( options *rtl.ApiSettings) (PasswordConfig, error) { var result PasswordConfig - err := l.session.Do(&result, "GET", "/4.0", "/password_config", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/password_config", nil, nil, options) return result, err } @@ -1182,7 +1183,7 @@ func (l *LookerSDK) UpdatePasswordConfig( body WritePasswordConfig, options *rtl.ApiSettings) (PasswordConfig, error) { var result PasswordConfig - err := l.session.Do(&result, "PATCH", "/4.0", "/password_config", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/password_config", nil, body, options) return result, err } @@ -1195,7 +1196,7 @@ func (l *LookerSDK) UpdatePasswordConfig( func (l *LookerSDK) ForcePasswordResetAtNextLoginForAllUsers( options *rtl.ApiSettings) (string, error) { var result string - err := l.session.Do(&result, "PUT", "/4.0", "/password_config/force_password_reset_at_next_login_for_all_users", nil, nil, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/password_config/force_password_reset_at_next_login_for_all_users", nil, nil, options) return result, err } @@ -1219,7 +1220,7 @@ func (l *LookerSDK) ForcePasswordResetAtNextLoginForAllUsers( func (l *LookerSDK) SamlConfig( options *rtl.ApiSettings) (SamlConfig, error) { var result SamlConfig - err := l.session.Do(&result, "GET", "/4.0", "/saml_config", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/saml_config", nil, nil, options) return result, err } @@ -1241,7 +1242,7 @@ func (l *LookerSDK) UpdateSamlConfig( body WriteSamlConfig, options *rtl.ApiSettings) (SamlConfig, error) { var result SamlConfig - err := l.session.Do(&result, "PATCH", "/4.0", "/saml_config", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/saml_config", nil, body, options) return result, err } @@ -1256,7 +1257,7 @@ func (l *LookerSDK) SamlTestConfig( options *rtl.ApiSettings) (SamlConfig, error) { testSlug = url.PathEscape(testSlug) var result SamlConfig - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/saml_test_configs/%v", testSlug), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/saml_test_configs/%v", testSlug), nil, nil, options) return result, err } @@ -1271,7 +1272,7 @@ func (l *LookerSDK) DeleteSamlTestConfig( options *rtl.ApiSettings) (string, error) { testSlug = url.PathEscape(testSlug) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/saml_test_configs/%v", testSlug), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/saml_test_configs/%v", testSlug), nil, nil, options) return result, err } @@ -1285,7 +1286,7 @@ func (l *LookerSDK) CreateSamlTestConfig( body WriteSamlConfig, options *rtl.ApiSettings) (SamlConfig, error) { var result SamlConfig - err := l.session.Do(&result, "POST", "/4.0", "/saml_test_configs", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/saml_test_configs", nil, body, options) return result, err } @@ -1299,7 +1300,7 @@ func (l *LookerSDK) ParseSamlIdpMetadata( body string, options *rtl.ApiSettings) (SamlMetadataParseResult, error) { var result SamlMetadataParseResult - err := l.session.Do(&result, "POST", "/4.0", "/parse_saml_idp_metadata", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/parse_saml_idp_metadata", nil, body, options) return result, err } @@ -1315,7 +1316,7 @@ func (l *LookerSDK) FetchAndParseSamlIdpMetadata( body string, options *rtl.ApiSettings) (SamlMetadataParseResult, error) { var result SamlMetadataParseResult - err := l.session.Do(&result, "POST", "/4.0", "/fetch_and_parse_saml_idp_metadata", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/fetch_and_parse_saml_idp_metadata", nil, body, options) return result, err } @@ -1326,7 +1327,7 @@ func (l *LookerSDK) FetchAndParseSamlIdpMetadata( func (l *LookerSDK) SessionConfig( options *rtl.ApiSettings) (SessionConfig, error) { var result SessionConfig - err := l.session.Do(&result, "GET", "/4.0", "/session_config", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/session_config", nil, nil, options) return result, err } @@ -1338,7 +1339,7 @@ func (l *LookerSDK) UpdateSessionConfig( body WriteSessionConfig, options *rtl.ApiSettings) (SessionConfig, error) { var result SessionConfig - err := l.session.Do(&result, "PATCH", "/4.0", "/session_config", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/session_config", nil, body, options) return result, err } @@ -1354,7 +1355,7 @@ func (l *LookerSDK) GetSupportAccessAllowlistEntries( fields string, options *rtl.ApiSettings) ([]SupportAccessAllowlistEntry, error) { var result []SupportAccessAllowlistEntry - err := l.session.Do(&result, "GET", "/4.0", "/support_access/allowlist", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/support_access/allowlist", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1370,7 +1371,7 @@ func (l *LookerSDK) AddSupportAccessAllowlistEntries( body SupportAccessAddEntries, options *rtl.ApiSettings) ([]SupportAccessAllowlistEntry, error) { var result []SupportAccessAllowlistEntry - err := l.session.Do(&result, "POST", "/4.0", "/support_access/allowlist", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/support_access/allowlist", nil, body, options) return result, err } @@ -1387,7 +1388,7 @@ func (l *LookerSDK) DeleteSupportAccessAllowlistEntry( options *rtl.ApiSettings) (string, error) { entryId = url.PathEscape(entryId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/support_access/allowlist/%v", entryId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/support_access/allowlist/%v", entryId), nil, nil, options) return result, err } @@ -1403,7 +1404,7 @@ func (l *LookerSDK) EnableSupportAccess( body SupportAccessEnable, options *rtl.ApiSettings) (SupportAccessStatus, error) { var result SupportAccessStatus - err := l.session.Do(&result, "PUT", "/4.0", "/support_access/enable", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/support_access/enable", nil, body, options) return result, err } @@ -1418,7 +1419,7 @@ func (l *LookerSDK) EnableSupportAccess( func (l *LookerSDK) DisableSupportAccess( options *rtl.ApiSettings) (SupportAccessStatus, error) { var result SupportAccessStatus - err := l.session.Do(&result, "PUT", "/4.0", "/support_access/disable", nil, nil, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/support_access/disable", nil, nil, options) return result, err } @@ -1433,7 +1434,7 @@ func (l *LookerSDK) DisableSupportAccess( func (l *LookerSDK) SupportAccessStatus( options *rtl.ApiSettings) (SupportAccessStatus, error) { var result SupportAccessStatus - err := l.session.Do(&result, "GET", "/4.0", "/support_access/status", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/support_access/status", nil, nil, options) return result, err } @@ -1445,7 +1446,7 @@ func (l *LookerSDK) AllUserLoginLockouts( fields string, options *rtl.ApiSettings) ([]UserLoginLockout, error) { var result []UserLoginLockout - err := l.session.Do(&result, "GET", "/4.0", "/user_login_lockouts", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/user_login_lockouts", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1456,7 +1457,7 @@ func (l *LookerSDK) AllUserLoginLockouts( func (l *LookerSDK) SearchUserLoginLockouts(request RequestSearchUserLoginLockouts, options *rtl.ApiSettings) ([]UserLoginLockout, error) { var result []UserLoginLockout - err := l.session.Do(&result, "GET", "/4.0", "/user_login_lockouts/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "auth_type": request.AuthType, "full_name": request.FullName, "email": request.Email, "remote_id": request.RemoteId, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/user_login_lockouts/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "auth_type": request.AuthType, "full_name": request.FullName, "email": request.Email, "remote_id": request.RemoteId, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -1469,7 +1470,7 @@ func (l *LookerSDK) DeleteUserLoginLockout( options *rtl.ApiSettings) (string, error) { key = url.PathEscape(key) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/user_login_lockout/%v", key), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/user_login_lockout/%v", key), nil, nil, options) return result, err } @@ -1485,7 +1486,7 @@ func (l *LookerSDK) AllBoards( fields string, options *rtl.ApiSettings) ([]Board, error) { var result []Board - err := l.session.Do(&result, "GET", "/4.0", "/boards", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/boards", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1498,7 +1499,7 @@ func (l *LookerSDK) CreateBoard( fields string, options *rtl.ApiSettings) (Board, error) { var result Board - err := l.session.Do(&result, "POST", "/4.0", "/boards", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/boards", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1530,7 +1531,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, "permission": request.Permission}, nil, options) + err := l.AuthSession.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 } @@ -1544,7 +1545,7 @@ func (l *LookerSDK) Board( options *rtl.ApiSettings) (Board, error) { boardId = url.PathEscape(boardId) var result Board - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/boards/%v", boardId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/boards/%v", boardId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1559,7 +1560,7 @@ func (l *LookerSDK) UpdateBoard( options *rtl.ApiSettings) (Board, error) { boardId = url.PathEscape(boardId) var result Board - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/boards/%v", boardId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/boards/%v", boardId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1572,7 +1573,7 @@ func (l *LookerSDK) DeleteBoard( options *rtl.ApiSettings) (string, error) { boardId = url.PathEscape(boardId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/boards/%v", boardId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/boards/%v", boardId), nil, nil, options) return result, err } @@ -1583,7 +1584,7 @@ func (l *LookerSDK) DeleteBoard( func (l *LookerSDK) AllBoardItems(request RequestAllBoardItems, options *rtl.ApiSettings) ([]BoardItem, error) { var result []BoardItem - err := l.session.Do(&result, "GET", "/4.0", "/board_items", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts, "board_section_id": request.BoardSectionId}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/board_items", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts, "board_section_id": request.BoardSectionId}, nil, options) return result, err } @@ -1596,7 +1597,7 @@ func (l *LookerSDK) CreateBoardItem( fields string, options *rtl.ApiSettings) (BoardItem, error) { var result BoardItem - err := l.session.Do(&result, "POST", "/4.0", "/board_items", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/board_items", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1610,7 +1611,7 @@ func (l *LookerSDK) BoardItem( options *rtl.ApiSettings) (BoardItem, error) { boardItemId = url.PathEscape(boardItemId) var result BoardItem - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1625,7 +1626,7 @@ func (l *LookerSDK) UpdateBoardItem( options *rtl.ApiSettings) (BoardItem, error) { boardItemId = url.PathEscape(boardItemId) var result BoardItem - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1638,7 +1639,7 @@ func (l *LookerSDK) DeleteBoardItem( options *rtl.ApiSettings) (string, error) { boardItemId = url.PathEscape(boardItemId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/board_items/%v", boardItemId), nil, nil, options) return result, err } @@ -1649,7 +1650,7 @@ func (l *LookerSDK) DeleteBoardItem( func (l *LookerSDK) AllBoardSections(request RequestAllBoardSections, options *rtl.ApiSettings) ([]BoardSection, error) { var result []BoardSection - err := l.session.Do(&result, "GET", "/4.0", "/board_sections", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/board_sections", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts}, nil, options) return result, err } @@ -1662,7 +1663,7 @@ func (l *LookerSDK) CreateBoardSection( fields string, options *rtl.ApiSettings) (BoardSection, error) { var result BoardSection - err := l.session.Do(&result, "POST", "/4.0", "/board_sections", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/board_sections", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1676,7 +1677,7 @@ func (l *LookerSDK) BoardSection( options *rtl.ApiSettings) (BoardSection, error) { boardSectionId = url.PathEscape(boardSectionId) var result BoardSection - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1691,7 +1692,7 @@ func (l *LookerSDK) UpdateBoardSection( options *rtl.ApiSettings) (BoardSection, error) { boardSectionId = url.PathEscape(boardSectionId) var result BoardSection - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -1704,7 +1705,7 @@ func (l *LookerSDK) DeleteBoardSection( options *rtl.ApiSettings) (string, error) { boardSectionId = url.PathEscape(boardSectionId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/board_sections/%v", boardSectionId), nil, nil, options) return result, err } @@ -1727,7 +1728,7 @@ func (l *LookerSDK) AllColorCollections( fields string, options *rtl.ApiSettings) ([]ColorCollection, error) { var result []ColorCollection - err := l.session.Do(&result, "GET", "/4.0", "/color_collections", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/color_collections", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1747,7 +1748,7 @@ func (l *LookerSDK) CreateColorCollection( body WriteColorCollection, options *rtl.ApiSettings) (ColorCollection, error) { var result ColorCollection - err := l.session.Do(&result, "POST", "/4.0", "/color_collections", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/color_collections", nil, body, options) return result, err } @@ -1764,7 +1765,7 @@ func (l *LookerSDK) ColorCollectionsCustom( fields string, options *rtl.ApiSettings) ([]ColorCollection, error) { var result []ColorCollection - err := l.session.Do(&result, "GET", "/4.0", "/color_collections/custom", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/color_collections/custom", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1781,7 +1782,7 @@ func (l *LookerSDK) ColorCollectionsStandard( fields string, options *rtl.ApiSettings) ([]ColorCollection, error) { var result []ColorCollection - err := l.session.Do(&result, "GET", "/4.0", "/color_collections/standard", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/color_collections/standard", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1796,7 +1797,7 @@ func (l *LookerSDK) ColorCollectionsStandard( func (l *LookerSDK) DefaultColorCollection( options *rtl.ApiSettings) (ColorCollection, error) { var result ColorCollection - err := l.session.Do(&result, "GET", "/4.0", "/color_collections/default", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/color_collections/default", nil, nil, options) return result, err } @@ -1811,7 +1812,7 @@ func (l *LookerSDK) SetDefaultColorCollection( collectionId string, options *rtl.ApiSettings) (ColorCollection, error) { var result ColorCollection - err := l.session.Do(&result, "PUT", "/4.0", "/color_collections/default", map[string]interface{}{"collection_id": collectionId}, nil, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/color_collections/default", map[string]interface{}{"collection_id": collectionId}, nil, options) return result, err } @@ -1834,7 +1835,7 @@ func (l *LookerSDK) ColorCollection( options *rtl.ApiSettings) (ColorCollection, error) { collectionId = url.PathEscape(collectionId) var result ColorCollection - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -1849,7 +1850,7 @@ func (l *LookerSDK) UpdateColorCollection( options *rtl.ApiSettings) (ColorCollection, error) { collectionId = url.PathEscape(collectionId) var result ColorCollection - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), nil, body, options) return result, err } @@ -1869,7 +1870,7 @@ func (l *LookerSDK) DeleteColorCollection( options *rtl.ApiSettings) (string, error) { collectionId = url.PathEscape(collectionId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/color_collections/%v", collectionId), nil, nil, options) return result, err } @@ -1884,7 +1885,7 @@ func (l *LookerSDK) DeleteColorCollection( func (l *LookerSDK) CloudStorageConfiguration( options *rtl.ApiSettings) (BackupConfiguration, error) { var result BackupConfiguration - err := l.session.Do(&result, "GET", "/4.0", "/cloud_storage", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/cloud_storage", nil, nil, options) return result, err } @@ -1896,7 +1897,7 @@ func (l *LookerSDK) UpdateCloudStorageConfiguration( body WriteBackupConfiguration, options *rtl.ApiSettings) (BackupConfiguration, error) { var result BackupConfiguration - err := l.session.Do(&result, "PATCH", "/4.0", "/cloud_storage", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/cloud_storage", nil, body, options) return result, err } @@ -1909,7 +1910,7 @@ func (l *LookerSDK) UpdateCloudStorageConfiguration( func (l *LookerSDK) CustomWelcomeEmail( options *rtl.ApiSettings) (CustomWelcomeEmail, error) { var result CustomWelcomeEmail - err := l.session.Do(&result, "GET", "/4.0", "/custom_welcome_email", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/custom_welcome_email", nil, nil, options) return result, err } @@ -1924,7 +1925,7 @@ func (l *LookerSDK) UpdateCustomWelcomeEmail( sendTestWelcomeEmail bool, options *rtl.ApiSettings) (CustomWelcomeEmail, error) { var result CustomWelcomeEmail - err := l.session.Do(&result, "PATCH", "/4.0", "/custom_welcome_email", map[string]interface{}{"send_test_welcome_email": sendTestWelcomeEmail}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/custom_welcome_email", map[string]interface{}{"send_test_welcome_email": sendTestWelcomeEmail}, body, options) return result, err } @@ -1936,7 +1937,7 @@ func (l *LookerSDK) UpdateCustomWelcomeEmailTest( body WelcomeEmailTest, options *rtl.ApiSettings) (WelcomeEmailTest, error) { var result WelcomeEmailTest - err := l.session.Do(&result, "PUT", "/4.0", "/custom_welcome_email_test", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/custom_welcome_email_test", nil, body, options) return result, err } @@ -1947,7 +1948,7 @@ func (l *LookerSDK) UpdateCustomWelcomeEmailTest( func (l *LookerSDK) DigestEmailsEnabled( options *rtl.ApiSettings) (DigestEmails, error) { var result DigestEmails - err := l.session.Do(&result, "GET", "/4.0", "/digest_emails_enabled", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/digest_emails_enabled", nil, nil, options) return result, err } @@ -1959,7 +1960,7 @@ func (l *LookerSDK) UpdateDigestEmailsEnabled( body DigestEmails, options *rtl.ApiSettings) (DigestEmails, error) { var result DigestEmails - err := l.session.Do(&result, "PATCH", "/4.0", "/digest_emails_enabled", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/digest_emails_enabled", nil, body, options) return result, err } @@ -1972,7 +1973,7 @@ func (l *LookerSDK) UpdateDigestEmailsEnabled( func (l *LookerSDK) CreateDigestEmailSend( options *rtl.ApiSettings) (DigestEmailSend, error) { var result DigestEmailSend - err := l.session.Do(&result, "POST", "/4.0", "/digest_email_send", nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/digest_email_send", nil, nil, options) return result, err } @@ -1987,7 +1988,7 @@ func (l *LookerSDK) CreateDigestEmailSend( func (l *LookerSDK) PublicEgressIpAddresses( options *rtl.ApiSettings) (EgressIpAddresses, error) { var result EgressIpAddresses - err := l.session.Do(&result, "GET", "/4.0", "/public_egress_ip_addresses", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/public_egress_ip_addresses", nil, nil, options) return result, err } @@ -1998,7 +1999,7 @@ func (l *LookerSDK) PublicEgressIpAddresses( func (l *LookerSDK) InternalHelpResourcesContent( options *rtl.ApiSettings) (InternalHelpResourcesContent, error) { var result InternalHelpResourcesContent - err := l.session.Do(&result, "GET", "/4.0", "/internal_help_resources_content", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/internal_help_resources_content", nil, nil, options) return result, err } @@ -2010,7 +2011,7 @@ func (l *LookerSDK) UpdateInternalHelpResourcesContent( body WriteInternalHelpResourcesContent, options *rtl.ApiSettings) (InternalHelpResourcesContent, error) { var result InternalHelpResourcesContent - err := l.session.Do(&result, "PATCH", "/4.0", "/internal_help_resources_content", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/internal_help_resources_content", nil, body, options) return result, err } @@ -2021,7 +2022,7 @@ func (l *LookerSDK) UpdateInternalHelpResourcesContent( func (l *LookerSDK) InternalHelpResources( options *rtl.ApiSettings) (InternalHelpResources, error) { var result InternalHelpResources - err := l.session.Do(&result, "GET", "/4.0", "/internal_help_resources_enabled", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/internal_help_resources_enabled", nil, nil, options) return result, err } @@ -2033,7 +2034,7 @@ func (l *LookerSDK) UpdateInternalHelpResources( body WriteInternalHelpResources, options *rtl.ApiSettings) (InternalHelpResources, error) { var result InternalHelpResources - err := l.session.Do(&result, "PATCH", "/4.0", "/internal_help_resources", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/internal_help_resources", nil, body, options) return result, err } @@ -2046,7 +2047,7 @@ func (l *LookerSDK) UpdateInternalHelpResources( func (l *LookerSDK) AllLegacyFeatures( options *rtl.ApiSettings) ([]LegacyFeature, error) { var result []LegacyFeature - err := l.session.Do(&result, "GET", "/4.0", "/legacy_features", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/legacy_features", nil, nil, options) return result, err } @@ -2061,7 +2062,7 @@ func (l *LookerSDK) LegacyFeature( options *rtl.ApiSettings) (LegacyFeature, error) { legacyFeatureId = url.PathEscape(legacyFeatureId) var result LegacyFeature - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/legacy_features/%v", legacyFeatureId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/legacy_features/%v", legacyFeatureId), nil, nil, options) return result, err } @@ -2077,7 +2078,7 @@ func (l *LookerSDK) UpdateLegacyFeature( options *rtl.ApiSettings) (LegacyFeature, error) { legacyFeatureId = url.PathEscape(legacyFeatureId) var result LegacyFeature - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/legacy_features/%v", legacyFeatureId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/legacy_features/%v", legacyFeatureId), nil, body, options) return result, err } @@ -2088,7 +2089,7 @@ func (l *LookerSDK) UpdateLegacyFeature( func (l *LookerSDK) AllLocales( options *rtl.ApiSettings) ([]Locale, error) { var result []Locale - err := l.session.Do(&result, "GET", "/4.0", "/locales", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/locales", nil, nil, options) return result, err } @@ -2099,7 +2100,7 @@ func (l *LookerSDK) AllLocales( func (l *LookerSDK) MobileSettings( options *rtl.ApiSettings) (MobileSettings, error) { var result MobileSettings - err := l.session.Do(&result, "GET", "/4.0", "/mobile/settings", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/mobile/settings", nil, nil, options) return result, err } @@ -2135,7 +2136,7 @@ func (l *LookerSDK) GetSetting( fields string, options *rtl.ApiSettings) (Setting, error) { var result Setting - err := l.session.Do(&result, "GET", "/4.0", "/setting", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/setting", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2176,7 +2177,7 @@ func (l *LookerSDK) SetSetting( fields string, options *rtl.ApiSettings) (Setting, error) { var result Setting - err := l.session.Do(&result, "PATCH", "/4.0", "/setting", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/setting", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -2190,7 +2191,7 @@ func (l *LookerSDK) SetSetting( func (l *LookerSDK) SetSmtpSettings( body SmtpSettings, options *rtl.ApiSettings) error { - err := l.session.Do(nil, "POST", "/4.0", "/smtp_settings", nil, body, options) + err := l.AuthSession.Do(nil, "POST", "/4.0", "/smtp_settings", nil, body, options) return err } @@ -2202,7 +2203,7 @@ func (l *LookerSDK) SmtpStatus( fields string, options *rtl.ApiSettings) (SmtpStatus, error) { var result SmtpStatus - err := l.session.Do(&result, "GET", "/4.0", "/smtp_status", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/smtp_status", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2213,7 +2214,7 @@ func (l *LookerSDK) SmtpStatus( func (l *LookerSDK) AllTimezones( options *rtl.ApiSettings) ([]Timezone, error) { var result []Timezone - err := l.session.Do(&result, "GET", "/4.0", "/timezones", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/timezones", nil, nil, options) return result, err } @@ -2225,7 +2226,7 @@ func (l *LookerSDK) Versions( fields string, options *rtl.ApiSettings) (ApiVersion, error) { var result ApiVersion - err := l.session.Do(&result, "GET", "/4.0", "/versions", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/versions", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2242,7 +2243,7 @@ func (l *LookerSDK) ApiSpec( apiVersion = url.PathEscape(apiVersion) specification = url.PathEscape(specification) var result interface{} - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/api_spec/%v/%v", apiVersion, specification), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/api_spec/%v/%v", apiVersion, specification), nil, nil, options) return result, err } @@ -2260,7 +2261,7 @@ func (l *LookerSDK) WhitelabelConfiguration( fields string, options *rtl.ApiSettings) (WhitelabelConfiguration, error) { var result WhitelabelConfiguration - err := l.session.Do(&result, "GET", "/4.0", "/whitelabel_configuration", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/whitelabel_configuration", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2276,7 +2277,7 @@ func (l *LookerSDK) UpdateWhitelabelConfiguration( body WriteWhitelabelConfiguration, options *rtl.ApiSettings) (WhitelabelConfiguration, error) { var result WhitelabelConfiguration - err := l.session.Do(&result, "PUT", "/4.0", "/whitelabel_configuration", nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/whitelabel_configuration", nil, body, options) return result, err } @@ -2292,7 +2293,7 @@ func (l *LookerSDK) AllConnections( fields string, options *rtl.ApiSettings) ([]DBConnection, error) { var result []DBConnection - err := l.session.Do(&result, "GET", "/4.0", "/connections", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/connections", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2304,7 +2305,7 @@ func (l *LookerSDK) CreateConnection( body WriteDBConnection, options *rtl.ApiSettings) (DBConnection, error) { var result DBConnection - err := l.session.Do(&result, "POST", "/4.0", "/connections", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/connections", nil, body, options) return result, err } @@ -2318,7 +2319,7 @@ func (l *LookerSDK) Connection( options *rtl.ApiSettings) (DBConnection, error) { connectionName = url.PathEscape(connectionName) var result DBConnection - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v", connectionName), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v", connectionName), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2332,7 +2333,7 @@ func (l *LookerSDK) UpdateConnection( options *rtl.ApiSettings) (DBConnection, error) { connectionName = url.PathEscape(connectionName) var result DBConnection - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/connections/%v", connectionName), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/connections/%v", connectionName), nil, body, options) return result, err } @@ -2345,7 +2346,7 @@ func (l *LookerSDK) DeleteConnection( options *rtl.ApiSettings) (string, error) { connectionName = url.PathEscape(connectionName) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/connections/%v", connectionName), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/connections/%v", connectionName), nil, nil, options) return result, err } @@ -2360,7 +2361,7 @@ func (l *LookerSDK) DeleteConnectionOverride( connectionName = url.PathEscape(connectionName) overrideContext = url.PathEscape(overrideContext) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/connections/%v/connection_override/%v", connectionName, overrideContext), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/connections/%v/connection_override/%v", connectionName, overrideContext), nil, nil, options) return result, err } @@ -2381,7 +2382,7 @@ func (l *LookerSDK) TestConnection( options *rtl.ApiSettings) ([]DBConnectionTestResult, error) { connectionName = url.PathEscape(connectionName) var result []DBConnectionTestResult - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/connections/%v/test", connectionName), map[string]interface{}{"tests": tests}, nil, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/connections/%v/test", connectionName), map[string]interface{}{"tests": tests}, nil, options) return result, err } @@ -2401,7 +2402,7 @@ func (l *LookerSDK) TestConnectionConfig( tests rtl.DelimString, options *rtl.ApiSettings) ([]DBConnectionTestResult, error) { var result []DBConnectionTestResult - err := l.session.Do(&result, "PUT", "/4.0", "/connections/test", map[string]interface{}{"tests": tests}, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/connections/test", map[string]interface{}{"tests": tests}, body, options) return result, err } @@ -2413,7 +2414,7 @@ func (l *LookerSDK) AllDialectInfos( fields string, options *rtl.ApiSettings) ([]DialectInfo, error) { var result []DialectInfo - err := l.session.Do(&result, "GET", "/4.0", "/dialect_info", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/dialect_info", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2426,7 +2427,7 @@ func (l *LookerSDK) AllDialectInfos( func (l *LookerSDK) AllExternalOauthApplications(request RequestAllExternalOauthApplications, options *rtl.ApiSettings) ([]ExternalOauthApplication, error) { var result []ExternalOauthApplication - err := l.session.Do(&result, "GET", "/4.0", "/external_oauth_applications", map[string]interface{}{"name": request.Name, "client_id": request.ClientId}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/external_oauth_applications", map[string]interface{}{"name": request.Name, "client_id": request.ClientId}, nil, options) return result, err } @@ -2440,7 +2441,7 @@ func (l *LookerSDK) CreateExternalOauthApplication( body WriteExternalOauthApplication, options *rtl.ApiSettings) (ExternalOauthApplication, error) { var result ExternalOauthApplication - err := l.session.Do(&result, "POST", "/4.0", "/external_oauth_applications", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/external_oauth_applications", nil, body, options) return result, err } @@ -2456,7 +2457,7 @@ func (l *LookerSDK) UpdateExternalOauthApplication( options *rtl.ApiSettings) (ExternalOauthApplication, error) { clientId = url.PathEscape(clientId) var result ExternalOauthApplication - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/external_oauth_applications/%v", clientId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/external_oauth_applications/%v", clientId), nil, body, options) return result, err } @@ -2468,7 +2469,7 @@ func (l *LookerSDK) CreateOauthApplicationUserState( body CreateOAuthApplicationUserStateRequest, options *rtl.ApiSettings) (CreateOAuthApplicationUserStateResponse, error) { var result CreateOAuthApplicationUserStateResponse - err := l.session.Do(&result, "POST", "/4.0", "/external_oauth_applications/user_state", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/external_oauth_applications/user_state", nil, body, options) return result, err } @@ -2480,7 +2481,7 @@ func (l *LookerSDK) AllSshServers( fields string, options *rtl.ApiSettings) ([]SshServer, error) { var result []SshServer - err := l.session.Do(&result, "GET", "/4.0", "/ssh_servers", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/ssh_servers", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2492,7 +2493,7 @@ func (l *LookerSDK) CreateSshServer( body WriteSshServer, options *rtl.ApiSettings) (SshServer, error) { var result SshServer - err := l.session.Do(&result, "POST", "/4.0", "/ssh_servers", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/ssh_servers", nil, body, options) return result, err } @@ -2505,7 +2506,7 @@ func (l *LookerSDK) SshServer( options *rtl.ApiSettings) (SshServer, error) { sshServerId = url.PathEscape(sshServerId) var result SshServer - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, nil, options) return result, err } @@ -2519,7 +2520,7 @@ func (l *LookerSDK) UpdateSshServer( options *rtl.ApiSettings) (SshServer, error) { sshServerId = url.PathEscape(sshServerId) var result SshServer - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, body, options) return result, err } @@ -2532,7 +2533,7 @@ func (l *LookerSDK) DeleteSshServer( options *rtl.ApiSettings) (string, error) { sshServerId = url.PathEscape(sshServerId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/ssh_server/%v", sshServerId), nil, nil, options) return result, err } @@ -2545,7 +2546,7 @@ func (l *LookerSDK) TestSshServer( options *rtl.ApiSettings) (SshServer, error) { sshServerId = url.PathEscape(sshServerId) var result SshServer - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_server/%v/test", sshServerId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_server/%v/test", sshServerId), nil, nil, options) return result, err } @@ -2557,7 +2558,7 @@ func (l *LookerSDK) AllSshTunnels( fields string, options *rtl.ApiSettings) ([]SshTunnel, error) { var result []SshTunnel - err := l.session.Do(&result, "GET", "/4.0", "/ssh_tunnels", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/ssh_tunnels", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2569,7 +2570,7 @@ func (l *LookerSDK) CreateSshTunnel( body WriteSshTunnel, options *rtl.ApiSettings) (SshTunnel, error) { var result SshTunnel - err := l.session.Do(&result, "POST", "/4.0", "/ssh_tunnels", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/ssh_tunnels", nil, body, options) return result, err } @@ -2582,7 +2583,7 @@ func (l *LookerSDK) SshTunnel( options *rtl.ApiSettings) (SshTunnel, error) { sshTunnelId = url.PathEscape(sshTunnelId) var result SshTunnel - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, nil, options) return result, err } @@ -2596,7 +2597,7 @@ func (l *LookerSDK) UpdateSshTunnel( options *rtl.ApiSettings) (SshTunnel, error) { sshTunnelId = url.PathEscape(sshTunnelId) var result SshTunnel - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, body, options) return result, err } @@ -2609,7 +2610,7 @@ func (l *LookerSDK) DeleteSshTunnel( options *rtl.ApiSettings) (string, error) { sshTunnelId = url.PathEscape(sshTunnelId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/ssh_tunnel/%v", sshTunnelId), nil, nil, options) return result, err } @@ -2622,7 +2623,7 @@ func (l *LookerSDK) TestSshTunnel( options *rtl.ApiSettings) (SshTunnel, error) { sshTunnelId = url.PathEscape(sshTunnelId) var result SshTunnel - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_tunnel/%v/test", sshTunnelId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/ssh_tunnel/%v/test", sshTunnelId), nil, nil, options) return result, err } @@ -2635,7 +2636,7 @@ func (l *LookerSDK) TestSshTunnel( func (l *LookerSDK) SshPublicKey( options *rtl.ApiSettings) (SshPublicKey, error) { var result SshPublicKey - err := l.session.Do(&result, "GET", "/4.0", "/ssh_public_key", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/ssh_public_key", nil, nil, options) return result, err } @@ -2671,7 +2672,7 @@ func (l *LookerSDK) SshPublicKey( func (l *LookerSDK) SearchContentFavorites(request RequestSearchContentFavorites, options *rtl.ApiSettings) ([]ContentFavorite, error) { var result []ContentFavorite - err := l.session.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 } @@ -2685,7 +2686,7 @@ func (l *LookerSDK) ContentFavorite( options *rtl.ApiSettings) (ContentFavorite, error) { contentFavoriteId = url.PathEscape(contentFavoriteId) var result ContentFavorite - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_favorite/%v", contentFavoriteId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_favorite/%v", contentFavoriteId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2698,7 +2699,7 @@ func (l *LookerSDK) DeleteContentFavorite( options *rtl.ApiSettings) (string, error) { contentFavoriteId = url.PathEscape(contentFavoriteId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/content_favorite/%v", contentFavoriteId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/content_favorite/%v", contentFavoriteId), nil, nil, options) return result, err } @@ -2710,7 +2711,7 @@ func (l *LookerSDK) CreateContentFavorite( body WriteContentFavorite, options *rtl.ApiSettings) (ContentFavorite, error) { var result ContentFavorite - err := l.session.Do(&result, "POST", "/4.0", "/content_favorite", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/content_favorite", nil, body, options) return result, err } @@ -2723,7 +2724,7 @@ func (l *LookerSDK) AllContentMetadatas( fields string, options *rtl.ApiSettings) ([]ContentMeta, error) { var result []ContentMeta - err := l.session.Do(&result, "GET", "/4.0", "/content_metadata", map[string]interface{}{"parent_id": parentId, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_metadata", map[string]interface{}{"parent_id": parentId, "fields": fields}, nil, options) return result, err } @@ -2737,7 +2738,7 @@ func (l *LookerSDK) ContentMetadata( options *rtl.ApiSettings) (ContentMeta, error) { contentMetadataId = url.PathEscape(contentMetadataId) var result ContentMeta - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_metadata/%v", contentMetadataId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_metadata/%v", contentMetadataId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2751,7 +2752,7 @@ func (l *LookerSDK) UpdateContentMetadata( options *rtl.ApiSettings) (ContentMeta, error) { contentMetadataId = url.PathEscape(contentMetadataId) var result ContentMeta - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/content_metadata/%v", contentMetadataId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/content_metadata/%v", contentMetadataId), nil, body, options) return result, err } @@ -2764,7 +2765,7 @@ func (l *LookerSDK) AllContentMetadataAccesses( fields string, options *rtl.ApiSettings) ([]ContentMetaGroupUser, error) { var result []ContentMetaGroupUser - err := l.session.Do(&result, "GET", "/4.0", "/content_metadata_access", map[string]interface{}{"content_metadata_id": contentMetadataId, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_metadata_access", map[string]interface{}{"content_metadata_id": contentMetadataId, "fields": fields}, nil, options) return result, err } @@ -2777,7 +2778,7 @@ func (l *LookerSDK) CreateContentMetadataAccess( sendBoardsNotificationEmail bool, options *rtl.ApiSettings) (ContentMetaGroupUser, error) { var result ContentMetaGroupUser - err := l.session.Do(&result, "POST", "/4.0", "/content_metadata_access", map[string]interface{}{"send_boards_notification_email": sendBoardsNotificationEmail}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/content_metadata_access", map[string]interface{}{"send_boards_notification_email": sendBoardsNotificationEmail}, body, options) return result, err } @@ -2791,7 +2792,7 @@ func (l *LookerSDK) UpdateContentMetadataAccess( options *rtl.ApiSettings) (ContentMetaGroupUser, error) { contentMetadataAccessId = url.PathEscape(contentMetadataAccessId) var result ContentMetaGroupUser - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/content_metadata_access/%v", contentMetadataAccessId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/content_metadata_access/%v", contentMetadataAccessId), nil, body, options) return result, err } @@ -2804,7 +2805,7 @@ func (l *LookerSDK) DeleteContentMetadataAccess( options *rtl.ApiSettings) (string, error) { contentMetadataAccessId = url.PathEscape(contentMetadataAccessId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/content_metadata_access/%v", contentMetadataAccessId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/content_metadata_access/%v", contentMetadataAccessId), nil, nil, options) return result, err } @@ -2824,7 +2825,7 @@ func (l *LookerSDK) SearchContent(request RequestSearchContent, options *rtl.ApiSettings) ([]ContentSearch, error) { request.Terms = url.PathEscape(request.Terms) var result []ContentSearch - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/content/%v", request.Terms), map[string]interface{}{"fields": request.Fields, "types": request.Types, "limit": request.Limit, "offset": request.Offset, "page": request.Page, "per_page": request.PerPage}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/content/%v", request.Terms), map[string]interface{}{"fields": request.Fields, "types": request.Types, "limit": request.Limit, "offset": request.Offset, "page": request.Page, "per_page": request.PerPage}, nil, options) return result, err } @@ -2838,7 +2839,7 @@ func (l *LookerSDK) SearchContent(request RequestSearchContent, func (l *LookerSDK) ContentSummary(request RequestContentSummary, options *rtl.ApiSettings) ([]ContentSummary, error) { var result []ContentSummary - err := l.session.Do(&result, "GET", "/4.0", "/content_summary", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "target_group_id": request.TargetGroupId, "target_user_id": request.TargetUserId, "target_content_type": request.TargetContentType, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_summary", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "target_group_id": request.TargetGroupId, "target_user_id": request.TargetUserId, "target_content_type": request.TargetContentType, "sorts": request.Sorts}, nil, options) return result, err } @@ -2856,7 +2857,7 @@ func (l *LookerSDK) ContentThumbnail(request RequestContentThumbnail, request.Type = url.PathEscape(request.Type) request.ResourceId = url.PathEscape(request.ResourceId) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_thumbnail/%v/%v", request.Type, request.ResourceId), map[string]interface{}{"reload": request.Reload, "theme": request.Theme, "format": request.Format, "width": request.Width, "height": request.Height}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/content_thumbnail/%v/%v", request.Type, request.ResourceId), map[string]interface{}{"reload": request.Reload, "theme": request.Theme, "format": request.Format, "width": request.Width, "height": request.Height}, nil, options) return result, err } @@ -2870,7 +2871,7 @@ func (l *LookerSDK) ContentThumbnail(request RequestContentThumbnail, func (l *LookerSDK) ContentValidation(request RequestContentValidation, options *rtl.ApiSettings) (ContentValidation, error) { var result ContentValidation - err := l.session.Do(&result, "GET", "/4.0", "/content_validation", map[string]interface{}{"fields": request.Fields, "project_names": request.ProjectNames, "space_ids": request.SpaceIds}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_validation", map[string]interface{}{"fields": request.Fields, "project_names": request.ProjectNames, "space_ids": request.SpaceIds}, nil, options) return result, err } @@ -2902,7 +2903,7 @@ func (l *LookerSDK) ContentValidation(request RequestContentValidation, func (l *LookerSDK) SearchContentViews(request RequestSearchContentViews, options *rtl.ApiSettings) ([]ContentView, error) { var result []ContentView - err := l.session.Do(&result, "GET", "/4.0", "/content_view/search", map[string]interface{}{"view_count": request.ViewCount, "group_id": request.GroupId, "look_id": request.LookId, "dashboard_id": request.DashboardId, "content_metadata_id": request.ContentMetadataId, "start_of_week_date": request.StartOfWeekDate, "all_time": request.AllTime, "user_id": request.UserId, "fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/content_view/search", map[string]interface{}{"view_count": request.ViewCount, "group_id": request.GroupId, "look_id": request.LookId, "dashboard_id": request.DashboardId, "content_metadata_id": request.ContentMetadataId, "start_of_week_date": request.StartOfWeekDate, "all_time": request.AllTime, "user_id": request.UserId, "fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -2925,7 +2926,7 @@ func (l *LookerSDK) VectorThumbnail( type0 = url.PathEscape(type0) resourceId = url.PathEscape(resourceId) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/vector_thumbnail/%v/%v", type0, resourceId), map[string]interface{}{"reload": reload}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/vector_thumbnail/%v/%v", type0, resourceId), map[string]interface{}{"reload": reload}, nil, options) return result, err } @@ -2947,7 +2948,7 @@ func (l *LookerSDK) AllDashboards( fields string, options *rtl.ApiSettings) ([]DashboardBase, error) { var result []DashboardBase - err := l.session.Do(&result, "GET", "/4.0", "/dashboards", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/dashboards", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -2972,7 +2973,7 @@ func (l *LookerSDK) CreateDashboard( body WriteDashboard, options *rtl.ApiSettings) (Dashboard, error) { var result Dashboard - err := l.session.Do(&result, "POST", "/4.0", "/dashboards", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboards", nil, body, options) return result, err } @@ -3011,7 +3012,7 @@ func (l *LookerSDK) CreateDashboard( func (l *LookerSDK) SearchDashboards(request RequestSearchDashboards, options *rtl.ApiSettings) ([]Dashboard, error) { var result []Dashboard - err := l.session.Do(&result, "GET", "/4.0", "/dashboards/search", map[string]interface{}{"id": request.Id, "slug": request.Slug, "title": request.Title, "description": request.Description, "content_favorite_id": request.ContentFavoriteId, "folder_id": request.FolderId, "deleted": request.Deleted, "user_id": request.UserId, "view_count": request.ViewCount, "content_metadata_id": request.ContentMetadataId, "curate": request.Curate, "last_viewed_at": request.LastViewedAt, "fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "not_owned_by": request.NotOwnedBy}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/dashboards/search", map[string]interface{}{"id": request.Id, "slug": request.Slug, "title": request.Title, "description": request.Description, "content_favorite_id": request.ContentFavoriteId, "folder_id": request.FolderId, "deleted": request.Deleted, "user_id": request.UserId, "view_count": request.ViewCount, "content_metadata_id": request.ContentMetadataId, "curate": request.Curate, "last_viewed_at": request.LastViewedAt, "fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "not_owned_by": request.NotOwnedBy}, nil, options) return result, err } @@ -3039,7 +3040,7 @@ func (l *LookerSDK) ImportLookmlDashboard( lookmlDashboardId = url.PathEscape(lookmlDashboardId) spaceId = url.PathEscape(spaceId) var result Dashboard - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/dashboards/%v/import/%v", lookmlDashboardId, spaceId), map[string]interface{}{"raw_locale": rawLocale}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/dashboards/%v/import/%v", lookmlDashboardId, spaceId), map[string]interface{}{"raw_locale": rawLocale}, body, options) return result, err } @@ -3061,7 +3062,7 @@ func (l *LookerSDK) SyncLookmlDashboard(request RequestSyncLookmlDashboard, options *rtl.ApiSettings) ([]int64, error) { request.LookmlDashboardId = url.PathEscape(request.LookmlDashboardId) var result []int64 - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/sync", request.LookmlDashboardId), map[string]interface{}{"raw_locale": request.RawLocale, "dashboard_ids": request.DashboardIds}, nil, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/sync", request.LookmlDashboardId), map[string]interface{}{"raw_locale": request.RawLocale, "dashboard_ids": request.DashboardIds}, nil, options) return result, err } @@ -3081,7 +3082,7 @@ func (l *LookerSDK) Dashboard( options *rtl.ApiSettings) (Dashboard, error) { dashboardId = url.PathEscape(dashboardId) var result Dashboard - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3104,7 +3105,7 @@ func (l *LookerSDK) UpdateDashboard( options *rtl.ApiSettings) (Dashboard, error) { dashboardId = url.PathEscape(dashboardId) var result Dashboard - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), nil, body, options) return result, err } @@ -3123,7 +3124,7 @@ func (l *LookerSDK) DeleteDashboard( options *rtl.ApiSettings) (string, error) { dashboardId = url.PathEscape(dashboardId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboards/%v", dashboardId), nil, nil, options) return result, err } @@ -3138,7 +3139,7 @@ func (l *LookerSDK) DashboardAggregateTableLookml( options *rtl.ApiSettings) (DashboardAggregateTableLookml, error) { dashboardId = url.PathEscape(dashboardId) var result DashboardAggregateTableLookml - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/aggregate_table_lookml/%v", dashboardId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/aggregate_table_lookml/%v", dashboardId), nil, nil, options) return result, err } @@ -3153,7 +3154,7 @@ func (l *LookerSDK) DashboardLookml( options *rtl.ApiSettings) (DashboardLookml, error) { dashboardId = url.PathEscape(dashboardId) var result DashboardLookml - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/lookml/%v", dashboardId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/lookml/%v", dashboardId), nil, nil, options) return result, err } @@ -3172,7 +3173,7 @@ func (l *LookerSDK) MoveDashboard( options *rtl.ApiSettings) (Dashboard, error) { dashboardId = url.PathEscape(dashboardId) var result Dashboard - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/move", dashboardId), map[string]interface{}{"folder_id": folderId}, nil, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboards/%v/move", dashboardId), map[string]interface{}{"folder_id": folderId}, nil, options) return result, err } @@ -3198,7 +3199,7 @@ func (l *LookerSDK) ImportDashboardFromLookml( body WriteDashboardLookml, options *rtl.ApiSettings) (Dashboard, error) { var result Dashboard - err := l.session.Do(&result, "POST", "/4.0", "/dashboards/lookml", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboards/lookml", nil, body, options) return result, err } @@ -3210,7 +3211,7 @@ func (l *LookerSDK) CreateDashboardFromLookml( body WriteDashboardLookml, options *rtl.ApiSettings) (Dashboard, error) { var result Dashboard - err := l.session.Do(&result, "POST", "/4.0", "/dashboards/from_lookml", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboards/from_lookml", nil, body, options) return result, err } @@ -3233,7 +3234,7 @@ func (l *LookerSDK) CopyDashboard( options *rtl.ApiSettings) (Dashboard, error) { dashboardId = url.PathEscape(dashboardId) var result Dashboard - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/dashboards/%v/copy", dashboardId), map[string]interface{}{"folder_id": folderId}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/dashboards/%v/copy", dashboardId), map[string]interface{}{"folder_id": folderId}, nil, options) return result, err } @@ -3267,7 +3268,7 @@ func (l *LookerSDK) CopyDashboard( func (l *LookerSDK) SearchDashboardElements(request RequestSearchDashboardElements, options *rtl.ApiSettings) ([]DashboardElement, error) { var result []DashboardElement - err := l.session.Do(&result, "GET", "/4.0", "/dashboard_elements/search", map[string]interface{}{"dashboard_id": request.DashboardId, "look_id": request.LookId, "title": request.Title, "deleted": request.Deleted, "fields": request.Fields, "filter_or": request.FilterOr, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/dashboard_elements/search", map[string]interface{}{"dashboard_id": request.DashboardId, "look_id": request.LookId, "title": request.Title, "deleted": request.Deleted, "fields": request.Fields, "filter_or": request.FilterOr, "sorts": request.Sorts}, nil, options) return result, err } @@ -3281,7 +3282,7 @@ func (l *LookerSDK) DashboardElement( options *rtl.ApiSettings) (DashboardElement, error) { dashboardElementId = url.PathEscape(dashboardElementId) var result DashboardElement - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3296,7 +3297,7 @@ func (l *LookerSDK) UpdateDashboardElement( options *rtl.ApiSettings) (DashboardElement, error) { dashboardElementId = url.PathEscape(dashboardElementId) var result DashboardElement - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3309,7 +3310,7 @@ func (l *LookerSDK) DeleteDashboardElement( options *rtl.ApiSettings) (string, error) { dashboardElementId = url.PathEscape(dashboardElementId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_elements/%v", dashboardElementId), nil, nil, options) return result, err } @@ -3323,7 +3324,7 @@ func (l *LookerSDK) DashboardDashboardElements( options *rtl.ApiSettings) ([]DashboardElement, error) { dashboardId = url.PathEscape(dashboardId) var result []DashboardElement - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_elements", dashboardId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_elements", dashboardId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3334,7 +3335,7 @@ func (l *LookerSDK) DashboardDashboardElements( func (l *LookerSDK) CreateDashboardElement(request RequestCreateDashboardElement, options *rtl.ApiSettings) (DashboardElement, error) { var result DashboardElement - err := l.session.Do(&result, "POST", "/4.0", "/dashboard_elements", map[string]interface{}{"fields": request.Fields, "apply_filters": request.ApplyFilters}, request.Body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboard_elements", map[string]interface{}{"fields": request.Fields, "apply_filters": request.ApplyFilters}, request.Body, options) return result, err } @@ -3348,7 +3349,7 @@ func (l *LookerSDK) DashboardFilter( options *rtl.ApiSettings) (DashboardFilter, error) { dashboardFilterId = url.PathEscape(dashboardFilterId) var result DashboardFilter - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3363,7 +3364,7 @@ func (l *LookerSDK) UpdateDashboardFilter( options *rtl.ApiSettings) (DashboardFilter, error) { dashboardFilterId = url.PathEscape(dashboardFilterId) var result DashboardFilter - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3376,7 +3377,7 @@ func (l *LookerSDK) DeleteDashboardFilter( options *rtl.ApiSettings) (string, error) { dashboardFilterId = url.PathEscape(dashboardFilterId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_filters/%v", dashboardFilterId), nil, nil, options) return result, err } @@ -3390,7 +3391,7 @@ func (l *LookerSDK) DashboardDashboardFilters( options *rtl.ApiSettings) ([]DashboardFilter, error) { dashboardId = url.PathEscape(dashboardId) var result []DashboardFilter - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_filters", dashboardId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_filters", dashboardId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3403,7 +3404,7 @@ func (l *LookerSDK) CreateDashboardFilter( fields string, options *rtl.ApiSettings) (DashboardFilter, error) { var result DashboardFilter - err := l.session.Do(&result, "POST", "/4.0", "/dashboard_filters", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboard_filters", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3417,7 +3418,7 @@ func (l *LookerSDK) DashboardLayoutComponent( options *rtl.ApiSettings) (DashboardLayoutComponent, error) { dashboardLayoutComponentId = url.PathEscape(dashboardLayoutComponentId) var result DashboardLayoutComponent - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layout_components/%v", dashboardLayoutComponentId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layout_components/%v", dashboardLayoutComponentId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3432,7 +3433,7 @@ func (l *LookerSDK) UpdateDashboardLayoutComponent( options *rtl.ApiSettings) (DashboardLayoutComponent, error) { dashboardLayoutComponentId = url.PathEscape(dashboardLayoutComponentId) var result DashboardLayoutComponent - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_layout_components/%v", dashboardLayoutComponentId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_layout_components/%v", dashboardLayoutComponentId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3446,7 +3447,7 @@ func (l *LookerSDK) DashboardLayoutDashboardLayoutComponents( options *rtl.ApiSettings) ([]DashboardLayoutComponent, error) { dashboardLayoutId = url.PathEscape(dashboardLayoutId) var result []DashboardLayoutComponent - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layouts/%v/dashboard_layout_components", dashboardLayoutId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layouts/%v/dashboard_layout_components", dashboardLayoutId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3460,7 +3461,7 @@ func (l *LookerSDK) DashboardLayout( options *rtl.ApiSettings) (DashboardLayout, error) { dashboardLayoutId = url.PathEscape(dashboardLayoutId) var result DashboardLayout - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3475,7 +3476,7 @@ func (l *LookerSDK) UpdateDashboardLayout( options *rtl.ApiSettings) (DashboardLayout, error) { dashboardLayoutId = url.PathEscape(dashboardLayoutId) var result DashboardLayout - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3488,7 +3489,7 @@ func (l *LookerSDK) DeleteDashboardLayout( options *rtl.ApiSettings) (string, error) { dashboardLayoutId = url.PathEscape(dashboardLayoutId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/dashboard_layouts/%v", dashboardLayoutId), nil, nil, options) return result, err } @@ -3502,7 +3503,7 @@ func (l *LookerSDK) DashboardDashboardLayouts( options *rtl.ApiSettings) ([]DashboardLayout, error) { dashboardId = url.PathEscape(dashboardId) var result []DashboardLayout - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_layouts", dashboardId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/dashboards/%v/dashboard_layouts", dashboardId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3515,7 +3516,7 @@ func (l *LookerSDK) CreateDashboardLayout( fields string, options *rtl.ApiSettings) (DashboardLayout, error) { var result DashboardLayout - err := l.session.Do(&result, "POST", "/4.0", "/dashboard_layouts", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/dashboard_layouts", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3531,7 +3532,7 @@ func (l *LookerSDK) PerformDataAction( body DataActionRequest, options *rtl.ApiSettings) (DataActionResponse, error) { var result DataActionResponse - err := l.session.Do(&result, "POST", "/4.0", "/data_actions", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/data_actions", nil, body, options) return result, err } @@ -3543,7 +3544,7 @@ func (l *LookerSDK) FetchRemoteDataActionForm( body map[string]interface{}, options *rtl.ApiSettings) (DataActionForm, error) { var result DataActionForm - err := l.session.Do(&result, "POST", "/4.0", "/data_actions/form", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/data_actions/form", nil, body, options) return result, err } @@ -3558,7 +3559,7 @@ func (l *LookerSDK) FetchRemoteDataActionForm( func (l *LookerSDK) AllDatagroups( options *rtl.ApiSettings) ([]Datagroup, error) { var result []Datagroup - err := l.session.Do(&result, "GET", "/4.0", "/datagroups", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/datagroups", nil, nil, options) return result, err } @@ -3571,7 +3572,7 @@ func (l *LookerSDK) Datagroup( options *rtl.ApiSettings) (Datagroup, error) { datagroupId = url.PathEscape(datagroupId) var result Datagroup - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/datagroups/%v", datagroupId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/datagroups/%v", datagroupId), nil, nil, options) return result, err } @@ -3585,7 +3586,7 @@ func (l *LookerSDK) UpdateDatagroup( options *rtl.ApiSettings) (Datagroup, error) { datagroupId = url.PathEscape(datagroupId) var result Datagroup - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/datagroups/%v", datagroupId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/datagroups/%v", datagroupId), nil, body, options) return result, err } @@ -3601,7 +3602,7 @@ func (l *LookerSDK) GraphDerivedTablesForModel(request RequestGraphDerivedTables options *rtl.ApiSettings) (DependencyGraph, error) { request.Model = url.PathEscape(request.Model) var result DependencyGraph - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/graph/model/%v", request.Model), map[string]interface{}{"format": request.Format, "color": request.Color}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/graph/model/%v", request.Model), map[string]interface{}{"format": request.Format, "color": request.Color}, nil, options) return result, err } @@ -3613,7 +3614,7 @@ func (l *LookerSDK) GraphDerivedTablesForView(request RequestGraphDerivedTablesF options *rtl.ApiSettings) (DependencyGraph, error) { request.View = url.PathEscape(request.View) var result DependencyGraph - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/graph/view/%v", request.View), map[string]interface{}{"models": request.Models, "workspace": request.Workspace}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/graph/view/%v", request.View), map[string]interface{}{"models": request.Models, "workspace": request.Workspace}, nil, options) return result, err } @@ -3626,7 +3627,7 @@ func (l *LookerSDK) StartPdtBuild(request RequestStartPdtBuild, request.ModelName = url.PathEscape(request.ModelName) request.ViewName = url.PathEscape(request.ViewName) var result MaterializePDT - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/%v/start", request.ModelName, request.ViewName), map[string]interface{}{"force_rebuild": request.ForceRebuild, "force_full_incremental": request.ForceFullIncremental, "workspace": request.Workspace, "source": request.Source}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/%v/start", request.ModelName, request.ViewName), map[string]interface{}{"force_rebuild": request.ForceRebuild, "force_full_incremental": request.ForceFullIncremental, "workspace": request.Workspace, "source": request.Source}, nil, options) return result, err } @@ -3639,7 +3640,7 @@ func (l *LookerSDK) CheckPdtBuild( options *rtl.ApiSettings) (MaterializePDT, error) { materializationId = url.PathEscape(materializationId) var result MaterializePDT - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/status", materializationId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/status", materializationId), nil, nil, options) return result, err } @@ -3653,7 +3654,7 @@ func (l *LookerSDK) StopPdtBuild( options *rtl.ApiSettings) (MaterializePDT, error) { materializationId = url.PathEscape(materializationId) var result MaterializePDT - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/stop", materializationId), map[string]interface{}{"source": source}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/derived_table/%v/stop", materializationId), map[string]interface{}{"source": source}, nil, options) return result, err } @@ -3668,7 +3669,7 @@ func (l *LookerSDK) StopPdtBuild( func (l *LookerSDK) SearchFolders(request RequestSearchFolders, options *rtl.ApiSettings) ([]Folder, error) { var result []Folder - err := l.session.Do(&result, "GET", "/4.0", "/folders/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "id": request.Id, "parent_id": request.ParentId, "creator_id": request.CreatorId, "filter_or": request.FilterOr, "is_shared_root": request.IsSharedRoot, "is_users_root": request.IsUsersRoot}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/folders/search", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "id": request.Id, "parent_id": request.ParentId, "creator_id": request.CreatorId, "filter_or": request.FilterOr, "is_shared_root": request.IsSharedRoot, "is_users_root": request.IsUsersRoot}, nil, options) return result, err } @@ -3682,7 +3683,7 @@ func (l *LookerSDK) Folder( options *rtl.ApiSettings) (Folder, error) { folderId = url.PathEscape(folderId) var result Folder - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v", folderId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v", folderId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3696,7 +3697,7 @@ func (l *LookerSDK) UpdateFolder( options *rtl.ApiSettings) (Folder, error) { folderId = url.PathEscape(folderId) var result Folder - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/folders/%v", folderId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/folders/%v", folderId), nil, body, options) return result, err } @@ -3710,7 +3711,7 @@ func (l *LookerSDK) DeleteFolder( options *rtl.ApiSettings) (string, error) { folderId = url.PathEscape(folderId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/folders/%v", folderId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/folders/%v", folderId), nil, nil, options) return result, err } @@ -3724,7 +3725,7 @@ func (l *LookerSDK) AllFolders( fields string, options *rtl.ApiSettings) ([]FolderBase, error) { var result []FolderBase - err := l.session.Do(&result, "GET", "/4.0", "/folders", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/folders", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3739,7 +3740,7 @@ func (l *LookerSDK) CreateFolder( body CreateFolder, options *rtl.ApiSettings) (Folder, error) { var result Folder - err := l.session.Do(&result, "POST", "/4.0", "/folders", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/folders", nil, body, options) return result, err } @@ -3751,7 +3752,7 @@ func (l *LookerSDK) FolderChildren(request RequestFolderChildren, options *rtl.ApiSettings) ([]Folder, error) { request.FolderId = url.PathEscape(request.FolderId) var result []Folder - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/children", request.FolderId), map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/children", request.FolderId), map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts}, nil, options) return result, err } @@ -3763,7 +3764,7 @@ func (l *LookerSDK) FolderChildrenSearch(request RequestFolderChildrenSearch, options *rtl.ApiSettings) ([]Folder, error) { request.FolderId = url.PathEscape(request.FolderId) var result []Folder - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/children/search", request.FolderId), map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts, "name": request.Name}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/children/search", request.FolderId), map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts, "name": request.Name}, nil, options) return result, err } @@ -3777,7 +3778,7 @@ func (l *LookerSDK) FolderParent( options *rtl.ApiSettings) (Folder, error) { folderId = url.PathEscape(folderId) var result Folder - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/parent", folderId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/parent", folderId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3791,7 +3792,7 @@ func (l *LookerSDK) FolderAncestors( options *rtl.ApiSettings) ([]Folder, error) { folderId = url.PathEscape(folderId) var result []Folder - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/ancestors", folderId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/ancestors", folderId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3806,7 +3807,7 @@ func (l *LookerSDK) FolderLooks( options *rtl.ApiSettings) ([]LookWithQuery, error) { folderId = url.PathEscape(folderId) var result []LookWithQuery - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/looks", folderId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/looks", folderId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3820,7 +3821,7 @@ func (l *LookerSDK) FolderDashboards( options *rtl.ApiSettings) ([]Dashboard, error) { folderId = url.PathEscape(folderId) var result []Dashboard - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/dashboards", folderId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/folders/%v/dashboards", folderId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3835,7 +3836,7 @@ func (l *LookerSDK) FolderDashboards( func (l *LookerSDK) AllGroups(request RequestAllGroups, options *rtl.ApiSettings) ([]Group, error) { var result []Group - err := l.session.Do(&result, "GET", "/4.0", "/groups", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "ids": request.Ids, "content_metadata_id": request.ContentMetadataId, "can_add_to_content_metadata": request.CanAddToContentMetadata}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/groups", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "ids": request.Ids, "content_metadata_id": request.ContentMetadataId, "can_add_to_content_metadata": request.CanAddToContentMetadata}, nil, options) return result, err } @@ -3848,7 +3849,7 @@ func (l *LookerSDK) CreateGroup( fields string, options *rtl.ApiSettings) (Group, error) { var result Group - err := l.session.Do(&result, "POST", "/4.0", "/groups", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/groups", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3882,7 +3883,7 @@ func (l *LookerSDK) CreateGroup( func (l *LookerSDK) SearchGroups(request RequestSearchGroups, options *rtl.ApiSettings) ([]Group, error) { var result []Group - err := l.session.Do(&result, "GET", "/4.0", "/groups/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/groups/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) return result, err } @@ -3916,7 +3917,7 @@ func (l *LookerSDK) SearchGroups(request RequestSearchGroups, func (l *LookerSDK) SearchGroupsWithRoles(request RequestSearchGroupsWithRoles, options *rtl.ApiSettings) ([]GroupSearch, error) { var result []GroupSearch - err := l.session.Do(&result, "GET", "/4.0", "/groups/search/with_roles", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/groups/search/with_roles", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) return result, err } @@ -3951,7 +3952,7 @@ func (l *LookerSDK) SearchGroupsWithRoles(request RequestSearchGroupsWithRoles, func (l *LookerSDK) SearchGroupsWithHierarchy(request RequestSearchGroupsWithHierarchy, options *rtl.ApiSettings) ([]GroupHierarchy, error) { var result []GroupHierarchy - err := l.session.Do(&result, "GET", "/4.0", "/groups/search/with_hierarchy", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/groups/search/with_hierarchy", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr, "id": request.Id, "name": request.Name, "external_group_id": request.ExternalGroupId, "externally_managed": request.ExternallyManaged, "externally_orphaned": request.ExternallyOrphaned}, nil, options) return result, err } @@ -3965,7 +3966,7 @@ func (l *LookerSDK) Group( options *rtl.ApiSettings) (Group, error) { groupId = url.PathEscape(groupId) var result Group - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v", groupId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v", groupId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -3980,7 +3981,7 @@ func (l *LookerSDK) UpdateGroup( options *rtl.ApiSettings) (Group, error) { groupId = url.PathEscape(groupId) var result Group - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/groups/%v", groupId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/groups/%v", groupId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -3993,7 +3994,7 @@ func (l *LookerSDK) DeleteGroup( options *rtl.ApiSettings) (string, error) { groupId = url.PathEscape(groupId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/groups/%v", groupId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/groups/%v", groupId), nil, nil, options) return result, err } @@ -4007,7 +4008,7 @@ func (l *LookerSDK) AllGroupGroups( options *rtl.ApiSettings) ([]Group, error) { groupId = url.PathEscape(groupId) var result []Group - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v/groups", groupId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v/groups", groupId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4021,7 +4022,7 @@ func (l *LookerSDK) AddGroupGroup( options *rtl.ApiSettings) (Group, error) { groupId = url.PathEscape(groupId) var result Group - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/groups/%v/groups", groupId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/groups/%v/groups", groupId), nil, body, options) return result, err } @@ -4033,7 +4034,7 @@ func (l *LookerSDK) AllGroupUsers(request RequestAllGroupUsers, options *rtl.ApiSettings) ([]User, error) { request.GroupId = url.PathEscape(request.GroupId) var result []User - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v/users", request.GroupId), map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/groups/%v/users", request.GroupId), map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts}, nil, options) return result, err } @@ -4047,7 +4048,7 @@ func (l *LookerSDK) AddGroupUser( options *rtl.ApiSettings) (User, error) { groupId = url.PathEscape(groupId) var result User - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/groups/%v/users", groupId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/groups/%v/users", groupId), nil, body, options) return result, err } @@ -4061,7 +4062,7 @@ func (l *LookerSDK) DeleteGroupUser( options *rtl.ApiSettings) error { groupId = url.PathEscape(groupId) userId = url.PathEscape(userId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/users/%v", groupId, userId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/users/%v", groupId, userId), nil, nil, options) return err } @@ -4075,7 +4076,7 @@ func (l *LookerSDK) DeleteGroupFromGroup( options *rtl.ApiSettings) error { groupId = url.PathEscape(groupId) deletingGroupId = url.PathEscape(deletingGroupId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/groups/%v", groupId, deletingGroupId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/groups/%v", groupId, deletingGroupId), nil, nil, options) return err } @@ -4093,7 +4094,7 @@ func (l *LookerSDK) UpdateUserAttributeGroupValue( groupId = url.PathEscape(groupId) userAttributeId = url.PathEscape(userAttributeId) var result UserAttributeGroupValue - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/groups/%v/attribute_values/%v", groupId, userAttributeId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/groups/%v/attribute_values/%v", groupId, userAttributeId), nil, body, options) return result, err } @@ -4107,7 +4108,7 @@ func (l *LookerSDK) DeleteUserAttributeGroupValue( options *rtl.ApiSettings) error { groupId = url.PathEscape(groupId) userAttributeId = url.PathEscape(userAttributeId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/attribute_values/%v", groupId, userAttributeId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/groups/%v/attribute_values/%v", groupId, userAttributeId), nil, nil, options) return err } @@ -4123,7 +4124,7 @@ func (l *LookerSDK) AllPrimaryHomepageSections( fields string, options *rtl.ApiSettings) ([]HomepageSection, error) { var result []HomepageSection - err := l.session.Do(&result, "GET", "/4.0", "/primary_homepage_sections", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/primary_homepage_sections", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4139,7 +4140,7 @@ func (l *LookerSDK) AllIntegrationHubs( fields string, options *rtl.ApiSettings) ([]IntegrationHub, error) { var result []IntegrationHub - err := l.session.Do(&result, "GET", "/4.0", "/integration_hubs", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/integration_hubs", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4154,7 +4155,7 @@ func (l *LookerSDK) CreateIntegrationHub( fields string, options *rtl.ApiSettings) (IntegrationHub, error) { var result IntegrationHub - err := l.session.Do(&result, "POST", "/4.0", "/integration_hubs", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/integration_hubs", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4168,7 +4169,7 @@ func (l *LookerSDK) IntegrationHub( options *rtl.ApiSettings) (IntegrationHub, error) { integrationHubId = url.PathEscape(integrationHubId) var result IntegrationHub - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4185,7 +4186,7 @@ func (l *LookerSDK) UpdateIntegrationHub( options *rtl.ApiSettings) (IntegrationHub, error) { integrationHubId = url.PathEscape(integrationHubId) var result IntegrationHub - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4198,7 +4199,7 @@ func (l *LookerSDK) DeleteIntegrationHub( options *rtl.ApiSettings) (string, error) { integrationHubId = url.PathEscape(integrationHubId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/integration_hubs/%v", integrationHubId), nil, nil, options) return result, err } @@ -4211,7 +4212,7 @@ func (l *LookerSDK) AcceptIntegrationHubLegalAgreement( options *rtl.ApiSettings) (IntegrationHub, error) { integrationHubId = url.PathEscape(integrationHubId) var result IntegrationHub - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/integration_hubs/%v/accept_legal_agreement", integrationHubId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/integration_hubs/%v/accept_legal_agreement", integrationHubId), nil, nil, options) return result, err } @@ -4222,7 +4223,7 @@ func (l *LookerSDK) AcceptIntegrationHubLegalAgreement( func (l *LookerSDK) AllIntegrations(request RequestAllIntegrations, options *rtl.ApiSettings) ([]Integration, error) { var result []Integration - err := l.session.Do(&result, "GET", "/4.0", "/integrations", map[string]interface{}{"fields": request.Fields, "integration_hub_id": request.IntegrationHubId}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/integrations", map[string]interface{}{"fields": request.Fields, "integration_hub_id": request.IntegrationHubId}, nil, options) return result, err } @@ -4236,7 +4237,7 @@ func (l *LookerSDK) Integration( options *rtl.ApiSettings) (Integration, error) { integrationId = url.PathEscape(integrationId) var result Integration - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/integrations/%v", integrationId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/integrations/%v", integrationId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4251,7 +4252,7 @@ func (l *LookerSDK) UpdateIntegration( options *rtl.ApiSettings) (Integration, error) { integrationId = url.PathEscape(integrationId) var result Integration - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/integrations/%v", integrationId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/integrations/%v", integrationId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4265,7 +4266,7 @@ func (l *LookerSDK) FetchIntegrationForm( options *rtl.ApiSettings) (DataActionForm, error) { integrationId = url.PathEscape(integrationId) var result DataActionForm - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/integrations/%v/form", integrationId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/integrations/%v/form", integrationId), nil, body, options) return result, err } @@ -4278,7 +4279,7 @@ func (l *LookerSDK) TestIntegration( options *rtl.ApiSettings) (IntegrationTestResult, error) { integrationId = url.PathEscape(integrationId) var result IntegrationTestResult - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/integrations/%v/test", integrationId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/integrations/%v/test", integrationId), nil, nil, options) return result, err } @@ -4300,7 +4301,7 @@ func (l *LookerSDK) AllLooks( fields string, options *rtl.ApiSettings) ([]Look, error) { var result []Look - err := l.session.Do(&result, "GET", "/4.0", "/looks", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/looks", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4319,7 +4320,7 @@ func (l *LookerSDK) CreateLook( fields string, options *rtl.ApiSettings) (LookWithQuery, error) { var result LookWithQuery - err := l.session.Do(&result, "POST", "/4.0", "/looks", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/looks", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4355,7 +4356,7 @@ func (l *LookerSDK) CreateLook( func (l *LookerSDK) SearchLooks(request RequestSearchLooks, options *rtl.ApiSettings) ([]Look, error) { var result []Look - err := l.session.Do(&result, "GET", "/4.0", "/looks/search", map[string]interface{}{"id": request.Id, "title": request.Title, "description": request.Description, "content_favorite_id": request.ContentFavoriteId, "folder_id": request.FolderId, "user_id": request.UserId, "view_count": request.ViewCount, "deleted": request.Deleted, "query_id": request.QueryId, "curate": request.Curate, "last_viewed_at": request.LastViewedAt, "fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/looks/search", map[string]interface{}{"id": request.Id, "title": request.Title, "description": request.Description, "content_favorite_id": request.ContentFavoriteId, "folder_id": request.FolderId, "user_id": request.UserId, "view_count": request.ViewCount, "deleted": request.Deleted, "query_id": request.QueryId, "curate": request.Curate, "last_viewed_at": request.LastViewedAt, "fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -4371,7 +4372,7 @@ func (l *LookerSDK) Look( options *rtl.ApiSettings) (LookWithQuery, error) { lookId = url.PathEscape(lookId) var result LookWithQuery - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/looks/%v", lookId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/looks/%v", lookId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4405,7 +4406,7 @@ func (l *LookerSDK) UpdateLook( options *rtl.ApiSettings) (LookWithQuery, error) { lookId = url.PathEscape(lookId) var result LookWithQuery - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/looks/%v", lookId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/looks/%v", lookId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4424,7 +4425,7 @@ func (l *LookerSDK) DeleteLook( options *rtl.ApiSettings) (string, error) { lookId = url.PathEscape(lookId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/looks/%v", lookId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/looks/%v", lookId), nil, nil, options) return result, err } @@ -4457,7 +4458,7 @@ func (l *LookerSDK) RunLook(request RequestRunLook, request.LookId = url.PathEscape(request.LookId) request.ResultFormat = url.PathEscape(request.ResultFormat) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/looks/%v/run/%v", request.LookId, 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}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/looks/%v/run/%v", request.LookId, 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}, nil, options) return result, err } @@ -4477,7 +4478,7 @@ func (l *LookerSDK) CopyLook( options *rtl.ApiSettings) (LookWithQuery, error) { lookId = url.PathEscape(lookId) var result LookWithQuery - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/looks/%v/copy", lookId), map[string]interface{}{"folder_id": folderId}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/looks/%v/copy", lookId), map[string]interface{}{"folder_id": folderId}, nil, options) return result, err } @@ -4496,7 +4497,7 @@ func (l *LookerSDK) MoveLook( options *rtl.ApiSettings) (LookWithQuery, error) { lookId = url.PathEscape(lookId) var result LookWithQuery - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/looks/%v/move", lookId), map[string]interface{}{"folder_id": folderId}, nil, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/looks/%v/move", lookId), map[string]interface{}{"folder_id": folderId}, nil, options) return result, err } @@ -4511,7 +4512,7 @@ func (l *LookerSDK) MoveLook( func (l *LookerSDK) AllLookmlModels(request RequestAllLookmlModels, options *rtl.ApiSettings) ([]LookmlModel, error) { var result []LookmlModel - err := l.session.Do(&result, "GET", "/4.0", "/lookml_models", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "exclude_empty": request.ExcludeEmpty, "exclude_hidden": request.ExcludeHidden, "include_internal": request.IncludeInternal}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/lookml_models", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "exclude_empty": request.ExcludeEmpty, "exclude_hidden": request.ExcludeHidden, "include_internal": request.IncludeInternal}, nil, options) return result, err } @@ -4523,7 +4524,7 @@ func (l *LookerSDK) CreateLookmlModel( body WriteLookmlModel, options *rtl.ApiSettings) (LookmlModel, error) { var result LookmlModel - err := l.session.Do(&result, "POST", "/4.0", "/lookml_models", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/lookml_models", nil, body, options) return result, err } @@ -4537,7 +4538,7 @@ func (l *LookerSDK) LookmlModel( options *rtl.ApiSettings) (LookmlModel, error) { lookmlModelName = url.PathEscape(lookmlModelName) var result LookmlModel - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4551,7 +4552,7 @@ func (l *LookerSDK) UpdateLookmlModel( options *rtl.ApiSettings) (LookmlModel, error) { lookmlModelName = url.PathEscape(lookmlModelName) var result LookmlModel - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), nil, body, options) return result, err } @@ -4564,7 +4565,7 @@ func (l *LookerSDK) DeleteLookmlModel( options *rtl.ApiSettings) (string, error) { lookmlModelName = url.PathEscape(lookmlModelName) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/lookml_models/%v", lookmlModelName), nil, nil, options) return result, err } @@ -4577,7 +4578,7 @@ func (l *LookerSDK) LookmlModelExplore(request RequestLookmlModelExplore, request.LookmlModelName = url.PathEscape(request.LookmlModelName) request.ExploreName = url.PathEscape(request.ExploreName) var result LookmlModelExplore - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/lookml_models/%v/explores/%v", request.LookmlModelName, request.ExploreName), map[string]interface{}{"fields": request.Fields, "add_drills_metadata": request.AddDrillsMetadata}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/lookml_models/%v/explores/%v", request.LookmlModelName, request.ExploreName), map[string]interface{}{"fields": request.Fields, "add_drills_metadata": request.AddDrillsMetadata}, nil, options) return result, err } @@ -4613,7 +4614,7 @@ func (l *LookerSDK) ModelFieldnameSuggestions(request RequestModelFieldnameSugge request.ViewName = url.PathEscape(request.ViewName) request.FieldName = url.PathEscape(request.FieldName) var result ModelFieldSuggestions - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/models/%v/views/%v/fields/%v/suggestions", request.ModelName, request.ViewName, request.FieldName), map[string]interface{}{"term": request.Term, "filters": request.Filters}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/models/%v/views/%v/fields/%v/suggestions", request.ModelName, request.ViewName, request.FieldName), map[string]interface{}{"term": request.Term, "filters": request.Filters}, nil, options) return result, err } @@ -4626,7 +4627,7 @@ func (l *LookerSDK) GetModel( options *rtl.ApiSettings) (Model, error) { modelName = url.PathEscape(modelName) var result Model - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/models/%v", modelName), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/models/%v", modelName), nil, nil, options) return result, err } @@ -4647,7 +4648,7 @@ func (l *LookerSDK) ConnectionDatabases( options *rtl.ApiSettings) ([]string, error) { connectionName = url.PathEscape(connectionName) var result []string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/databases", connectionName), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/databases", connectionName), nil, nil, options) return result, err } @@ -4663,7 +4664,7 @@ func (l *LookerSDK) ConnectionFeatures( options *rtl.ApiSettings) (ConnectionFeatures, error) { connectionName = url.PathEscape(connectionName) var result ConnectionFeatures - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/features", connectionName), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/features", connectionName), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4675,7 +4676,7 @@ func (l *LookerSDK) ConnectionSchemas(request RequestConnectionSchemas, options *rtl.ApiSettings) ([]Schema, error) { request.ConnectionName = url.PathEscape(request.ConnectionName) var result []Schema - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/schemas", request.ConnectionName), map[string]interface{}{"database": request.Database, "cache": request.Cache, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/schemas", request.ConnectionName), map[string]interface{}{"database": request.Database, "cache": request.Cache, "fields": request.Fields}, nil, options) return result, err } @@ -4692,7 +4693,7 @@ func (l *LookerSDK) ConnectionTables(request RequestConnectionTables, options *rtl.ApiSettings) ([]SchemaTables, error) { request.ConnectionName = url.PathEscape(request.ConnectionName) var result []SchemaTables - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/tables", request.ConnectionName), map[string]interface{}{"database": request.Database, "schema_name": request.SchemaName, "cache": request.Cache, "fields": request.Fields, "table_filter": request.TableFilter, "table_limit": request.TableLimit}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/tables", request.ConnectionName), map[string]interface{}{"database": request.Database, "schema_name": request.SchemaName, "cache": request.Cache, "fields": request.Fields, "table_filter": request.TableFilter, "table_limit": request.TableLimit}, nil, options) return result, err } @@ -4704,7 +4705,7 @@ func (l *LookerSDK) ConnectionColumns(request RequestConnectionColumns, options *rtl.ApiSettings) ([]SchemaColumns, error) { request.ConnectionName = url.PathEscape(request.ConnectionName) var result []SchemaColumns - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/columns", request.ConnectionName), map[string]interface{}{"database": request.Database, "schema_name": request.SchemaName, "cache": request.Cache, "table_limit": request.TableLimit, "table_names": request.TableNames, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/columns", request.ConnectionName), map[string]interface{}{"database": request.Database, "schema_name": request.SchemaName, "cache": request.Cache, "table_limit": request.TableLimit, "table_names": request.TableNames, "fields": request.Fields}, nil, options) return result, err } @@ -4718,7 +4719,7 @@ func (l *LookerSDK) ConnectionSearchColumns(request RequestConnectionSearchColum options *rtl.ApiSettings) ([]ColumnSearch, error) { request.ConnectionName = url.PathEscape(request.ConnectionName) var result []ColumnSearch - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/search_columns", request.ConnectionName), map[string]interface{}{"column_name": request.ColumnName, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/connections/%v/search_columns", request.ConnectionName), map[string]interface{}{"column_name": request.ColumnName, "fields": request.Fields}, nil, options) return result, err } @@ -4737,7 +4738,7 @@ func (l *LookerSDK) ConnectionCostEstimate( options *rtl.ApiSettings) (CostEstimate, error) { connectionName = url.PathEscape(connectionName) var result CostEstimate - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/connections/%v/cost_estimate", connectionName), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/connections/%v/cost_estimate", connectionName), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4748,16 +4749,16 @@ func (l *LookerSDK) ConnectionCostEstimate( // ### Fetches a CI Run. // -// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun +// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun func (l *LookerSDK) GetCiRun( projectId string, runId string, fields string, - options *rtl.ApiSettings) (ProjectCIRun, error) { + options *rtl.ApiSettings) (ProjectRun, error) { projectId = url.PathEscape(projectId) runId = url.PathEscape(runId) - var result ProjectCIRun - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/ci/runs/%v", projectId, runId), map[string]interface{}{"fields": fields}, nil, options) + var result ProjectRun + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/ci/runs/%v", projectId, runId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4772,7 +4773,7 @@ func (l *LookerSDK) CreateCiRun( options *rtl.ApiSettings) (CreateCIRunResponse, error) { projectId = url.PathEscape(projectId) var result CreateCIRunResponse - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/ci/run", projectId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/ci/run", projectId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -4792,7 +4793,7 @@ func (l *LookerSDK) LockAll( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/manifest/lock_all", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/manifest/lock_all", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -4807,7 +4808,7 @@ func (l *LookerSDK) AllGitBranches( options *rtl.ApiSettings) ([]GitBranch, error) { projectId = url.PathEscape(projectId) var result []GitBranch - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branches", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branches", projectId), nil, nil, options) return result, err } @@ -4822,7 +4823,7 @@ func (l *LookerSDK) GitBranch( options *rtl.ApiSettings) (GitBranch, error) { projectId = url.PathEscape(projectId) var result GitBranch - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, nil, options) return result, err } @@ -4845,7 +4846,7 @@ func (l *LookerSDK) UpdateGitBranch( options *rtl.ApiSettings) (GitBranch, error) { projectId = url.PathEscape(projectId) var result GitBranch - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, body, options) return result, err } @@ -4867,7 +4868,7 @@ func (l *LookerSDK) CreateGitBranch( options *rtl.ApiSettings) (GitBranch, error) { projectId = url.PathEscape(projectId) var result GitBranch - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/git_branch", projectId), nil, body, options) return result, err } @@ -4884,7 +4885,7 @@ func (l *LookerSDK) FindGitBranch( projectId = url.PathEscape(projectId) branchName = url.PathEscape(branchName) var result GitBranch - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branch/%v", projectId, branchName), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_branch/%v", projectId, branchName), nil, nil, options) return result, err } @@ -4901,7 +4902,7 @@ func (l *LookerSDK) DeleteGitBranch( projectId = url.PathEscape(projectId) branchName = url.PathEscape(branchName) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/projects/%v/git_branch/%v", projectId, branchName), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/projects/%v/git_branch/%v", projectId, branchName), nil, nil, options) return result, err } @@ -4921,7 +4922,7 @@ func (l *LookerSDK) DeployRefToProduction(request RequestDeployRefToProduction, options *rtl.ApiSettings) (string, error) { request.ProjectId = url.PathEscape(request.ProjectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/deploy_ref_to_production", request.ProjectId), map[string]interface{}{"branch": request.Branch, "ref": request.Ref}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/deploy_ref_to_production", request.ProjectId), map[string]interface{}{"branch": request.Branch, "ref": request.Ref}, nil, options) return result, err } @@ -4945,7 +4946,7 @@ func (l *LookerSDK) DeployToProduction( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/deploy_to_production", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/deploy_to_production", projectId), nil, nil, options) return result, err } @@ -4960,7 +4961,7 @@ func (l *LookerSDK) ResetProjectToProduction( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/reset_to_production", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/reset_to_production", projectId), nil, nil, options) return result, err } @@ -4975,7 +4976,7 @@ func (l *LookerSDK) ResetProjectToRemote( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/reset_to_remote", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/reset_to_remote", projectId), nil, nil, options) return result, err } @@ -4989,7 +4990,7 @@ func (l *LookerSDK) AllProjects( fields string, options *rtl.ApiSettings) ([]Project, error) { var result []Project - err := l.session.Do(&result, "GET", "/4.0", "/projects", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/projects", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5007,7 +5008,7 @@ func (l *LookerSDK) CreateProject( body WriteProject, options *rtl.ApiSettings) (Project, error) { var result Project - err := l.session.Do(&result, "POST", "/4.0", "/projects", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/projects", nil, body, options) return result, err } @@ -5023,7 +5024,7 @@ func (l *LookerSDK) Project( options *rtl.ApiSettings) (Project, error) { projectId = url.PathEscape(projectId) var result Project - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5058,7 +5059,7 @@ func (l *LookerSDK) UpdateProject( options *rtl.ApiSettings) (Project, error) { projectId = url.PathEscape(projectId) var result Project - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/projects/%v", projectId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/projects/%v", projectId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -5073,7 +5074,7 @@ func (l *LookerSDK) Manifest( options *rtl.ApiSettings) (Manifest, error) { projectId = url.PathEscape(projectId) var result Manifest - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/manifest", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/manifest", projectId), nil, nil, options) return result, err } @@ -5088,7 +5089,7 @@ func (l *LookerSDK) GitDeployKey( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git/deploy_key", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git/deploy_key", projectId), nil, nil, options) return result, err } @@ -5109,7 +5110,7 @@ func (l *LookerSDK) CreateGitDeployKey( options *rtl.ApiSettings) (string, error) { projectId = url.PathEscape(projectId) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/git/deploy_key", projectId), nil, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/git/deploy_key", projectId), nil, nil, options) return result, err } @@ -5134,7 +5135,7 @@ func (l *LookerSDK) ProjectValidationResults( options *rtl.ApiSettings) (ProjectValidationCache, error) { projectId = url.PathEscape(projectId) var result ProjectValidationCache - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/validate", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/validate", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5156,7 +5157,7 @@ func (l *LookerSDK) ValidateProject( options *rtl.ApiSettings) (ProjectValidation, error) { projectId = url.PathEscape(projectId) var result ProjectValidation - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/validate", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/validate", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5172,7 +5173,7 @@ func (l *LookerSDK) ProjectWorkspace( options *rtl.ApiSettings) (ProjectWorkspace, error) { projectId = url.PathEscape(projectId) var result ProjectWorkspace - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/current_workspace", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/current_workspace", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5188,7 +5189,7 @@ func (l *LookerSDK) AllProjectFiles( options *rtl.ApiSettings) ([]ProjectFile, error) { projectId = url.PathEscape(projectId) var result []ProjectFile - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/files", projectId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/files", projectId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5205,7 +5206,7 @@ func (l *LookerSDK) ProjectFile( options *rtl.ApiSettings) (ProjectFile, error) { projectId = url.PathEscape(projectId) var result ProjectFile - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/files/file", projectId), map[string]interface{}{"file_id": fileId, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/files/file", projectId), map[string]interface{}{"file_id": fileId, "fields": fields}, nil, options) return result, err } @@ -5225,7 +5226,7 @@ func (l *LookerSDK) AllGitConnectionTests( options *rtl.ApiSettings) ([]GitConnectionTest, error) { projectId = url.PathEscape(projectId) var result []GitConnectionTest - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_connection_tests", projectId), map[string]interface{}{"remote_url": remoteUrl}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_connection_tests", projectId), map[string]interface{}{"remote_url": remoteUrl}, nil, options) return result, err } @@ -5244,7 +5245,7 @@ func (l *LookerSDK) RunGitConnectionTest(request RequestRunGitConnectionTest, request.ProjectId = url.PathEscape(request.ProjectId) request.TestId = url.PathEscape(request.TestId) var result GitConnectionTestResult - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_connection_tests/%v", request.ProjectId, request.TestId), map[string]interface{}{"remote_url": request.RemoteUrl, "use_production": request.UseProduction}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/git_connection_tests/%v", request.ProjectId, request.TestId), map[string]interface{}{"remote_url": request.RemoteUrl, "use_production": request.UseProduction}, nil, options) return result, err } @@ -5262,7 +5263,7 @@ func (l *LookerSDK) AllLookmlTests( options *rtl.ApiSettings) ([]LookmlTest, error) { projectId = url.PathEscape(projectId) var result []LookmlTest - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/lookml_tests", projectId), map[string]interface{}{"file_id": fileId}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/lookml_tests", projectId), map[string]interface{}{"file_id": fileId}, nil, options) return result, err } @@ -5276,7 +5277,7 @@ func (l *LookerSDK) RunLookmlTest(request RequestRunLookmlTest, options *rtl.ApiSettings) ([]LookmlTestResult, error) { request.ProjectId = url.PathEscape(request.ProjectId) var result []LookmlTestResult - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/lookml_tests/run", request.ProjectId), map[string]interface{}{"file_id": request.FileId, "test": request.Test, "model": request.Model}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/lookml_tests/run", request.ProjectId), map[string]interface{}{"file_id": request.FileId, "test": request.Test, "model": request.Model}, nil, options) return result, err } @@ -5288,7 +5289,7 @@ func (l *LookerSDK) TagRef(request RequestTagRef, options *rtl.ApiSettings) (Project, error) { request.ProjectId = url.PathEscape(request.ProjectId) var result Project - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/tag", request.ProjectId), map[string]interface{}{"commit_sha": request.CommitSha, "tag_name": request.TagName, "tag_message": request.TagMessage}, request.Body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/tag", request.ProjectId), map[string]interface{}{"commit_sha": request.CommitSha, "tag_name": request.TagName, "tag_message": request.TagMessage}, request.Body, options) return result, err } @@ -5309,7 +5310,7 @@ func (l *LookerSDK) UpdateRepositoryCredential( rootProjectId = url.PathEscape(rootProjectId) credentialId = url.PathEscape(credentialId) var result RepositoryCredential - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/projects/%v/credential/%v", rootProjectId, credentialId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/projects/%v/credential/%v", rootProjectId, credentialId), nil, body, options) return result, err } @@ -5329,7 +5330,7 @@ func (l *LookerSDK) DeleteRepositoryCredential( rootProjectId = url.PathEscape(rootProjectId) credentialId = url.PathEscape(credentialId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/projects/%v/credential/%v", rootProjectId, credentialId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/projects/%v/credential/%v", rootProjectId, credentialId), nil, nil, options) return result, err } @@ -5344,7 +5345,7 @@ func (l *LookerSDK) GetAllRepositoryCredentials( options *rtl.ApiSettings) ([]RepositoryCredential, error) { rootProjectId = url.PathEscape(rootProjectId) var result []RepositoryCredential - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/credentials", rootProjectId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/credentials", rootProjectId), nil, nil, options) return result, err } @@ -5364,7 +5365,7 @@ func (l *LookerSDK) GetAllRepositoryCredentials( func (l *LookerSDK) CreateQueryTask(request RequestCreateQueryTask, options *rtl.ApiSettings) (QueryTask, error) { var result QueryTask - err := l.session.Do(&result, "POST", "/4.0", "/query_tasks", map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "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, "fields": request.Fields}, request.Body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/query_tasks", map[string]interface{}{"limit": request.Limit, "apply_formatting": request.ApplyFormatting, "apply_vis": request.ApplyVis, "cache": request.Cache, "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, "fields": request.Fields}, request.Body, options) return result, err } @@ -5382,7 +5383,7 @@ func (l *LookerSDK) QueryTaskMultiResults( queryTaskIds rtl.DelimString, options *rtl.ApiSettings) (map[string]interface{}, error) { var result map[string]interface{} - err := l.session.Do(&result, "GET", "/4.0", "/query_tasks/multi_results", map[string]interface{}{"query_task_ids": queryTaskIds}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/query_tasks/multi_results", map[string]interface{}{"query_task_ids": queryTaskIds}, nil, options) return result, err } @@ -5402,7 +5403,7 @@ func (l *LookerSDK) QueryTask( options *rtl.ApiSettings) (QueryTask, error) { queryTaskId = url.PathEscape(queryTaskId) var result QueryTask - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/query_tasks/%v", queryTaskId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/query_tasks/%v", queryTaskId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5437,7 +5438,7 @@ func (l *LookerSDK) QueryTaskResults( options *rtl.ApiSettings) (string, error) { queryTaskId = url.PathEscape(queryTaskId) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/query_tasks/%v/results", queryTaskId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/query_tasks/%v/results", queryTaskId), nil, nil, options) return result, err } @@ -5467,7 +5468,7 @@ func (l *LookerSDK) Query( options *rtl.ApiSettings) (Query, error) { queryId = url.PathEscape(queryId) var result Query - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v", queryId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/%v", queryId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5497,7 +5498,7 @@ func (l *LookerSDK) QueryForSlug( options *rtl.ApiSettings) (Query, error) { slug = url.PathEscape(slug) var result Query - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/slug/%v", slug), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/slug/%v", slug), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5517,7 +5518,7 @@ func (l *LookerSDK) CreateQuery( fields string, options *rtl.ApiSettings) (Query, error) { var result Query - err := l.session.Do(&result, "POST", "/4.0", "/queries", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/queries", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -5553,7 +5554,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, "enable_oauth_error_response": request.EnableOauthErrorResponse}, nil, options) + err := l.AuthSession.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 } @@ -5621,7 +5622,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, "enable_oauth_error_response": request.EnableOauthErrorResponse}, request.Body, options) + err := l.AuthSession.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 } @@ -5694,7 +5695,7 @@ func (l *LookerSDK) RunUrlEncodedQuery( viewName = url.PathEscape(viewName) resultFormat = url.PathEscape(resultFormat) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/models/%v/views/%v/run/%v", modelName, viewName, resultFormat), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/queries/models/%v/views/%v/run/%v", modelName, viewName, resultFormat), nil, nil, options) return result, err } @@ -5710,7 +5711,7 @@ func (l *LookerSDK) MergeQuery( options *rtl.ApiSettings) (MergeQuery, error) { mergeQueryId = url.PathEscape(mergeQueryId) var result MergeQuery - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/merge_queries/%v", mergeQueryId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/merge_queries/%v", mergeQueryId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5739,7 +5740,7 @@ func (l *LookerSDK) CreateMergeQuery( fields string, options *rtl.ApiSettings) (MergeQuery, error) { var result MergeQuery - err := l.session.Do(&result, "POST", "/4.0", "/merge_queries", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/merge_queries", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -5750,7 +5751,7 @@ func (l *LookerSDK) CreateMergeQuery( func (l *LookerSDK) AllRunningQueries( options *rtl.ApiSettings) ([]RunningQueries, error) { var result []RunningQueries - err := l.session.Do(&result, "GET", "/4.0", "/running_queries", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/running_queries", nil, nil, options) return result, err } @@ -5763,7 +5764,7 @@ func (l *LookerSDK) KillQuery( options *rtl.ApiSettings) (string, error) { queryTaskId = url.PathEscape(queryTaskId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/running_queries/%v", queryTaskId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/running_queries/%v", queryTaskId), nil, nil, options) return result, err } @@ -5777,7 +5778,7 @@ func (l *LookerSDK) CreateSqlQuery( body SqlQueryCreate, options *rtl.ApiSettings) (SqlQuery, error) { var result SqlQuery - err := l.session.Do(&result, "POST", "/4.0", "/sql_queries", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/sql_queries", nil, body, options) return result, err } @@ -5790,7 +5791,7 @@ func (l *LookerSDK) SqlQuery( options *rtl.ApiSettings) (SqlQuery, error) { slug = url.PathEscape(slug) var result SqlQuery - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/sql_queries/%v", slug), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/sql_queries/%v", slug), nil, nil, options) return result, err } @@ -5806,7 +5807,7 @@ func (l *LookerSDK) RunSqlQuery( slug = url.PathEscape(slug) resultFormat = url.PathEscape(resultFormat) var result string - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/sql_queries/%v/run/%v", slug, resultFormat), map[string]interface{}{"download": download}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/sql_queries/%v/run/%v", slug, resultFormat), map[string]interface{}{"download": download}, nil, options) return result, err } @@ -5832,7 +5833,7 @@ func (l *LookerSDK) CreateLookRenderTask( lookId = url.PathEscape(lookId) resultFormat = url.PathEscape(resultFormat) var result RenderTask - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/looks/%v/%v", lookId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/looks/%v/%v", lookId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) return result, err } @@ -5854,7 +5855,7 @@ func (l *LookerSDK) CreateQueryRenderTask( queryId = url.PathEscape(queryId) resultFormat = url.PathEscape(resultFormat) var result RenderTask - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/queries/%v/%v", queryId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/queries/%v/%v", queryId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) return result, err } @@ -5871,7 +5872,7 @@ func (l *LookerSDK) CreateDashboardRenderTask(request RequestCreateDashboardRend request.DashboardId = url.PathEscape(request.DashboardId) request.ResultFormat = url.PathEscape(request.ResultFormat) var result RenderTask - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/dashboards/%v/%v", request.DashboardId, request.ResultFormat), map[string]interface{}{"width": request.Width, "height": request.Height, "fields": request.Fields, "pdf_paper_size": request.PdfPaperSize, "pdf_landscape": request.PdfLandscape, "long_tables": request.LongTables, "theme": request.Theme}, request.Body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/dashboards/%v/%v", request.DashboardId, request.ResultFormat), map[string]interface{}{"width": request.Width, "height": request.Height, "fields": request.Fields, "pdf_paper_size": request.PdfPaperSize, "pdf_landscape": request.PdfLandscape, "long_tables": request.LongTables, "theme": request.Theme}, request.Body, options) return result, err } @@ -5889,7 +5890,7 @@ func (l *LookerSDK) RenderTask( options *rtl.ApiSettings) (RenderTask, error) { renderTaskId = url.PathEscape(renderTaskId) var result RenderTask - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/render_tasks/%v", renderTaskId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/render_tasks/%v", renderTaskId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -5920,7 +5921,7 @@ func (l *LookerSDK) RenderTaskResults( options *rtl.ApiSettings) (string, error) { renderTaskId = url.PathEscape(renderTaskId) var result string - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/render_tasks/%v/results", renderTaskId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/render_tasks/%v/results", renderTaskId), nil, nil, options) return result, err } @@ -5942,7 +5943,7 @@ func (l *LookerSDK) CreateDashboardElementRenderTask( dashboardElementId = url.PathEscape(dashboardElementId) resultFormat = url.PathEscape(resultFormat) var result RenderTask - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/dashboard_elements/%v/%v", dashboardElementId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/render_tasks/dashboard_elements/%v/%v", dashboardElementId, resultFormat), map[string]interface{}{"width": width, "height": height, "fields": fields}, nil, options) return result, err } @@ -5980,7 +5981,7 @@ func (l *LookerSDK) CreateDashboardElementRenderTask( func (l *LookerSDK) SearchReports(request RequestSearchReports, options *rtl.ApiSettings) ([]Report, error) { var result []Report - err := l.session.Do(&result, "GET", "/4.0", "/reports/search", map[string]interface{}{"folder_id": request.FolderId, "favorite": request.Favorite, "recent": request.Recent, "id": request.Id, "title": request.Title, "sorts": request.Sorts, "limit": request.Limit, "fields": request.Fields, "next_page_token": request.NextPageToken}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/reports/search", map[string]interface{}{"folder_id": request.FolderId, "favorite": request.Favorite, "recent": request.Recent, "id": request.Id, "title": request.Title, "sorts": request.Sorts, "limit": request.Limit, "fields": request.Fields, "next_page_token": request.NextPageToken}, nil, options) return result, err } @@ -6016,7 +6017,7 @@ func (l *LookerSDK) SearchReports(request RequestSearchReports, func (l *LookerSDK) SearchModelSets(request RequestSearchModelSets, options *rtl.ApiSettings) ([]ModelSet, error) { var result []ModelSet - err := l.session.Do(&result, "GET", "/4.0", "/model_sets/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "all_access": request.AllAccess, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/model_sets/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "all_access": request.AllAccess, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -6030,7 +6031,7 @@ func (l *LookerSDK) ModelSet( options *rtl.ApiSettings) (ModelSet, error) { modelSetId = url.PathEscape(modelSetId) var result ModelSet - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6044,7 +6045,7 @@ func (l *LookerSDK) UpdateModelSet( options *rtl.ApiSettings) (ModelSet, error) { modelSetId = url.PathEscape(modelSetId) var result ModelSet - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), nil, body, options) return result, err } @@ -6057,7 +6058,7 @@ func (l *LookerSDK) DeleteModelSet( options *rtl.ApiSettings) (string, error) { modelSetId = url.PathEscape(modelSetId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/model_sets/%v", modelSetId), nil, nil, options) return result, err } @@ -6069,7 +6070,7 @@ func (l *LookerSDK) AllModelSets( fields string, options *rtl.ApiSettings) ([]ModelSet, error) { var result []ModelSet - err := l.session.Do(&result, "GET", "/4.0", "/model_sets", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/model_sets", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6081,7 +6082,7 @@ func (l *LookerSDK) CreateModelSet( body WriteModelSet, options *rtl.ApiSettings) (ModelSet, error) { var result ModelSet - err := l.session.Do(&result, "POST", "/4.0", "/model_sets", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/model_sets", nil, body, options) return result, err } @@ -6092,7 +6093,7 @@ func (l *LookerSDK) CreateModelSet( func (l *LookerSDK) AllPermissions( options *rtl.ApiSettings) ([]Permission, error) { var result []Permission - err := l.session.Do(&result, "GET", "/4.0", "/permissions", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/permissions", nil, nil, options) return result, err } @@ -6124,7 +6125,7 @@ func (l *LookerSDK) AllPermissions( func (l *LookerSDK) SearchPermissionSets(request RequestSearchPermissionSets, options *rtl.ApiSettings) ([]PermissionSet, error) { var result []PermissionSet - err := l.session.Do(&result, "GET", "/4.0", "/permission_sets/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "all_access": request.AllAccess, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/permission_sets/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "all_access": request.AllAccess, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -6138,7 +6139,7 @@ func (l *LookerSDK) PermissionSet( options *rtl.ApiSettings) (PermissionSet, error) { permissionSetId = url.PathEscape(permissionSetId) var result PermissionSet - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6153,7 +6154,7 @@ func (l *LookerSDK) UpdatePermissionSet( options *rtl.ApiSettings) (PermissionSet, error) { permissionSetId = url.PathEscape(permissionSetId) var result PermissionSet - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), nil, body, options) return result, err } @@ -6166,7 +6167,7 @@ func (l *LookerSDK) DeletePermissionSet( options *rtl.ApiSettings) (string, error) { permissionSetId = url.PathEscape(permissionSetId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/permission_sets/%v", permissionSetId), nil, nil, options) return result, err } @@ -6178,7 +6179,7 @@ func (l *LookerSDK) AllPermissionSets( fields string, options *rtl.ApiSettings) ([]PermissionSet, error) { var result []PermissionSet - err := l.session.Do(&result, "GET", "/4.0", "/permission_sets", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/permission_sets", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6191,7 +6192,7 @@ func (l *LookerSDK) CreatePermissionSet( body WritePermissionSet, options *rtl.ApiSettings) (PermissionSet, error) { var result PermissionSet - err := l.session.Do(&result, "POST", "/4.0", "/permission_sets", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/permission_sets", nil, body, options) return result, err } @@ -6202,7 +6203,7 @@ func (l *LookerSDK) CreatePermissionSet( func (l *LookerSDK) AllRoles(request RequestAllRoles, options *rtl.ApiSettings) ([]Role, error) { var result []Role - err := l.session.Do(&result, "GET", "/4.0", "/roles", map[string]interface{}{"fields": request.Fields, "ids": request.Ids}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/roles", map[string]interface{}{"fields": request.Fields, "ids": request.Ids}, nil, options) return result, err } @@ -6214,7 +6215,7 @@ func (l *LookerSDK) CreateRole( body WriteRole, options *rtl.ApiSettings) (Role, error) { var result Role - err := l.session.Do(&result, "POST", "/4.0", "/roles", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/roles", nil, body, options) return result, err } @@ -6248,7 +6249,7 @@ func (l *LookerSDK) CreateRole( func (l *LookerSDK) SearchRoles(request RequestSearchRoles, options *rtl.ApiSettings) ([]Role, error) { var result []Role - err := l.session.Do(&result, "GET", "/4.0", "/roles/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "built_in": request.BuiltIn, "filter_or": request.FilterOr, "is_support_role": request.IsSupportRole}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/roles/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "built_in": request.BuiltIn, "filter_or": request.FilterOr, "is_support_role": request.IsSupportRole}, nil, options) return result, err } @@ -6283,7 +6284,7 @@ func (l *LookerSDK) SearchRoles(request RequestSearchRoles, func (l *LookerSDK) SearchRolesWithUserCount(request RequestSearchRolesWithUserCount, options *rtl.ApiSettings) ([]RoleSearch, error) { var result []RoleSearch - err := l.session.Do(&result, "GET", "/4.0", "/roles/search/with_user_count", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/roles/search/with_user_count", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "name": request.Name, "built_in": request.BuiltIn, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -6296,7 +6297,7 @@ func (l *LookerSDK) Role( options *rtl.ApiSettings) (Role, error) { roleId = url.PathEscape(roleId) var result Role - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, nil, options) return result, err } @@ -6310,7 +6311,7 @@ func (l *LookerSDK) UpdateRole( options *rtl.ApiSettings) (Role, error) { roleId = url.PathEscape(roleId) var result Role - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, body, options) return result, err } @@ -6323,7 +6324,7 @@ func (l *LookerSDK) DeleteRole( options *rtl.ApiSettings) (string, error) { roleId = url.PathEscape(roleId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/roles/%v", roleId), nil, nil, options) return result, err } @@ -6337,7 +6338,7 @@ func (l *LookerSDK) RoleGroups( options *rtl.ApiSettings) ([]Group, error) { roleId = url.PathEscape(roleId) var result []Group - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v/groups", roleId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v/groups", roleId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6353,7 +6354,7 @@ func (l *LookerSDK) SetRoleGroups( options *rtl.ApiSettings) ([]Group, error) { roleId = url.PathEscape(roleId) var result []Group - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/roles/%v/groups", roleId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/roles/%v/groups", roleId), nil, body, options) return result, err } @@ -6365,7 +6366,7 @@ func (l *LookerSDK) RoleUsers(request RequestRoleUsers, options *rtl.ApiSettings) ([]User, error) { request.RoleId = url.PathEscape(request.RoleId) var result []User - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v/users", request.RoleId), map[string]interface{}{"fields": request.Fields, "direct_association_only": request.DirectAssociationOnly}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/roles/%v/users", request.RoleId), map[string]interface{}{"fields": request.Fields, "direct_association_only": request.DirectAssociationOnly}, nil, options) return result, err } @@ -6379,7 +6380,7 @@ func (l *LookerSDK) SetRoleUsers( options *rtl.ApiSettings) ([]User, error) { roleId = url.PathEscape(roleId) var result []User - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/roles/%v/users", roleId), nil, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/roles/%v/users", roleId), nil, body, options) return result, err } @@ -6399,7 +6400,7 @@ func (l *LookerSDK) ScheduledPlansForSpace( options *rtl.ApiSettings) ([]ScheduledPlan, error) { spaceId = url.PathEscape(spaceId) var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/space/%v", spaceId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/space/%v", spaceId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6415,7 +6416,7 @@ func (l *LookerSDK) ScheduledPlan( options *rtl.ApiSettings) (ScheduledPlan, error) { scheduledPlanId = url.PathEscape(scheduledPlanId) var result ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6469,7 +6470,7 @@ func (l *LookerSDK) UpdateScheduledPlan( options *rtl.ApiSettings) (ScheduledPlan, error) { scheduledPlanId = url.PathEscape(scheduledPlanId) var result ScheduledPlan - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), nil, body, options) return result, err } @@ -6486,7 +6487,7 @@ func (l *LookerSDK) DeleteScheduledPlan( options *rtl.ApiSettings) (string, error) { scheduledPlanId = url.PathEscape(scheduledPlanId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/scheduled_plans/%v", scheduledPlanId), nil, nil, options) return result, err } @@ -6505,7 +6506,7 @@ func (l *LookerSDK) DeleteScheduledPlan( func (l *LookerSDK) AllScheduledPlans(request RequestAllScheduledPlans, options *rtl.ApiSettings) ([]ScheduledPlan, error) { var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", "/scheduled_plans", map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/scheduled_plans", map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) return result, err } @@ -6573,7 +6574,7 @@ func (l *LookerSDK) CreateScheduledPlan( body WriteScheduledPlan, options *rtl.ApiSettings) (ScheduledPlan, error) { var result ScheduledPlan - err := l.session.Do(&result, "POST", "/4.0", "/scheduled_plans", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/scheduled_plans", nil, body, options) return result, err } @@ -6620,7 +6621,7 @@ func (l *LookerSDK) ScheduledPlanRunOnce( body WriteScheduledPlan, options *rtl.ApiSettings) (ScheduledPlan, error) { var result ScheduledPlan - err := l.session.Do(&result, "POST", "/4.0", "/scheduled_plans/run_once", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/scheduled_plans/run_once", nil, body, options) return result, err } @@ -6639,7 +6640,7 @@ func (l *LookerSDK) ScheduledPlanRunOnce( func (l *LookerSDK) SearchScheduledPlans(request RequestSearchScheduledPlans, options *rtl.ApiSettings) ([]ScheduledPlan, error) { var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", "/scheduled_plans/search", map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "user_first_name": request.UserFirstName, "user_last_name": request.UserLastName, "dashboard_id": request.DashboardId, "look_id": request.LookId, "lookml_dashboard_id": request.LookmlDashboardId, "recipient": request.Recipient, "destination_type": request.DestinationType, "delivery_format": request.DeliveryFormat, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/scheduled_plans/search", map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "name": request.Name, "user_first_name": request.UserFirstName, "user_last_name": request.UserLastName, "dashboard_id": request.DashboardId, "look_id": request.LookId, "lookml_dashboard_id": request.LookmlDashboardId, "recipient": request.Recipient, "destination_type": request.DestinationType, "delivery_format": request.DeliveryFormat, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -6659,7 +6660,7 @@ func (l *LookerSDK) ScheduledPlansForLook(request RequestScheduledPlansForLook, options *rtl.ApiSettings) ([]ScheduledPlan, error) { request.LookId = url.PathEscape(request.LookId) var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/look/%v", request.LookId), map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/look/%v", request.LookId), map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) return result, err } @@ -6679,7 +6680,7 @@ func (l *LookerSDK) ScheduledPlansForDashboard(request RequestScheduledPlansForD options *rtl.ApiSettings) ([]ScheduledPlan, error) { request.DashboardId = url.PathEscape(request.DashboardId) var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/dashboard/%v", request.DashboardId), map[string]interface{}{"user_id": request.UserId, "all_users": request.AllUsers, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/dashboard/%v", request.DashboardId), map[string]interface{}{"user_id": request.UserId, "all_users": request.AllUsers, "fields": request.Fields}, nil, options) return result, err } @@ -6699,7 +6700,7 @@ func (l *LookerSDK) ScheduledPlansForLookmlDashboard(request RequestScheduledPla options *rtl.ApiSettings) ([]ScheduledPlan, error) { request.LookmlDashboardId = url.PathEscape(request.LookmlDashboardId) var result []ScheduledPlan - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/lookml_dashboard/%v", request.LookmlDashboardId), map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/scheduled_plans/lookml_dashboard/%v", request.LookmlDashboardId), map[string]interface{}{"user_id": request.UserId, "fields": request.Fields, "all_users": request.AllUsers}, nil, options) return result, err } @@ -6756,7 +6757,7 @@ func (l *LookerSDK) ScheduledPlanRunOnceById( options *rtl.ApiSettings) (ScheduledPlan, error) { scheduledPlanId = url.PathEscape(scheduledPlanId) var result ScheduledPlan - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/scheduled_plans/%v/run_once", scheduledPlanId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/scheduled_plans/%v/run_once", scheduledPlanId), nil, body, options) return result, err } @@ -6773,7 +6774,7 @@ func (l *LookerSDK) ScheduledPlanRunOnceById( func (l *LookerSDK) Session( options *rtl.ApiSettings) (ApiSession, error) { var result ApiSession - err := l.session.Do(&result, "GET", "/4.0", "/session", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/session", nil, nil, options) return result, err } @@ -6804,7 +6805,7 @@ func (l *LookerSDK) UpdateSession( body WriteApiSession, options *rtl.ApiSettings) (ApiSession, error) { var result ApiSession - err := l.session.Do(&result, "PATCH", "/4.0", "/session", nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", "/session", nil, body, options) return result, err } @@ -6820,7 +6821,7 @@ func (l *LookerSDK) SqlInterfaceMetadata( avaticaRequest string, options *rtl.ApiSettings) (SqlInterfaceQueryMetadata, error) { var result SqlInterfaceQueryMetadata - err := l.session.Do(&result, "GET", "/4.0", "/sql_interface_queries/metadata", map[string]interface{}{"avatica_request": avaticaRequest}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/sql_interface_queries/metadata", map[string]interface{}{"avatica_request": avaticaRequest}, nil, options) return result, err } @@ -6844,7 +6845,7 @@ func (l *LookerSDK) RunSqlInterfaceQuery( options *rtl.ApiSettings) (JsonBi, error) { resultFormat = url.PathEscape(resultFormat) var result JsonBi - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/sql_interface_queries/%v/run/%v", queryId, resultFormat), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/sql_interface_queries/%v/run/%v", queryId, resultFormat), nil, nil, options) return result, err } @@ -6863,7 +6864,7 @@ func (l *LookerSDK) CreateSqlInterfaceQuery( body WriteSqlInterfaceQueryCreate, options *rtl.ApiSettings) (SqlInterfaceQuery, error) { var result SqlInterfaceQuery - err := l.session.Do(&result, "POST", "/4.0", "/sql_interface_queries", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/sql_interface_queries", nil, body, options) return result, err } @@ -6885,7 +6886,7 @@ func (l *LookerSDK) AllThemes( fields string, options *rtl.ApiSettings) ([]Theme, error) { var result []Theme - err := l.session.Do(&result, "GET", "/4.0", "/themes", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/themes", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -6911,7 +6912,7 @@ func (l *LookerSDK) CreateTheme( body WriteTheme, options *rtl.ApiSettings) (Theme, error) { var result Theme - err := l.session.Do(&result, "POST", "/4.0", "/themes", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/themes", nil, body, options) return result, err } @@ -6958,7 +6959,7 @@ func (l *LookerSDK) CreateTheme( func (l *LookerSDK) SearchThemes(request RequestSearchThemes, options *rtl.ApiSettings) ([]Theme, error) { var result []Theme - err := l.session.Do(&result, "GET", "/4.0", "/themes/search", map[string]interface{}{"id": request.Id, "name": request.Name, "begin_at": request.BeginAt, "end_at": request.EndAt, "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", "/themes/search", map[string]interface{}{"id": request.Id, "name": request.Name, "begin_at": request.BeginAt, "end_at": request.EndAt, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "fields": request.Fields, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -6976,7 +6977,7 @@ func (l *LookerSDK) DefaultTheme( ts time.Time, options *rtl.ApiSettings) (Theme, error) { var result Theme - err := l.session.Do(&result, "GET", "/4.0", "/themes/default", map[string]interface{}{"ts": ts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/themes/default", map[string]interface{}{"ts": ts}, nil, options) return result, err } @@ -6998,7 +6999,7 @@ func (l *LookerSDK) SetDefaultTheme( name string, options *rtl.ApiSettings) (Theme, error) { var result Theme - err := l.session.Do(&result, "PUT", "/4.0", "/themes/default", map[string]interface{}{"name": name}, nil, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", "/themes/default", map[string]interface{}{"name": name}, nil, options) return result, err } @@ -7017,7 +7018,7 @@ func (l *LookerSDK) SetDefaultTheme( func (l *LookerSDK) ActiveThemes(request RequestActiveThemes, options *rtl.ApiSettings) ([]Theme, error) { var result []Theme - err := l.session.Do(&result, "GET", "/4.0", "/themes/active", map[string]interface{}{"name": request.Name, "ts": request.Ts, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/themes/active", map[string]interface{}{"name": request.Name, "ts": request.Ts, "fields": request.Fields}, nil, options) return result, err } @@ -7035,7 +7036,7 @@ func (l *LookerSDK) ThemeOrDefault( ts time.Time, options *rtl.ApiSettings) (Theme, error) { var result Theme - err := l.session.Do(&result, "GET", "/4.0", "/themes/theme_or_default", map[string]interface{}{"name": name, "ts": ts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/themes/theme_or_default", map[string]interface{}{"name": name, "ts": ts}, nil, options) return result, err } @@ -7053,7 +7054,7 @@ func (l *LookerSDK) ValidateTheme( body WriteTheme, options *rtl.ApiSettings) (ValidationError, error) { var result ValidationError - err := l.session.Do(&result, "POST", "/4.0", "/themes/validate", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/themes/validate", nil, body, options) return result, err } @@ -7071,7 +7072,7 @@ func (l *LookerSDK) Theme( options *rtl.ApiSettings) (Theme, error) { themeId = url.PathEscape(themeId) var result Theme - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/themes/%v", themeId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/themes/%v", themeId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7087,7 +7088,7 @@ func (l *LookerSDK) UpdateTheme( options *rtl.ApiSettings) (Theme, error) { themeId = url.PathEscape(themeId) var result Theme - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/themes/%v", themeId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/themes/%v", themeId), nil, body, options) return result, err } @@ -7108,7 +7109,7 @@ func (l *LookerSDK) DeleteTheme( options *rtl.ApiSettings) (string, error) { themeId = url.PathEscape(themeId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/themes/%v", themeId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/themes/%v", themeId), nil, nil, options) return result, err } @@ -7148,7 +7149,7 @@ func (l *LookerSDK) DeleteTheme( func (l *LookerSDK) SearchCredentialsEmail(request RequestSearchCredentialsEmail, options *rtl.ApiSettings) ([]CredentialsEmailSearch, error) { var result []CredentialsEmailSearch - err := l.session.Do(&result, "GET", "/4.0", "/credentials_email/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "email": request.Email, "emails": request.Emails, "filter_or": request.FilterOr}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/credentials_email/search", map[string]interface{}{"fields": request.Fields, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "id": request.Id, "email": request.Email, "emails": request.Emails, "filter_or": request.FilterOr}, nil, options) return result, err } @@ -7160,7 +7161,7 @@ func (l *LookerSDK) Me( fields string, options *rtl.ApiSettings) (User, error) { var result User - err := l.session.Do(&result, "GET", "/4.0", "/user", map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/user", map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7171,7 +7172,7 @@ func (l *LookerSDK) Me( func (l *LookerSDK) AllUsers(request RequestAllUsers, options *rtl.ApiSettings) ([]User, error) { var result []User - err := l.session.Do(&result, "GET", "/4.0", "/users", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "ids": request.Ids}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/users", map[string]interface{}{"fields": request.Fields, "page": request.Page, "per_page": request.PerPage, "limit": request.Limit, "offset": request.Offset, "sorts": request.Sorts, "ids": request.Ids}, nil, options) return result, err } @@ -7184,7 +7185,7 @@ func (l *LookerSDK) CreateUser( fields string, options *rtl.ApiSettings) (User, error) { var result User - err := l.session.Do(&result, "POST", "/4.0", "/users", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/users", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7223,7 +7224,7 @@ func (l *LookerSDK) CreateUser( func (l *LookerSDK) SearchUsers(request RequestSearchUsers, options *rtl.ApiSettings) ([]User, error) { var result []User - err := l.session.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 } @@ -7240,7 +7241,7 @@ func (l *LookerSDK) SearchUsersNames(request RequestSearchUsersNames, options *rtl.ApiSettings) ([]User, error) { request.Pattern = url.PathEscape(request.Pattern) var result []User - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/search/names/%v", request.Pattern), 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, "email": request.Email, "is_disabled": request.IsDisabled}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/search/names/%v", request.Pattern), 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, "email": request.Email, "is_disabled": request.IsDisabled}, nil, options) return result, err } @@ -7258,7 +7259,7 @@ func (l *LookerSDK) User( options *rtl.ApiSettings) (User, error) { userId = url.PathEscape(userId) var result User - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7273,7 +7274,7 @@ func (l *LookerSDK) UpdateUser( options *rtl.ApiSettings) (User, error) { userId = url.PathEscape(userId) var result User - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7288,7 +7289,7 @@ func (l *LookerSDK) DeleteUser( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v", userId), nil, nil, options) return result, err } @@ -7333,7 +7334,7 @@ func (l *LookerSDK) UserForCredential( credentialType = url.PathEscape(credentialType) credentialId = url.PathEscape(credentialId) var result User - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/credential/%v/%v", credentialType, credentialId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/credential/%v/%v", credentialType, credentialId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7349,7 +7350,7 @@ func (l *LookerSDK) UserCredentialsEmail( options *rtl.ApiSettings) (CredentialsEmail, error) { userId = url.PathEscape(userId) var result CredentialsEmail - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7366,7 +7367,7 @@ func (l *LookerSDK) CreateUserCredentialsEmail( options *rtl.ApiSettings) (CredentialsEmail, error) { userId = url.PathEscape(userId) var result CredentialsEmail - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7383,7 +7384,7 @@ func (l *LookerSDK) UpdateUserCredentialsEmail( options *rtl.ApiSettings) (CredentialsEmail, error) { userId = url.PathEscape(userId) var result CredentialsEmail - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7398,7 +7399,7 @@ func (l *LookerSDK) DeleteUserCredentialsEmail( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_email", userId), nil, nil, options) return result, err } @@ -7414,7 +7415,7 @@ func (l *LookerSDK) UserCredentialsTotp( options *rtl.ApiSettings) (CredentialsTotp, error) { userId = url.PathEscape(userId) var result CredentialsTotp - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7431,7 +7432,7 @@ func (l *LookerSDK) CreateUserCredentialsTotp( options *rtl.ApiSettings) (CredentialsTotp, error) { userId = url.PathEscape(userId) var result CredentialsTotp - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7446,7 +7447,7 @@ func (l *LookerSDK) DeleteUserCredentialsTotp( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_totp", userId), nil, nil, options) return result, err } @@ -7462,7 +7463,7 @@ func (l *LookerSDK) UserCredentialsLdap( options *rtl.ApiSettings) (CredentialsLDAP, error) { userId = url.PathEscape(userId) var result CredentialsLDAP - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_ldap", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_ldap", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7477,7 +7478,7 @@ func (l *LookerSDK) DeleteUserCredentialsLdap( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_ldap", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_ldap", userId), nil, nil, options) return result, err } @@ -7493,7 +7494,7 @@ func (l *LookerSDK) UserCredentialsGoogle( options *rtl.ApiSettings) (CredentialsGoogle, error) { userId = url.PathEscape(userId) var result CredentialsGoogle - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_google", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_google", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7508,7 +7509,7 @@ func (l *LookerSDK) DeleteUserCredentialsGoogle( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_google", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_google", userId), nil, nil, options) return result, err } @@ -7524,7 +7525,7 @@ func (l *LookerSDK) UserCredentialsSaml( options *rtl.ApiSettings) (CredentialsSaml, error) { userId = url.PathEscape(userId) var result CredentialsSaml - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_saml", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_saml", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7539,7 +7540,7 @@ func (l *LookerSDK) DeleteUserCredentialsSaml( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_saml", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_saml", userId), nil, nil, options) return result, err } @@ -7555,7 +7556,7 @@ func (l *LookerSDK) UserCredentialsOidc( options *rtl.ApiSettings) (CredentialsOIDC, error) { userId = url.PathEscape(userId) var result CredentialsOIDC - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_oidc", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_oidc", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7570,7 +7571,7 @@ func (l *LookerSDK) DeleteUserCredentialsOidc( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_oidc", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_oidc", userId), nil, nil, options) return result, err } @@ -7588,7 +7589,26 @@ func (l *LookerSDK) UserCredentialsApi3( userId = url.PathEscape(userId) credentialsApi3Id = url.PathEscape(credentialsApi3Id) var result CredentialsApi3 - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_api3/%v", userId, credentialsApi3Id), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_api3/%v", userId, credentialsApi3Id), map[string]interface{}{"fields": fields}, nil, 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). +// +// 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 } @@ -7605,7 +7625,7 @@ func (l *LookerSDK) DeleteUserCredentialsApi3( userId = url.PathEscape(userId) credentialsApi3Id = url.PathEscape(credentialsApi3Id) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_api3/%v", userId, credentialsApi3Id), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_api3/%v", userId, credentialsApi3Id), nil, nil, options) return result, err } @@ -7621,7 +7641,7 @@ func (l *LookerSDK) AllUserCredentialsApi3s( options *rtl.ApiSettings) ([]CredentialsApi3, error) { userId = url.PathEscape(userId) var result []CredentialsApi3 - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_api3", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_api3", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7637,7 +7657,7 @@ func (l *LookerSDK) CreateUserCredentialsApi3( options *rtl.ApiSettings) (CreateCredentialsApi3, error) { userId = url.PathEscape(userId) var result CreateCredentialsApi3 - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_api3", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_api3", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7655,7 +7675,7 @@ func (l *LookerSDK) UserCredentialsEmbed( userId = url.PathEscape(userId) credentialsEmbedId = url.PathEscape(credentialsEmbedId) var result CredentialsEmbed - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_embed/%v", userId, credentialsEmbedId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_embed/%v", userId, credentialsEmbedId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7672,7 +7692,7 @@ func (l *LookerSDK) DeleteUserCredentialsEmbed( userId = url.PathEscape(userId) credentialsEmbedId = url.PathEscape(credentialsEmbedId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_embed/%v", userId, credentialsEmbedId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_embed/%v", userId, credentialsEmbedId), nil, nil, options) return result, err } @@ -7688,7 +7708,7 @@ func (l *LookerSDK) AllUserCredentialsEmbeds( options *rtl.ApiSettings) ([]CredentialsEmbed, error) { userId = url.PathEscape(userId) var result []CredentialsEmbed - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_embed", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_embed", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7704,7 +7724,7 @@ func (l *LookerSDK) UserCredentialsLookerOpenid( options *rtl.ApiSettings) (CredentialsLookerOpenid, error) { userId = url.PathEscape(userId) var result CredentialsLookerOpenid - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_looker_openid", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/credentials_looker_openid", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7719,7 +7739,7 @@ func (l *LookerSDK) DeleteUserCredentialsLookerOpenid( options *rtl.ApiSettings) (string, error) { userId = url.PathEscape(userId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_looker_openid", userId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/credentials_looker_openid", userId), nil, nil, options) return result, err } @@ -7737,7 +7757,7 @@ func (l *LookerSDK) UserSession( userId = url.PathEscape(userId) sessionId = url.PathEscape(sessionId) var result Session - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/sessions/%v", userId, sessionId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/sessions/%v", userId, sessionId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7754,7 +7774,7 @@ func (l *LookerSDK) DeleteUserSession( userId = url.PathEscape(userId) sessionId = url.PathEscape(sessionId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/sessions/%v", userId, sessionId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/users/%v/sessions/%v", userId, sessionId), nil, nil, options) return result, err } @@ -7770,7 +7790,7 @@ func (l *LookerSDK) AllUserSessions( options *rtl.ApiSettings) ([]Session, error) { userId = url.PathEscape(userId) var result []Session - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/sessions", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/sessions", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7792,7 +7812,7 @@ func (l *LookerSDK) CreateUserCredentialsEmailPasswordReset(request RequestCreat options *rtl.ApiSettings) (CredentialsEmail, error) { request.UserId = url.PathEscape(request.UserId) var result CredentialsEmail - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email/password_reset", request.UserId), map[string]interface{}{"expires": request.Expires, "fields": request.Fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email/password_reset", request.UserId), map[string]interface{}{"expires": request.Expires, "fields": request.Fields}, nil, options) return result, err } @@ -7804,7 +7824,7 @@ func (l *LookerSDK) UserRoles(request RequestUserRoles, options *rtl.ApiSettings) ([]Role, error) { request.UserId = url.PathEscape(request.UserId) var result []Role - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/roles", request.UserId), map[string]interface{}{"fields": request.Fields, "direct_association_only": request.DirectAssociationOnly}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/roles", request.UserId), map[string]interface{}{"fields": request.Fields, "direct_association_only": request.DirectAssociationOnly}, nil, options) return result, err } @@ -7819,7 +7839,7 @@ func (l *LookerSDK) SetUserRoles( options *rtl.ApiSettings) ([]Role, error) { userId = url.PathEscape(userId) var result []Role - err := l.session.Do(&result, "PUT", "/4.0", fmt.Sprintf("/users/%v/roles", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PUT", "/4.0", fmt.Sprintf("/users/%v/roles", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7846,7 +7866,7 @@ func (l *LookerSDK) UserAttributeUserValues(request RequestUserAttributeUserValu options *rtl.ApiSettings) ([]UserAttributeWithValue, error) { request.UserId = url.PathEscape(request.UserId) var result []UserAttributeWithValue - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/attribute_values", request.UserId), map[string]interface{}{"fields": request.Fields, "user_attribute_ids": request.UserAttributeIds, "all_values": request.AllValues, "include_unset": request.IncludeUnset}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/users/%v/attribute_values", request.UserId), map[string]interface{}{"fields": request.Fields, "user_attribute_ids": request.UserAttributeIds, "all_values": request.AllValues, "include_unset": request.IncludeUnset}, nil, options) return result, err } @@ -7864,7 +7884,7 @@ func (l *LookerSDK) SetUserAttributeUserValue( userId = url.PathEscape(userId) userAttributeId = url.PathEscape(userAttributeId) var result UserAttributeWithValue - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v/attribute_values/%v", userId, userAttributeId), nil, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/users/%v/attribute_values/%v", userId, userAttributeId), nil, body, options) return result, err } @@ -7883,7 +7903,7 @@ func (l *LookerSDK) DeleteUserAttributeUserValue( options *rtl.ApiSettings) error { userId = url.PathEscape(userId) userAttributeId = url.PathEscape(userAttributeId) - err := l.session.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/users/%v/attribute_values/%v", userId, userAttributeId), nil, nil, options) + err := l.AuthSession.Do(nil, "DELETE", "/4.0", fmt.Sprintf("/users/%v/attribute_values/%v", userId, userAttributeId), nil, nil, options) return err } @@ -7905,7 +7925,7 @@ func (l *LookerSDK) SendUserCredentialsEmailPasswordReset( options *rtl.ApiSettings) (CredentialsEmail, error) { userId = url.PathEscape(userId) var result CredentialsEmail - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email/send_password_reset", userId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/credentials_email/send_password_reset", userId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -7928,7 +7948,7 @@ func (l *LookerSDK) WipeoutUserEmails( options *rtl.ApiSettings) (User, error) { userId = url.PathEscape(userId) var result User - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/update_emails", userId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/users/%v/update_emails", userId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7942,7 +7962,7 @@ func (l *LookerSDK) CreateEmbedUser( body CreateEmbedUserRequest, options *rtl.ApiSettings) (UserPublic, error) { var result UserPublic - err := l.session.Do(&result, "POST", "/4.0", "/users/embed_user", nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/users/embed_user", nil, body, options) return result, err } @@ -7957,7 +7977,7 @@ func (l *LookerSDK) CreateEmbedUser( func (l *LookerSDK) AllUserAttributes(request RequestAllUserAttributes, options *rtl.ApiSettings) ([]UserAttribute, error) { var result []UserAttribute - err := l.session.Do(&result, "GET", "/4.0", "/user_attributes", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/user_attributes", map[string]interface{}{"fields": request.Fields, "sorts": request.Sorts}, nil, options) return result, err } @@ -7979,7 +7999,7 @@ func (l *LookerSDK) CreateUserAttribute( fields string, options *rtl.ApiSettings) (UserAttribute, error) { var result UserAttribute - err := l.session.Do(&result, "POST", "/4.0", "/user_attributes", map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", "/user_attributes", map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -7993,7 +8013,7 @@ func (l *LookerSDK) UserAttribute( options *rtl.ApiSettings) (UserAttribute, error) { userAttributeId = url.PathEscape(userAttributeId) var result UserAttribute - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -8008,7 +8028,7 @@ func (l *LookerSDK) UpdateUserAttribute( options *rtl.ApiSettings) (UserAttribute, error) { userAttributeId = url.PathEscape(userAttributeId) var result UserAttribute - err := l.session.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), map[string]interface{}{"fields": fields}, body, options) + err := l.AuthSession.Do(&result, "PATCH", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), map[string]interface{}{"fields": fields}, body, options) return result, err } @@ -8021,7 +8041,7 @@ func (l *LookerSDK) DeleteUserAttribute( options *rtl.ApiSettings) (string, error) { userAttributeId = url.PathEscape(userAttributeId) var result string - err := l.session.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), nil, nil, options) + err := l.AuthSession.Do(&result, "DELETE", "/4.0", fmt.Sprintf("/user_attributes/%v", userAttributeId), nil, nil, options) return result, err } @@ -8041,7 +8061,7 @@ func (l *LookerSDK) AllUserAttributeGroupValues( options *rtl.ApiSettings) ([]UserAttributeGroupValue, error) { userAttributeId = url.PathEscape(userAttributeId) var result []UserAttributeGroupValue - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/user_attributes/%v/group_values", userAttributeId), map[string]interface{}{"fields": fields}, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/user_attributes/%v/group_values", userAttributeId), map[string]interface{}{"fields": fields}, nil, options) return result, err } @@ -8075,7 +8095,7 @@ func (l *LookerSDK) SetUserAttributeGroupValues( options *rtl.ApiSettings) ([]UserAttributeGroupValue, error) { userAttributeId = url.PathEscape(userAttributeId) var result []UserAttributeGroupValue - err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/user_attributes/%v/group_values", userAttributeId), nil, body, options) + err := l.AuthSession.Do(&result, "POST", "/4.0", fmt.Sprintf("/user_attributes/%v/group_values", userAttributeId), nil, body, options) return result, err } @@ -8092,7 +8112,7 @@ func (l *LookerSDK) SetUserAttributeGroupValues( func (l *LookerSDK) AllWorkspaces( options *rtl.ApiSettings) ([]Workspace, error) { var result []Workspace - err := l.session.Do(&result, "GET", "/4.0", "/workspaces", nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", "/workspaces", nil, nil, options) return result, err } @@ -8133,7 +8153,7 @@ func (l *LookerSDK) Workspace( options *rtl.ApiSettings) (Workspace, error) { workspaceId = url.PathEscape(workspaceId) var result Workspace - err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/workspaces/%v", workspaceId), nil, nil, options) + err := l.AuthSession.Do(&result, "GET", "/4.0", fmt.Sprintf("/workspaces/%v", workspaceId), nil, nil, options) return result, err } diff --git a/go/sdk/v4/models.go b/go/sdk/v4/models.go index 268891f5e..d11ec7f9b 100644 --- a/go/sdk/v4/models.go +++ b/go/sdk/v4/models.go @@ -26,7 +26,7 @@ SOFTWARE. /* -444 API models: 287 Spec, 72 Request, 61 Write, 24 Enum +445 API models: 287 Spec, 72 Request, 62 Write, 24 Enum */ // NOTE: Do not edit this file generated by Looker SDK Codegen for API v4 @@ -299,25 +299,6 @@ type CIGitState struct { Target *string `json:"target,omitempty"` // For incremental runs, the Git branch that the CI run compares against during validation } -type CIRun struct { - RunId *string `json:"run_id,omitempty"` // ID of the CI run - CreatedAt *time.Time `json:"created_at,omitempty"` // Time and date that the CI run was initiated - StartedAt *time.Time `json:"started_at,omitempty"` // Time and date that the CI run began executing - FinishedAt *time.Time `json:"finished_at,omitempty"` // Time and date that the CI run completed - StatusUrl *string `json:"status_url,omitempty"` // Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite - Status *string `json:"status,omitempty"` // Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) - GitService *string `json:"git_service,omitempty"` // Git service for CI run (e.g. GitHub) - GitState *CIGitState `json:"git_state,omitempty"` - Result *CIRunResult `json:"result,omitempty"` - Schedule *CIScheduleTrigger `json:"schedule,omitempty"` - TargetBranch *string `json:"target_branch,omitempty"` // Git branch that the CI run compares against during validation, used for incremental runs - Title *string `json:"title,omitempty"` // Name of the CI suite - Trigger *string `json:"trigger,omitempty"` // Trigger for CI run (unknown, manual, schedule, change_request) - ChangeRequest *CIChangeRequest `json:"change_request,omitempty"` - SuiteId *string `json:"suite_id,omitempty"` // ID of the CI suite - Username *string `json:"username,omitempty"` // Username of the user who triggered the CI run, if the CI run was manually triggered -} - type CIRunResult struct { SqlResult *SqlValidatorResult `json:"sql_result,omitempty"` SqlError *GenericError `json:"sql_error,omitempty"` @@ -395,7 +376,9 @@ type ContentFavorite struct { DashboardId *string `json:"dashboard_id,omitempty"` // Id of a dashboard Look *LookBasic `json:"look,omitempty"` Dashboard *DashboardBase `json:"dashboard,omitempty"` - BoardId *string `json:"board_id,omitempty"` // Id of a board + BoardId *string `json:"board_id,omitempty"` // Id of a board + LookmlDashboardId *string `json:"lookml_dashboard_id,omitempty"` // Id of a lookml dashboard + LookmlDashboard *DashboardBase `json:"lookml_dashboard,omitempty"` } type ContentMeta struct { @@ -406,6 +389,8 @@ type ContentMeta struct { DashboardId *string `json:"dashboard_id,omitempty"` // Id of associated dashboard when content_type is "dashboard" LookId *string `json:"look_id,omitempty"` // Id of associated look when content_type is "look" FolderId *string `json:"folder_id,omitempty"` // Id of associated folder when content_type is "space" + HomepageId *string `json:"homepage_id,omitempty"` // Id of associated board when content_type is "board" + AgentId *string `json:"agent_id,omitempty"` // Id of associated agent when content_type is "agent" ContentType *string `json:"content_type,omitempty"` // Content Type ("dashboard", "look", or "folder") Inherits *bool `json:"inherits,omitempty"` // Whether content inherits its access levels from parent InheritingId *string `json:"inheriting_id,omitempty"` // Id of Inherited Content @@ -654,6 +639,7 @@ type CreateCredentialsApi3 struct { CreatedAt *string `json:"created_at,omitempty"` // Timestamp for the creation of this credential IsDisabled *bool `json:"is_disabled,omitempty"` // Has this credential been disabled? Type *string `json:"type,omitempty"` // Short name for the type of this kind of credential + Purpose *string `json:"purpose,omitempty"` // User defined purpose for this credential. ClientSecret *string `json:"client_secret,omitempty"` // API key client_secret Url *string `json:"url,omitempty"` // Link to get this item } @@ -721,6 +707,7 @@ type CredentialsApi3 struct { CreatedAt *string `json:"created_at,omitempty"` // Timestamp for the creation of this credential IsDisabled *bool `json:"is_disabled,omitempty"` // Has this credential been disabled? Type *string `json:"type,omitempty"` // Short name for the type of this kind of credential + Purpose *string `json:"purpose,omitempty"` // User defined purpose for this credential. Url *string `json:"url,omitempty"` // Link to get this item } @@ -1085,6 +1072,7 @@ type DBConnection struct { UsesOauth *bool `json:"uses_oauth,omitempty"` // Whether the connection uses OAuth for authentication. UsesKeyPairAuth *bool `json:"uses_key_pair_auth,omitempty"` // Whether the connection uses key-pair for authentication. UsesInstanceOauth *bool `json:"uses_instance_oauth,omitempty"` // Whether the integration uses the oauth instance account. + UsesServiceAuth *bool `json:"uses_service_auth,omitempty"` // Whether the connection uses service authentication certificate. Certificate *string `json:"certificate,omitempty"` // (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). FileType *string `json:"file_type,omitempty"` // (Write-Only) Certificate keyfile type - .json, .p8 or .p12 Database *string `json:"database,omitempty"` // Database name @@ -2550,10 +2538,6 @@ type Project struct { DependencyStatus *string `json:"dependency_status,omitempty"` // Status of dependencies in your manifest & lockfile } -type ProjectCIRun struct { - Run *CIRun `json:"run,omitempty"` -} - type ProjectError struct { Code *string `json:"code,omitempty"` // A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language Severity *string `json:"severity,omitempty"` // Severity: fatal, error, warning, info, success @@ -2581,6 +2565,10 @@ type ProjectFile struct { GitStatus *GitStatus `json:"git_status,omitempty"` } +type ProjectRun struct { + Run *Run `json:"run,omitempty"` +} + type ProjectValidation struct { Errors *[]ProjectError `json:"errors,omitempty"` // A list of project errors ProjectDigest *string `json:"project_digest,omitempty"` // A hash value computed from the project's current state @@ -3176,11 +3164,12 @@ type RequestSearchContent struct { // Dynamically generated request type for search_content_favorites type RequestSearchContentFavorites struct { Id *string `json:"id,omitempty"` // Match content favorite id(s) - UserId *string `json:"user_id,omitempty"` // Match user id(s).To create a list of multiple ids, use commas as separators - ContentMetadataId *string `json:"content_metadata_id,omitempty"` // Match content metadata id(s).To create a list of multiple ids, use commas as separators - DashboardId *string `json:"dashboard_id,omitempty"` // Match dashboard id(s).To create a list of multiple ids, use commas as separators - LookId *string `json:"look_id,omitempty"` // Match look id(s).To create a list of multiple ids, use commas as separators - BoardId *string `json:"board_id,omitempty"` // Match board id(s).To create a list of multiple ids, use commas as separators + UserId *string `json:"user_id,omitempty"` // Match user id(s). To create a list of multiple ids, use commas as separators + ContentMetadataId *string `json:"content_metadata_id,omitempty"` // Match content metadata id(s). To create a list of multiple ids, use commas as separators + DashboardId *string `json:"dashboard_id,omitempty"` // Match dashboard id(s). To create a list of multiple ids, use commas as separators + LookId *string `json:"look_id,omitempty"` // Match look id(s). To create a list of multiple ids, use commas as separators + BoardId *string `json:"board_id,omitempty"` // Match board id(s). To create a list of multiple ids, use commas as separators + IncludeBoardItems *bool `json:"include_board_items,omitempty"` // 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. 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. @@ -3463,6 +3452,7 @@ type RequestSearchUsers struct { FilterOr *bool `json:"filter_or,omitempty"` // Combine given search criteria in a boolean OR expression ContentMetadataId *string `json:"content_metadata_id,omitempty"` // Search for users who have access to this content_metadata item GroupId *string `json:"group_id,omitempty"` // Search for users who are direct members of this group + CanManageApi3Creds *bool `json:"can_manage_api3_creds,omitempty"` // Search for users who can manage API3 credentials } // Dynamically generated request type for search_users_names @@ -3590,6 +3580,25 @@ type RoleSearch struct { UsersUrl *string `json:"users_url,omitempty"` // Link to get list of users with this role } +type Run struct { + RunId *string `json:"run_id,omitempty"` // ID of the CI run + CreatedAt *time.Time `json:"created_at,omitempty"` // Time and date that the CI run was initiated + StartedAt *time.Time `json:"started_at,omitempty"` // Time and date that the CI run began executing + FinishedAt *time.Time `json:"finished_at,omitempty"` // Time and date that the CI run completed + StatusUrl *string `json:"status_url,omitempty"` // Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite + Status *string `json:"status,omitempty"` // Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) + GitService *string `json:"git_service,omitempty"` // Git service for CI run (e.g. GitHub) + GitState *CIGitState `json:"git_state,omitempty"` + Result *CIRunResult `json:"result,omitempty"` + Schedule *CIScheduleTrigger `json:"schedule,omitempty"` + TargetBranch *string `json:"target_branch,omitempty"` // Git branch that the CI run compares against during validation, used for incremental runs + Title *string `json:"title,omitempty"` // Name of the CI suite + Trigger *string `json:"trigger,omitempty"` // Trigger for CI run (unknown, manual, schedule, change_request) + ChangeRequest *CIChangeRequest `json:"change_request,omitempty"` + SuiteId *string `json:"suite_id,omitempty"` // ID of the CI suite + Username *string `json:"username,omitempty"` // Username of the user who triggered the CI run, if the CI run was manually triggered +} + type RunningQueries struct { Can *map[string]bool `json:"can,omitempty"` // Operations the current user is able to perform on this object Id *string `json:"id,omitempty"` // Unique Id @@ -4159,7 +4168,8 @@ 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) + IsIamAdmin *bool `json:"is_iam_admin,omitempty"` // 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. + CanManageApi3Creds *bool `json:"can_manage_api3_creds,omitempty"` // Indicates if the user can manage API3 credentials Url *string `json:"url,omitempty"` // Link to get this item } @@ -4386,7 +4396,7 @@ type WriteColorCollection struct { } // Dynamic writeable type for ContentFavorite removes: -// id, look_id, dashboard_id, board_id +// id, look_id, dashboard_id, board_id, lookml_dashboard_id type WriteContentFavorite struct { UserId *string `json:"user_id,omitempty"` // User Id which owns this ContentFavorite ContentMetadataId *string `json:"content_metadata_id,omitempty"` // Content Metadata Id associated with this ContentFavorite @@ -4394,10 +4404,12 @@ type WriteContentFavorite struct { // can, content_metadata_id, id, title Dashboard *WriteDashboardBase `json:"dashboard,omitempty"` // Dynamic writeable type for DashboardBase removes: // can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + LookmlDashboard *WriteDashboardBase `json:"lookml_dashboard,omitempty"` // Dynamic writeable type for DashboardBase removes: + // can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer } // 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 type WriteContentMeta struct { Inherits *bool `json:"inherits,omitempty"` // Whether content inherits its access levels from parent } @@ -4431,6 +4443,12 @@ type WriteCreateQueryTask struct { DashboardId *string `json:"dashboard_id,omitempty"` // Id of dashboard associated with query. } +// Dynamic writeable type for CredentialsApi3 removes: +// can, id, client_id, created_at, is_disabled, type, url +type WriteCredentialsApi3 struct { + Purpose *string `json:"purpose,omitempty"` // User defined purpose for this credential. +} + // 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 type WriteCredentialsEmail struct { @@ -4493,7 +4511,7 @@ type WriteDashboardElement struct { QueryId *string `json:"query_id,omitempty"` // Id Of Query RefreshInterval *string `json:"refresh_interval,omitempty"` // Refresh Interval ResultMaker *WriteResultMakerWithIdVisConfigAndDynamicFields `json:"result_maker,omitempty"` // Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - // id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + // id, query_id ResultMakerId *string `json:"result_maker_id,omitempty"` // ID of the ResultMakerLookup entry. SubtitleText *string `json:"subtitle_text,omitempty"` // Text tile subtitle text Title *string `json:"title,omitempty"` // Title of dashboard element @@ -4557,7 +4575,7 @@ type WriteDatagroup struct { } // 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 type WriteDBConnection struct { Name *string `json:"name,omitempty"` // Name of the connection. Also used as the unique identifier NamedDriverVersionRequested *string `json:"named_driver_version_requested,omitempty"` // Requested JDBC driver version name @@ -4949,10 +4967,17 @@ type WriteRepositoryCredential struct { } // Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: -// id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config +// id, query_id type WriteResultMakerWithIdVisConfigAndDynamicFields struct { - Query *WriteQuery `json:"query,omitempty"` // Dynamic writeable type for Query removes: + DynamicFields *string `json:"dynamic_fields,omitempty"` // JSON string of dynamic field information. + Filterables *[]ResultMakerFilterables `json:"filterables,omitempty"` // array of items that can be filtered and information about them. + Sorts *[]string `json:"sorts,omitempty"` // Sorts of the constituent Look, Query, or Merge Query + MergeResultId *string `json:"merge_result_id,omitempty"` // ID of merge result if this is a merge_result. + Total *bool `json:"total,omitempty"` // Total of the constituent Look, Query, or Merge Query + SqlQueryId *string `json:"sql_query_id,omitempty"` // ID of SQL Query if this is a SQL Runner Query + Query *WriteQuery `json:"query,omitempty"` // Dynamic writeable type for Query removes: // can, id, slug, share_url, expanded_share_url, url, has_table_calculations + VisConfig *map[string]interface{} `json:"vis_config,omitempty"` // Vis config of the constituent Query, or Merge Query. } // Dynamic writeable type for Role removes: @@ -5107,13 +5132,14 @@ type WriteTheme struct { 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, password_reset_url_expired, account_setup_url_expired, type, url, user_url - FirstName *string `json:"first_name,omitempty"` // First name - HomeFolderId *string `json:"home_folder_id,omitempty"` // ID string for user's home folder - IsDisabled *bool `json:"is_disabled,omitempty"` // Account has been disabled - LastName *string `json:"last_name,omitempty"` // Last name - Locale *string `json:"locale,omitempty"` // User's preferred locale. User locale takes precedence over Looker's system-wide default locale. Locale determines language of display strings and date and numeric formatting in API responses. Locale string must be a 2 letter language code or a combination of language code and region code: 'en' or 'en-US', for example. - ModelsDirValidated *bool `json:"models_dir_validated,omitempty"` // User's dev workspace has been checked for presence of applicable production projects - UiState *map[string]interface{} `json:"ui_state,omitempty"` // Per user dictionary of undocumented state information owned by the Looker UI. + FirstName *string `json:"first_name,omitempty"` // First name + HomeFolderId *string `json:"home_folder_id,omitempty"` // ID string for user's home folder + IsDisabled *bool `json:"is_disabled,omitempty"` // Account has been disabled + LastName *string `json:"last_name,omitempty"` // Last name + Locale *string `json:"locale,omitempty"` // User's preferred locale. User locale takes precedence over Looker's system-wide default locale. Locale determines language of display strings and date and numeric formatting in API responses. Locale string must be a 2 letter language code or a combination of language code and region code: 'en' or 'en-US', for example. + ModelsDirValidated *bool `json:"models_dir_validated,omitempty"` // User's dev workspace has been checked for presence of applicable production projects + UiState *map[string]interface{} `json:"ui_state,omitempty"` // Per user dictionary of undocumented state information owned by the Looker UI. + CanManageApi3Creds *bool `json:"can_manage_api3_creds,omitempty"` // Indicates if the user can manage API3 credentials } // Dynamic writeable type for UserAttribute 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 b20a214bf..36dafbb0d 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/methods.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/methods.kt @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 @@ -3141,11 +3141,12 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * Boolean search params accept only "true" and "false" as values. * * @param {String} id Match content favorite id(s) - * @param {String} user_id Match user id(s).To create a list of multiple ids, use commas as separators - * @param {String} content_metadata_id Match content metadata id(s).To create a list of multiple ids, use commas as separators - * @param {String} dashboard_id Match dashboard id(s).To create a list of multiple ids, use commas as separators - * @param {String} look_id Match look id(s).To create a list of multiple ids, use commas as separators - * @param {String} board_id Match board id(s).To create a list of multiple ids, use commas as separators + * @param {String} user_id Match user id(s). To create a list of multiple ids, use commas as separators + * @param {String} content_metadata_id Match content metadata id(s). To create a list of multiple ids, use commas as separators + * @param {String} dashboard_id Match dashboard id(s). To create a list of multiple ids, use commas as separators + * @param {String} look_id Match look id(s). To create a list of multiple ids, use commas as separators + * @param {String} board_id Match board id(s). To create a list of multiple ids, use commas as separators + * @param {Boolean} 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 {Long} limit Number of results to return. (used with offset) * @param {Long} offset Number of results to skip before returning any. (used with limit) * @param {String} sorts Fields to sort by. @@ -3161,6 +3162,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { dashboard_id: String? = null, look_id: String? = null, board_id: String? = null, + include_board_items: Boolean? = null, limit: Long? = null, offset: Long? = null, sorts: String? = null, @@ -3176,6 +3178,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { "dashboard_id" to dashboard_id, "look_id" to look_id, "board_id" to board_id, + "include_board_items" to include_board_items, "limit" to limit, "offset" to offset, "sorts" to sorts, @@ -6371,7 +6374,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * @param {String} run_id Run Id * @param {String} fields Requested fields * - * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun */ @JvmOverloads fun get_ci_run( project_id: String, @@ -6380,7 +6383,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { ): SDKResponse { val path_project_id = encodeParam(project_id) val path_run_id = encodeParam(run_id) - return this.get( + return this.get( "/projects/${path_project_id}/ci/runs/${path_run_id}", mapOf("fields" to fields), ) @@ -9763,6 +9766,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { * @param {Boolean} filter_or Combine given search criteria in a boolean OR expression * @param {String} content_metadata_id Search for users who have access to this content_metadata item * @param {String} group_id Search for users who are direct members of this group + * @param {Boolean} can_manage_api3_creds Search for users who can manage API3 credentials * * GET /users/search -> Array */ @@ -9783,6 +9787,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { filter_or: Boolean? = null, content_metadata_id: String? = null, group_id: String? = null, + can_manage_api3_creds: Boolean? = null, ): SDKResponse { return this.get>( "/users/search", @@ -9803,6 +9808,7 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { "filter_or" to filter_or, "content_metadata_id" to content_metadata_id, "group_id" to group_id, + "can_manage_api3_creds" to can_manage_api3_creds, ), ) } @@ -10296,6 +10302,33 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) { ) } + /** + * ### 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). + * + * @param {String} user_id Id of user + * @param {String} credentials_api3_id Id of API Credential + * @param {WriteCredentialsApi3} body + * @param {String} fields Requested fields. + * + * PATCH /users/{user_id}/credentials_api3/{credentials_api3_id} -> CredentialsApi3 + */ + @JvmOverloads fun update_user_credentials_api3( + user_id: String, + credentials_api3_id: String, + body: WriteCredentialsApi3, + fields: String? = null, + ): SDKResponse { + val path_user_id = encodeParam(user_id) + val path_credentials_api3_id = encodeParam(credentials_api3_id) + return this.patch( + "/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", + mapOf("fields" to fields), + body, + ) + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * 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 71222ec0d..647584676 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/models.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/models.kt @@ -25,7 +25,7 @@ */ /** - * 373 API models: 287 Spec, 0 Request, 62 Write, 24 Enum + * 374 API models: 287 Spec, 0 Request, 63 Write, 24 Enum */ // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 @@ -526,43 +526,6 @@ data class CIGitState( var target: String? = null, ) : Serializable -/** - * @property run_id ID of the CI run (read-only) - * @property created_at Time and date that the CI run was initiated (read-only) - * @property started_at Time and date that the CI run began executing (read-only) - * @property finished_at Time and date that the CI run completed (read-only) - * @property status_url Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) - * @property status Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) - * @property git_service Git service for CI run (e.g. GitHub) (read-only) - * @property git_state - * @property result - * @property schedule - * @property target_branch Git branch that the CI run compares against during validation, used for incremental runs (read-only) - * @property title Name of the CI suite (read-only) - * @property trigger Trigger for CI run (unknown, manual, schedule, change_request) (read-only) - * @property change_request - * @property suite_id ID of the CI suite (read-only) - * @property username Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) - */ -data class CIRun( - var run_id: String? = null, - var created_at: Date? = null, - var started_at: Date? = null, - var finished_at: Date? = null, - var status_url: String? = null, - var status: String? = null, - var git_service: String? = null, - var git_state: CIGitState? = null, - var result: CIRunResult? = null, - var schedule: CIScheduleTrigger? = null, - var target_branch: String? = null, - var title: String? = null, - var trigger: String? = null, - var change_request: CIChangeRequest? = null, - var suite_id: String? = null, - var username: String? = null, -) : Serializable - /** * @property sql_result * @property sql_error @@ -696,6 +659,8 @@ data class ConnectionFeatures( * @property look * @property dashboard * @property board_id Id of a board (read-only) + * @property lookml_dashboard_id Id of a lookml dashboard (read-only) + * @property lookml_dashboard */ data class ContentFavorite( var id: String? = null, @@ -706,6 +671,8 @@ data class ContentFavorite( var look: LookBasic? = null, var dashboard: DashboardBase? = null, var board_id: String? = null, + var lookml_dashboard_id: String? = null, + var lookml_dashboard: DashboardBase? = null, ) : Serializable /** @@ -716,6 +683,8 @@ data class ContentFavorite( * @property dashboard_id Id of associated dashboard when content_type is "dashboard" (read-only) * @property look_id Id of associated look when content_type is "look" (read-only) * @property folder_id Id of associated folder when content_type is "space" (read-only) + * @property homepage_id Id of associated board when content_type is "board" (read-only) + * @property agent_id Id of associated agent when content_type is "agent" (read-only) * @property content_type Content Type ("dashboard", "look", or "folder") (read-only) * @property inherits Whether content inherits its access levels from parent * @property inheriting_id Id of Inherited Content (read-only) @@ -729,6 +698,8 @@ data class ContentMeta( var dashboard_id: String? = null, var look_id: String? = null, var folder_id: String? = null, + var homepage_id: String? = null, + var agent_id: String? = null, var content_type: String? = null, var inherits: Boolean? = null, var inheriting_id: String? = null, @@ -1187,6 +1158,7 @@ data class CreateCostEstimate( * @property created_at Timestamp for the creation of this credential (read-only) * @property is_disabled Has this credential been disabled? (read-only) * @property type Short name for the type of this kind of credential (read-only) + * @property purpose User defined purpose for this credential. * @property client_secret API key client_secret (read-only) * @property url Link to get this item (read-only) */ @@ -1197,6 +1169,7 @@ data class CreateCredentialsApi3( var created_at: String? = null, var is_disabled: Boolean? = null, var type: String? = null, + var purpose: String? = null, var client_secret: String? = null, var url: String? = null, ) : Serializable @@ -1313,6 +1286,7 @@ data class CreateQueryTask( * @property created_at Timestamp for the creation of this credential (read-only) * @property is_disabled Has this credential been disabled? (read-only) * @property type Short name for the type of this kind of credential (read-only) + * @property purpose User defined purpose for this credential. * @property url Link to get this item (read-only) */ data class CredentialsApi3( @@ -1322,6 +1296,7 @@ data class CredentialsApi3( var created_at: String? = null, var is_disabled: Boolean? = null, var type: String? = null, + var purpose: String? = null, var url: String? = null, ) : Serializable @@ -2006,6 +1981,7 @@ data class Datagroup( * @property uses_oauth Whether the connection uses OAuth for authentication. (read-only) * @property uses_key_pair_auth Whether the connection uses key-pair for authentication. * @property uses_instance_oauth Whether the integration uses the oauth instance account. (read-only) + * @property uses_service_auth Whether the connection uses service authentication certificate. (read-only) * @property certificate (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). * @property file_type (Write-Only) Certificate keyfile type - .json, .p8 or .p12 * @property database Database name @@ -2070,6 +2046,7 @@ data class DBConnection( var uses_oauth: Boolean? = null, var uses_key_pair_auth: Boolean? = null, var uses_instance_oauth: Boolean? = null, + var uses_service_auth: Boolean? = null, var certificate: String? = null, var file_type: String? = null, var database: String? = null, @@ -4794,13 +4771,6 @@ data class Project( var dependency_status: String? = null, ) : Serializable -/** - * @property run - */ -data class ProjectCIRun( - var run: CIRun? = null, -) : Serializable - /** * @property code A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language (read-only) * @property severity Severity: fatal, error, warning, info, success (read-only) @@ -4853,6 +4823,13 @@ data class ProjectFile( var git_status: GitStatus? = null, ) : Serializable +/** + * @property run + */ +data class ProjectRun( + var run: Run? = null, +) : Serializable + /** * @property errors A list of project errors (read-only) * @property project_digest A hash value computed from the project's current state (read-only) @@ -5141,9 +5118,9 @@ enum class ResultFormat : Serializable { } /** - * @property model The model this filterable comes from (used for field suggestions). (read-only) - * @property view The view this filterable comes from (used for field suggestions). (read-only) - * @property name The name of the filterable thing (Query or Merged Results). (read-only) + * @property model The model this filterable comes from (used for field suggestions). + * @property view The view this filterable comes from (used for field suggestions). + * @property name The name of the filterable thing (Query or Merged Results). * @property listen array of dashboard_filter_name: and field: objects. (read-only) */ data class ResultMakerFilterables( @@ -5164,15 +5141,15 @@ data class ResultMakerFilterablesListen( /** * @property id Unique Id. (read-only) - * @property dynamic_fields JSON string of dynamic field information. (read-only) - * @property filterables array of items that can be filtered and information about them. (read-only) - * @property sorts Sorts of the constituent Look, Query, or Merge Query (read-only) - * @property merge_result_id ID of merge result if this is a merge_result. (read-only) - * @property total Total of the constituent Look, Query, or Merge Query (read-only) + * @property dynamic_fields JSON string of dynamic field information. + * @property filterables array of items that can be filtered and information about them. + * @property sorts Sorts of the constituent Look, Query, or Merge Query + * @property merge_result_id ID of merge result if this is a merge_result. + * @property total Total of the constituent Look, Query, or Merge Query * @property query_id ID of query if this is a query. (read-only) - * @property sql_query_id ID of SQL Query if this is a SQL Runner Query (read-only) + * @property sql_query_id ID of SQL Query if this is a SQL Runner Query * @property query - * @property vis_config Vis config of the constituent Query, or Merge Query. (read-only) + * @property vis_config Vis config of the constituent Query, or Merge Query. */ data class ResultMakerWithIdVisConfigAndDynamicFields( var id: String? = null, @@ -5235,6 +5212,43 @@ data class RoleSearch( var users_url: String? = null, ) : Serializable +/** + * @property run_id ID of the CI run (read-only) + * @property created_at Time and date that the CI run was initiated (read-only) + * @property started_at Time and date that the CI run began executing (read-only) + * @property finished_at Time and date that the CI run completed (read-only) + * @property status_url Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) + * @property status Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) + * @property git_service Git service for CI run (e.g. GitHub) (read-only) + * @property git_state + * @property result + * @property schedule + * @property target_branch Git branch that the CI run compares against during validation, used for incremental runs (read-only) + * @property title Name of the CI suite (read-only) + * @property trigger Trigger for CI run (unknown, manual, schedule, change_request) (read-only) + * @property change_request + * @property suite_id ID of the CI suite (read-only) + * @property username Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) + */ +data class Run( + var run_id: String? = null, + var created_at: Date? = null, + var started_at: Date? = null, + var finished_at: Date? = null, + var status_url: String? = null, + var status: String? = null, + var git_service: String? = null, + var git_state: CIGitState? = null, + var result: CIRunResult? = null, + var schedule: CIScheduleTrigger? = null, + var target_branch: String? = null, + var title: String? = null, + var trigger: String? = null, + var change_request: CIChangeRequest? = null, + var suite_id: String? = null, + var username: String? = null, +) : Serializable + /** * @property can Operations the current user is able to perform on this object (read-only) * @property id Unique Id (read-only) @@ -6266,7 +6280,8 @@ data class UpdateFolder( * @property allow_normal_group_membership User can be a direct member of a normal Looker group. (read-only) * @property allow_roles_from_normal_groups User can inherit roles from a normal Looker group. (read-only) * @property embed_group_folder_id (Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login (read-only) - * @property is_iam_admin User is an IAM Admin - only available in Looker (Google Cloud core) (read-only) + * @property is_iam_admin 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) + * @property can_manage_api3_creds Indicates if the user can manage API3 credentials * @property url Link to get this item (read-only) */ data class User( @@ -6306,6 +6321,7 @@ data class User( var allow_roles_from_normal_groups: Boolean? = null, var embed_group_folder_id: String? = null, var is_iam_admin: Boolean? = null, + var can_manage_api3_creds: Boolean? = null, var url: String? = null, ) : Serializable @@ -6714,7 +6730,7 @@ data class WriteColorCollection( /** * Dynamic writeable type for ContentFavorite removes: - * id, look_id, dashboard_id, board_id + * id, look_id, dashboard_id, board_id, lookml_dashboard_id * * @property user_id User Id which owns this ContentFavorite * @property content_metadata_id Content Metadata Id associated with this ContentFavorite @@ -6722,17 +6738,20 @@ data class WriteColorCollection( * can, content_metadata_id, id, title * @property dashboard Dynamic writeable type for DashboardBase removes: * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + * @property lookml_dashboard Dynamic writeable type for DashboardBase removes: + * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer */ data class WriteContentFavorite( var user_id: String? = null, var content_metadata_id: String? = null, var look: WriteLookBasic? = null, var dashboard: WriteDashboardBase? = null, + var lookml_dashboard: WriteDashboardBase? = null, ) : Serializable /** * 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 * * @property inherits Whether content inherits its access levels from parent */ @@ -6794,6 +6813,16 @@ data class WriteCreateQueryTask( var dashboard_id: String? = null, ) : Serializable +/** + * Dynamic writeable type for CredentialsApi3 removes: + * can, id, client_id, created_at, is_disabled, type, url + * + * @property purpose User defined purpose for this credential. + */ +data class WriteCredentialsApi3( + var purpose: String? = null, +) : Serializable + /** * 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 @@ -6894,7 +6923,7 @@ data class WriteDashboardBase( * @property query_id Id Of Query * @property refresh_interval Refresh Interval * @property result_maker Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id * @property result_maker_id ID of the ResultMakerLookup entry. * @property subtitle_text Text tile subtitle text * @property title Title of dashboard element @@ -7023,7 +7052,7 @@ data class WriteDatagroup( /** * 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 * * @property name Name of the connection. Also used as the unique identifier * @property named_driver_version_requested Requested JDBC driver version name @@ -7748,13 +7777,27 @@ data class WriteRepositoryCredential( /** * Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id * + * @property dynamic_fields JSON string of dynamic field information. + * @property filterables array of items that can be filtered and information about them. + * @property sorts Sorts of the constituent Look, Query, or Merge Query + * @property merge_result_id ID of merge result if this is a merge_result. + * @property total Total of the constituent Look, Query, or Merge Query + * @property sql_query_id ID of SQL Query if this is a SQL Runner Query * @property query Dynamic writeable type for Query removes: * can, id, slug, share_url, expanded_share_url, url, has_table_calculations + * @property vis_config Vis config of the constituent Query, or Merge Query. */ data class WriteResultMakerWithIdVisConfigAndDynamicFields( + var dynamic_fields: String? = null, + var filterables: Array? = null, + var sorts: Array? = null, + var merge_result_id: String? = null, + var total: Boolean? = null, + var sql_query_id: String? = null, var query: WriteQuery? = null, + var vis_config: Map? = null, ) : Serializable /** @@ -8042,6 +8085,7 @@ data class WriteTheme( * @property locale User's preferred locale. User locale takes precedence over Looker's system-wide default locale. Locale determines language of display strings and date and numeric formatting in API responses. Locale string must be a 2 letter language code or a combination of language code and region code: 'en' or 'en-US', for example. * @property models_dir_validated User's dev workspace has been checked for presence of applicable production projects * @property ui_state Per user dictionary of undocumented state information owned by the Looker UI. + * @property can_manage_api3_creds Indicates if the user can manage API3 credentials */ data class WriteUser( var credentials_email: WriteCredentialsEmail? = null, @@ -8052,6 +8096,7 @@ data class WriteUser( var locale: String? = null, var models_dir_validated: Boolean? = null, var ui_state: Map? = null, + var can_manage_api3_creds: 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 d051f2bb2..68d9cdd7f 100644 --- a/kotlin/src/main/com/looker/sdk/4.0/streams.kt +++ b/kotlin/src/main/com/looker/sdk/4.0/streams.kt @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ // NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 @@ -3139,11 +3139,12 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * Boolean search params accept only "true" and "false" as values. * * @param {String} id Match content favorite id(s) - * @param {String} user_id Match user id(s).To create a list of multiple ids, use commas as separators - * @param {String} content_metadata_id Match content metadata id(s).To create a list of multiple ids, use commas as separators - * @param {String} dashboard_id Match dashboard id(s).To create a list of multiple ids, use commas as separators - * @param {String} look_id Match look id(s).To create a list of multiple ids, use commas as separators - * @param {String} board_id Match board id(s).To create a list of multiple ids, use commas as separators + * @param {String} user_id Match user id(s). To create a list of multiple ids, use commas as separators + * @param {String} content_metadata_id Match content metadata id(s). To create a list of multiple ids, use commas as separators + * @param {String} dashboard_id Match dashboard id(s). To create a list of multiple ids, use commas as separators + * @param {String} look_id Match look id(s). To create a list of multiple ids, use commas as separators + * @param {String} board_id Match board id(s). To create a list of multiple ids, use commas as separators + * @param {Boolean} 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 {Long} limit Number of results to return. (used with offset) * @param {Long} offset Number of results to skip before returning any. (used with limit) * @param {String} sorts Fields to sort by. @@ -3159,6 +3160,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { dashboard_id: String? = null, look_id: String? = null, board_id: String? = null, + include_board_items: Boolean? = null, limit: Long? = null, offset: Long? = null, sorts: String? = null, @@ -3174,6 +3176,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { "dashboard_id" to dashboard_id, "look_id" to look_id, "board_id" to board_id, + "include_board_items" to include_board_items, "limit" to limit, "offset" to offset, "sorts" to sorts, @@ -9761,6 +9764,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { * @param {Boolean} filter_or Combine given search criteria in a boolean OR expression * @param {String} content_metadata_id Search for users who have access to this content_metadata item * @param {String} group_id Search for users who are direct members of this group + * @param {Boolean} can_manage_api3_creds Search for users who can manage API3 credentials * * GET /users/search -> ByteArray */ @@ -9781,6 +9785,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { filter_or: Boolean? = null, content_metadata_id: String? = null, group_id: String? = null, + can_manage_api3_creds: Boolean? = null, ): SDKResponse { return this.get( "/users/search", @@ -9801,6 +9806,7 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { "filter_or" to filter_or, "content_metadata_id" to content_metadata_id, "group_id" to group_id, + "can_manage_api3_creds" to can_manage_api3_creds, ), ) } @@ -10294,6 +10300,33 @@ class LookerSDKStream(authSession: AuthSession) : APIMethods(authSession) { ) } + /** + * ### 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). + * + * @param {String} user_id Id of user + * @param {String} credentials_api3_id Id of API Credential + * @param {WriteCredentialsApi3} body + * @param {String} fields Requested fields. + * + * PATCH /users/{user_id}/credentials_api3/{credentials_api3_id} -> ByteArray + */ + @JvmOverloads fun update_user_credentials_api3( + user_id: String, + credentials_api3_id: String, + body: WriteCredentialsApi3, + fields: String? = null, + ): SDKResponse { + val path_user_id = encodeParam(user_id) + val path_credentials_api3_id = encodeParam(credentials_api3_id) + return this.patch( + "/users/${path_user_id}/credentials_api3/${path_credentials_api3_id}", + mapOf("fields" to fields), + body, + ) + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/kotlin/src/main/com/looker/sdk/Constants.kt b/kotlin/src/main/com/looker/sdk/Constants.kt index 8e25d9bbc..a2a08f80b 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.10" +const val LOOKER_VERSION = "25.16" const val API_VERSION = "4.0" const val AGENT_TAG = "$SDK_TAG $LOOKER_VERSION" const val LOOKER_APPID = "x-looker-appid" diff --git a/package.json b/package.json index ccb2f099b..7b3d2f8c9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "license": "MIT", "name": "sdk-codegen-all", - "version": "25.10.0", + "version": "25.16.0", "description": "All workspaces for SDK code generation", "author": "Looker", "private": true, diff --git a/packages/api-explorer/CHANGELOG.md b/packages/api-explorer/CHANGELOG.md index 118db4d9b..912419e56 100644 --- a/packages/api-explorer/CHANGELOG.md +++ b/packages/api-explorer/CHANGELOG.md @@ -349,6 +349,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * @looker/sdk-codegen-scripts bumped from 21.5.33 to 21.5.34 * @looker/sdk-node bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/code-editor bumped from 0.1.44 to 0.1.45 + * @looker/extension-utils bumped from 0.1.54 to 0.1.55 + * @looker/run-it bumped from 0.9.77 to 0.9.78 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk-codegen bumped from 21.9.13 to 21.10.0 + * devDependencies + * @looker/sdk-codegen-scripts bumped from 21.5.34 to 21.5.35 + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [0.9.74](https://github.com/looker-open-source/sdk-codegen/compare/api-explorer-v0.9.73...api-explorer-v0.9.74) (2025-03-11) diff --git a/packages/api-explorer/package.json b/packages/api-explorer/package.json index 9febd217d..0d3465c40 100644 --- a/packages/api-explorer/package.json +++ b/packages/api-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@looker/api-explorer", - "version": "0.9.77", + "version": "0.9.78", "description": "Looker API Explorer", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -33,8 +33,8 @@ }, "devDependencies": { "@looker/components-test-utils": "^1.5.27", - "@looker/sdk-codegen-scripts": "21.5.34", - "@looker/sdk-node": "25.10.0", + "@looker/sdk-codegen-scripts": "21.5.35", + "@looker/sdk-node": "25.16.0", "@styled-icons/styled-icon": "^10.6.3", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "12.1.5", @@ -70,15 +70,15 @@ "webpack-merge": "^5.7.3" }, "dependencies": { - "@looker/code-editor": "0.1.44", + "@looker/code-editor": "0.1.45", "@looker/components": "^5.0.3", "@looker/design-tokens": "^3.1.3", - "@looker/extension-utils": "0.1.54", + "@looker/extension-utils": "0.1.55", "@looker/icons": "^1.5.21", "@looker/redux": "^0.0.1", - "@looker/run-it": "0.9.77", - "@looker/sdk": "25.10.0", - "@looker/sdk-codegen": "21.9.13", + "@looker/run-it": "0.9.78", + "@looker/sdk": "25.16.0", + "@looker/sdk-codegen": "21.10.0", "@looker/sdk-rtl": "21.6.4", "@reduxjs/toolkit": "^1.9.3", "@styled-icons/material": "^10.47.0", diff --git a/packages/code-editor/CHANGELOG.md b/packages/code-editor/CHANGELOG.md index 8e4309089..221da4f7f 100644 --- a/packages/code-editor/CHANGELOG.md +++ b/packages/code-editor/CHANGELOG.md @@ -78,6 +78,12 @@ * devDependencies * @looker/sdk-codegen bumped from 21.9.12 to 21.9.13 +### Dependencies + +* The following workspace dependencies were updated + * devDependencies + * @looker/sdk-codegen bumped from 21.9.13 to 21.10.0 + ## [0.1.39](https://github.com/looker-open-source/sdk-codegen/compare/code-editor-v0.1.38...code-editor-v0.1.39) (2025-02-06) diff --git a/packages/code-editor/package.json b/packages/code-editor/package.json index 7b8b37298..eff8c6792 100644 --- a/packages/code-editor/package.json +++ b/packages/code-editor/package.json @@ -1,6 +1,6 @@ { "name": "@looker/code-editor", - "version": "0.1.44", + "version": "0.1.45", "description": "A syntax highlighter Viewer and Editor for Looker SDK supported languages.", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -30,7 +30,7 @@ }, "devDependencies": { "@looker/components-test-utils": "^1.5.27", - "@looker/sdk-codegen": "21.9.13", + "@looker/sdk-codegen": "21.10.0", "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "12.1.5", "@testing-library/user-event": "13.1.5", diff --git a/packages/embed-components/CHANGELOG.md b/packages/embed-components/CHANGELOG.md index c7cac915f..6dcd9f17f 100644 --- a/packages/embed-components/CHANGELOG.md +++ b/packages/embed-components/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/embed-components-v25.10.0...embed-components-v25.16.0) (2025-09-17) + + +### Miscellaneous Chores + +* **embed-components:** Synchronize undefined versions + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/embed-services bumped from 25.10.0 to 25.16.0 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * devDependencies + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/embed-components-v25.8.0...embed-components-v25.10.0) (2025-06-20) diff --git a/packages/embed-components/package.json b/packages/embed-components/package.json index 38115068b..6d1652538 100644 --- a/packages/embed-components/package.json +++ b/packages/embed-components/package.json @@ -1,6 +1,6 @@ { "name": "@looker/embed-components", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker Embed Components", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -35,7 +35,7 @@ "homepage": "https://github.com/looker-open-source/sdk-codegen/tree/master/packages/embed-components", "devDependencies": { "redux-saga-tester": "^1.0.874", - "@looker/sdk-node": "25.10.0", + "@looker/sdk-node": "25.16.0", "@testing-library/react": "12.1.5", "@testing-library/jest-dom": "5.16.5", "@looker/components-test-utils": "^1.5.27", @@ -45,9 +45,9 @@ }, "dependencies": { "@looker/components": "^5.0.3", - "@looker/embed-services": "25.10.0", + "@looker/embed-services": "25.16.0", "@looker/redux": "^0.0.1", - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "@reduxjs/toolkit": "^1.9.3", "@styled-icons/material-outlined": "^10.47.0", diff --git a/packages/embed-services/CHANGELOG.md b/packages/embed-services/CHANGELOG.md index 5bf09d955..9c0123f06 100644 --- a/packages/embed-services/CHANGELOG.md +++ b/packages/embed-services/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/embed-services-v25.10.0...embed-services-v25.16.0) (2025-09-17) + + +### Miscellaneous Chores + +* **embed-services:** Synchronize undefined versions + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * devDependencies + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/embed-services-v25.8.0...embed-services-v25.10.0) (2025-06-20) diff --git a/packages/embed-services/package.json b/packages/embed-services/package.json index 83d732d83..f0e535331 100644 --- a/packages/embed-services/package.json +++ b/packages/embed-services/package.json @@ -1,6 +1,6 @@ { "name": "@looker/embed-services", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker Embed Services", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -34,11 +34,11 @@ }, "homepage": "https://github.com/looker-open-source/sdk-codegen/tree/master/packages/embed-services", "devDependencies": { - "@looker/sdk-node": "25.10.0" + "@looker/sdk-node": "25.16.0" }, "dependencies": { "@looker/sdk-rtl": "21.6.4", - "@looker/sdk": "25.10.0" + "@looker/sdk": "25.16.0" }, "keywords": [ "Looker", diff --git a/packages/extension-api-explorer/CHANGELOG.md b/packages/extension-api-explorer/CHANGELOG.md index 2791aaefd..604e55184 100644 --- a/packages/extension-api-explorer/CHANGELOG.md +++ b/packages/extension-api-explorer/CHANGELOG.md @@ -343,6 +343,18 @@ * @looker/sdk bumped from 25.8.0 to 25.10.0 * @looker/sdk-codegen bumped from 21.9.12 to 21.9.13 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/api-explorer bumped from 0.9.77 to 0.9.78 + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/extension-sdk-react bumped from 25.10.0 to 25.16.0 + * @looker/extension-utils bumped from 0.1.54 to 0.1.55 + * @looker/run-it bumped from 0.9.77 to 0.9.78 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk-codegen bumped from 21.9.13 to 21.10.0 + ## [22.21.29](https://github.com/looker-open-source/sdk-codegen/compare/extension-api-explorer-v22.21.28...extension-api-explorer-v22.21.29) (2025-02-06) diff --git a/packages/extension-api-explorer/package.json b/packages/extension-api-explorer/package.json index 588bdebad..0e61d59b0 100644 --- a/packages/extension-api-explorer/package.json +++ b/packages/extension-api-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-api-explorer", - "version": "22.21.34", + "version": "22.21.35", "description": "Looker API Explorer extension", "main": "dist/bundle.js", "sideEffects": false, @@ -15,15 +15,15 @@ "watch": "yarn lerna exec --scope @looker/extension-api-explorer --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/api-explorer": "0.9.77", + "@looker/api-explorer": "0.9.78", "@looker/components": "^5.0.3", - "@looker/extension-sdk": "25.10.0", - "@looker/extension-sdk-react": "25.10.0", - "@looker/extension-utils": "0.1.54", + "@looker/extension-sdk": "25.16.0", + "@looker/extension-sdk-react": "25.16.0", + "@looker/extension-utils": "0.1.55", "@looker/icons": "^1.5.21", - "@looker/run-it": "0.9.77", - "@looker/sdk": "25.10.0", - "@looker/sdk-codegen": "21.9.13", + "@looker/run-it": "0.9.78", + "@looker/sdk": "25.16.0", + "@looker/sdk-codegen": "21.10.0", "@styled-icons/material": "^10.47.0", "@styled-icons/material-outlined": "^10.47.0", "@styled-icons/material-rounded": "^10.28.0", diff --git a/packages/extension-playground/CHANGELOG.md b/packages/extension-playground/CHANGELOG.md index e4c260c2f..84c9a0491 100644 --- a/packages/extension-playground/CHANGELOG.md +++ b/packages/extension-playground/CHANGELOG.md @@ -248,6 +248,14 @@ * @looker/extension-sdk-react bumped from 25.8.0 to 25.10.0 * @looker/sdk bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/extension-sdk-react bumped from 25.10.0 to 25.16.0 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [1.0.29](https://github.com/looker-open-source/sdk-codegen/compare/extension-playground-v1.0.28...extension-playground-v1.0.29) (2025-02-06) diff --git a/packages/extension-playground/package.json b/packages/extension-playground/package.json index 0d15a650e..18bcf4468 100644 --- a/packages/extension-playground/package.json +++ b/packages/extension-playground/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-playground", - "version": "1.0.34", + "version": "1.0.35", "description": "Extension Playground", "main": "dist/bundle.js", "sideEffects": false, @@ -13,9 +13,9 @@ "watch": "yarn lerna exec --scope @looker/extension-playground --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/extension-sdk": "25.10.0", - "@looker/extension-sdk-react": "25.10.0", - "@looker/sdk": "25.10.0", + "@looker/extension-sdk": "25.16.0", + "@looker/extension-sdk-react": "25.16.0", + "@looker/sdk": "25.16.0", "@looker/components": "^5.0.3", "@looker/icons": "^1.5.21", "@styled-icons/material": "^10.47.0", diff --git a/packages/extension-sdk-react/CHANGELOG.md b/packages/extension-sdk-react/CHANGELOG.md index a2ee81f77..eba5dc8f7 100644 --- a/packages/extension-sdk-react/CHANGELOG.md +++ b/packages/extension-sdk-react/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/extension-sdk-react-v25.10.0...extension-sdk-react-v25.16.0) (2025-09-17) + + +### Miscellaneous Chores + +* **extension-sdk-react:** Synchronize undefined versions + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/extension-sdk-react-v25.8.0...extension-sdk-react-v25.10.0) (2025-06-20) diff --git a/packages/extension-sdk-react/package.json b/packages/extension-sdk-react/package.json index b3ed3310b..095969f8e 100644 --- a/packages/extension-sdk-react/package.json +++ b/packages/extension-sdk-react/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-sdk-react", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker Extension SDK for React", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -44,8 +44,8 @@ "react-router-dom": "^5.3.4" }, "dependencies": { - "@looker/extension-sdk": "25.10.0", - "@looker/sdk": "25.10.0", + "@looker/extension-sdk": "25.16.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "history": "^4.10.1", "lodash": "4.17.21" diff --git a/packages/extension-sdk/CHANGELOG.md b/packages/extension-sdk/CHANGELOG.md index 763a2c75b..0dc03ff1c 100644 --- a/packages/extension-sdk/CHANGELOG.md +++ b/packages/extension-sdk/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/extension-sdk-v25.10.0...extension-sdk-v25.16.0) (2025-09-17) + + +### Miscellaneous Chores + +* **extension-sdk:** Synchronize undefined versions + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/extension-sdk-v25.8.0...extension-sdk-v25.10.0) (2025-06-20) diff --git a/packages/extension-sdk/package.json b/packages/extension-sdk/package.json index 5c882ba3f..7786c13e6 100644 --- a/packages/extension-sdk/package.json +++ b/packages/extension-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-sdk", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker Extension SDK", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -38,7 +38,7 @@ }, "dependencies": { "@looker/chatty": "2.3.9", - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "deepmerge": "^4.2.2", "semver": "^7.3.4" diff --git a/packages/extension-tile-playground/CHANGELOG.md b/packages/extension-tile-playground/CHANGELOG.md index d41be2c90..dae530e70 100644 --- a/packages/extension-tile-playground/CHANGELOG.md +++ b/packages/extension-tile-playground/CHANGELOG.md @@ -136,6 +136,14 @@ * @looker/extension-sdk-react bumped from 25.8.0 to 25.10.0 * @looker/sdk bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/extension-sdk-react bumped from 25.10.0 to 25.16.0 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [1.1.16](https://github.com/looker-open-source/sdk-codegen/compare/extension-tile-playground-v1.1.15...extension-tile-playground-v1.1.16) (2025-02-06) diff --git a/packages/extension-tile-playground/package.json b/packages/extension-tile-playground/package.json index ca7738898..0582d13fc 100644 --- a/packages/extension-tile-playground/package.json +++ b/packages/extension-tile-playground/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-tile-playground", - "version": "1.1.21", + "version": "1.1.22", "description": "Extension Tile Playground", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -14,9 +14,9 @@ "develop": "webpack serve --hot --allowed-hosts all --port 8080 --https --config webpack.dev.config.js" }, "dependencies": { - "@looker/extension-sdk": "25.10.0", - "@looker/extension-sdk-react": "25.10.0", - "@looker/sdk": "25.10.0", + "@looker/extension-sdk": "25.16.0", + "@looker/extension-sdk-react": "25.16.0", + "@looker/sdk": "25.16.0", "@looker/components": "^5.0.3", "@looker/icons": "^1.5.21", "@styled-icons/material": "^10.47.0", diff --git a/packages/extension-utils/CHANGELOG.md b/packages/extension-utils/CHANGELOG.md index c6911c549..1b65adaef 100644 --- a/packages/extension-utils/CHANGELOG.md +++ b/packages/extension-utils/CHANGELOG.md @@ -238,6 +238,15 @@ * @looker/extension-sdk-react bumped from 25.8.0 to 25.10.0 * @looker/sdk bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/code-editor bumped from 0.1.44 to 0.1.45 + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/extension-sdk-react bumped from 25.10.0 to 25.16.0 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [0.1.49](https://github.com/looker-open-source/sdk-codegen/compare/extension-utils-v0.1.48...extension-utils-v0.1.49) (2025-02-06) diff --git a/packages/extension-utils/package.json b/packages/extension-utils/package.json index e3a389bc5..ce3873894 100644 --- a/packages/extension-utils/package.json +++ b/packages/extension-utils/package.json @@ -1,6 +1,6 @@ { "name": "@looker/extension-utils", - "version": "0.1.54", + "version": "0.1.55", "description": "Looker Extension Utilities", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -25,12 +25,12 @@ "watch": "yarn lerna exec --scope @looker/extension-utils --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/code-editor": "0.1.44", + "@looker/code-editor": "0.1.45", "@looker/components": "^5.0.3", - "@looker/extension-sdk": "25.10.0", - "@looker/extension-sdk-react": "25.10.0", + "@looker/extension-sdk": "25.16.0", + "@looker/extension-sdk-react": "25.16.0", "@looker/redux": "^0.0.1", - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "@reduxjs/toolkit": "^1.9.3", "@styled-icons/material": "^10.47.0", diff --git a/packages/hackathon/CHANGELOG.md b/packages/hackathon/CHANGELOG.md index fa67ccae3..73a741443 100644 --- a/packages/hackathon/CHANGELOG.md +++ b/packages/hackathon/CHANGELOG.md @@ -348,6 +348,17 @@ * @looker/sdk bumped from 25.8.0 to 25.10.0 * @looker/wholly-artifact bumped from 0.1.34 to 0.1.35 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/code-editor bumped from 0.1.44 to 0.1.45 + * @looker/extension-sdk bumped from 25.10.0 to 25.16.0 + * @looker/extension-sdk-react bumped from 25.10.0 to 25.16.0 + * @looker/extension-utils bumped from 0.1.54 to 0.1.55 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/wholly-artifact bumped from 0.1.35 to 0.1.36 + ## [22.21.31](https://github.com/looker-open-source/sdk-codegen/compare/hackathon-v22.21.30...hackathon-v22.21.31) (2025-02-06) diff --git a/packages/hackathon/package.json b/packages/hackathon/package.json index 04fd1c713..404ea5153 100644 --- a/packages/hackathon/package.json +++ b/packages/hackathon/package.json @@ -1,6 +1,6 @@ { "name": "@looker/hackathon", - "version": "22.21.36", + "version": "22.21.37", "description": "Looker Hackathon extension", "main": "lib/esm/index.js", "typings": "lib/index.d.ts", @@ -34,15 +34,15 @@ "watch": "yarn lerna exec --scope @looker/wholly-sheet --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/code-editor": "0.1.44", + "@looker/code-editor": "0.1.45", "@looker/components": "^5.0.3", - "@looker/extension-sdk": "25.10.0", - "@looker/extension-sdk-react": "25.10.0", - "@looker/extension-utils": "0.1.54", + "@looker/extension-sdk": "25.16.0", + "@looker/extension-sdk-react": "25.16.0", + "@looker/extension-utils": "0.1.55", "@looker/icons": "^1.5.21", - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", - "@looker/wholly-artifact": "0.1.35", + "@looker/wholly-artifact": "0.1.36", "@styled-icons/material": "^10.47.0", "@styled-icons/material-outlined": "^10.47.0", "@styled-icons/material-rounded": "^10.28.0", diff --git a/packages/run-it/CHANGELOG.md b/packages/run-it/CHANGELOG.md index d6265546b..20d1526b2 100644 --- a/packages/run-it/CHANGELOG.md +++ b/packages/run-it/CHANGELOG.md @@ -248,6 +248,16 @@ * @looker/sdk-codegen bumped from 21.9.12 to 21.9.13 * @looker/sdk-codegen-utils bumped from 21.0.23 to 21.0.24 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/code-editor bumped from 0.1.44 to 0.1.45 + * @looker/extension-utils bumped from 0.1.54 to 0.1.55 + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk-codegen bumped from 21.9.13 to 21.10.0 + * @looker/sdk-codegen-utils bumped from 21.0.24 to 21.0.25 + ## [0.9.72](https://github.com/looker-open-source/sdk-codegen/compare/run-it-v0.9.71...run-it-v0.9.72) (2025-02-06) diff --git a/packages/run-it/package.json b/packages/run-it/package.json index 83f38459f..ffa7d74d1 100644 --- a/packages/run-it/package.json +++ b/packages/run-it/package.json @@ -1,6 +1,6 @@ { "name": "@looker/run-it", - "version": "0.9.77", + "version": "0.9.78", "description": "A dynamic REST request input form and response visualizer", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -52,14 +52,14 @@ "webpack-dev-server": "4.15.1" }, "dependencies": { - "@looker/code-editor": "0.1.44", + "@looker/code-editor": "0.1.45", "@looker/components": "^5.0.3", "@looker/design-tokens": "^3.1.3", - "@looker/extension-utils": "0.1.54", + "@looker/extension-utils": "0.1.55", "@looker/icons": "^1.5.21", - "@looker/sdk": "25.10.0", - "@looker/sdk-codegen": "21.9.13", - "@looker/sdk-codegen-utils": "21.0.24", + "@looker/sdk": "25.16.0", + "@looker/sdk-codegen": "21.10.0", + "@looker/sdk-codegen-utils": "21.0.25", "@looker/sdk-rtl": "21.6.4", "@styled-icons/material": "^10.47.0", "@styled-icons/material-outlined": "^10.47.0", diff --git a/packages/sdk-codegen-scripts/CHANGELOG.md b/packages/sdk-codegen-scripts/CHANGELOG.md index 27307e509..48a265abf 100644 --- a/packages/sdk-codegen-scripts/CHANGELOG.md +++ b/packages/sdk-codegen-scripts/CHANGELOG.md @@ -241,6 +241,15 @@ * @looker/sdk-codegen-utils bumped from 21.0.23 to 21.0.24 * @looker/sdk-node bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk-codegen bumped from 21.9.13 to 21.10.0 + * @looker/sdk-codegen-utils bumped from 21.0.24 to 21.0.25 + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [21.5.31](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-scripts-v21.5.30...sdk-codegen-scripts-v21.5.31) (2025-03-11) diff --git a/packages/sdk-codegen-scripts/package.json b/packages/sdk-codegen-scripts/package.json index 6947a013e..181407827 100644 --- a/packages/sdk-codegen-scripts/package.json +++ b/packages/sdk-codegen-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@looker/sdk-codegen-scripts", - "version": "21.5.34", + "version": "21.5.35", "description": "Looker SDK Codegen scripts", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -27,10 +27,10 @@ "watch:cjs": "yarn lerna exec --scope @looker/sdk-codegen-scripts --stream 'BABEL_ENV=build_cjs babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/sdk": "25.10.0", - "@looker/sdk-codegen": "21.9.13", - "@looker/sdk-codegen-utils": "21.0.24", - "@looker/sdk-node": "25.10.0", + "@looker/sdk": "25.16.0", + "@looker/sdk-codegen": "21.10.0", + "@looker/sdk-codegen-utils": "21.0.25", + "@looker/sdk-node": "25.16.0", "@looker/sdk-rtl": "21.6.4", "config": "^3.3.1", "cross-env": "^7.0.2" diff --git a/packages/sdk-codegen-utils/CHANGELOG.md b/packages/sdk-codegen-utils/CHANGELOG.md index b2987a5dd..34a2e5e01 100644 --- a/packages/sdk-codegen-utils/CHANGELOG.md +++ b/packages/sdk-codegen-utils/CHANGELOG.md @@ -70,6 +70,13 @@ * @looker/sdk bumped from 25.8.0 to 25.10.0 * @looker/sdk-node bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * devDependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [21.0.21](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-utils-v21.0.20...sdk-codegen-utils-v21.0.21) (2025-03-11) diff --git a/packages/sdk-codegen-utils/package.json b/packages/sdk-codegen-utils/package.json index af93427cb..580fd2228 100644 --- a/packages/sdk-codegen-utils/package.json +++ b/packages/sdk-codegen-utils/package.json @@ -1,6 +1,6 @@ { "name": "@looker/sdk-codegen-utils", - "version": "21.0.24", + "version": "21.0.25", "description": "Looker SDK Codegen utils", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -32,8 +32,8 @@ }, "devDependencies": { "@looker/sdk-rtl": "21.6.4", - "@looker/sdk": "25.10.0", - "@looker/sdk-node": "25.10.0", + "@looker/sdk": "25.16.0", + "@looker/sdk-node": "25.16.0", "@manypkg/find-root": "2.2.1", "@types/js-yaml": "4.0.9", "lodash": "4.17.21", diff --git a/packages/sdk-codegen/CHANGELOG.md b/packages/sdk-codegen/CHANGELOG.md index 6a9cc4bbc..825303728 100644 --- a/packages/sdk-codegen/CHANGELOG.md +++ b/packages/sdk-codegen/CHANGELOG.md @@ -71,6 +71,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @looker/sdk-codegen-utils bumped from 21.0.23 to 21.0.24 +## [21.10.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.9.13...sdk-codegen-v21.10.0) (2025-09-17) + + +### Features + +* **go:** Expose session object in Go SDK ([#1602](https://github.com/looker-open-source/sdk-codegen/issues/1602)) ([6afa715](https://github.com/looker-open-source/sdk-codegen/commit/6afa7158d6786994b7f2592e634c95f2723c7f8a)) + + +### Dependencies + +* The following workspace dependencies were updated + * devDependencies + * @looker/sdk-codegen-utils bumped from 21.0.24 to 21.0.25 + ## [21.9.10](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-v21.9.9...sdk-codegen-v21.9.10) (2025-03-11) diff --git a/packages/sdk-codegen/package.json b/packages/sdk-codegen/package.json index 97f297bd1..1bc934092 100644 --- a/packages/sdk-codegen/package.json +++ b/packages/sdk-codegen/package.json @@ -1,6 +1,6 @@ { "name": "@looker/sdk-codegen", - "version": "21.9.13", + "version": "21.10.0", "description": "Looker SDK Codegen core", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -43,6 +43,6 @@ "devDependencies": { "lodash": "4.17.21", "@types/blueimp-md5": "2.18.2", - "@looker/sdk-codegen-utils": "21.0.24" + "@looker/sdk-codegen-utils": "21.0.25" } } diff --git a/packages/sdk-codegen/src/go.gen.spec.ts b/packages/sdk-codegen/src/go.gen.spec.ts index ae3f522c2..91fa9914b 100644 --- a/packages/sdk-codegen/src/go.gen.spec.ts +++ b/packages/sdk-codegen/src/go.gen.spec.ts @@ -83,7 +83,7 @@ func (l *LookerSDK) OldLogin( oldCred string, options *rtl.ApiSettings) (AccessToken, error) { var result AccessToken - err := l.session.Do(&result, "GET", "", "/old_login", map[string]interface{}{"old_cred": oldCred}, nil, options) + err := l.AuthSession.Do(&result, "GET", "", "/old_login", map[string]interface{}{"old_cred": oldCred}, nil, options) return result, err }`; diff --git a/packages/sdk-codegen/src/go.gen.ts b/packages/sdk-codegen/src/go.gen.ts index 2edba4c4c..48a02e5b2 100644 --- a/packages/sdk-codegen/src/go.gen.ts +++ b/packages/sdk-codegen/src/go.gen.ts @@ -261,7 +261,7 @@ export class GoGen extends CodeGen { return ( `` + resultDef + - `${indent}err := l.session.Do(${resultPointer}, "${this.capitalize( + `${indent}err := l.AuthSession.Do(${resultPointer}, "${this.capitalize( method.httpMethod.toUpperCase() )}", "${this.apiPath}", ${this.httpPath(method.endpoint, request)}` + `${args ? ', ' + args : ''})` + @@ -361,22 +361,23 @@ package ${this.packageName} import ( "fmt" - "github.com/looker-open-source/sdk-codegen/go/rtl" "net/url" "time" + + "github.com/looker-open-source/sdk-codegen/go/rtl" ) -type authSessionDoer interface { +type AuthSessionDoer interface { Do(result interface{}, method, ver, path string, reqPars map[string]interface{}, body interface{}, options *rtl.ApiSettings) error } type LookerSDK struct { - session authSessionDoer + AuthSession AuthSessionDoer } -func NewLookerSDK(session authSessionDoer) *LookerSDK { +func NewLookerSDK(session AuthSessionDoer) *LookerSDK { return &LookerSDK{ - session: session, + AuthSession: session, } } `; diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index 7ac68b0f6..20200b347 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-node-v25.10.0...sdk-node-v25.16.0) (2025-09-17) + + +### Miscellaneous Chores + +* **sdk-node:** Synchronize undefined versions + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-node-v25.8.0...sdk-node-v25.10.0) (2025-06-20) diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index 5780f1484..4f94b5471 100644 --- a/packages/sdk-node/package.json +++ b/packages/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@looker/sdk-node", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker SDK Runtime for Node Library", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -39,7 +39,7 @@ "tsx": "4.19.0" }, "dependencies": { - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "ini": "5.0.0" }, diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index b60a7ee56..4a8d72c07 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-v25.10.0...sdk-v25.16.0) (2025-09-17) + + +### Features + +* generate SDKs for Looker 25.14 ([#1600](https://github.com/looker-open-source/sdk-codegen/issues/1600)) ([feff16e](https://github.com/looker-open-source/sdk-codegen/commit/feff16eca79224737f991fc903790473f163c28c)) +* generate SDKs for Looker 25.16 ([#1605](https://github.com/looker-open-source/sdk-codegen/issues/1605)) ([5792b41](https://github.com/looker-open-source/sdk-codegen/commit/5792b41311b75e1841561e53e13362f8f473bf3c)) + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-v25.8.0...sdk-v25.10.0) (2025-06-20) diff --git a/packages/sdk/package.json b/packages/sdk/package.json index a495f3910..d127997a3 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@looker/sdk", - "version": "25.10.0", + "version": "25.16.0", "description": "Looker SDK", "main": "lib/index.js", "module": "lib/esm/index.js", diff --git a/packages/sdk/src/4.0/funcs.ts b/packages/sdk/src/4.0/funcs.ts index 2b6b4b3e1..aa1acde11 100644 --- a/packages/sdk/src/4.0/funcs.ts +++ b/packages/sdk/src/4.0/funcs.ts @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ import type { @@ -158,8 +158,8 @@ import type { IPermission, IPermissionSet, IProject, - IProjectCIRun, IProjectFile, + IProjectRun, IProjectValidation, IProjectValidationCache, IProjectWorkspace, @@ -290,6 +290,7 @@ import type { IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, + IWriteCredentialsApi3, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, @@ -4190,8 +4191,10 @@ export const test_connection_config = async ( body: Partial, tests?: DelimArray, options?: Partial -): Promise> => { - return sdk.put( +): Promise< + SDKResponse +> => { + return sdk.put( '/connections/test', { tests }, body, @@ -4685,6 +4688,7 @@ export const search_content_favorites = async ( dashboard_id: request.dashboard_id, look_id: request.look_id, board_id: request.board_id, + include_board_items: request.include_board_items, limit: request.limit, offset: request.offset, sorts: request.sorts, @@ -8408,7 +8412,7 @@ export const connection_cost_estimate = async ( /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectRun * * @param sdk IAPIMethods implementation * @param project_id Project Id @@ -8423,10 +8427,10 @@ export const get_ci_run = async ( run_id: string, fields?: string, options?: Partial -): Promise> => { +): Promise> => { project_id = encodeParam(project_id); run_id = encodeParam(run_id); - return sdk.get( + return sdk.get( `/projects/${project_id}/ci/runs/${run_id}`, { fields }, null, @@ -12370,6 +12374,7 @@ export const search_users = async ( filter_or: request.filter_or, content_metadata_id: request.content_metadata_id, group_id: request.group_id, + can_manage_api3_creds: request.can_manage_api3_creds, }, null, options @@ -12995,6 +13000,39 @@ export const user_credentials_api3 = async ( ); }; +/** + * ### 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} -> ICredentialsApi3 + * + * @param sdk IAPIMethods implementation + * @param user_id Id of user + * @param credentials_api3_id Id of API Credential + * @param body Partial + * @param fields Requested fields. + * @param options one-time API call overrides + * + */ +export const update_user_credentials_api3 = async ( + sdk: IAPIMethods, + user_id: string, + credentials_api3_id: string, + body: Partial, + fields?: string, + options?: Partial +): Promise> => { + user_id = encodeParam(user_id); + credentials_api3_id = encodeParam(credentials_api3_id); + return sdk.patch( + `/users/${user_id}/credentials_api3/${credentials_api3_id}`, + { fields }, + body, + options + ); +}; + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/packages/sdk/src/4.0/methods.ts b/packages/sdk/src/4.0/methods.ts index 16353ebc3..0a10af07a 100644 --- a/packages/sdk/src/4.0/methods.ts +++ b/packages/sdk/src/4.0/methods.ts @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ import type { @@ -156,8 +156,8 @@ import type { IPermission, IPermissionSet, IProject, - IProjectCIRun, IProjectFile, + IProjectRun, IProjectValidation, IProjectValidationCache, IProjectWorkspace, @@ -288,6 +288,7 @@ import type { IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, + IWriteCredentialsApi3, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, @@ -3941,8 +3942,10 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { body: Partial, tests?: DelimArray, options?: Partial - ): Promise> { - return this.put( + ): Promise< + SDKResponse + > { + return this.put( '/connections/test', { tests }, body, @@ -4403,6 +4406,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { dashboard_id: request.dashboard_id, look_id: request.look_id, board_id: request.board_id, + include_board_items: request.include_board_items, limit: request.limit, offset: request.offset, sorts: request.sorts, @@ -7901,7 +7905,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectRun * * @param project_id Project Id * @param run_id Run Id @@ -7914,10 +7918,10 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { run_id: string, fields?: string, options?: Partial - ): Promise> { + ): Promise> { project_id = encodeParam(project_id); run_id = encodeParam(run_id); - return this.get( + return this.get( `/projects/${project_id}/ci/runs/${run_id}`, { fields }, null, @@ -11651,6 +11655,7 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { filter_or: request.filter_or, content_metadata_id: request.content_metadata_id, group_id: request.group_id, + can_manage_api3_creds: request.can_manage_api3_creds, }, null, options @@ -12244,6 +12249,37 @@ export class Looker40SDK extends APIMethods implements ILooker40SDK { ); } + /** + * ### 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} -> ICredentialsApi3 + * + * @param user_id Id of user + * @param credentials_api3_id Id of API Credential + * @param body Partial + * @param fields Requested fields. + * @param options one-time API call overrides + * + */ + async update_user_credentials_api3( + user_id: string, + credentials_api3_id: string, + body: Partial, + fields?: string, + options?: Partial + ): Promise> { + user_id = encodeParam(user_id); + credentials_api3_id = encodeParam(credentials_api3_id); + return this.patch( + `/users/${user_id}/credentials_api3/${credentials_api3_id}`, + { fields }, + body, + options + ); + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/packages/sdk/src/4.0/methodsInterface.ts b/packages/sdk/src/4.0/methodsInterface.ts index 823332c7a..582a30422 100644 --- a/packages/sdk/src/4.0/methodsInterface.ts +++ b/packages/sdk/src/4.0/methodsInterface.ts @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ import type { @@ -153,8 +153,8 @@ import type { IPermission, IPermissionSet, IProject, - IProjectCIRun, IProjectFile, + IProjectRun, IProjectValidation, IProjectValidationCache, IProjectWorkspace, @@ -285,6 +285,7 @@ import type { IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, + IWriteCredentialsApi3, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, @@ -2933,7 +2934,7 @@ export interface ILooker40SDK extends IAPIMethods { body: Partial, tests?: DelimArray, options?: Partial - ): Promise>; + ): Promise>; /** * ### Get information about all dialects. @@ -5571,7 +5572,7 @@ export interface ILooker40SDK extends IAPIMethods { /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectRun * * @param project_id Project Id * @param run_id Run Id @@ -5584,7 +5585,7 @@ export interface ILooker40SDK extends IAPIMethods { run_id: string, fields?: string, options?: Partial - ): Promise>; + ): Promise>; /** * ### Creates a CI Run. @@ -8696,6 +8697,28 @@ export interface ILooker40SDK extends IAPIMethods { options?: Partial ): Promise>; + /** + * ### 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} -> ICredentialsApi3 + * + * @param user_id Id of user + * @param credentials_api3_id Id of API Credential + * @param body Partial + * @param fields Requested fields. + * @param options one-time API call overrides + * + */ + update_user_credentials_api3( + user_id: string, + credentials_api3_id: string, + body: Partial, + fields?: string, + options?: Partial + ): Promise>; + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/packages/sdk/src/4.0/models.ts b/packages/sdk/src/4.0/models.ts index fee656145..1814b29c6 100644 --- a/packages/sdk/src/4.0/models.ts +++ b/packages/sdk/src/4.0/models.ts @@ -25,7 +25,7 @@ */ /** - * 445 API models: 287 Spec, 72 Request, 62 Write, 24 Enum + * 446 API models: 287 Spec, 72 Request, 63 Write, 24 Enum */ import type { IDictionary, DelimArray } from '@looker/sdk-rtl'; @@ -796,61 +796,6 @@ export interface ICIGitState { target?: string | null; } -export interface ICIRun { - /** - * ID of the CI run (read-only) - */ - run_id?: string; - /** - * Time and date that the CI run was initiated (read-only) - */ - created_at?: Date; - /** - * Time and date that the CI run began executing (read-only) - */ - started_at?: Date | null; - /** - * Time and date that the CI run completed (read-only) - */ - finished_at?: Date | null; - /** - * Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) - */ - status_url?: string | null; - /** - * Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) - */ - status?: string; - /** - * Git service for CI run (e.g. GitHub) (read-only) - */ - git_service?: string | null; - git_state?: ICIGitState; - result?: ICIRunResult; - schedule?: ICIScheduleTrigger; - /** - * Git branch that the CI run compares against during validation, used for incremental runs (read-only) - */ - target_branch?: string | null; - /** - * Name of the CI suite (read-only) - */ - title?: string; - /** - * Trigger for CI run (unknown, manual, schedule, change_request) (read-only) - */ - trigger?: string; - change_request?: ICIChangeRequest; - /** - * ID of the CI suite (read-only) - */ - suite_id?: string; - /** - * Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) - */ - username?: string | null; -} - export interface ICIRunResult { sql_result?: ISqlValidatorResult; sql_error?: IGenericError; @@ -1043,6 +988,11 @@ export interface IContentFavorite { * Id of a board (read-only) */ board_id?: string | null; + /** + * Id of a lookml dashboard (read-only) + */ + lookml_dashboard_id?: string | null; + lookml_dashboard?: IDashboardBase; } export interface IContentMeta { @@ -1074,6 +1024,14 @@ export interface IContentMeta { * Id of associated folder when content_type is "space" (read-only) */ folder_id?: string | null; + /** + * Id of associated board when content_type is "board" (read-only) + */ + homepage_id?: string | null; + /** + * Id of associated agent when content_type is "agent" (read-only) + */ + agent_id?: string | null; /** * Content Type ("dashboard", "look", or "folder") (read-only) */ @@ -1794,6 +1752,10 @@ export interface ICreateCredentialsApi3 { * Short name for the type of this kind of credential (read-only) */ type?: string | null; + /** + * User defined purpose for this credential. + */ + purpose?: string | null; /** * API key client_secret (read-only) */ @@ -1969,6 +1931,10 @@ export interface ICredentialsApi3 { * Short name for the type of this kind of credential (read-only) */ type?: string | null; + /** + * User defined purpose for this credential. + */ + purpose?: string | null; /** * Link to get this item (read-only) */ @@ -3148,6 +3114,10 @@ export interface IDBConnection { * Whether the integration uses the oauth instance account. (read-only) */ uses_instance_oauth?: boolean; + /** + * Whether the connection uses service authentication certificate. (read-only) + */ + uses_service_auth?: boolean; /** * (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). */ @@ -5028,7 +4998,7 @@ export interface IJsonBiField { /** * Explore name (read-only) */ - view: string; + view: string | null; /** * Which dimension group created this dimension (read-only) */ @@ -7677,10 +7647,6 @@ export interface IProject { dependency_status?: string | null; } -export interface IProjectCIRun { - run?: ICIRun; -} - export interface IProjectError { /** * A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language (read-only) @@ -7768,6 +7734,10 @@ export interface IProjectFile { git_status?: IGitStatus; } +export interface IProjectRun { + run?: IRun; +} + export interface IProjectValidation { /** * A list of project errors (read-only) @@ -9576,25 +9546,29 @@ export interface IRequestSearchContentFavorites { */ id?: string | null; /** - * Match user id(s).To create a list of multiple ids, use commas as separators + * Match user id(s). To create a list of multiple ids, use commas as separators */ user_id?: string | null; /** - * Match content metadata id(s).To create a list of multiple ids, use commas as separators + * Match content metadata id(s). To create a list of multiple ids, use commas as separators */ content_metadata_id?: string | null; /** - * Match dashboard id(s).To create a list of multiple ids, use commas as separators + * Match dashboard id(s). To create a list of multiple ids, use commas as separators */ dashboard_id?: string | null; /** - * Match look id(s).To create a list of multiple ids, use commas as separators + * Match look id(s). To create a list of multiple ids, use commas as separators */ look_id?: string | null; /** - * Match board id(s).To create a list of multiple ids, use commas as separators + * Match board id(s). To create a list of multiple ids, use commas as separators */ board_id?: string | null; + /** + * 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. + */ + include_board_items?: boolean | null; /** * Number of results to return. (used with offset) */ @@ -10543,6 +10517,10 @@ export interface IRequestSearchUsers { * Search for users who are direct members of this group */ group_id?: string | null; + /** + * Search for users who can manage API3 credentials + */ + can_manage_api3_creds?: boolean | null; } /** @@ -10742,15 +10720,15 @@ export enum ResultFormat { export interface IResultMakerFilterables { /** - * The model this filterable comes from (used for field suggestions). (read-only) + * The model this filterable comes from (used for field suggestions). */ model?: string | null; /** - * The view this filterable comes from (used for field suggestions). (read-only) + * The view this filterable comes from (used for field suggestions). */ view?: string | null; /** - * The name of the filterable thing (Query or Merged Results). (read-only) + * The name of the filterable thing (Query or Merged Results). */ name?: string | null; /** @@ -10776,23 +10754,23 @@ export interface IResultMakerWithIdVisConfigAndDynamicFields { */ id?: string; /** - * JSON string of dynamic field information. (read-only) + * JSON string of dynamic field information. */ dynamic_fields?: string | null; /** - * array of items that can be filtered and information about them. (read-only) + * array of items that can be filtered and information about them. */ filterables?: IResultMakerFilterables[] | null; /** - * Sorts of the constituent Look, Query, or Merge Query (read-only) + * Sorts of the constituent Look, Query, or Merge Query */ sorts?: string[] | null; /** - * ID of merge result if this is a merge_result. (read-only) + * ID of merge result if this is a merge_result. */ merge_result_id?: string | null; /** - * Total of the constituent Look, Query, or Merge Query (read-only) + * Total of the constituent Look, Query, or Merge Query */ total?: boolean; /** @@ -10800,12 +10778,12 @@ export interface IResultMakerWithIdVisConfigAndDynamicFields { */ query_id?: string | null; /** - * ID of SQL Query if this is a SQL Runner Query (read-only) + * ID of SQL Query if this is a SQL Runner Query */ sql_query_id?: string | null; query?: IQuery; /** - * Vis config of the constituent Query, or Merge Query. (read-only) + * Vis config of the constituent Query, or Merge Query. */ vis_config?: IDictionary | null; } @@ -10880,6 +10858,61 @@ export interface IRoleSearch { users_url?: string | null; } +export interface IRun { + /** + * ID of the CI run (read-only) + */ + run_id?: string; + /** + * Time and date that the CI run was initiated (read-only) + */ + created_at?: Date; + /** + * Time and date that the CI run began executing (read-only) + */ + started_at?: Date | null; + /** + * Time and date that the CI run completed (read-only) + */ + finished_at?: Date | null; + /** + * Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) + */ + status_url?: string | null; + /** + * Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) + */ + status?: string; + /** + * Git service for CI run (e.g. GitHub) (read-only) + */ + git_service?: string | null; + git_state?: ICIGitState; + result?: ICIRunResult; + schedule?: ICIScheduleTrigger; + /** + * Git branch that the CI run compares against during validation, used for incremental runs (read-only) + */ + target_branch?: string | null; + /** + * Name of the CI suite (read-only) + */ + title?: string; + /** + * Trigger for CI run (unknown, manual, schedule, change_request) (read-only) + */ + trigger?: string; + change_request?: ICIChangeRequest; + /** + * ID of the CI suite (read-only) + */ + suite_id?: string; + /** + * Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) + */ + username?: string | null; +} + export interface IRunningQueries { /** * Operations the current user is able to perform on this object (read-only) @@ -12581,9 +12614,13 @@ export interface IUser { */ embed_group_folder_id?: string | null; /** - * User is an IAM Admin - only available in Looker (Google Cloud core) (read-only) + * 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) */ is_iam_admin?: boolean; + /** + * Indicates if the user can manage API3 credentials + */ + can_manage_api3_creds?: boolean; /** * Link to get this item (read-only) */ @@ -13223,7 +13260,7 @@ export interface IWriteColorCollection { /** * Dynamic writeable type for ContentFavorite removes: - * id, look_id, dashboard_id, board_id + * id, look_id, dashboard_id, board_id, lookml_dashboard_id */ export interface IWriteContentFavorite { /** @@ -13244,11 +13281,16 @@ export interface IWriteContentFavorite { * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer */ dashboard?: IWriteDashboardBase | null; + /** + * Dynamic writeable type for DashboardBase removes: + * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + */ + lookml_dashboard?: IWriteDashboardBase | null; } /** * 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 */ export interface IWriteContentMeta { /** @@ -13347,6 +13389,17 @@ export interface IWriteCreateQueryTask { dashboard_id?: string | null; } +/** + * Dynamic writeable type for CredentialsApi3 removes: + * can, id, client_id, created_at, is_disabled, type, url + */ +export interface IWriteCredentialsApi3 { + /** + * User defined purpose for this credential. + */ + purpose?: string | 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 @@ -13532,7 +13585,7 @@ export interface IWriteDashboardElement { refresh_interval?: string | null; /** * Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id */ result_maker?: IWriteResultMakerWithIdVisConfigAndDynamicFields | null; /** @@ -13714,7 +13767,7 @@ export interface IWriteDatagroup { /** * 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 */ export interface IWriteDBConnection { /** @@ -14903,14 +14956,42 @@ export interface IWriteRepositoryCredential { /** * Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id */ export interface IWriteResultMakerWithIdVisConfigAndDynamicFields { + /** + * JSON string of dynamic field information. + */ + dynamic_fields?: string | null; + /** + * array of items that can be filtered and information about them. + */ + filterables?: IResultMakerFilterables[] | null; + /** + * Sorts of the constituent Look, Query, or Merge Query + */ + sorts?: string[] | null; + /** + * ID of merge result if this is a merge_result. + */ + merge_result_id?: string | null; + /** + * Total of the constituent Look, Query, or Merge Query + */ + total?: boolean; + /** + * ID of SQL Query if this is a SQL Runner Query + */ + sql_query_id?: string | null; /** * Dynamic writeable type for Query removes: * can, id, slug, share_url, expanded_share_url, url, has_table_calculations */ query?: IWriteQuery | null; + /** + * Vis config of the constituent Query, or Merge Query. + */ + vis_config?: IDictionary | null; } /** @@ -15401,6 +15482,10 @@ export interface IWriteUser { * Per user dictionary of undocumented state information owned by the Looker UI. */ ui_state?: IDictionary | null; + /** + * Indicates if the user can manage API3 credentials + */ + can_manage_api3_creds?: boolean; } /** diff --git a/packages/sdk/src/4.0/streams.ts b/packages/sdk/src/4.0/streams.ts index e1e97c85a..a29f9b6fc 100644 --- a/packages/sdk/src/4.0/streams.ts +++ b/packages/sdk/src/4.0/streams.ts @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ import type { @@ -154,8 +154,8 @@ import type { IPermission, IPermissionSet, IProject, - IProjectCIRun, IProjectFile, + IProjectRun, IProjectValidation, IProjectValidationCache, IProjectWorkspace, @@ -286,6 +286,7 @@ import type { IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, + IWriteCredentialsApi3, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, @@ -5037,6 +5038,7 @@ export class Looker40SDKStream extends APIMethods { dashboard_id: request.dashboard_id, look_id: request.look_id, board_id: request.board_id, + include_board_items: request.include_board_items, limit: request.limit, offset: request.offset, sorts: request.sorts, @@ -9035,7 +9037,7 @@ export class Looker40SDKStream extends APIMethods { /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> IProjectRun * * @param callback streaming output function * @param project_id Project Id @@ -9045,7 +9047,7 @@ export class Looker40SDKStream extends APIMethods { * */ async get_ci_run( - callback: (response: Response) => Promise, + callback: (response: Response) => Promise, project_id: string, run_id: string, fields?: string, @@ -9053,7 +9055,7 @@ export class Looker40SDKStream extends APIMethods { ) { project_id = encodeParam(project_id); run_id = encodeParam(run_id); - return this.authStream( + return this.authStream( callback, 'GET', `/projects/${project_id}/ci/runs/${run_id}`, @@ -13276,6 +13278,7 @@ export class Looker40SDKStream extends APIMethods { filter_or: request.filter_or, content_metadata_id: request.content_metadata_id, group_id: request.group_id, + can_manage_api3_creds: request.can_manage_api3_creds, }, null, options @@ -13953,6 +13956,41 @@ export class Looker40SDKStream extends APIMethods { ); } + /** + * ### 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} -> ICredentialsApi3 + * + * @param callback streaming output function + * @param user_id Id of user + * @param credentials_api3_id Id of API Credential + * @param body Partial + * @param fields Requested fields. + * @param options one-time API call overrides + * + */ + async update_user_credentials_api3( + callback: (response: Response) => Promise, + user_id: string, + credentials_api3_id: string, + body: Partial, + fields?: string, + options?: Partial + ) { + user_id = encodeParam(user_id); + credentials_api3_id = encodeParam(credentials_api3_id); + return this.authStream( + callback, + 'PATCH', + `/users/${user_id}/credentials_api3/${credentials_api3_id}`, + { fields }, + body, + options + ); + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/packages/sdk/src/constants.ts b/packages/sdk/src/constants.ts index ed8d2f612..d27b53d9d 100644 --- a/packages/sdk/src/constants.ts +++ b/packages/sdk/src/constants.ts @@ -24,5 +24,5 @@ */ -export const sdkVersion = '25.10'; +export const sdkVersion = '25.16'; export const environmentPrefix = 'LOOKERSDK'; diff --git a/packages/wholly-artifact/CHANGELOG.md b/packages/wholly-artifact/CHANGELOG.md index 9d1490ab7..8560b180c 100644 --- a/packages/wholly-artifact/CHANGELOG.md +++ b/packages/wholly-artifact/CHANGELOG.md @@ -255,6 +255,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @looker/sdk-node bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * devDependencies + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [0.1.24](https://github.com/looker-open-source/sdk-codegen/compare/wholly-artifact-v0.1.23...wholly-artifact-v0.1.24) (2024-09-14) diff --git a/packages/wholly-artifact/package.json b/packages/wholly-artifact/package.json index 532e6c8d0..a1d8ea125 100644 --- a/packages/wholly-artifact/package.json +++ b/packages/wholly-artifact/package.json @@ -1,6 +1,6 @@ { "name": "@looker/wholly-artifact", - "version": "0.1.35", + "version": "0.1.36", "description": "Looker Artifact API as a Table SDK", "main": "lib/index.js", "module": "lib/esm/index.js", @@ -37,12 +37,12 @@ }, "homepage": "https://github.com/looker-open-source/sdk-codegen/tree/main/packages/wholly-artifact", "devDependencies": { - "@looker/sdk-node": "25.10.0", + "@looker/sdk-node": "25.16.0", "@types/uuid": "^8.3.4" }, "dependencies": { "@looker/sdk-rtl": "21.6.4", - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "lodash": "4.17.21", "uuid": "9.0.1" }, diff --git a/packages/wholly-sheet/CHANGELOG.md b/packages/wholly-sheet/CHANGELOG.md index de8720e9d..2d4683ae3 100644 --- a/packages/wholly-sheet/CHANGELOG.md +++ b/packages/wholly-sheet/CHANGELOG.md @@ -267,6 +267,14 @@ * devDependencies * @looker/sdk-node bumped from 25.8.0 to 25.10.0 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @looker/sdk bumped from 25.10.0 to 25.16.0 + * devDependencies + * @looker/sdk-node bumped from 25.10.0 to 25.16.0 + ## [0.5.62](https://github.com/looker-open-source/sdk-codegen/compare/wholly-sheet-v0.5.61...wholly-sheet-v0.5.62) (2024-09-14) diff --git a/packages/wholly-sheet/package.json b/packages/wholly-sheet/package.json index 644840e9e..398935b8f 100644 --- a/packages/wholly-sheet/package.json +++ b/packages/wholly-sheet/package.json @@ -1,6 +1,6 @@ { "name": "@looker/wholly-sheet", - "version": "0.5.73", + "version": "0.5.74", "description": "Google sheets API wrapper for data table mimicking", "main": "lib/esm/index.js", "typings": "lib/index.d.ts", @@ -31,14 +31,14 @@ "watch": "yarn lerna exec --scope @looker/wholly-sheet --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments --watch'" }, "dependencies": { - "@looker/sdk": "25.10.0", + "@looker/sdk": "25.16.0", "@looker/sdk-rtl": "21.6.4", "lodash": "4.17.21", "uuid": "9.0.1" }, "devDependencies": { "@looker/eslint-plugin": "~1.0.0", - "@looker/sdk-node": "25.10.0", + "@looker/sdk-node": "25.16.0", "@types/uuid": "^8.3.4", "google-auth-library": "^6.1.0" } diff --git a/python/CHANGELOG.md b/python/CHANGELOG.md index 8431a64b9..07f5155aa 100644 --- a/python/CHANGELOG.md +++ b/python/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [25.16.0](https://github.com/looker-open-source/sdk-codegen/compare/looker_sdk-v25.10.0...looker_sdk-v25.16.0) (2025-09-17) + + +### Features + +* generate SDKs for Looker 25.14 ([#1600](https://github.com/looker-open-source/sdk-codegen/issues/1600)) ([feff16e](https://github.com/looker-open-source/sdk-codegen/commit/feff16eca79224737f991fc903790473f163c28c)) +* generate SDKs for Looker 25.16 ([#1605](https://github.com/looker-open-source/sdk-codegen/issues/1605)) ([5792b41](https://github.com/looker-open-source/sdk-codegen/commit/5792b41311b75e1841561e53e13362f8f473bf3c)) + ## [25.10.0](https://github.com/looker-open-source/sdk-codegen/compare/looker_sdk-v25.8.0...looker_sdk-v25.10.0) (2025-06-20) diff --git a/python/looker_sdk/rtl/serialize.py b/python/looker_sdk/rtl/serialize.py index 1e6e468c7..c8600a24b 100644 --- a/python/looker_sdk/rtl/serialize.py +++ b/python/looker_sdk/rtl/serialize.py @@ -37,6 +37,7 @@ ) import cattr +from cattrs.cols import is_sequence, list_structure_factory from looker_sdk.rtl import model, hooks @@ -67,6 +68,7 @@ def deserialize( except json.JSONDecodeError as ex: raise DeserializeError(f"Bad json {ex}") try: + converter.register_structure_hook_factory(is_sequence, list_structure_factory) response: TDeserializeReturn = converter.structure( # type: ignore data, structure ) diff --git a/python/looker_sdk/sdk/api40/methods.py b/python/looker_sdk/sdk/api40/methods.py index 828be50e9..fd563124a 100644 --- a/python/looker_sdk/sdk/api40/methods.py +++ b/python/looker_sdk/sdk/api40/methods.py @@ -21,7 +21,7 @@ # SOFTWARE. # -# 471 API methods +# 472 API methods # NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 @@ -4102,16 +4102,18 @@ def search_content_favorites( self, # Match content favorite id(s) id: Optional[str] = None, - # Match user id(s).To create a list of multiple ids, use commas as separators + # Match user id(s). To create a list of multiple ids, use commas as separators user_id: Optional[str] = None, - # Match content metadata id(s).To create a list of multiple ids, use commas as separators + # Match content metadata id(s). To create a list of multiple ids, use commas as separators content_metadata_id: Optional[str] = None, - # Match dashboard id(s).To create a list of multiple ids, use commas as separators + # Match dashboard id(s). To create a list of multiple ids, use commas as separators dashboard_id: Optional[str] = None, - # Match look id(s).To create a list of multiple ids, use commas as separators + # Match look id(s). To create a list of multiple ids, use commas as separators look_id: Optional[str] = None, - # Match board id(s).To create a list of multiple ids, use commas as separators + # Match board id(s). To create a list of multiple ids, use commas as separators board_id: Optional[str] = None, + # 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. + include_board_items: Optional[bool] = None, # Number of results to return. (used with offset) limit: Optional[int] = None, # Number of results to skip before returning any. (used with limit) @@ -4137,6 +4139,7 @@ def search_content_favorites( "dashboard_id": dashboard_id, "look_id": look_id, "board_id": board_id, + "include_board_items": include_board_items, "limit": limit, "offset": offset, "sorts": sorts, @@ -7988,7 +7991,7 @@ def connection_cost_estimate( # ### Fetches a CI Run. # - # GET /projects/{project_id}/ci/runs/{run_id} -> mdls.ProjectCIRun + # GET /projects/{project_id}/ci/runs/{run_id} -> mdls.ProjectRun def get_ci_run( self, # Project Id @@ -7998,15 +8001,15 @@ def get_ci_run( # Requested fields fields: Optional[str] = None, transport_options: Optional[transport.TransportOptions] = None, - ) -> mdls.ProjectCIRun: + ) -> mdls.ProjectRun: """Fetch Continuous Integration run""" project_id = self.encode_path_param(project_id) run_id = self.encode_path_param(run_id) response = cast( - mdls.ProjectCIRun, + mdls.ProjectRun, self.get( path=f"/projects/{project_id}/ci/runs/{run_id}", - structure=mdls.ProjectCIRun, + structure=mdls.ProjectRun, query_params={"fields": fields}, transport_options=transport_options, ), @@ -12022,6 +12025,8 @@ def search_users( content_metadata_id: Optional[str] = None, # Search for users who are direct members of this group group_id: Optional[str] = None, + # Search for users who can manage API3 credentials + can_manage_api3_creds: Optional[bool] = None, transport_options: Optional[transport.TransportOptions] = None, ) -> Sequence[mdls.User]: """Search Users""" @@ -12047,6 +12052,7 @@ def search_users( "filter_or": filter_or, "content_metadata_id": content_metadata_id, "group_id": group_id, + "can_manage_api3_creds": can_manage_api3_creds, }, transport_options=transport_options, ), @@ -12658,6 +12664,37 @@ def user_credentials_api3( ) return response + # ### 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} -> mdls.CredentialsApi3 + def update_user_credentials_api3( + self, + # Id of user + user_id: str, + # Id of API Credential + credentials_api3_id: str, + body: mdls.WriteCredentialsApi3, + # Requested fields. + fields: Optional[str] = None, + transport_options: Optional[transport.TransportOptions] = None, + ) -> mdls.CredentialsApi3: + """Update API Credential""" + user_id = self.encode_path_param(user_id) + credentials_api3_id = self.encode_path_param(credentials_api3_id) + response = cast( + mdls.CredentialsApi3, + self.patch( + path=f"/users/{user_id}/credentials_api3/{credentials_api3_id}", + structure=mdls.CredentialsApi3, + query_params={"fields": fields}, + body=body, + transport_options=transport_options, + ), + ) + return response + # ### 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). diff --git a/python/looker_sdk/sdk/api40/models.py b/python/looker_sdk/sdk/api40/models.py index 9c47816cc..5690739c8 100644 --- a/python/looker_sdk/sdk/api40/models.py +++ b/python/looker_sdk/sdk/api40/models.py @@ -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 # NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0 @@ -1120,83 +1120,6 @@ def __init__( self.target = target -@attr.s(auto_attribs=True, init=False) -class CIRun(model.Model): - """ - Attributes: - run_id: ID of the CI run - created_at: Time and date that the CI run was initiated - started_at: Time and date that the CI run began executing - finished_at: Time and date that the CI run completed - status_url: Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite - status: Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) - git_service: Git service for CI run (e.g. GitHub) - git_state: - result: - schedule: - target_branch: Git branch that the CI run compares against during validation, used for incremental runs - title: Name of the CI suite - trigger: Trigger for CI run (unknown, manual, schedule, change_request) - change_request: - suite_id: ID of the CI suite - username: Username of the user who triggered the CI run, if the CI run was manually triggered - """ - - run_id: Optional[str] = None - created_at: Optional[datetime.datetime] = None - started_at: Optional[datetime.datetime] = None - finished_at: Optional[datetime.datetime] = None - status_url: Optional[str] = None - status: Optional[str] = None - git_service: Optional[str] = None - git_state: Optional["CIGitState"] = None - result: Optional["CIRunResult"] = None - schedule: Optional["CIScheduleTrigger"] = None - target_branch: Optional[str] = None - title: Optional[str] = None - trigger: Optional[str] = None - change_request: Optional["CIChangeRequest"] = None - suite_id: Optional[str] = None - username: Optional[str] = None - - def __init__( - self, - *, - run_id: Optional[str] = None, - created_at: Optional[datetime.datetime] = None, - started_at: Optional[datetime.datetime] = None, - finished_at: Optional[datetime.datetime] = None, - status_url: Optional[str] = None, - status: Optional[str] = None, - git_service: Optional[str] = None, - git_state: Optional["CIGitState"] = None, - result: Optional["CIRunResult"] = None, - schedule: Optional["CIScheduleTrigger"] = None, - target_branch: Optional[str] = None, - title: Optional[str] = None, - trigger: Optional[str] = None, - change_request: Optional["CIChangeRequest"] = None, - suite_id: Optional[str] = None, - username: Optional[str] = None - ): - self.run_id = run_id - self.created_at = created_at - self.started_at = started_at - self.finished_at = finished_at - self.status_url = status_url - self.status = status - self.git_service = git_service - self.git_state = git_state - self.result = result - self.schedule = schedule - self.target_branch = target_branch - self.title = title - self.trigger = trigger - self.change_request = change_request - self.suite_id = suite_id - self.username = username - - @attr.s(auto_attribs=True, init=False) class CIRunResult(model.Model): """ @@ -1463,6 +1386,8 @@ class ContentFavorite(model.Model): look: dashboard: board_id: Id of a board + lookml_dashboard_id: Id of a lookml dashboard + lookml_dashboard: """ id: Optional[str] = None @@ -1473,6 +1398,8 @@ class ContentFavorite(model.Model): look: Optional["LookBasic"] = None dashboard: Optional["DashboardBase"] = None board_id: Optional[str] = None + lookml_dashboard_id: Optional[str] = None + lookml_dashboard: Optional["DashboardBase"] = None def __init__( self, @@ -1484,7 +1411,9 @@ def __init__( dashboard_id: Optional[str] = None, look: Optional["LookBasic"] = None, dashboard: Optional["DashboardBase"] = None, - board_id: Optional[str] = None + board_id: Optional[str] = None, + lookml_dashboard_id: Optional[str] = None, + lookml_dashboard: Optional["DashboardBase"] = None ): self.id = id self.user_id = user_id @@ -1494,6 +1423,8 @@ def __init__( self.look = look self.dashboard = dashboard self.board_id = board_id + self.lookml_dashboard_id = lookml_dashboard_id + self.lookml_dashboard = lookml_dashboard @attr.s(auto_attribs=True, init=False) @@ -1507,6 +1438,8 @@ class ContentMeta(model.Model): dashboard_id: Id of associated dashboard when content_type is "dashboard" look_id: Id of associated look when content_type is "look" folder_id: Id of associated folder when content_type is "space" + homepage_id: Id of associated board when content_type is "board" + agent_id: Id of associated agent when content_type is "agent" content_type: Content Type ("dashboard", "look", or "folder") inherits: Whether content inherits its access levels from parent inheriting_id: Id of Inherited Content @@ -1520,6 +1453,8 @@ class ContentMeta(model.Model): dashboard_id: Optional[str] = None look_id: Optional[str] = None folder_id: Optional[str] = None + homepage_id: Optional[str] = None + agent_id: Optional[str] = None content_type: Optional[str] = None inherits: Optional[bool] = None inheriting_id: Optional[str] = None @@ -1535,6 +1470,8 @@ def __init__( dashboard_id: Optional[str] = None, look_id: Optional[str] = None, folder_id: Optional[str] = None, + homepage_id: Optional[str] = None, + agent_id: Optional[str] = None, content_type: Optional[str] = None, inherits: Optional[bool] = None, inheriting_id: Optional[str] = None, @@ -1547,6 +1484,8 @@ def __init__( self.dashboard_id = dashboard_id self.look_id = look_id self.folder_id = folder_id + self.homepage_id = homepage_id + self.agent_id = agent_id self.content_type = content_type self.inherits = inherits self.inheriting_id = inheriting_id @@ -2509,6 +2448,7 @@ class CreateCredentialsApi3(model.Model): created_at: Timestamp for the creation of this credential is_disabled: Has this credential been disabled? type: Short name for the type of this kind of credential + purpose: User defined purpose for this credential. client_secret: API key client_secret url: Link to get this item """ @@ -2519,6 +2459,7 @@ class CreateCredentialsApi3(model.Model): created_at: Optional[str] = None is_disabled: Optional[bool] = None type: Optional[str] = None + purpose: Optional[str] = None client_secret: Optional[str] = None url: Optional[str] = None @@ -2531,6 +2472,7 @@ def __init__( created_at: Optional[str] = None, is_disabled: Optional[bool] = None, type: Optional[str] = None, + purpose: Optional[str] = None, client_secret: Optional[str] = None, url: Optional[str] = None ): @@ -2540,6 +2482,7 @@ def __init__( self.created_at = created_at self.is_disabled = is_disabled self.type = type + self.purpose = purpose self.client_secret = client_secret self.url = url @@ -2780,6 +2723,7 @@ class CredentialsApi3(model.Model): created_at: Timestamp for the creation of this credential is_disabled: Has this credential been disabled? type: Short name for the type of this kind of credential + purpose: User defined purpose for this credential. url: Link to get this item """ @@ -2789,6 +2733,7 @@ class CredentialsApi3(model.Model): created_at: Optional[str] = None is_disabled: Optional[bool] = None type: Optional[str] = None + purpose: Optional[str] = None url: Optional[str] = None def __init__( @@ -2800,6 +2745,7 @@ def __init__( created_at: Optional[str] = None, is_disabled: Optional[bool] = None, type: Optional[str] = None, + purpose: Optional[str] = None, url: Optional[str] = None ): self.can = can @@ -2808,6 +2754,7 @@ def __init__( self.created_at = created_at self.is_disabled = is_disabled self.type = type + self.purpose = purpose self.url = url @@ -4233,6 +4180,7 @@ class DBConnection(model.Model): uses_oauth: Whether the connection uses OAuth for authentication. uses_key_pair_auth: Whether the connection uses key-pair for authentication. uses_instance_oauth: Whether the integration uses the oauth instance account. + uses_service_auth: Whether the connection uses service authentication certificate. certificate: (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). file_type: (Write-Only) Certificate keyfile type - .json, .p8 or .p12 database: Database name @@ -4297,6 +4245,7 @@ class DBConnection(model.Model): uses_oauth: Optional[bool] = None uses_key_pair_auth: Optional[bool] = None uses_instance_oauth: Optional[bool] = None + uses_service_auth: Optional[bool] = None certificate: Optional[str] = None file_type: Optional[str] = None database: Optional[str] = None @@ -4363,6 +4312,7 @@ def __init__( uses_oauth: Optional[bool] = None, uses_key_pair_auth: Optional[bool] = None, uses_instance_oauth: Optional[bool] = None, + uses_service_auth: Optional[bool] = None, certificate: Optional[str] = None, file_type: Optional[str] = None, database: Optional[str] = None, @@ -4426,6 +4376,7 @@ def __init__( self.uses_oauth = uses_oauth self.uses_key_pair_auth = uses_key_pair_auth self.uses_instance_oauth = uses_instance_oauth + self.uses_service_auth = uses_service_auth self.certificate = certificate self.file_type = file_type self.database = database @@ -10097,19 +10048,6 @@ def __init__( self.dependency_status = dependency_status -@attr.s(auto_attribs=True, init=False) -class ProjectCIRun(model.Model): - """ - Attributes: - run: - """ - - run: Optional["CIRun"] = None - - def __init__(self, *, run: Optional["CIRun"] = None): - self.run = run - - @attr.s(auto_attribs=True, init=False) class ProjectError(model.Model): """ @@ -10220,6 +10158,19 @@ def __init__( self.git_status = git_status +@attr.s(auto_attribs=True, init=False) +class ProjectRun(model.Model): + """ + Attributes: + run: + """ + + run: Optional["Run"] = None + + def __init__(self, *, run: Optional["Run"] = None): + self.run = run + + @attr.s(auto_attribs=True, init=False) class ProjectValidation(model.Model): """ @@ -11008,6 +10959,83 @@ def __init__( self.users_url = users_url +@attr.s(auto_attribs=True, init=False) +class Run(model.Model): + """ + Attributes: + run_id: ID of the CI run + created_at: Time and date that the CI run was initiated + started_at: Time and date that the CI run began executing + finished_at: Time and date that the CI run completed + status_url: Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite + status: Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) + git_service: Git service for CI run (e.g. GitHub) + git_state: + result: + schedule: + target_branch: Git branch that the CI run compares against during validation, used for incremental runs + title: Name of the CI suite + trigger: Trigger for CI run (unknown, manual, schedule, change_request) + change_request: + suite_id: ID of the CI suite + username: Username of the user who triggered the CI run, if the CI run was manually triggered + """ + + run_id: Optional[str] = None + created_at: Optional[datetime.datetime] = None + started_at: Optional[datetime.datetime] = None + finished_at: Optional[datetime.datetime] = None + status_url: Optional[str] = None + status: Optional[str] = None + git_service: Optional[str] = None + git_state: Optional["CIGitState"] = None + result: Optional["CIRunResult"] = None + schedule: Optional["CIScheduleTrigger"] = None + target_branch: Optional[str] = None + title: Optional[str] = None + trigger: Optional[str] = None + change_request: Optional["CIChangeRequest"] = None + suite_id: Optional[str] = None + username: Optional[str] = None + + def __init__( + self, + *, + run_id: Optional[str] = None, + created_at: Optional[datetime.datetime] = None, + started_at: Optional[datetime.datetime] = None, + finished_at: Optional[datetime.datetime] = None, + status_url: Optional[str] = None, + status: Optional[str] = None, + git_service: Optional[str] = None, + git_state: Optional["CIGitState"] = None, + result: Optional["CIRunResult"] = None, + schedule: Optional["CIScheduleTrigger"] = None, + target_branch: Optional[str] = None, + title: Optional[str] = None, + trigger: Optional[str] = None, + change_request: Optional["CIChangeRequest"] = None, + suite_id: Optional[str] = None, + username: Optional[str] = None + ): + self.run_id = run_id + self.created_at = created_at + self.started_at = started_at + self.finished_at = finished_at + self.status_url = status_url + self.status = status + self.git_service = git_service + self.git_state = git_state + self.result = result + self.schedule = schedule + self.target_branch = target_branch + self.title = title + self.trigger = trigger + self.change_request = change_request + self.suite_id = suite_id + self.username = username + + @attr.s(auto_attribs=True, init=False) class RunningQueries(model.Model): """ @@ -13122,7 +13150,8 @@ class User(model.Model): allow_normal_group_membership: User can be a direct member of a normal Looker group. allow_roles_from_normal_groups: User can inherit roles from a normal Looker group. embed_group_folder_id: (Embed only) ID of user's group folder based on the external_group_id optionally specified during embed user login - is_iam_admin: User is an IAM Admin - only available in Looker (Google Cloud core) + is_iam_admin: 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. + can_manage_api3_creds: Indicates if the user can manage API3 credentials url: Link to get this item """ @@ -13162,6 +13191,7 @@ class User(model.Model): allow_roles_from_normal_groups: Optional[bool] = None embed_group_folder_id: Optional[str] = None is_iam_admin: Optional[bool] = None + can_manage_api3_creds: Optional[bool] = None url: Optional[str] = None def __init__( @@ -13203,6 +13233,7 @@ def __init__( allow_roles_from_normal_groups: Optional[bool] = None, embed_group_folder_id: Optional[str] = None, is_iam_admin: Optional[bool] = None, + can_manage_api3_creds: Optional[bool] = None, url: Optional[str] = None ): self.can = can @@ -13241,6 +13272,7 @@ def __init__( self.allow_roles_from_normal_groups = allow_roles_from_normal_groups self.embed_group_folder_id = embed_group_folder_id self.is_iam_admin = is_iam_admin + self.can_manage_api3_creds = can_manage_api3_creds self.url = url @@ -14089,7 +14121,7 @@ def __init__( class WriteContentFavorite(model.Model): """ Dynamic writeable type for ContentFavorite removes: - id, look_id, dashboard_id, board_id + id, look_id, dashboard_id, board_id, lookml_dashboard_id Attributes: user_id: User Id which owns this ContentFavorite @@ -14097,6 +14129,8 @@ class WriteContentFavorite(model.Model): look: Dynamic writeable type for LookBasic removes: can, content_metadata_id, id, title dashboard: Dynamic writeable type for DashboardBase removes: + can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + lookml_dashboard: Dynamic writeable type for DashboardBase removes: can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer """ @@ -14104,6 +14138,7 @@ class WriteContentFavorite(model.Model): content_metadata_id: Optional[str] = None look: Optional["WriteLookBasic"] = None dashboard: Optional["WriteDashboardBase"] = None + lookml_dashboard: Optional["WriteDashboardBase"] = None def __init__( self, @@ -14111,19 +14146,21 @@ def __init__( user_id: Optional[str] = None, content_metadata_id: Optional[str] = None, look: Optional["WriteLookBasic"] = None, - dashboard: Optional["WriteDashboardBase"] = None + dashboard: Optional["WriteDashboardBase"] = None, + lookml_dashboard: Optional["WriteDashboardBase"] = None ): self.user_id = user_id self.content_metadata_id = content_metadata_id self.look = look self.dashboard = dashboard + self.lookml_dashboard = lookml_dashboard @attr.s(auto_attribs=True, init=False) class WriteContentMeta(model.Model): """ 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 Attributes: inherits: Whether content inherits its access levels from parent @@ -14251,6 +14288,22 @@ def __init__( self.dashboard_id = dashboard_id +@attr.s(auto_attribs=True, init=False) +class WriteCredentialsApi3(model.Model): + """ + Dynamic writeable type for CredentialsApi3 removes: + can, id, client_id, created_at, is_disabled, type, url + + Attributes: + purpose: User defined purpose for this credential. + """ + + purpose: Optional[str] = None + + def __init__(self, *, purpose: Optional[str] = None): + self.purpose = purpose + + @attr.s(auto_attribs=True, init=False) class WriteCredentialsEmail(model.Model): """ @@ -14432,7 +14485,7 @@ class WriteDashboardElement(model.Model): query_id: Id Of Query refresh_interval: Refresh Interval result_maker: Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + id, query_id result_maker_id: ID of the ResultMakerLookup entry. subtitle_text: Text tile subtitle text title: Title of dashboard element @@ -14698,7 +14751,7 @@ def __init__( class WriteDBConnection(model.Model): """ 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 Attributes: name: Name of the connection. Also used as the unique identifier @@ -16110,17 +16163,49 @@ def __init__( class WriteResultMakerWithIdVisConfigAndDynamicFields(model.Model): """ Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + id, query_id Attributes: + dynamic_fields: JSON string of dynamic field information. + filterables: array of items that can be filtered and information about them. + sorts: Sorts of the constituent Look, Query, or Merge Query + merge_result_id: ID of merge result if this is a merge_result. + total: Total of the constituent Look, Query, or Merge Query + sql_query_id: ID of SQL Query if this is a SQL Runner Query query: Dynamic writeable type for Query removes: can, id, slug, share_url, expanded_share_url, url, has_table_calculations + vis_config: Vis config of the constituent Query, or Merge Query. """ + dynamic_fields: Optional[str] = None + filterables: Optional[Sequence["ResultMakerFilterables"]] = None + sorts: Optional[Sequence[str]] = None + merge_result_id: Optional[str] = None + total: Optional[bool] = None + sql_query_id: Optional[str] = None query: Optional["WriteQuery"] = None + vis_config: Optional[MutableMapping[str, Any]] = None - def __init__(self, *, query: Optional["WriteQuery"] = None): + def __init__( + self, + *, + dynamic_fields: Optional[str] = None, + filterables: Optional[Sequence["ResultMakerFilterables"]] = None, + sorts: Optional[Sequence[str]] = None, + merge_result_id: Optional[str] = None, + total: Optional[bool] = None, + sql_query_id: Optional[str] = None, + query: Optional["WriteQuery"] = None, + vis_config: Optional[MutableMapping[str, Any]] = None + ): + self.dynamic_fields = dynamic_fields + self.filterables = filterables + self.sorts = sorts + self.merge_result_id = merge_result_id + self.total = total + self.sql_query_id = sql_query_id self.query = query + self.vis_config = vis_config @attr.s(auto_attribs=True, init=False) @@ -16678,6 +16763,7 @@ class WriteUser(model.Model): locale: User's preferred locale. User locale takes precedence over Looker's system-wide default locale. Locale determines language of display strings and date and numeric formatting in API responses. Locale string must be a 2 letter language code or a combination of language code and region code: 'en' or 'en-US', for example. models_dir_validated: User's dev workspace has been checked for presence of applicable production projects ui_state: Per user dictionary of undocumented state information owned by the Looker UI. + can_manage_api3_creds: Indicates if the user can manage API3 credentials """ credentials_email: Optional["WriteCredentialsEmail"] = None @@ -16688,6 +16774,7 @@ class WriteUser(model.Model): locale: Optional[str] = None models_dir_validated: Optional[bool] = None ui_state: Optional[MutableMapping[str, Any]] = None + can_manage_api3_creds: Optional[bool] = None def __init__( self, @@ -16699,7 +16786,8 @@ def __init__( last_name: Optional[str] = None, locale: Optional[str] = None, models_dir_validated: Optional[bool] = None, - ui_state: Optional[MutableMapping[str, Any]] = None + ui_state: Optional[MutableMapping[str, Any]] = None, + can_manage_api3_creds: Optional[bool] = None ): self.credentials_email = credentials_email self.first_name = first_name @@ -16709,6 +16797,7 @@ def __init__( self.locale = locale self.models_dir_validated = models_dir_validated self.ui_state = ui_state + self.can_manage_api3_creds = can_manage_api3_creds @attr.s(auto_attribs=True, init=False) diff --git a/python/looker_sdk/sdk/constants.py b/python/looker_sdk/sdk/constants.py index 0036c0672..b892182d1 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.10" +sdk_version = "25.16" environment_prefix = "LOOKERSDK" diff --git a/python/looker_sdk/version.py b/python/looker_sdk/version.py index bb89189fd..11d0bdcef 100644 --- a/python/looker_sdk/version.py +++ b/python/looker_sdk/version.py @@ -20,4 +20,4 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -__version__ = "25.10.0" +__version__ = "25.16.0" diff --git a/spec/Looker.4.0.json b/spec/Looker.4.0.json index 7df06a72a..3e2600949 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.10", - "x-looker-release-version": "25.10.10", + "version": "4.0.25.16", + "x-looker-release-version": "25.16.10", "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": { @@ -2499,7 +2499,7 @@ "200": { "description": "CI Run", "schema": { - "$ref": "#/definitions/ProjectCIRun" + "$ref": "#/definitions/ProjectRun" } }, "400": { @@ -3201,38 +3201,45 @@ { "name": "user_id", "in": "query", - "description": "Match user id(s).To create a list of multiple ids, use commas as separators", + "description": "Match user id(s). To create a list of multiple ids, use commas as separators", "required": false, "type": "string" }, { "name": "content_metadata_id", "in": "query", - "description": "Match content metadata id(s).To create a list of multiple ids, use commas as separators", + "description": "Match content metadata id(s). To create a list of multiple ids, use commas as separators", "required": false, "type": "string" }, { "name": "dashboard_id", "in": "query", - "description": "Match dashboard id(s).To create a list of multiple ids, use commas as separators", + "description": "Match dashboard id(s). To create a list of multiple ids, use commas as separators", "required": false, "type": "string" }, { "name": "look_id", "in": "query", - "description": "Match look id(s).To create a list of multiple ids, use commas as separators", + "description": "Match look id(s). To create a list of multiple ids, use commas as separators", "required": false, "type": "string" }, { "name": "board_id", "in": "query", - "description": "Match board id(s).To create a list of multiple ids, use commas as separators", + "description": "Match board id(s). To create a list of multiple ids, use commas as separators", "required": false, "type": "string" }, + { + "name": "include_board_items", + "in": "query", + "description": "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.", + "required": false, + "type": "boolean" + }, { "name": "limit", "in": "query", @@ -7570,6 +7577,12 @@ "$ref": "#/definitions/Error" } }, + "422": { + "description": "Validation Error", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, "429": { "description": "Too Many Requests", "schema": { @@ -25400,6 +25413,13 @@ "description": "Search for users who are direct members of this group", "required": false, "type": "string" + }, + { + "name": "can_manage_api3_creds", + "in": "query", + "description": "Search for users who can manage API3 credentials", + "required": false, + "type": "boolean" } ], "responses": { @@ -26805,12 +26825,12 @@ "x-looker-activity-type": "non_query", "x-looker-rate-limited": true }, - "delete": { + "patch": { "tags": [ "User" ], - "operationId": "delete_user_credentials_api3", - "summary": "Delete API Credential", + "operationId": "update_user_credentials_api3", + "summary": "Update API Credential", "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", "parameters": [ { @@ -26826,60 +26846,15 @@ "description": "Id of API Credential", "required": true, "type": "string" - } - ], - "responses": { - "204": { - "description": "Successfully deleted.", - "schema": { - "type": "string" - } }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Permission Denied", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "429": { - "description": "Too Many Requests", - "schema": { - "$ref": "#/definitions/Error" - } - } - }, - "x-looker-status": "stable", - "x-looker-activity-type": "non_query", - "x-looker-rate-limited": true - } - }, - "/users/{user_id}/credentials_api3": { - "get": { - "tags": [ - "User" - ], - "operationId": "all_user_credentials_api3s", - "summary": "Get All API Credentials", - "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", - "parameters": [ { - "name": "user_id", - "in": "path", - "description": "Id of user", + "name": "body", + "in": "body", + "description": "API Credential", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/CredentialsApi3" + } }, { "name": "fields", @@ -26893,10 +26868,7 @@ "200": { "description": "API Credential", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/CredentialsApi3" - } + "$ref": "#/definitions/CredentialsApi3" } }, "400": { @@ -26917,6 +26889,12 @@ "$ref": "#/definitions/Error" } }, + "422": { + "description": "Validation Error", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, "429": { "description": "Too Many Requests", "schema": { @@ -26928,12 +26906,12 @@ "x-looker-activity-type": "non_query", "x-looker-rate-limited": true }, - "post": { + "delete": { "tags": [ "User" ], - "operationId": "create_user_credentials_api3", - "summary": "Create API Credential", + "operationId": "delete_user_credentials_api3", + "summary": "Delete API Credential", "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", "parameters": [ { @@ -26944,18 +26922,18 @@ "type": "string" }, { - "name": "fields", - "in": "query", - "description": "Requested fields.", - "required": false, + "name": "credentials_api3_id", + "in": "path", + "description": "Id of API Credential", + "required": true, "type": "string" } ], "responses": { - "200": { - "description": "API Credential", + "204": { + "description": "Successfully deleted.", "schema": { - "$ref": "#/definitions/CreateCredentialsApi3" + "type": "string" } }, "400": { @@ -26976,18 +26954,6 @@ "$ref": "#/definitions/Error" } }, - "409": { - "description": "Resource Already Exists", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "422": { - "description": "Validation Error", - "schema": { - "$ref": "#/definitions/ValidationError" - } - }, "429": { "description": "Too Many Requests", "schema": { @@ -27000,14 +26966,14 @@ "x-looker-rate-limited": true } }, - "/users/{user_id}/credentials_embed/{credentials_embed_id}": { + "/users/{user_id}/credentials_api3": { "get": { "tags": [ "User" ], - "operationId": "user_credentials_embed", - "summary": "Get Embedding Credential", - "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", + "operationId": "all_user_credentials_api3s", + "summary": "Get All API Credentials", + "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", "parameters": [ { "name": "user_id", @@ -27016,13 +26982,6 @@ "required": true, "type": "string" }, - { - "name": "credentials_embed_id", - "in": "path", - "description": "Id of Embedding Credential", - "required": true, - "type": "string" - }, { "name": "fields", "in": "query", @@ -27033,9 +26992,12 @@ ], "responses": { "200": { - "description": "Embedding Credential", + "description": "API Credential", "schema": { - "$ref": "#/definitions/CredentialsEmbed" + "type": "array", + "items": { + "$ref": "#/definitions/CredentialsApi3" + } } }, "400": { @@ -27067,13 +27029,13 @@ "x-looker-activity-type": "non_query", "x-looker-rate-limited": true }, - "delete": { + "post": { "tags": [ "User" ], - "operationId": "delete_user_credentials_embed", - "summary": "Delete Embedding Credential", - "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", + "operationId": "create_user_credentials_api3", + "summary": "Create API Credential", + "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", "parameters": [ { "name": "user_id", @@ -27083,18 +27045,18 @@ "type": "string" }, { - "name": "credentials_embed_id", - "in": "path", - "description": "Id of Embedding Credential", - "required": true, + "name": "fields", + "in": "query", + "description": "Requested fields.", + "required": false, "type": "string" } ], "responses": { - "204": { - "description": "Successfully deleted.", + "200": { + "description": "API Credential", "schema": { - "type": "string" + "$ref": "#/definitions/CreateCredentialsApi3" } }, "400": { @@ -27115,68 +27077,16 @@ "$ref": "#/definitions/Error" } }, - "429": { - "description": "Too Many Requests", - "schema": { - "$ref": "#/definitions/Error" - } - } - }, - "x-looker-status": "stable", - "x-looker-activity-type": "non_query", - "x-looker-rate-limited": true - } - }, - "/users/{user_id}/credentials_embed": { - "get": { - "tags": [ - "User" - ], - "operationId": "all_user_credentials_embeds", - "summary": "Get All Embedding Credentials", - "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", - "parameters": [ - { - "name": "user_id", - "in": "path", - "description": "Id of user", - "required": true, - "type": "string" - }, - { - "name": "fields", - "in": "query", - "description": "Requested fields.", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Embedding Credential", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/CredentialsEmbed" - } - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "403": { - "description": "Permission Denied", + "409": { + "description": "Resource Already Exists", "schema": { "$ref": "#/definitions/Error" } }, - "404": { - "description": "Not Found", + "422": { + "description": "Validation Error", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ValidationError" } }, "429": { @@ -27191,14 +27101,14 @@ "x-looker-rate-limited": true } }, - "/users/{user_id}/credentials_looker_openid": { + "/users/{user_id}/credentials_embed/{credentials_embed_id}": { "get": { "tags": [ "User" ], - "operationId": "user_credentials_looker_openid", - "summary": "Get Looker OpenId Credential", - "description": "### Looker Openid login information for the specified user. Used by Looker Analysts.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", + "operationId": "user_credentials_embed", + "summary": "Get Embedding Credential", + "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", "parameters": [ { "name": "user_id", @@ -27207,6 +27117,13 @@ "required": true, "type": "string" }, + { + "name": "credentials_embed_id", + "in": "path", + "description": "Id of Embedding Credential", + "required": true, + "type": "string" + }, { "name": "fields", "in": "query", @@ -27217,9 +27134,9 @@ ], "responses": { "200": { - "description": "Looker OpenId Credential", + "description": "Embedding Credential", "schema": { - "$ref": "#/definitions/CredentialsLookerOpenid" + "$ref": "#/definitions/CredentialsEmbed" } }, "400": { @@ -27255,9 +27172,193 @@ "tags": [ "User" ], - "operationId": "delete_user_credentials_looker_openid", - "summary": "Delete Looker OpenId Credential", - "description": "### Looker Openid login information for the specified user. Used by Looker Analysts.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", + "operationId": "delete_user_credentials_embed", + "summary": "Delete Embedding Credential", + "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "Id of user", + "required": true, + "type": "string" + }, + { + "name": "credentials_embed_id", + "in": "path", + "description": "Id of Embedding Credential", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Successfully deleted.", + "schema": { + "type": "string" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "429": { + "description": "Too Many Requests", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-looker-status": "stable", + "x-looker-activity-type": "non_query", + "x-looker-rate-limited": true + } + }, + "/users/{user_id}/credentials_embed": { + "get": { + "tags": [ + "User" + ], + "operationId": "all_user_credentials_embeds", + "summary": "Get All Embedding Credentials", + "description": "### Embed login information for the specified user.\n\n**NOTE**: Calls to this endpoint require [Embedding](https://cloud.google.com/looker/docs/r/looker-core-feature-embed) to be enabled. Usage of this endpoint is not authorized for Looker Core Standard and Looker Core Enterprise.", + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "Id of user", + "required": true, + "type": "string" + }, + { + "name": "fields", + "in": "query", + "description": "Requested fields.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Embedding Credential", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/CredentialsEmbed" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "429": { + "description": "Too Many Requests", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-looker-status": "stable", + "x-looker-activity-type": "non_query", + "x-looker-rate-limited": true + } + }, + "/users/{user_id}/credentials_looker_openid": { + "get": { + "tags": [ + "User" + ], + "operationId": "user_credentials_looker_openid", + "summary": "Get Looker OpenId Credential", + "description": "### Looker Openid login information for the specified user. Used by Looker Analysts.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "Id of user", + "required": true, + "type": "string" + }, + { + "name": "fields", + "in": "query", + "description": "Requested fields.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Looker OpenId Credential", + "schema": { + "$ref": "#/definitions/CredentialsLookerOpenid" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Permission Denied", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "429": { + "description": "Too Many Requests", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-looker-status": "stable", + "x-looker-activity-type": "non_query", + "x-looker-rate-limited": true + }, + "delete": { + "tags": [ + "User" + ], + "operationId": "delete_user_credentials_looker_openid", + "summary": "Delete Looker OpenId Credential", + "description": "### Looker Openid login information for the specified user. Used by Looker Analysts.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", "parameters": [ { "name": "user_id", @@ -30112,6 +30213,18 @@ "readOnly": true, "description": "Id of a board", "x-looker-nullable": true + }, + "lookml_dashboard_id": { + "type": "string", + "readOnly": true, + "description": "Id of a lookml dashboard", + "x-looker-nullable": true + }, + "lookml_dashboard": { + "$ref": "#/definitions/DashboardBase", + "readOnly": true, + "description": "Associated LookML Dashboard", + "x-looker-nullable": true } }, "x-looker-status": "stable" @@ -30211,6 +30324,18 @@ "description": "Id of associated folder when content_type is \"space\"", "x-looker-nullable": true }, + "homepage_id": { + "type": "string", + "readOnly": true, + "description": "Id of associated board when content_type is \"board\"", + "x-looker-nullable": true + }, + "agent_id": { + "type": "string", + "readOnly": true, + "description": "Id of associated agent when content_type is \"agent\"", + "x-looker-nullable": true + }, "content_type": { "type": "string", "readOnly": true, @@ -31145,6 +31270,11 @@ "description": "Short name for the type of this kind of credential", "x-looker-nullable": true }, + "purpose": { + "type": "string", + "description": "User defined purpose for this credential.", + "x-looker-nullable": true + }, "url": { "type": "string", "format": "uri-reference", @@ -31196,6 +31326,11 @@ "description": "Short name for the type of this kind of credential", "x-looker-nullable": true }, + "purpose": { + "type": "string", + "description": "User defined purpose for this credential.", + "x-looker-nullable": true + }, "client_secret": { "type": "string", "readOnly": true, @@ -33104,6 +33239,12 @@ "description": "Whether the integration uses the oauth instance account.", "x-looker-nullable": false }, + "uses_service_auth": { + "type": "boolean", + "readOnly": true, + "description": "Whether the connection uses service authentication certificate.", + "x-looker-nullable": false + }, "certificate": { "type": "string", "x-looker-write-only": true, @@ -35774,7 +35915,7 @@ "type": "string", "readOnly": true, "description": "Explore name", - "x-looker-nullable": false + "x-looker-nullable": true }, "dimension_group": { "type": "string", @@ -39541,10 +39682,204 @@ }, "x-looker-status": "stable" }, - "ProjectCIRun": { + "ProjectFile": { + "properties": { + "can": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "readOnly": true, + "description": "Operations the current user is able to perform on this object", + "x-looker-nullable": false + }, + "id": { + "type": "string", + "readOnly": true, + "description": "An opaque token uniquely identifying a file within a project. Avoid parsing or decomposing the text of this token. This token is stable within a Looker release but may change between Looker releases", + "x-looker-nullable": false + }, + "path": { + "type": "string", + "readOnly": true, + "description": "Path, file name, and extension of the file relative to the project root directory", + "x-looker-nullable": true + }, + "title": { + "type": "string", + "readOnly": true, + "description": "Display name", + "x-looker-nullable": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "File type: model, view, etc", + "x-looker-nullable": true + }, + "extension": { + "type": "string", + "readOnly": true, + "description": "The extension of the file: .view.lkml, .model.lkml, etc", + "x-looker-nullable": true + }, + "mime_type": { + "type": "string", + "readOnly": true, + "description": "File mime type", + "x-looker-nullable": true + }, + "editable": { + "type": "boolean", + "readOnly": true, + "description": "State of editability for the file.", + "x-looker-nullable": false + }, + "git_status": { + "$ref": "#/definitions/GitStatus", + "readOnly": true, + "description": "Status of the file according to git", + "x-looker-nullable": true + } + }, + "x-looker-status": "stable" + }, + "Project": { + "properties": { + "can": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "readOnly": true, + "description": "Operations the current user is able to perform on this object", + "x-looker-nullable": false + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Project Id", + "x-looker-nullable": false + }, + "name": { + "type": "string", + "description": "Project display name", + "x-looker-nullable": false + }, + "uses_git": { + "type": "boolean", + "readOnly": true, + "description": "If true the project is configured with a git repository", + "x-looker-nullable": false + }, + "git_remote_url": { + "type": "string", + "description": "Git remote repository url", + "x-looker-nullable": true + }, + "git_username": { + "type": "string", + "description": "Git username for HTTPS authentication. (For production only, if using user attributes.)", + "x-looker-nullable": true + }, + "git_password": { + "type": "string", + "x-looker-write-only": true, + "description": "(Write-Only) Git password for HTTPS authentication. (For production only, if using user attributes.)", + "x-looker-nullable": true + }, + "git_production_branch_name": { + "type": "string", + "description": "Git production branch name. Defaults to master. Supported only in Looker 21.0 and higher.", + "x-looker-nullable": false + }, + "use_git_cookie_auth": { + "type": "boolean", + "description": "If true, the project uses a git cookie for authentication.", + "x-looker-nullable": false + }, + "git_username_user_attribute": { + "type": "string", + "description": "User attribute name for username in per-user HTTPS authentication.", + "x-looker-nullable": true + }, + "git_password_user_attribute": { + "type": "string", + "description": "User attribute name for password in per-user HTTPS authentication.", + "x-looker-nullable": true + }, + "git_service_name": { + "type": "string", + "description": "Name of the git service provider", + "x-looker-nullable": true + }, + "git_application_server_http_port": { + "type": "integer", + "format": "int64", + "description": "Port that HTTP(S) application server is running on (for PRs, file browsing, etc.)", + "x-looker-nullable": true + }, + "git_application_server_http_scheme": { + "type": "string", + "description": "Scheme that is running on application server (for PRs, file browsing, etc.)", + "x-looker-nullable": true + }, + "deploy_secret": { + "type": "string", + "x-looker-write-only": true, + "description": "(Write-Only) Optional secret token with which to authenticate requests to the webhook deploy endpoint. If not set, endpoint is unauthenticated.", + "x-looker-nullable": true + }, + "unset_deploy_secret": { + "type": "boolean", + "x-looker-write-only": true, + "description": "(Write-Only) When true, unsets the deploy secret to allow unauthenticated access to the webhook deploy endpoint.", + "x-looker-nullable": false + }, + "pull_request_mode": { + "type": "string", + "x-looker-values": [ + "off", + "links", + "recommended", + "required" + ], + "description": "The git pull request policy for this project. Valid values are: \"off\", \"links\", \"recommended\", \"required\".", + "x-looker-nullable": false + }, + "validation_required": { + "type": "boolean", + "description": "Validation policy: If true, the project must pass validation checks before project changes can be committed to the git repository", + "x-looker-nullable": false + }, + "git_release_mgmt_enabled": { + "type": "boolean", + "description": "If true, advanced git release management is enabled for this project", + "x-looker-nullable": false + }, + "allow_warnings": { + "type": "boolean", + "description": "Validation policy: If true, the project can be committed with warnings when `validation_required` is true. (`allow_warnings` does nothing if `validation_required` is false).", + "x-looker-nullable": false + }, + "is_example": { + "type": "boolean", + "readOnly": true, + "description": "If true the project is an example project and cannot be modified", + "x-looker-nullable": false + }, + "dependency_status": { + "type": "string", + "description": "Status of dependencies in your manifest & lockfile", + "x-looker-nullable": true + } + }, + "x-looker-status": "stable" + }, + "ProjectRun": { "properties": { "run": { - "$ref": "#/definitions/CIRun", + "$ref": "#/definitions/Run", "readOnly": true, "description": "Continuous Integration run results", "x-looker-nullable": true @@ -39552,7 +39887,7 @@ }, "x-looker-status": "beta" }, - "CIRun": { + "Run": { "properties": { "run_id": { "type": "string", @@ -40240,418 +40575,224 @@ "model": { "type": "string", "readOnly": true, - "description": "LookML model that contains the error", - "x-looker-nullable": true - }, - "explore": { - "type": "string", - "readOnly": true, - "description": "LookML Explore that contains the error", - "x-looker-nullable": true - }, - "field_name": { - "type": "string", - "readOnly": true, - "description": "LookML field that caused the error", - "x-looker-nullable": true - }, - "message": { - "type": "string", - "readOnly": true, - "description": "Message returned by the LookML validator", - "x-looker-nullable": true - }, - "severity": { - "type": "string", - "readOnly": true, - "description": "Severity of the error (warning, error, fatal, info, success)", - "x-looker-nullable": true - }, - "line_number": { - "type": "string", - "readOnly": true, - "description": "Line number of the error in the LookML file", - "x-looker-nullable": true - }, - "lookml_url": { - "type": "string", - "readOnly": true, - "description": "URL to the LookML that caused the error", - "x-looker-nullable": true - }, - "file_path": { - "type": "string", - "readOnly": true, - "description": "IDE folder path to the LookML file that caused the error", - "x-looker-nullable": true - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorResult": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the validator (sql)", - "x-looker-nullable": false - }, - "incremental": { - "type": "boolean", - "readOnly": true, - "description": "Whether the validation was incremental", - "x-looker-nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", - "x-looker-nullable": false - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/SqlValidatorTestedExplore" - }, - "readOnly": true, - "description": "The results of tested Explores", - "x-looker-nullable": false - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorTestedExplore": { - "properties": { - "model": { - "type": "string", - "readOnly": true, - "description": "LookML model that was tested", - "x-looker-nullable": false - }, - "explore": { - "type": "string", - "readOnly": true, - "description": "LookML Explore that was tested", - "x-looker-nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", - "x-looker-nullable": false - }, - "skip_reason": { - "type": "string", - "readOnly": true, - "description": "Reason the validation was skipped", - "x-looker-nullable": true - }, - "error_count": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Total number of failed validations", - "x-looker-nullable": true - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/definitions/SqlValidatorErrorItem" - }, - "readOnly": true, - "description": "Details of the LookML that failed SQL validation", - "x-looker-nullable": false - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorErrorItem": { - "properties": { - "sql_error": { - "$ref": "#/definitions/SqlValidatorError", - "readOnly": true, - "description": "Details of the LookML that failed validation", - "x-looker-nullable": true - }, - "generic_error": { - "$ref": "#/definitions/GenericError", - "readOnly": true, - "description": "Error that occurred when attempting to run validation", - "x-looker-nullable": true - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorError": { - "properties": { - "type": { - "type": "string", - "readOnly": true, - "description": "A URI reference that identifies the problem type", - "x-looker-nullable": false - }, - "title": { - "type": "string", - "readOnly": true, - "description": "Overview of the error", - "x-looker-nullable": false - }, - "detail": { - "type": "string", - "readOnly": true, - "description": "Detail of the error", - "x-looker-nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "The HTTP status code for the problem", - "x-looker-nullable": true - }, - "instance": { - "type": "string", - "readOnly": true, - "description": "URI reference that identifies the specific occurrence of the problem", - "x-looker-nullable": true - }, - "model": { - "type": "string", - "readOnly": true, - "description": "LookML model that contains the Explore that failed SQL validation", - "x-looker-nullable": false + "description": "LookML model that contains the error", + "x-looker-nullable": true }, "explore": { "type": "string", "readOnly": true, - "description": "LookML Explore that failed SQL validation", - "x-looker-nullable": false + "description": "LookML Explore that contains the error", + "x-looker-nullable": true + }, + "field_name": { + "type": "string", + "readOnly": true, + "description": "LookML field that caused the error", + "x-looker-nullable": true }, "message": { "type": "string", "readOnly": true, - "description": "Message returned by the SQL validation", - "x-looker-nullable": false + "description": "Message returned by the LookML validator", + "x-looker-nullable": true }, - "explore_url": { + "severity": { "type": "string", "readOnly": true, - "description": "URL to the Explore", + "description": "Severity of the error (warning, error, fatal, info, success)", "x-looker-nullable": true }, - "lookml_url": { + "line_number": { "type": "string", "readOnly": true, - "description": "URL to the LookML that caused the error", + "description": "Line number of the error in the LookML file", "x-looker-nullable": true }, - "dimension": { + "lookml_url": { "type": "string", "readOnly": true, - "description": "LookML dimension that caused the error", + "description": "URL to the LookML that caused the error", "x-looker-nullable": true }, - "line_number": { + "file_path": { "type": "string", "readOnly": true, - "description": "Line of the error in the LookML file", + "description": "IDE folder path to the LookML file that caused the error", "x-looker-nullable": true } }, "x-looker-status": "beta" }, - "ProjectFile": { + "SqlValidatorResult": { "properties": { - "can": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, + "name": { + "type": "string", "readOnly": true, - "description": "Operations the current user is able to perform on this object", + "description": "Name of the validator (sql)", "x-looker-nullable": false }, - "id": { + "incremental": { + "type": "boolean", + "readOnly": true, + "description": "Whether the validation was incremental", + "x-looker-nullable": false + }, + "status": { "type": "string", "readOnly": true, - "description": "An opaque token uniquely identifying a file within a project. Avoid parsing or decomposing the text of this token. This token is stable within a Looker release but may change between Looker releases", + "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", "x-looker-nullable": false }, - "path": { + "result": { + "type": "array", + "items": { + "$ref": "#/definitions/SqlValidatorTestedExplore" + }, + "readOnly": true, + "description": "The results of tested Explores", + "x-looker-nullable": false + } + }, + "x-looker-status": "beta" + }, + "SqlValidatorTestedExplore": { + "properties": { + "model": { "type": "string", "readOnly": true, - "description": "Path, file name, and extension of the file relative to the project root directory", - "x-looker-nullable": true + "description": "LookML model that was tested", + "x-looker-nullable": false }, - "title": { + "explore": { "type": "string", "readOnly": true, - "description": "Display name", - "x-looker-nullable": true + "description": "LookML Explore that was tested", + "x-looker-nullable": false }, - "type": { + "status": { "type": "string", "readOnly": true, - "description": "File type: model, view, etc", - "x-looker-nullable": true + "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", + "x-looker-nullable": false }, - "extension": { + "skip_reason": { "type": "string", "readOnly": true, - "description": "The extension of the file: .view.lkml, .model.lkml, etc", + "description": "Reason the validation was skipped", "x-looker-nullable": true }, - "mime_type": { - "type": "string", + "error_count": { + "type": "integer", + "format": "int64", "readOnly": true, - "description": "File mime type", + "description": "Total number of failed validations", "x-looker-nullable": true }, - "editable": { - "type": "boolean", + "errors": { + "type": "array", + "items": { + "$ref": "#/definitions/SqlValidatorErrorItem" + }, "readOnly": true, - "description": "State of editability for the file.", + "description": "Details of the LookML that failed SQL validation", "x-looker-nullable": false + } + }, + "x-looker-status": "beta" + }, + "SqlValidatorErrorItem": { + "properties": { + "sql_error": { + "$ref": "#/definitions/SqlValidatorError", + "readOnly": true, + "description": "Details of the LookML that failed validation", + "x-looker-nullable": true }, - "git_status": { - "$ref": "#/definitions/GitStatus", + "generic_error": { + "$ref": "#/definitions/GenericError", "readOnly": true, - "description": "Status of the file according to git", + "description": "Error that occurred when attempting to run validation", "x-looker-nullable": true } }, - "x-looker-status": "stable" + "x-looker-status": "beta" }, - "Project": { + "SqlValidatorError": { "properties": { - "can": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, + "type": { + "type": "string", "readOnly": true, - "description": "Operations the current user is able to perform on this object", + "description": "A URI reference that identifies the problem type", "x-looker-nullable": false }, - "id": { + "title": { "type": "string", "readOnly": true, - "description": "Project Id", + "description": "Overview of the error", "x-looker-nullable": false }, - "name": { + "detail": { "type": "string", - "description": "Project display name", - "x-looker-nullable": false - }, - "uses_git": { - "type": "boolean", "readOnly": true, - "description": "If true the project is configured with a git repository", + "description": "Detail of the error", "x-looker-nullable": false }, - "git_remote_url": { - "type": "string", - "description": "Git remote repository url", - "x-looker-nullable": true - }, - "git_username": { + "status": { "type": "string", - "description": "Git username for HTTPS authentication. (For production only, if using user attributes.)", + "readOnly": true, + "description": "The HTTP status code for the problem", "x-looker-nullable": true }, - "git_password": { + "instance": { "type": "string", - "x-looker-write-only": true, - "description": "(Write-Only) Git password for HTTPS authentication. (For production only, if using user attributes.)", + "readOnly": true, + "description": "URI reference that identifies the specific occurrence of the problem", "x-looker-nullable": true }, - "git_production_branch_name": { + "model": { "type": "string", - "description": "Git production branch name. Defaults to master. Supported only in Looker 21.0 and higher.", - "x-looker-nullable": false - }, - "use_git_cookie_auth": { - "type": "boolean", - "description": "If true, the project uses a git cookie for authentication.", + "readOnly": true, + "description": "LookML model that contains the Explore that failed SQL validation", "x-looker-nullable": false }, - "git_username_user_attribute": { + "explore": { "type": "string", - "description": "User attribute name for username in per-user HTTPS authentication.", - "x-looker-nullable": true + "readOnly": true, + "description": "LookML Explore that failed SQL validation", + "x-looker-nullable": false }, - "git_password_user_attribute": { + "message": { "type": "string", - "description": "User attribute name for password in per-user HTTPS authentication.", - "x-looker-nullable": true + "readOnly": true, + "description": "Message returned by the SQL validation", + "x-looker-nullable": false }, - "git_service_name": { + "explore_url": { "type": "string", - "description": "Name of the git service provider", - "x-looker-nullable": true - }, - "git_application_server_http_port": { - "type": "integer", - "format": "int64", - "description": "Port that HTTP(S) application server is running on (for PRs, file browsing, etc.)", + "readOnly": true, + "description": "URL to the Explore", "x-looker-nullable": true }, - "git_application_server_http_scheme": { + "lookml_url": { "type": "string", - "description": "Scheme that is running on application server (for PRs, file browsing, etc.)", + "readOnly": true, + "description": "URL to the LookML that caused the error", "x-looker-nullable": true }, - "deploy_secret": { + "dimension": { "type": "string", - "x-looker-write-only": true, - "description": "(Write-Only) Optional secret token with which to authenticate requests to the webhook deploy endpoint. If not set, endpoint is unauthenticated.", + "readOnly": true, + "description": "LookML dimension that caused the error", "x-looker-nullable": true }, - "unset_deploy_secret": { - "type": "boolean", - "x-looker-write-only": true, - "description": "(Write-Only) When true, unsets the deploy secret to allow unauthenticated access to the webhook deploy endpoint.", - "x-looker-nullable": false - }, - "pull_request_mode": { + "line_number": { "type": "string", - "x-looker-values": [ - "off", - "links", - "recommended", - "required" - ], - "description": "The git pull request policy for this project. Valid values are: \"off\", \"links\", \"recommended\", \"required\".", - "x-looker-nullable": false - }, - "validation_required": { - "type": "boolean", - "description": "Validation policy: If true, the project must pass validation checks before project changes can be committed to the git repository", - "x-looker-nullable": false - }, - "git_release_mgmt_enabled": { - "type": "boolean", - "description": "If true, advanced git release management is enabled for this project", - "x-looker-nullable": false - }, - "allow_warnings": { - "type": "boolean", - "description": "Validation policy: If true, the project can be committed with warnings when `validation_required` is true. (`allow_warnings` does nothing if `validation_required` is false).", - "x-looker-nullable": false - }, - "is_example": { - "type": "boolean", "readOnly": true, - "description": "If true the project is an example project and cannot be modified", - "x-looker-nullable": false - }, - "dependency_status": { - "type": "string", - "description": "Status of dependencies in your manifest & lockfile", + "description": "Line of the error in the LookML file", "x-looker-nullable": true } }, - "x-looker-status": "stable" + "x-looker-status": "beta" }, "ProjectError": { "properties": { @@ -41462,19 +41603,16 @@ "properties": { "model": { "type": "string", - "readOnly": true, "description": "The model this filterable comes from (used for field suggestions).", "x-looker-nullable": true }, "view": { "type": "string", - "readOnly": true, "description": "The view this filterable comes from (used for field suggestions).", "x-looker-nullable": true }, "name": { "type": "string", - "readOnly": true, "description": "The name of the filterable thing (Query or Merged Results).", "x-looker-nullable": true }, @@ -41500,7 +41638,6 @@ }, "dynamic_fields": { "type": "string", - "readOnly": true, "description": "JSON string of dynamic field information.", "x-looker-nullable": true }, @@ -41509,7 +41646,6 @@ "items": { "$ref": "#/definitions/ResultMakerFilterables" }, - "readOnly": true, "description": "array of items that can be filtered and information about them.", "x-looker-nullable": true }, @@ -41518,19 +41654,16 @@ "items": { "type": "string" }, - "readOnly": true, "description": "Sorts of the constituent Look, Query, or Merge Query", "x-looker-nullable": true }, "merge_result_id": { "type": "string", - "readOnly": true, "description": "ID of merge result if this is a merge_result.", "x-looker-nullable": true }, "total": { "type": "boolean", - "readOnly": true, "description": "Total of the constituent Look, Query, or Merge Query", "x-looker-nullable": false }, @@ -41542,7 +41675,6 @@ }, "sql_query_id": { "type": "string", - "readOnly": true, "description": "ID of SQL Query if this is a SQL Runner Query", "x-looker-nullable": true }, @@ -41558,7 +41690,6 @@ "type": "any", "format": "any" }, - "readOnly": true, "description": "Vis config of the constituent Query, or Merge Query.", "x-looker-nullable": true } @@ -44864,7 +44995,12 @@ "is_iam_admin": { "type": "boolean", "readOnly": true, - "description": "User is an IAM Admin - only available in Looker (Google Cloud core)", + "description": "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.", + "x-looker-nullable": false + }, + "can_manage_api3_creds": { + "type": "boolean", + "description": "Indicates if the user can manage API3 credentials", "x-looker-nullable": false }, "url": { diff --git a/spec/Looker.4.0.oas.json b/spec/Looker.4.0.oas.json index e94afa746..772000b78 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.10", - "x-looker-release-version": "25.10.10", + "version": "4.0.25.16", + "x-looker-release-version": "25.16.10", "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": { @@ -3568,7 +3568,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProjectCIRun" + "$ref": "#/components/schemas/ProjectRun" } } } @@ -4542,7 +4542,7 @@ { "name": "user_id", "in": "query", - "description": "Match user id(s).To create a list of multiple ids, use commas as separators", + "description": "Match user id(s). To create a list of multiple ids, use commas as separators", "required": false, "schema": { "type": "string" @@ -4551,7 +4551,7 @@ { "name": "content_metadata_id", "in": "query", - "description": "Match content metadata id(s).To create a list of multiple ids, use commas as separators", + "description": "Match content metadata id(s). To create a list of multiple ids, use commas as separators", "required": false, "schema": { "type": "string" @@ -4560,7 +4560,7 @@ { "name": "dashboard_id", "in": "query", - "description": "Match dashboard id(s).To create a list of multiple ids, use commas as separators", + "description": "Match dashboard id(s). To create a list of multiple ids, use commas as separators", "required": false, "schema": { "type": "string" @@ -4569,7 +4569,7 @@ { "name": "look_id", "in": "query", - "description": "Match look id(s).To create a list of multiple ids, use commas as separators", + "description": "Match look id(s). To create a list of multiple ids, use commas as separators", "required": false, "schema": { "type": "string" @@ -4578,12 +4578,21 @@ { "name": "board_id", "in": "query", - "description": "Match board id(s).To create a list of multiple ids, use commas as separators", + "description": "Match board id(s). To create a list of multiple ids, use commas as separators", "required": false, "schema": { "type": "string" } }, + { + "name": "include_board_items", + "in": "query", + "description": "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.", + "required": false, + "schema": { + "type": "boolean" + } + }, { "name": "limit", "in": "query", @@ -10530,6 +10539,16 @@ } } }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + } + } + }, "429": { "description": "Too Many Requests", "content": { @@ -35127,6 +35146,15 @@ "schema": { "type": "string" } + }, + { + "name": "can_manage_api3_creds", + "in": "query", + "description": "Search for users who can manage API3 credentials", + "required": false, + "schema": { + "type": "boolean" + } } ], "responses": { @@ -37088,6 +37116,119 @@ "x-looker-activity-type": "non_query", "x-looker-rate-limited": true }, + "patch": { + "tags": [ + "User" + ], + "operationId": "update_user_credentials_api3", + "summary": "Update API Credential", + "description": "### API login information for the specified user. This is for the newer API keys that can be added for any user.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).", + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "Id of user", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "credentials_api3_id", + "in": "path", + "description": "Id of API Credential", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "fields", + "in": "query", + "description": "Requested fields.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "API Credential", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialsApi3" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Permission Denied", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationError" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "x-looker-status": "stable", + "x-looker-activity-type": "non_query", + "x-looker-rate-limited": true, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialsApi3" + } + } + }, + "description": "API Credential", + "required": true + } + }, "delete": { "tags": [ "User" @@ -41014,6 +41155,15 @@ "readOnly": true, "description": "Id of a board", "nullable": true + }, + "lookml_dashboard_id": { + "type": "string", + "readOnly": true, + "description": "Id of a lookml dashboard", + "nullable": true + }, + "lookml_dashboard": { + "$ref": "#/components/schemas/DashboardBase" } }, "x-looker-status": "stable" @@ -41113,6 +41263,18 @@ "description": "Id of associated folder when content_type is \"space\"", "nullable": true }, + "homepage_id": { + "type": "string", + "readOnly": true, + "description": "Id of associated board when content_type is \"board\"", + "nullable": true + }, + "agent_id": { + "type": "string", + "readOnly": true, + "description": "Id of associated agent when content_type is \"agent\"", + "nullable": true + }, "content_type": { "type": "string", "readOnly": true, @@ -42025,6 +42187,11 @@ "description": "Short name for the type of this kind of credential", "nullable": true }, + "purpose": { + "type": "string", + "description": "User defined purpose for this credential.", + "nullable": true + }, "url": { "type": "string", "format": "uri-reference", @@ -42076,6 +42243,11 @@ "description": "Short name for the type of this kind of credential", "nullable": true }, + "purpose": { + "type": "string", + "description": "User defined purpose for this credential.", + "nullable": true + }, "client_secret": { "type": "string", "readOnly": true, @@ -43956,6 +44128,12 @@ "description": "Whether the integration uses the oauth instance account.", "nullable": false }, + "uses_service_auth": { + "type": "boolean", + "readOnly": true, + "description": "Whether the connection uses service authentication certificate.", + "nullable": false + }, "certificate": { "type": "string", "x-looker-write-only": true, @@ -46612,7 +46790,7 @@ "type": "string", "readOnly": true, "description": "Explore name", - "nullable": false + "nullable": true }, "dimension_group": { "type": "string", @@ -50340,15 +50518,206 @@ }, "x-looker-status": "stable" }, - "ProjectCIRun": { + "ProjectFile": { + "properties": { + "can": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "readOnly": true, + "description": "Operations the current user is able to perform on this object", + "nullable": false + }, + "id": { + "type": "string", + "readOnly": true, + "description": "An opaque token uniquely identifying a file within a project. Avoid parsing or decomposing the text of this token. This token is stable within a Looker release but may change between Looker releases", + "nullable": false + }, + "path": { + "type": "string", + "readOnly": true, + "description": "Path, file name, and extension of the file relative to the project root directory", + "nullable": true + }, + "title": { + "type": "string", + "readOnly": true, + "description": "Display name", + "nullable": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "File type: model, view, etc", + "nullable": true + }, + "extension": { + "type": "string", + "readOnly": true, + "description": "The extension of the file: .view.lkml, .model.lkml, etc", + "nullable": true + }, + "mime_type": { + "type": "string", + "readOnly": true, + "description": "File mime type", + "nullable": true + }, + "editable": { + "type": "boolean", + "readOnly": true, + "description": "State of editability for the file.", + "nullable": false + }, + "git_status": { + "$ref": "#/components/schemas/GitStatus" + } + }, + "x-looker-status": "stable" + }, + "Project": { + "properties": { + "can": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "readOnly": true, + "description": "Operations the current user is able to perform on this object", + "nullable": false + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Project Id", + "nullable": false + }, + "name": { + "type": "string", + "description": "Project display name", + "nullable": false + }, + "uses_git": { + "type": "boolean", + "readOnly": true, + "description": "If true the project is configured with a git repository", + "nullable": false + }, + "git_remote_url": { + "type": "string", + "description": "Git remote repository url", + "nullable": true + }, + "git_username": { + "type": "string", + "description": "Git username for HTTPS authentication. (For production only, if using user attributes.)", + "nullable": true + }, + "git_password": { + "type": "string", + "x-looker-write-only": true, + "description": "(Write-Only) Git password for HTTPS authentication. (For production only, if using user attributes.)", + "nullable": true + }, + "git_production_branch_name": { + "type": "string", + "description": "Git production branch name. Defaults to master. Supported only in Looker 21.0 and higher.", + "nullable": false + }, + "use_git_cookie_auth": { + "type": "boolean", + "description": "If true, the project uses a git cookie for authentication.", + "nullable": false + }, + "git_username_user_attribute": { + "type": "string", + "description": "User attribute name for username in per-user HTTPS authentication.", + "nullable": true + }, + "git_password_user_attribute": { + "type": "string", + "description": "User attribute name for password in per-user HTTPS authentication.", + "nullable": true + }, + "git_service_name": { + "type": "string", + "description": "Name of the git service provider", + "nullable": true + }, + "git_application_server_http_port": { + "type": "integer", + "format": "int64", + "description": "Port that HTTP(S) application server is running on (for PRs, file browsing, etc.)", + "nullable": true + }, + "git_application_server_http_scheme": { + "type": "string", + "description": "Scheme that is running on application server (for PRs, file browsing, etc.)", + "nullable": true + }, + "deploy_secret": { + "type": "string", + "x-looker-write-only": true, + "description": "(Write-Only) Optional secret token with which to authenticate requests to the webhook deploy endpoint. If not set, endpoint is unauthenticated.", + "nullable": true + }, + "unset_deploy_secret": { + "type": "boolean", + "x-looker-write-only": true, + "description": "(Write-Only) When true, unsets the deploy secret to allow unauthenticated access to the webhook deploy endpoint.", + "nullable": false + }, + "pull_request_mode": { + "type": "string", + "enum": [ + "off", + "links", + "recommended", + "required" + ], + "description": "The git pull request policy for this project. Valid values are: \"off\", \"links\", \"recommended\", \"required\".", + "nullable": false + }, + "validation_required": { + "type": "boolean", + "description": "Validation policy: If true, the project must pass validation checks before project changes can be committed to the git repository", + "nullable": false + }, + "git_release_mgmt_enabled": { + "type": "boolean", + "description": "If true, advanced git release management is enabled for this project", + "nullable": false + }, + "allow_warnings": { + "type": "boolean", + "description": "Validation policy: If true, the project can be committed with warnings when `validation_required` is true. (`allow_warnings` does nothing if `validation_required` is false).", + "nullable": false + }, + "is_example": { + "type": "boolean", + "readOnly": true, + "description": "If true the project is an example project and cannot be modified", + "nullable": false + }, + "dependency_status": { + "type": "string", + "description": "Status of dependencies in your manifest & lockfile", + "nullable": true + } + }, + "x-looker-status": "stable" + }, + "ProjectRun": { "properties": { "run": { - "$ref": "#/components/schemas/CIRun" + "$ref": "#/components/schemas/Run" } }, "x-looker-status": "beta" }, - "CIRun": { + "Run": { "properties": { "run_id": { "type": "string", @@ -50979,409 +51348,218 @@ "model": { "type": "string", "readOnly": true, - "description": "LookML model that contains the error", - "nullable": true - }, - "explore": { - "type": "string", - "readOnly": true, - "description": "LookML Explore that contains the error", - "nullable": true - }, - "field_name": { - "type": "string", - "readOnly": true, - "description": "LookML field that caused the error", - "nullable": true - }, - "message": { - "type": "string", - "readOnly": true, - "description": "Message returned by the LookML validator", - "nullable": true - }, - "severity": { - "type": "string", - "readOnly": true, - "description": "Severity of the error (warning, error, fatal, info, success)", - "nullable": true - }, - "line_number": { - "type": "string", - "readOnly": true, - "description": "Line number of the error in the LookML file", - "nullable": true - }, - "lookml_url": { - "type": "string", - "readOnly": true, - "description": "URL to the LookML that caused the error", - "nullable": true - }, - "file_path": { - "type": "string", - "readOnly": true, - "description": "IDE folder path to the LookML file that caused the error", - "nullable": true - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorResult": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the validator (sql)", - "nullable": false - }, - "incremental": { - "type": "boolean", - "readOnly": true, - "description": "Whether the validation was incremental", - "nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", - "nullable": false - }, - "result": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SqlValidatorTestedExplore" - }, - "readOnly": true, - "description": "The results of tested Explores", - "nullable": false - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorTestedExplore": { - "properties": { - "model": { - "type": "string", - "readOnly": true, - "description": "LookML model that was tested", - "nullable": false - }, - "explore": { - "type": "string", - "readOnly": true, - "description": "LookML Explore that was tested", - "nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", - "nullable": false - }, - "skip_reason": { - "type": "string", - "readOnly": true, - "description": "Reason the validation was skipped", - "nullable": true - }, - "error_count": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Total number of failed validations", - "nullable": true - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SqlValidatorErrorItem" - }, - "readOnly": true, - "description": "Details of the LookML that failed SQL validation", - "nullable": false - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorErrorItem": { - "properties": { - "sql_error": { - "$ref": "#/components/schemas/SqlValidatorError" - }, - "generic_error": { - "$ref": "#/components/schemas/GenericError" - } - }, - "x-looker-status": "beta" - }, - "SqlValidatorError": { - "properties": { - "type": { - "type": "string", - "readOnly": true, - "description": "A URI reference that identifies the problem type", - "nullable": false - }, - "title": { - "type": "string", - "readOnly": true, - "description": "Overview of the error", - "nullable": false - }, - "detail": { - "type": "string", - "readOnly": true, - "description": "Detail of the error", - "nullable": false - }, - "status": { - "type": "string", - "readOnly": true, - "description": "The HTTP status code for the problem", - "nullable": true - }, - "instance": { - "type": "string", - "readOnly": true, - "description": "URI reference that identifies the specific occurrence of the problem", - "nullable": true - }, - "model": { - "type": "string", - "readOnly": true, - "description": "LookML model that contains the Explore that failed SQL validation", - "nullable": false + "description": "LookML model that contains the error", + "nullable": true }, "explore": { "type": "string", "readOnly": true, - "description": "LookML Explore that failed SQL validation", - "nullable": false + "description": "LookML Explore that contains the error", + "nullable": true + }, + "field_name": { + "type": "string", + "readOnly": true, + "description": "LookML field that caused the error", + "nullable": true }, "message": { "type": "string", "readOnly": true, - "description": "Message returned by the SQL validation", - "nullable": false + "description": "Message returned by the LookML validator", + "nullable": true }, - "explore_url": { + "severity": { "type": "string", "readOnly": true, - "description": "URL to the Explore", + "description": "Severity of the error (warning, error, fatal, info, success)", "nullable": true }, - "lookml_url": { + "line_number": { "type": "string", "readOnly": true, - "description": "URL to the LookML that caused the error", + "description": "Line number of the error in the LookML file", "nullable": true }, - "dimension": { + "lookml_url": { "type": "string", "readOnly": true, - "description": "LookML dimension that caused the error", + "description": "URL to the LookML that caused the error", "nullable": true }, - "line_number": { + "file_path": { "type": "string", "readOnly": true, - "description": "Line of the error in the LookML file", + "description": "IDE folder path to the LookML file that caused the error", "nullable": true } }, "x-looker-status": "beta" }, - "ProjectFile": { + "SqlValidatorResult": { "properties": { - "can": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, + "name": { + "type": "string", "readOnly": true, - "description": "Operations the current user is able to perform on this object", + "description": "Name of the validator (sql)", "nullable": false }, - "id": { + "incremental": { + "type": "boolean", + "readOnly": true, + "description": "Whether the validation was incremental", + "nullable": false + }, + "status": { "type": "string", "readOnly": true, - "description": "An opaque token uniquely identifying a file within a project. Avoid parsing or decomposing the text of this token. This token is stable within a Looker release but may change between Looker releases", + "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", "nullable": false }, - "path": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SqlValidatorTestedExplore" + }, + "readOnly": true, + "description": "The results of tested Explores", + "nullable": false + } + }, + "x-looker-status": "beta" + }, + "SqlValidatorTestedExplore": { + "properties": { + "model": { "type": "string", "readOnly": true, - "description": "Path, file name, and extension of the file relative to the project root directory", - "nullable": true + "description": "LookML model that was tested", + "nullable": false }, - "title": { + "explore": { "type": "string", "readOnly": true, - "description": "Display name", - "nullable": true + "description": "LookML Explore that was tested", + "nullable": false }, - "type": { + "status": { "type": "string", "readOnly": true, - "description": "File type: model, view, etc", - "nullable": true + "description": "Status of the validation (unknown, failed, passed, skipped, errored, cancelled, queued, running)", + "nullable": false }, - "extension": { + "skip_reason": { "type": "string", "readOnly": true, - "description": "The extension of the file: .view.lkml, .model.lkml, etc", + "description": "Reason the validation was skipped", "nullable": true }, - "mime_type": { - "type": "string", + "error_count": { + "type": "integer", + "format": "int64", "readOnly": true, - "description": "File mime type", + "description": "Total number of failed validations", "nullable": true }, - "editable": { - "type": "boolean", + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SqlValidatorErrorItem" + }, "readOnly": true, - "description": "State of editability for the file.", + "description": "Details of the LookML that failed SQL validation", "nullable": false + } + }, + "x-looker-status": "beta" + }, + "SqlValidatorErrorItem": { + "properties": { + "sql_error": { + "$ref": "#/components/schemas/SqlValidatorError" }, - "git_status": { - "$ref": "#/components/schemas/GitStatus" + "generic_error": { + "$ref": "#/components/schemas/GenericError" } }, - "x-looker-status": "stable" + "x-looker-status": "beta" }, - "Project": { + "SqlValidatorError": { "properties": { - "can": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, + "type": { + "type": "string", "readOnly": true, - "description": "Operations the current user is able to perform on this object", + "description": "A URI reference that identifies the problem type", "nullable": false }, - "id": { + "title": { "type": "string", "readOnly": true, - "description": "Project Id", + "description": "Overview of the error", "nullable": false }, - "name": { + "detail": { "type": "string", - "description": "Project display name", - "nullable": false - }, - "uses_git": { - "type": "boolean", "readOnly": true, - "description": "If true the project is configured with a git repository", + "description": "Detail of the error", "nullable": false }, - "git_remote_url": { - "type": "string", - "description": "Git remote repository url", - "nullable": true - }, - "git_username": { + "status": { "type": "string", - "description": "Git username for HTTPS authentication. (For production only, if using user attributes.)", + "readOnly": true, + "description": "The HTTP status code for the problem", "nullable": true }, - "git_password": { + "instance": { "type": "string", - "x-looker-write-only": true, - "description": "(Write-Only) Git password for HTTPS authentication. (For production only, if using user attributes.)", + "readOnly": true, + "description": "URI reference that identifies the specific occurrence of the problem", "nullable": true }, - "git_production_branch_name": { + "model": { "type": "string", - "description": "Git production branch name. Defaults to master. Supported only in Looker 21.0 and higher.", - "nullable": false - }, - "use_git_cookie_auth": { - "type": "boolean", - "description": "If true, the project uses a git cookie for authentication.", + "readOnly": true, + "description": "LookML model that contains the Explore that failed SQL validation", "nullable": false }, - "git_username_user_attribute": { + "explore": { "type": "string", - "description": "User attribute name for username in per-user HTTPS authentication.", - "nullable": true + "readOnly": true, + "description": "LookML Explore that failed SQL validation", + "nullable": false }, - "git_password_user_attribute": { + "message": { "type": "string", - "description": "User attribute name for password in per-user HTTPS authentication.", - "nullable": true + "readOnly": true, + "description": "Message returned by the SQL validation", + "nullable": false }, - "git_service_name": { + "explore_url": { "type": "string", - "description": "Name of the git service provider", - "nullable": true - }, - "git_application_server_http_port": { - "type": "integer", - "format": "int64", - "description": "Port that HTTP(S) application server is running on (for PRs, file browsing, etc.)", + "readOnly": true, + "description": "URL to the Explore", "nullable": true }, - "git_application_server_http_scheme": { + "lookml_url": { "type": "string", - "description": "Scheme that is running on application server (for PRs, file browsing, etc.)", + "readOnly": true, + "description": "URL to the LookML that caused the error", "nullable": true }, - "deploy_secret": { + "dimension": { "type": "string", - "x-looker-write-only": true, - "description": "(Write-Only) Optional secret token with which to authenticate requests to the webhook deploy endpoint. If not set, endpoint is unauthenticated.", + "readOnly": true, + "description": "LookML dimension that caused the error", "nullable": true }, - "unset_deploy_secret": { - "type": "boolean", - "x-looker-write-only": true, - "description": "(Write-Only) When true, unsets the deploy secret to allow unauthenticated access to the webhook deploy endpoint.", - "nullable": false - }, - "pull_request_mode": { + "line_number": { "type": "string", - "enum": [ - "off", - "links", - "recommended", - "required" - ], - "description": "The git pull request policy for this project. Valid values are: \"off\", \"links\", \"recommended\", \"required\".", - "nullable": false - }, - "validation_required": { - "type": "boolean", - "description": "Validation policy: If true, the project must pass validation checks before project changes can be committed to the git repository", - "nullable": false - }, - "git_release_mgmt_enabled": { - "type": "boolean", - "description": "If true, advanced git release management is enabled for this project", - "nullable": false - }, - "allow_warnings": { - "type": "boolean", - "description": "Validation policy: If true, the project can be committed with warnings when `validation_required` is true. (`allow_warnings` does nothing if `validation_required` is false).", - "nullable": false - }, - "is_example": { - "type": "boolean", "readOnly": true, - "description": "If true the project is an example project and cannot be modified", - "nullable": false - }, - "dependency_status": { - "type": "string", - "description": "Status of dependencies in your manifest & lockfile", + "description": "Line of the error in the LookML file", "nullable": true } }, - "x-looker-status": "stable" + "x-looker-status": "beta" }, "ProjectError": { "properties": { @@ -52186,19 +52364,16 @@ "properties": { "model": { "type": "string", - "readOnly": true, "description": "The model this filterable comes from (used for field suggestions).", "nullable": true }, "view": { "type": "string", - "readOnly": true, "description": "The view this filterable comes from (used for field suggestions).", "nullable": true }, "name": { "type": "string", - "readOnly": true, "description": "The name of the filterable thing (Query or Merged Results).", "nullable": true }, @@ -52224,7 +52399,6 @@ }, "dynamic_fields": { "type": "string", - "readOnly": true, "description": "JSON string of dynamic field information.", "nullable": true }, @@ -52233,7 +52407,6 @@ "items": { "$ref": "#/components/schemas/ResultMakerFilterables" }, - "readOnly": true, "description": "array of items that can be filtered and information about them.", "nullable": true }, @@ -52242,19 +52415,16 @@ "items": { "type": "string" }, - "readOnly": true, "description": "Sorts of the constituent Look, Query, or Merge Query", "nullable": true }, "merge_result_id": { "type": "string", - "readOnly": true, "description": "ID of merge result if this is a merge_result.", "nullable": true }, "total": { "type": "boolean", - "readOnly": true, "description": "Total of the constituent Look, Query, or Merge Query", "nullable": false }, @@ -52266,7 +52436,6 @@ }, "sql_query_id": { "type": "string", - "readOnly": true, "description": "ID of SQL Query if this is a SQL Runner Query", "nullable": true }, @@ -52279,7 +52448,6 @@ "type": "any", "format": "any" }, - "readOnly": true, "description": "Vis config of the constituent Query, or Merge Query.", "nullable": true } @@ -55511,7 +55679,12 @@ "is_iam_admin": { "type": "boolean", "readOnly": true, - "description": "User is an IAM Admin - only available in Looker (Google Cloud core)", + "description": "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.", + "nullable": false + }, + "can_manage_api3_creds": { + "type": "boolean", + "description": "Indicates if the user can manage API3 credentials", "nullable": false }, "url": { diff --git a/swift/looker/rtl/constants.swift b/swift/looker/rtl/constants.swift index 51b2d5752..9623c2455 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.10" + public static let lookerVersion = "25.16" 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 1869bb752..0871c8e90 100644 --- a/swift/looker/sdk/methods.swift +++ b/swift/looker/sdk/methods.swift @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ @@ -3598,25 +3598,29 @@ open class LookerSDK: APIMethods { */ id: String? = nil, /** - * @param {String} user_id Match user id(s).To create a list of multiple ids, use commas as separators + * @param {String} user_id Match user id(s). To create a list of multiple ids, use commas as separators */ user_id: String? = nil, /** - * @param {String} content_metadata_id Match content metadata id(s).To create a list of multiple ids, use commas as separators + * @param {String} content_metadata_id Match content metadata id(s). To create a list of multiple ids, use commas as separators */ content_metadata_id: String? = nil, /** - * @param {String} dashboard_id Match dashboard id(s).To create a list of multiple ids, use commas as separators + * @param {String} dashboard_id Match dashboard id(s). To create a list of multiple ids, use commas as separators */ dashboard_id: String? = nil, /** - * @param {String} look_id Match look id(s).To create a list of multiple ids, use commas as separators + * @param {String} look_id Match look id(s). To create a list of multiple ids, use commas as separators */ look_id: String? = nil, /** - * @param {String} board_id Match board id(s).To create a list of multiple ids, use commas as separators + * @param {String} board_id Match board id(s). To create a list of multiple ids, use commas as separators */ board_id: String? = nil, + /** + * @param {Bool} 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. + */ + include_board_items: Bool? = nil, /** * @param {Int64} limit Number of results to return. (used with offset) */ @@ -3640,7 +3644,7 @@ open class LookerSDK: APIMethods { options: ITransportSettings? = nil ) -> SDKResponse<[ContentFavorite], SDKError> { let result: SDKResponse<[ContentFavorite], SDKError> = self.get("/content_favorite/search", - ["id": id, "user_id": user_id, "content_metadata_id": content_metadata_id, "dashboard_id": dashboard_id, "look_id": look_id, "board_id": board_id, "limit": limit, "offset": offset, "sorts": sorts, "fields": fields, "filter_or": filter_or as Any?], nil, options) + ["id": id, "user_id": user_id, "content_metadata_id": content_metadata_id, "dashboard_id": dashboard_id, "look_id": look_id, "board_id": board_id, "include_board_items": include_board_items as Any?, "limit": limit, "offset": offset, "sorts": sorts, "fields": fields, "filter_or": filter_or as Any?], nil, options) return result } @@ -7308,7 +7312,7 @@ open class LookerSDK: APIMethods { /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun */ public func get_ci_run( /** @@ -7324,10 +7328,10 @@ open class LookerSDK: APIMethods { */ fields: String? = nil, options: ITransportSettings? = nil - ) -> SDKResponse { + ) -> SDKResponse { let path_project_id = encodeParam(project_id) let path_run_id = encodeParam(run_id) - let result: SDKResponse = self.get("/projects/\(path_project_id)/ci/runs/\(path_run_id)", + let result: SDKResponse = self.get("/projects/\(path_project_id)/ci/runs/\(path_run_id)", ["fields": fields], nil, options) return result } @@ -11188,10 +11192,14 @@ open class LookerSDK: APIMethods { * @param {String} group_id Search for users who are direct members of this group */ group_id: String? = nil, + /** + * @param {Bool} can_manage_api3_creds Search for users who can manage API3 credentials + */ + can_manage_api3_creds: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse<[User], SDKError> { let result: SDKResponse<[User], SDKError> = self.get("/users/search", - ["fields": fields, "page": page, "per_page": per_page, "limit": limit, "offset": offset, "sorts": sorts, "id": id, "first_name": first_name, "last_name": last_name, "verified_looker_employee": verified_looker_employee as Any?, "embed_user": embed_user as Any?, "email": email, "is_disabled": is_disabled as Any?, "filter_or": filter_or as Any?, "content_metadata_id": content_metadata_id, "group_id": group_id], nil, options) + ["fields": fields, "page": page, "per_page": per_page, "limit": limit, "offset": offset, "sorts": sorts, "id": id, "first_name": first_name, "last_name": last_name, "verified_looker_employee": verified_looker_employee as Any?, "embed_user": embed_user as Any?, "email": email, "is_disabled": is_disabled as Any?, "filter_or": filter_or as Any?, "content_metadata_id": content_metadata_id, "group_id": group_id, "can_manage_api3_creds": can_manage_api3_creds as Any?], nil, options) return result } @@ -11764,6 +11772,39 @@ open class LookerSDK: APIMethods { return result } + /** + * ### 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 + */ + public func update_user_credentials_api3( + /** + * @param {String} user_id Id of user + */ + _ user_id: String, + /** + * @param {String} credentials_api3_id Id of API Credential + */ + _ credentials_api3_id: String, + /** + * @param {WriteCredentialsApi3} body + */ + _ body: WriteCredentialsApi3, + /** + * @param {String} fields Requested fields. + */ + fields: String? = nil, + options: ITransportSettings? = nil + ) -> SDKResponse { + let path_user_id = encodeParam(user_id) + let path_credentials_api3_id = encodeParam(credentials_api3_id) + let result: SDKResponse = self.patch("/users/\(path_user_id)/credentials_api3/\(path_credentials_api3_id)", + ["fields": fields], try! self.encode(body), options) + return result + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. * diff --git a/swift/looker/sdk/models.swift b/swift/looker/sdk/models.swift index c546326c2..b8d58ad5a 100644 --- a/swift/looker/sdk/models.swift +++ b/swift/looker/sdk/models.swift @@ -25,7 +25,7 @@ */ /** - * 373 API models: 287 Spec, 0 Request, 62 Write, 24 Enum + * 374 API models: 287 Spec, 0 Request, 63 Write, 24 Enum */ @@ -1979,151 +1979,6 @@ public struct CIGitState: SDKModel { } -public struct CIRun: SDKModel { - - private enum CodingKeys : String, CodingKey { - case _run_id = "run_id" - case created_at - case started_at - case finished_at - case _status_url = "status_url" - case _status = "status" - case _git_service = "git_service" - case git_state - case result - case schedule - case _target_branch = "target_branch" - case _title = "title" - case _trigger = "trigger" - case change_request - case _suite_id = "suite_id" - case _username = "username" - } - private var _run_id: AnyString? - /** - * ID of the CI run (read-only) - */ - public var run_id: String? { - get { _run_id?.value } - set { _run_id = newValue.map(AnyString.init) } - } - - /** - * Time and date that the CI run was initiated (read-only) - */ - public var created_at: Date? - - /** - * Time and date that the CI run began executing (read-only) - */ - public var started_at: Date? - - /** - * Time and date that the CI run completed (read-only) - */ - public var finished_at: Date? - - private var _status_url: AnyString? - /** - * Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) - */ - public var status_url: String? { - get { _status_url?.value } - set { _status_url = newValue.map(AnyString.init) } - } - - private var _status: AnyString? - /** - * Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) - */ - public var status: String? { - get { _status?.value } - set { _status = newValue.map(AnyString.init) } - } - - private var _git_service: AnyString? - /** - * Git service for CI run (e.g. GitHub) (read-only) - */ - public var git_service: String? { - get { _git_service?.value } - set { _git_service = newValue.map(AnyString.init) } - } - - public var git_state: CIGitState? - - public var result: CIRunResult? - - public var schedule: CIScheduleTrigger? - - private var _target_branch: AnyString? - /** - * Git branch that the CI run compares against during validation, used for incremental runs (read-only) - */ - public var target_branch: String? { - get { _target_branch?.value } - set { _target_branch = newValue.map(AnyString.init) } - } - - private var _title: AnyString? - /** - * Name of the CI suite (read-only) - */ - public var title: String? { - get { _title?.value } - set { _title = newValue.map(AnyString.init) } - } - - private var _trigger: AnyString? - /** - * Trigger for CI run (unknown, manual, schedule, change_request) (read-only) - */ - public var trigger: String? { - get { _trigger?.value } - set { _trigger = newValue.map(AnyString.init) } - } - - public var change_request: CIChangeRequest? - - private var _suite_id: AnyString? - /** - * ID of the CI suite (read-only) - */ - public var suite_id: String? { - get { _suite_id?.value } - set { _suite_id = newValue.map(AnyString.init) } - } - - private var _username: AnyString? - /** - * Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) - */ - public var username: String? { - get { _username?.value } - set { _username = newValue.map(AnyString.init) } - } - - public init(run_id: String? = nil, created_at: Date? = nil, started_at: Date? = nil, finished_at: Date? = nil, status_url: String? = nil, status: String? = nil, git_service: String? = nil, git_state: CIGitState? = nil, result: CIRunResult? = nil, schedule: CIScheduleTrigger? = nil, target_branch: String? = nil, title: String? = nil, trigger: String? = nil, change_request: CIChangeRequest? = nil, suite_id: String? = nil, username: String? = nil) { - self._run_id = run_id.map(AnyString.init) - self.created_at = created_at - self.started_at = started_at - self.finished_at = finished_at - self._status_url = status_url.map(AnyString.init) - self._status = status.map(AnyString.init) - self._git_service = git_service.map(AnyString.init) - self.git_state = git_state - self.result = result - self.schedule = schedule - self._target_branch = target_branch.map(AnyString.init) - self._title = title.map(AnyString.init) - self._trigger = trigger.map(AnyString.init) - self.change_request = change_request - self._suite_id = suite_id.map(AnyString.init) - self._username = username.map(AnyString.init) - } - -} - public struct CIRunResult: SDKModel { public var sql_result: SqlValidatorResult? @@ -2492,6 +2347,8 @@ public struct ContentFavorite: SDKModel { case look case dashboard case _board_id = "board_id" + case _lookml_dashboard_id = "lookml_dashboard_id" + case lookml_dashboard } private var _id: AnyString? /** @@ -2551,7 +2408,18 @@ public struct ContentFavorite: SDKModel { set { _board_id = newValue.map(AnyString.init) } } - public init(id: String? = nil, user_id: String? = nil, content_metadata_id: String? = nil, look_id: String? = nil, dashboard_id: String? = nil, look: LookBasic? = nil, dashboard: DashboardBase? = nil, board_id: String? = nil) { + private var _lookml_dashboard_id: AnyString? + /** + * Id of a lookml dashboard (read-only) + */ + public var lookml_dashboard_id: String? { + get { _lookml_dashboard_id?.value } + set { _lookml_dashboard_id = newValue.map(AnyString.init) } + } + + public var lookml_dashboard: DashboardBase? + + public init(id: String? = nil, user_id: String? = nil, content_metadata_id: String? = nil, look_id: String? = nil, dashboard_id: String? = nil, look: LookBasic? = nil, dashboard: DashboardBase? = nil, board_id: String? = nil, lookml_dashboard_id: String? = nil, lookml_dashboard: DashboardBase? = nil) { self._id = id.map(AnyString.init) self._user_id = user_id.map(AnyString.init) self._content_metadata_id = content_metadata_id.map(AnyString.init) @@ -2560,6 +2428,8 @@ public struct ContentFavorite: SDKModel { self.look = look self.dashboard = dashboard self._board_id = board_id.map(AnyString.init) + self._lookml_dashboard_id = lookml_dashboard_id.map(AnyString.init) + self.lookml_dashboard = lookml_dashboard } } @@ -2574,6 +2444,8 @@ public struct ContentMeta: SDKModel { case _dashboard_id = "dashboard_id" case _look_id = "look_id" case _folder_id = "folder_id" + case _homepage_id = "homepage_id" + case _agent_id = "agent_id" case _content_type = "content_type" case inherits case _inheriting_id = "inheriting_id" @@ -2638,6 +2510,24 @@ public struct ContentMeta: SDKModel { set { _folder_id = newValue.map(AnyString.init) } } + private var _homepage_id: AnyString? + /** + * Id of associated board when content_type is "board" (read-only) + */ + public var homepage_id: String? { + get { _homepage_id?.value } + set { _homepage_id = newValue.map(AnyString.init) } + } + + private var _agent_id: AnyString? + /** + * Id of associated agent when content_type is "agent" (read-only) + */ + public var agent_id: String? { + get { _agent_id?.value } + set { _agent_id = newValue.map(AnyString.init) } + } + private var _content_type: AnyString? /** * Content Type ("dashboard", "look", or "folder") (read-only) @@ -2670,7 +2560,7 @@ public struct ContentMeta: SDKModel { set { _slug = newValue.map(AnyString.init) } } - public init(can: StringDictionary? = nil, id: String? = nil, name: String? = nil, parent_id: String? = nil, dashboard_id: String? = nil, look_id: String? = nil, folder_id: String? = nil, content_type: String? = nil, inherits: Bool? = nil, inheriting_id: String? = nil, slug: String? = nil) { + public init(can: StringDictionary? = nil, id: String? = nil, name: String? = nil, parent_id: String? = nil, dashboard_id: String? = nil, look_id: String? = nil, folder_id: String? = nil, homepage_id: String? = nil, agent_id: String? = nil, content_type: String? = nil, inherits: Bool? = nil, inheriting_id: String? = nil, slug: String? = nil) { self.can = can self._id = id.map(AnyString.init) self._name = name.map(AnyString.init) @@ -2678,6 +2568,8 @@ public struct ContentMeta: SDKModel { self._dashboard_id = dashboard_id.map(AnyString.init) self._look_id = look_id.map(AnyString.init) self._folder_id = folder_id.map(AnyString.init) + self._homepage_id = homepage_id.map(AnyString.init) + self._agent_id = agent_id.map(AnyString.init) self._content_type = content_type.map(AnyString.init) self.inherits = inherits self._inheriting_id = inheriting_id.map(AnyString.init) @@ -4495,6 +4387,7 @@ public struct CreateCredentialsApi3: SDKModel { case _created_at = "created_at" case is_disabled case _type = "type" + case _purpose = "purpose" case _client_secret = "client_secret" case _url = "url" } @@ -4544,6 +4437,15 @@ public struct CreateCredentialsApi3: SDKModel { set { _type = newValue.map(AnyString.init) } } + private var _purpose: AnyString? + /** + * User defined purpose for this credential. + */ + public var purpose: String? { + get { _purpose?.value } + set { _purpose = newValue.map(AnyString.init) } + } + private var _client_secret: AnyString? /** * API key client_secret (read-only) @@ -4562,13 +4464,14 @@ public struct CreateCredentialsApi3: SDKModel { set { _url = newValue.map(AnyString.init) } } - public init(can: StringDictionary? = nil, id: String? = nil, client_id: String? = nil, created_at: String? = nil, is_disabled: Bool? = nil, type: String? = nil, client_secret: String? = nil, url: String? = nil) { + public init(can: StringDictionary? = nil, id: String? = nil, client_id: String? = nil, created_at: String? = nil, is_disabled: Bool? = nil, type: String? = nil, purpose: String? = nil, client_secret: String? = nil, url: String? = nil) { self.can = can self._id = id.map(AnyString.init) self._client_id = client_id.map(AnyString.init) self._created_at = created_at.map(AnyString.init) self.is_disabled = is_disabled self._type = type.map(AnyString.init) + self._purpose = purpose.map(AnyString.init) self._client_secret = client_secret.map(AnyString.init) self._url = url.map(AnyString.init) } @@ -4999,6 +4902,7 @@ public struct CredentialsApi3: SDKModel { case _created_at = "created_at" case is_disabled case _type = "type" + case _purpose = "purpose" case _url = "url" } /** @@ -5047,6 +4951,15 @@ public struct CredentialsApi3: SDKModel { set { _type = newValue.map(AnyString.init) } } + private var _purpose: AnyString? + /** + * User defined purpose for this credential. + */ + public var purpose: String? { + get { _purpose?.value } + set { _purpose = newValue.map(AnyString.init) } + } + private var _url: AnyString? /** * Link to get this item (read-only) @@ -5056,13 +4969,14 @@ public struct CredentialsApi3: SDKModel { set { _url = newValue.map(AnyString.init) } } - public init(can: StringDictionary? = nil, id: String? = nil, client_id: String? = nil, created_at: String? = nil, is_disabled: Bool? = nil, type: String? = nil, url: String? = nil) { + public init(can: StringDictionary? = nil, id: String? = nil, client_id: String? = nil, created_at: String? = nil, is_disabled: Bool? = nil, type: String? = nil, purpose: String? = nil, url: String? = nil) { self.can = can self._id = id.map(AnyString.init) self._client_id = client_id.map(AnyString.init) self._created_at = created_at.map(AnyString.init) self.is_disabled = is_disabled self._type = type.map(AnyString.init) + self._purpose = purpose.map(AnyString.init) self._url = url.map(AnyString.init) } @@ -7891,6 +7805,7 @@ public struct DBConnection: SDKModel { case uses_oauth case uses_key_pair_auth case uses_instance_oauth + case uses_service_auth case _certificate = "certificate" case _file_type = "file_type" case _database = "database" @@ -8035,6 +7950,11 @@ public struct DBConnection: SDKModel { */ public var uses_instance_oauth: Bool? + /** + * Whether the connection uses service authentication certificate. (read-only) + */ + public var uses_service_auth: Bool? + private var _certificate: AnyString? /** * (Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect). @@ -8388,7 +8308,7 @@ public struct DBConnection: SDKModel { */ 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_requested: String? = nil, named_driver_version_actual: String? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, uses_oauth: Bool? = nil, uses_key_pair_auth: 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) { + public init(can: StringDictionary? = nil, name: String? = nil, dialect: Dialect? = nil, snippets: [Snippet]? = nil, pdts_enabled: Bool? = nil, named_driver_version_requested: String? = nil, named_driver_version_actual: String? = nil, host: String? = nil, port: String? = nil, username: String? = nil, password: String? = nil, uses_oauth: Bool? = nil, uses_key_pair_auth: Bool? = nil, uses_instance_oauth: Bool? = nil, uses_service_auth: 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 @@ -8403,6 +8323,7 @@ public struct DBConnection: SDKModel { self.uses_oauth = uses_oauth self.uses_key_pair_auth = uses_key_pair_auth self.uses_instance_oauth = uses_instance_oauth + self.uses_service_auth = uses_service_auth self._certificate = certificate.map(AnyString.init) self._file_type = file_type.map(AnyString.init) self._database = database.map(AnyString.init) @@ -18888,15 +18809,6 @@ public struct Project: SDKModel { } -public struct ProjectCIRun: SDKModel { - public var run: CIRun? - - public init(run: CIRun? = nil) { - self.run = run - } - -} - public struct ProjectError: SDKModel { private enum CodingKeys : String, CodingKey { @@ -19127,6 +19039,15 @@ public struct ProjectFile: SDKModel { } +public struct ProjectRun: SDKModel { + public var run: Run? + + public init(run: Run? = nil) { + self.run = run + } + +} + public struct ProjectValidation: SDKModel { private enum CodingKeys : String, CodingKey { @@ -20276,7 +20197,7 @@ public struct ResultMakerFilterables: SDKModel { } private var _model: AnyString? /** - * The model this filterable comes from (used for field suggestions). (read-only) + * The model this filterable comes from (used for field suggestions). */ public var model: String? { get { _model?.value } @@ -20285,7 +20206,7 @@ public struct ResultMakerFilterables: SDKModel { private var _view: AnyString? /** - * The view this filterable comes from (used for field suggestions). (read-only) + * The view this filterable comes from (used for field suggestions). */ public var view: String? { get { _view?.value } @@ -20294,7 +20215,7 @@ public struct ResultMakerFilterables: SDKModel { private var _name: AnyString? /** - * The name of the filterable thing (Query or Merged Results). (read-only) + * The name of the filterable thing (Query or Merged Results). */ public var name: String? { get { _name?.value } @@ -20371,7 +20292,7 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { private var _dynamic_fields: AnyString? /** - * JSON string of dynamic field information. (read-only) + * JSON string of dynamic field information. */ public var dynamic_fields: String? { get { _dynamic_fields?.value } @@ -20379,13 +20300,13 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { } /** - * array of items that can be filtered and information about them. (read-only) + * array of items that can be filtered and information about them. */ public var filterables: [ResultMakerFilterables]? private var _sorts: [AnyString]? /** - * Sorts of the constituent Look, Query, or Merge Query (read-only) + * Sorts of the constituent Look, Query, or Merge Query */ public var sorts: [String]? { get { if let v = _sorts { return v.map { $0.value } } else { return nil } } @@ -20394,7 +20315,7 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { private var _merge_result_id: AnyString? /** - * ID of merge result if this is a merge_result. (read-only) + * ID of merge result if this is a merge_result. */ public var merge_result_id: String? { get { _merge_result_id?.value } @@ -20402,7 +20323,7 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { } /** - * Total of the constituent Look, Query, or Merge Query (read-only) + * Total of the constituent Look, Query, or Merge Query */ public var total: Bool? @@ -20417,7 +20338,7 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { private var _sql_query_id: AnyString? /** - * ID of SQL Query if this is a SQL Runner Query (read-only) + * ID of SQL Query if this is a SQL Runner Query */ public var sql_query_id: String? { get { _sql_query_id?.value } @@ -20427,7 +20348,7 @@ public struct ResultMakerWithIdVisConfigAndDynamicFields: SDKModel { public var query: Query? /** - * Vis config of the constituent Query, or Merge Query. (read-only) + * Vis config of the constituent Query, or Merge Query. */ public var vis_config: StringDictionary? @@ -20637,6 +20558,151 @@ public struct RoleSearch: SDKModel { } +public struct Run: SDKModel { + + private enum CodingKeys : String, CodingKey { + case _run_id = "run_id" + case created_at + case started_at + case finished_at + case _status_url = "status_url" + case _status = "status" + case _git_service = "git_service" + case git_state + case result + case schedule + case _target_branch = "target_branch" + case _title = "title" + case _trigger = "trigger" + case change_request + case _suite_id = "suite_id" + case _username = "username" + } + private var _run_id: AnyString? + /** + * ID of the CI run (read-only) + */ + public var run_id: String? { + get { _run_id?.value } + set { _run_id = newValue.map(AnyString.init) } + } + + /** + * Time and date that the CI run was initiated (read-only) + */ + public var created_at: Date? + + /** + * Time and date that the CI run began executing (read-only) + */ + public var started_at: Date? + + /** + * Time and date that the CI run completed (read-only) + */ + public var finished_at: Date? + + private var _status_url: AnyString? + /** + * Git provider URL where you can view the commit status. This is the status URL that you specify when you create a CI suite (read-only) + */ + public var status_url: String? { + get { _status_url?.value } + set { _status_url = newValue.map(AnyString.init) } + } + + private var _status: AnyString? + /** + * Status of the CI run (unknown, failed, passed, skipped, errored, cancelled, queued, running) (read-only) + */ + public var status: String? { + get { _status?.value } + set { _status = newValue.map(AnyString.init) } + } + + private var _git_service: AnyString? + /** + * Git service for CI run (e.g. GitHub) (read-only) + */ + public var git_service: String? { + get { _git_service?.value } + set { _git_service = newValue.map(AnyString.init) } + } + + public var git_state: CIGitState? + + public var result: CIRunResult? + + public var schedule: CIScheduleTrigger? + + private var _target_branch: AnyString? + /** + * Git branch that the CI run compares against during validation, used for incremental runs (read-only) + */ + public var target_branch: String? { + get { _target_branch?.value } + set { _target_branch = newValue.map(AnyString.init) } + } + + private var _title: AnyString? + /** + * Name of the CI suite (read-only) + */ + public var title: String? { + get { _title?.value } + set { _title = newValue.map(AnyString.init) } + } + + private var _trigger: AnyString? + /** + * Trigger for CI run (unknown, manual, schedule, change_request) (read-only) + */ + public var trigger: String? { + get { _trigger?.value } + set { _trigger = newValue.map(AnyString.init) } + } + + public var change_request: CIChangeRequest? + + private var _suite_id: AnyString? + /** + * ID of the CI suite (read-only) + */ + public var suite_id: String? { + get { _suite_id?.value } + set { _suite_id = newValue.map(AnyString.init) } + } + + private var _username: AnyString? + /** + * Username of the user who triggered the CI run, if the CI run was manually triggered (read-only) + */ + public var username: String? { + get { _username?.value } + set { _username = newValue.map(AnyString.init) } + } + + public init(run_id: String? = nil, created_at: Date? = nil, started_at: Date? = nil, finished_at: Date? = nil, status_url: String? = nil, status: String? = nil, git_service: String? = nil, git_state: CIGitState? = nil, result: CIRunResult? = nil, schedule: CIScheduleTrigger? = nil, target_branch: String? = nil, title: String? = nil, trigger: String? = nil, change_request: CIChangeRequest? = nil, suite_id: String? = nil, username: String? = nil) { + self._run_id = run_id.map(AnyString.init) + self.created_at = created_at + self.started_at = started_at + self.finished_at = finished_at + self._status_url = status_url.map(AnyString.init) + self._status = status.map(AnyString.init) + self._git_service = git_service.map(AnyString.init) + self.git_state = git_state + self.result = result + self.schedule = schedule + self._target_branch = target_branch.map(AnyString.init) + self._title = title.map(AnyString.init) + self._trigger = trigger.map(AnyString.init) + self.change_request = change_request + self._suite_id = suite_id.map(AnyString.init) + self._username = username.map(AnyString.init) + } + +} + public struct RunningQueries: SDKModel { private enum CodingKeys : String, CodingKey { @@ -24501,6 +24567,7 @@ public struct User: SDKModel { case allow_roles_from_normal_groups case _embed_group_folder_id = "embed_group_folder_id" case is_iam_admin + case can_manage_api3_creds case _url = "url" } /** @@ -24718,10 +24785,15 @@ public struct User: SDKModel { } /** - * User is an IAM Admin - only available in Looker (Google Cloud core) (read-only) + * 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) */ public var is_iam_admin: Bool? + /** + * Indicates if the user can manage API3 credentials + */ + public var can_manage_api3_creds: Bool? + private var _url: AnyString? /** * Link to get this item (read-only) @@ -24731,7 +24803,7 @@ public struct User: SDKModel { set { _url = newValue.map(AnyString.init) } } - public init(can: StringDictionary? = nil, avatar_url: String? = nil, avatar_url_without_sizing: String? = nil, credentials_api3: [CredentialsApi3]? = nil, credentials_email: CredentialsEmail? = nil, credentials_embed: [CredentialsEmbed]? = nil, credentials_google: CredentialsGoogle? = nil, credentials_ldap: CredentialsLDAP? = nil, credentials_looker_openid: CredentialsLookerOpenid? = nil, credentials_oidc: CredentialsOIDC? = nil, credentials_saml: CredentialsSaml? = nil, credentials_totp: CredentialsTotp? = nil, display_name: String? = nil, email: String? = nil, embed_group_space_id: String? = nil, first_name: String? = nil, group_ids: [String]? = nil, home_folder_id: String? = nil, id: String? = nil, is_disabled: Bool? = nil, last_name: String? = nil, locale: String? = nil, looker_versions: [String]? = nil, models_dir_validated: Bool? = nil, personal_folder_id: String? = nil, presumed_looker_employee: Bool? = nil, role_ids: [String]? = nil, sessions: [Session]? = nil, ui_state: StringDictionary? = nil, verified_looker_employee: Bool? = nil, roles_externally_managed: Bool? = nil, allow_direct_roles: Bool? = nil, allow_normal_group_membership: Bool? = nil, allow_roles_from_normal_groups: Bool? = nil, embed_group_folder_id: String? = nil, is_iam_admin: Bool? = nil, url: String? = nil) { + public init(can: StringDictionary? = nil, avatar_url: String? = nil, avatar_url_without_sizing: String? = nil, credentials_api3: [CredentialsApi3]? = nil, credentials_email: CredentialsEmail? = nil, credentials_embed: [CredentialsEmbed]? = nil, credentials_google: CredentialsGoogle? = nil, credentials_ldap: CredentialsLDAP? = nil, credentials_looker_openid: CredentialsLookerOpenid? = nil, credentials_oidc: CredentialsOIDC? = nil, credentials_saml: CredentialsSaml? = nil, credentials_totp: CredentialsTotp? = nil, display_name: String? = nil, email: String? = nil, embed_group_space_id: String? = nil, first_name: String? = nil, group_ids: [String]? = nil, home_folder_id: String? = nil, id: String? = nil, is_disabled: Bool? = nil, last_name: String? = nil, locale: String? = nil, looker_versions: [String]? = nil, models_dir_validated: Bool? = nil, personal_folder_id: String? = nil, presumed_looker_employee: Bool? = nil, role_ids: [String]? = nil, sessions: [Session]? = nil, ui_state: StringDictionary? = nil, verified_looker_employee: Bool? = nil, roles_externally_managed: Bool? = nil, allow_direct_roles: Bool? = nil, allow_normal_group_membership: Bool? = nil, allow_roles_from_normal_groups: Bool? = nil, embed_group_folder_id: String? = nil, is_iam_admin: Bool? = nil, can_manage_api3_creds: Bool? = nil, url: String? = nil) { self.can = can self._avatar_url = avatar_url.map(AnyString.init) self._avatar_url_without_sizing = avatar_url_without_sizing.map(AnyString.init) @@ -24768,6 +24840,7 @@ public struct User: SDKModel { self.allow_roles_from_normal_groups = allow_roles_from_normal_groups self._embed_group_folder_id = embed_group_folder_id.map(AnyString.init) self.is_iam_admin = is_iam_admin + self.can_manage_api3_creds = can_manage_api3_creds self._url = url.map(AnyString.init) } @@ -26267,7 +26340,7 @@ public struct WriteColorCollection: SDKModel { /** * Dynamic writeable type for ContentFavorite removes: - * id, look_id, dashboard_id, board_id + * id, look_id, dashboard_id, board_id, lookml_dashboard_id */ public struct WriteContentFavorite: SDKModel { @@ -26276,6 +26349,7 @@ public struct WriteContentFavorite: SDKModel { case _content_metadata_id = "content_metadata_id" case look case dashboard + case lookml_dashboard } private var _user_id: AnyString? /** @@ -26307,18 +26381,25 @@ public struct WriteContentFavorite: SDKModel { */ public var dashboard: WriteDashboardBase? - public init(user_id: String? = nil, content_metadata_id: String? = nil, look: WriteLookBasic? = nil, dashboard: WriteDashboardBase? = nil) { + /** + * Dynamic writeable type for DashboardBase removes: + * can, content_favorite_id, content_metadata_id, description, hidden, id, model, query_timezone, readonly, refresh_interval, refresh_interval_to_i, title, user_id, slug, preferred_viewer + */ + public var lookml_dashboard: WriteDashboardBase? + + public init(user_id: String? = nil, content_metadata_id: String? = nil, look: WriteLookBasic? = nil, dashboard: WriteDashboardBase? = nil, lookml_dashboard: WriteDashboardBase? = nil) { self._user_id = user_id.map(AnyString.init) self._content_metadata_id = content_metadata_id.map(AnyString.init) self.look = look self.dashboard = dashboard + self.lookml_dashboard = lookml_dashboard } } /** * 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 struct WriteContentMeta: SDKModel { /** @@ -26555,6 +26636,30 @@ public struct WriteCreateQueryTask: SDKModel { } +/** + * Dynamic writeable type for CredentialsApi3 removes: + * can, id, client_id, created_at, is_disabled, type, url + */ +public struct WriteCredentialsApi3: SDKModel { + + private enum CodingKeys : String, CodingKey { + case _purpose = "purpose" + } + private var _purpose: AnyString? + /** + * User defined purpose for this credential. + */ + public var purpose: String? { + get { _purpose?.value } + set { _purpose = newValue.map(AnyString.init) } + } + + public init(purpose: String? = nil) { + self._purpose = purpose.map(AnyString.init) + } + +} + /** * 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 @@ -26968,7 +27073,7 @@ public struct WriteDashboardElement: SDKModel { /** * Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id */ public var result_maker: WriteResultMakerWithIdVisConfigAndDynamicFields? @@ -27413,7 +27518,7 @@ public struct 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 struct WriteDBConnection: SDKModel { @@ -30173,17 +30278,86 @@ public struct WriteRepositoryCredential: SDKModel { /** * Dynamic writeable type for ResultMakerWithIdVisConfigAndDynamicFields removes: - * id, dynamic_fields, filterables, sorts, merge_result_id, total, query_id, sql_query_id, vis_config + * id, query_id */ public struct WriteResultMakerWithIdVisConfigAndDynamicFields: SDKModel { + + private enum CodingKeys : String, CodingKey { + case _dynamic_fields = "dynamic_fields" + case filterables + case _sorts = "sorts" + case _merge_result_id = "merge_result_id" + case total + case _sql_query_id = "sql_query_id" + case query + case vis_config + } + private var _dynamic_fields: AnyString? + /** + * JSON string of dynamic field information. + */ + public var dynamic_fields: String? { + get { _dynamic_fields?.value } + set { _dynamic_fields = newValue.map(AnyString.init) } + } + + /** + * array of items that can be filtered and information about them. + */ + public var filterables: [ResultMakerFilterables]? + + private var _sorts: [AnyString]? + /** + * Sorts of the constituent Look, Query, or Merge Query + */ + public var sorts: [String]? { + get { if let v = _sorts { return v.map { $0.value } } else { return nil } } + set { if let v = newValue { _sorts = v.map { AnyString.init($0) } } else { _sorts = nil } } + } + + private var _merge_result_id: AnyString? + /** + * ID of merge result if this is a merge_result. + */ + public var merge_result_id: String? { + get { _merge_result_id?.value } + set { _merge_result_id = newValue.map(AnyString.init) } + } + + /** + * Total of the constituent Look, Query, or Merge Query + */ + public var total: Bool? + + private var _sql_query_id: AnyString? + /** + * ID of SQL Query if this is a SQL Runner Query + */ + public var sql_query_id: String? { + get { _sql_query_id?.value } + set { _sql_query_id = newValue.map(AnyString.init) } + } + /** * Dynamic writeable type for Query removes: * can, id, slug, share_url, expanded_share_url, url, has_table_calculations */ public var query: WriteQuery? - public init(query: WriteQuery? = nil) { + /** + * Vis config of the constituent Query, or Merge Query. + */ + public var vis_config: StringDictionary? + + public init(dynamic_fields: String? = nil, filterables: [ResultMakerFilterables]? = nil, sorts: [String]? = nil, merge_result_id: String? = nil, total: Bool? = nil, sql_query_id: String? = nil, query: WriteQuery? = nil, vis_config: StringDictionary? = nil) { + self._dynamic_fields = dynamic_fields.map(AnyString.init) + self.filterables = filterables + if let v = sorts { _sorts = v.map { AnyString.init($0) } } else { _sorts = nil } + self._merge_result_id = merge_result_id.map(AnyString.init) + self.total = total + self._sql_query_id = sql_query_id.map(AnyString.init) self.query = query + self.vis_config = vis_config } } @@ -31205,6 +31379,7 @@ public struct WriteUser: SDKModel { case _locale = "locale" case models_dir_validated case ui_state + case can_manage_api3_creds } /** * Dynamic writeable type for CredentialsEmail removes: @@ -31263,7 +31438,12 @@ public struct WriteUser: SDKModel { */ public var ui_state: StringDictionary? - public init(credentials_email: WriteCredentialsEmail? = nil, first_name: String? = nil, home_folder_id: String? = nil, is_disabled: Bool? = nil, last_name: String? = nil, locale: String? = nil, models_dir_validated: Bool? = nil, ui_state: StringDictionary? = nil) { + /** + * Indicates if the user can manage API3 credentials + */ + public var can_manage_api3_creds: Bool? + + public init(credentials_email: WriteCredentialsEmail? = nil, first_name: String? = nil, home_folder_id: String? = nil, is_disabled: Bool? = nil, last_name: String? = nil, locale: String? = nil, models_dir_validated: Bool? = nil, ui_state: StringDictionary? = nil, can_manage_api3_creds: Bool? = nil) { self.credentials_email = credentials_email self._first_name = first_name.map(AnyString.init) self._home_folder_id = home_folder_id.map(AnyString.init) @@ -31272,6 +31452,7 @@ public struct WriteUser: SDKModel { self._locale = locale.map(AnyString.init) self.models_dir_validated = models_dir_validated self.ui_state = ui_state + self.can_manage_api3_creds = can_manage_api3_creds } } diff --git a/swift/looker/sdk/streams.swift b/swift/looker/sdk/streams.swift index 475a6fd0e..150c0e02e 100644 --- a/swift/looker/sdk/streams.swift +++ b/swift/looker/sdk/streams.swift @@ -25,7 +25,7 @@ */ /** - * 471 API methods + * 472 API methods */ @@ -3596,25 +3596,29 @@ open class LookerSDKStream: APIMethods { */ id: String? = nil, /** - * @param {String} user_id Match user id(s).To create a list of multiple ids, use commas as separators + * @param {String} user_id Match user id(s). To create a list of multiple ids, use commas as separators */ user_id: String? = nil, /** - * @param {String} content_metadata_id Match content metadata id(s).To create a list of multiple ids, use commas as separators + * @param {String} content_metadata_id Match content metadata id(s). To create a list of multiple ids, use commas as separators */ content_metadata_id: String? = nil, /** - * @param {String} dashboard_id Match dashboard id(s).To create a list of multiple ids, use commas as separators + * @param {String} dashboard_id Match dashboard id(s). To create a list of multiple ids, use commas as separators */ dashboard_id: String? = nil, /** - * @param {String} look_id Match look id(s).To create a list of multiple ids, use commas as separators + * @param {String} look_id Match look id(s). To create a list of multiple ids, use commas as separators */ look_id: String? = nil, /** - * @param {String} board_id Match board id(s).To create a list of multiple ids, use commas as separators + * @param {String} board_id Match board id(s). To create a list of multiple ids, use commas as separators */ board_id: String? = nil, + /** + * @param {Bool} 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. + */ + include_board_items: Bool? = nil, /** * @param {Int64} limit Number of results to return. (used with offset) */ @@ -3638,7 +3642,7 @@ open class LookerSDKStream: APIMethods { options: ITransportSettings? = nil ) -> SDKResponse { let result: SDKResponse = self.get("/content_favorite/search", - ["id": id, "user_id": user_id, "content_metadata_id": content_metadata_id, "dashboard_id": dashboard_id, "look_id": look_id, "board_id": board_id, "limit": limit, "offset": offset, "sorts": sorts, "fields": fields, "filter_or": filter_or as Any?], nil, options) + ["id": id, "user_id": user_id, "content_metadata_id": content_metadata_id, "dashboard_id": dashboard_id, "look_id": look_id, "board_id": board_id, "include_board_items": include_board_items as Any?, "limit": limit, "offset": offset, "sorts": sorts, "fields": fields, "filter_or": filter_or as Any?], nil, options) return result } @@ -7306,7 +7310,7 @@ open class LookerSDKStream: APIMethods { /** * ### Fetches a CI Run. * - * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun + * GET /projects/{project_id}/ci/runs/{run_id} -> ProjectRun */ public func get_ci_run( /** @@ -11186,10 +11190,14 @@ open class LookerSDKStream: APIMethods { * @param {String} group_id Search for users who are direct members of this group */ group_id: String? = nil, + /** + * @param {Bool} can_manage_api3_creds Search for users who can manage API3 credentials + */ + can_manage_api3_creds: Bool? = nil, options: ITransportSettings? = nil ) -> SDKResponse { let result: SDKResponse = self.get("/users/search", - ["fields": fields, "page": page, "per_page": per_page, "limit": limit, "offset": offset, "sorts": sorts, "id": id, "first_name": first_name, "last_name": last_name, "verified_looker_employee": verified_looker_employee as Any?, "embed_user": embed_user as Any?, "email": email, "is_disabled": is_disabled as Any?, "filter_or": filter_or as Any?, "content_metadata_id": content_metadata_id, "group_id": group_id], nil, options) + ["fields": fields, "page": page, "per_page": per_page, "limit": limit, "offset": offset, "sorts": sorts, "id": id, "first_name": first_name, "last_name": last_name, "verified_looker_employee": verified_looker_employee as Any?, "embed_user": embed_user as Any?, "email": email, "is_disabled": is_disabled as Any?, "filter_or": filter_or as Any?, "content_metadata_id": content_metadata_id, "group_id": group_id, "can_manage_api3_creds": can_manage_api3_creds as Any?], nil, options) return result } @@ -11762,6 +11770,39 @@ open class LookerSDKStream: APIMethods { return result } + /** + * ### 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 + */ + public func update_user_credentials_api3( + /** + * @param {String} user_id Id of user + */ + _ user_id: String, + /** + * @param {String} credentials_api3_id Id of API Credential + */ + _ credentials_api3_id: String, + /** + * @param {WriteCredentialsApi3} body + */ + _ body: WriteCredentialsApi3, + /** + * @param {String} fields Requested fields. + */ + fields: String? = nil, + options: ITransportSettings? = nil + ) -> SDKResponse { + let path_user_id = encodeParam(user_id) + let path_credentials_api3_id = encodeParam(credentials_api3_id) + let result: SDKResponse = self.patch("/users/\(path_user_id)/credentials_api3/\(path_credentials_api3_id)", + ["fields": fields], try! self.encode(body), options) + return result + } + /** * ### API login information for the specified user. This is for the newer API keys that can be added for any user. *