Skip to content

Commit 1444f2a

Browse files
feat: generate SDKs for Looker 25.6
Release-As: 25.6.0
1 parent e0f9746 commit 1444f2a

File tree

24 files changed

+2847
-104
lines changed

24 files changed

+2847
-104
lines changed

csharp/rtl/Constants.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct Constants
6161

6262
public const string DefaultApiVersion = "4.0";
6363
public const string AgentPrefix = "CS-SDK";
64-
public const string LookerVersion = "25.4";
64+
public const string LookerVersion = "25.6";
6565

6666
public const string Bearer = "Bearer";
6767
public const string LookerAppiId = "x-looker-appid";

csharp/sdk/4.0/methods.cs

+41-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// SOFTWARE.
2222
///
2323

24-
/// 469 API methods
24+
/// 471 API methods
2525

2626
#nullable enable
2727
using System;
@@ -733,9 +733,6 @@ public async Task<SdkResponse<EmbedUrlResponse, Exception>> create_sso_embed_url
733733
/// it to disk, do not pass it to a third party, and only pass it through a secure HTTPS
734734
/// encrypted transport.
735735
///
736-
///
737-
/// **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.
738-
///
739736
/// POST /embed/token_url/me -> EmbedUrlResponse
740737
///
741738
/// <returns><c>EmbedUrlResponse</c> Embed URL (application/json)</returns>
@@ -6868,6 +6865,46 @@ public async Task<SdkResponse<TSuccess, Exception>> tag_ref<TSuccess>(
68686865
{ "tag_message", tag_message }},body,options);
68696866
}
68706867

6868+
/// ### Fetches a CI Run.
6869+
///
6870+
/// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
6871+
///
6872+
/// <returns><c>ProjectCIRun</c> CI Run (application/json)</returns>
6873+
///
6874+
/// <param name="project_id">Project Id</param>
6875+
/// <param name="run_id">Run Id</param>
6876+
/// <param name="fields">Requested fields</param>
6877+
public async Task<SdkResponse<ProjectCIRun, Exception>> get_ci_run(
6878+
string project_id,
6879+
string run_id,
6880+
string? fields = null,
6881+
ITransportSettings? options = null)
6882+
{
6883+
project_id = SdkUtils.EncodeParam(project_id);
6884+
run_id = SdkUtils.EncodeParam(run_id);
6885+
return await AuthRequest<ProjectCIRun, Exception>(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values {
6886+
{ "fields", fields }},null,options);
6887+
}
6888+
6889+
/// ### Creates a CI Run.
6890+
///
6891+
/// POST /projects/{project_id}/ci/run -> CreateCIRunResponse
6892+
///
6893+
/// <returns><c>CreateCIRunResponse</c> CI Run (application/json)</returns>
6894+
///
6895+
/// <param name="project_id">Project Id</param>
6896+
/// <param name="fields">Requested fields</param>
6897+
public async Task<SdkResponse<CreateCIRunResponse, Exception>> create_ci_run(
6898+
string project_id,
6899+
CreateCIRunRequest body,
6900+
string? fields = null,
6901+
ITransportSettings? options = null)
6902+
{
6903+
project_id = SdkUtils.EncodeParam(project_id);
6904+
return await AuthRequest<CreateCIRunResponse, Exception>(HttpMethod.Post, $"/projects/{project_id}/ci/run", new Values {
6905+
{ "fields", fields }},body,options);
6906+
}
6907+
68716908
/// ### Configure Repository Credential for a remote dependency
68726909
///
68736910
/// Admin required.

csharp/sdk/4.0/models.cs

+124-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// SOFTWARE.
2222
///
2323

24-
/// 344 API models: 260 Spec, 0 Request, 62 Write, 22 Enum
24+
/// 353 API models: 269 Spec, 0 Request, 62 Write, 22 Enum
2525

2626
#nullable enable
2727
using System;
@@ -422,6 +422,83 @@ public enum Category
422422
dimension
423423
}
424424

425+
public class CIChangeRequest : SdkModel
426+
{
427+
/// <summary>Change request number (read-only)</summary>
428+
public long? change_request_number { get; set; } = null;
429+
/// <summary>Change request url (read-only)</summary>
430+
public string? change_request_url { get; set; } = null;
431+
/// <summary>Change request name (read-only)</summary>
432+
public string? change_request_name { get; set; } = null;
433+
/// <summary>Change request commits url (read-only)</summary>
434+
public string? change_request_commits_url { get; set; } = null;
435+
}
436+
437+
public class CIGitState : SdkModel
438+
{
439+
/// <summary>Git branch for run (read-only)</summary>
440+
public string? branch { get; set; } = null;
441+
/// <summary>Git repository for run (read-only)</summary>
442+
public string? repository { get; set; } = null;
443+
/// <summary>Git commit for run (read-only)</summary>
444+
public string? commit_ref { get; set; } = null;
445+
/// <summary>Run start time. (read-only)</summary>
446+
public string? target { get; set; } = null;
447+
}
448+
449+
public class CIRun : SdkModel
450+
{
451+
/// <summary>Run ID (read-only)</summary>
452+
public string? run_id { get; set; } = null;
453+
/// <summary>Run created time. (read-only)</summary>
454+
public DateTime? created_at { get; set; } = null;
455+
/// <summary>Run start time. (read-only)</summary>
456+
public DateTime? started_at { get; set; } = null;
457+
/// <summary>Run completed time. (read-only)</summary>
458+
public DateTime? finished_at { get; set; } = null;
459+
/// <summary>Run status url (read-only)</summary>
460+
public string? status_url { get; set; } = null;
461+
/// <summary>Run status. (read-only)</summary>
462+
public string? status { get; set; } = null;
463+
/// <summary>Git service for run (read-only)</summary>
464+
public string? git_service { get; set; } = null;
465+
public CIGitState? git_state { get; set; }
466+
/// <summary>Run results (read-only)</summary>
467+
public CIRunResult[]? result { get; set; } = null;
468+
public CIScheduleTrigger? schedule { get; set; }
469+
/// <summary>Target branch for run (read-only)</summary>
470+
public string? target_branch { get; set; } = null;
471+
/// <summary>Suite title (read-only)</summary>
472+
public string? title { get; set; } = null;
473+
/// <summary>Trigger for run (read-only)</summary>
474+
public string? trigger { get; set; } = null;
475+
public CIChangeRequest? change_request { get; set; }
476+
/// <summary>The Id of the suite used (read-only)</summary>
477+
public string? suite_id { get; set; } = null;
478+
/// <summary>User who triggered the run (read-only)</summary>
479+
public string? username { get; set; } = null;
480+
}
481+
482+
public class CIRunResult : SdkModel
483+
{
484+
/// <summary>Run result status (read-only)</summary>
485+
public string? status { get; set; } = null;
486+
/// <summary>Run result validator (read-only)</summary>
487+
public string? validator { get; set; } = null;
488+
}
489+
490+
public class CIScheduleTrigger : SdkModel
491+
{
492+
/// <summary>Whether schedule is active (read-only)</summary>
493+
public bool? enabled { get; set; } = null;
494+
/// <summary>Day of week (0 = Sunday, 6 = Saturday) (read-only)</summary>
495+
public string? day { get; set; } = null;
496+
/// <summary>Hour of the day (24 hour format) (read-only)</summary>
497+
public string? hour { get; set; } = null;
498+
/// <summary>How often the schedule is configured to run (read-only)</summary>
499+
public string? frequency { get; set; } = null;
500+
}
501+
425502
public class ColorCollection : SdkModel
426503
{
427504
/// <summary>Unique Id (read-only)</summary>
@@ -881,6 +958,30 @@ public class CostEstimate : SdkModel
881958
public string? message { get; set; } = null;
882959
}
883960

961+
public class CreateCIRunRequest : SdkModel
962+
{
963+
/// <summary>Run ID</summary>
964+
public string? suite_id { get; set; } = null;
965+
/// <summary>The branch to test. Omit to test production.</summary>
966+
public string? branch { get; set; } = null;
967+
/// <summary>Suite name</summary>
968+
public string? target { get; set; } = null;
969+
/// <summary>The commit to test. Omit to test production.</summary>
970+
public string? commit { get; set; } = null;
971+
/// <summary>User attributes to set for run</summary>
972+
public string[]? user_attributes { get; set; } = null;
973+
/// <summary>Webhooks to trigger when run completes.</summary>
974+
public string[]? webhooks { get; set; } = null;
975+
}
976+
977+
public class CreateCIRunResponse : SdkModel
978+
{
979+
/// <summary>Run ID (read-only)</summary>
980+
public string? run_id { get; set; } = null;
981+
/// <summary>Run status (read-only)</summary>
982+
public string? status { get; set; } = null;
983+
}
984+
884985
/// WARNING: no writeable properties found for POST, PUT, or PATCH
885986
public class CreateCostEstimate : SdkModel
886987
{
@@ -1672,11 +1773,13 @@ public class DBConnection : SdkModel
16721773
public string? password { get; set; } = null;
16731774
/// <summary>Whether the connection uses OAuth for authentication. (read-only)</summary>
16741775
public bool? uses_oauth { get; set; } = null;
1776+
/// <summary>Whether the connection uses key-pair for authentication.</summary>
1777+
public bool? uses_key_pair_auth { get; set; } = null;
16751778
/// <summary>Whether the integration uses the oauth instance account. (read-only)</summary>
16761779
public bool? uses_instance_oauth { get; set; } = null;
16771780
/// <summary>(Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect).</summary>
16781781
public string? certificate { get; set; } = null;
1679-
/// <summary>(Write-Only) Certificate keyfile type - .json or .p12</summary>
1782+
/// <summary>(Write-Only) Certificate keyfile type - .json, .p8 or .p12</summary>
16801783
public string? file_type { get; set; } = null;
16811784
/// <summary>Database name</summary>
16821785
public string? database { get; set; } = null;
@@ -1927,6 +2030,14 @@ public class Dialect : SdkModel
19272030
public bool? has_ssl_support { get; set; } = null;
19282031
}
19292032

2033+
public class DialectDriverVersion : SdkModel
2034+
{
2035+
/// <summary>Name to be passed to the backend (read-only)</summary>
2036+
public string? name { get; set; } = null;
2037+
/// <summary>Name to be displayed in the frontend. (read-only)</summary>
2038+
public string? display_name { get; set; } = null;
2039+
}
2040+
19302041
public class DialectInfo : SdkModel
19312042
{
19322043
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
@@ -1948,7 +2059,7 @@ public class DialectInfo : SdkModel
19482059
/// <summary>The name of the driver used for this dialect (read-only)</summary>
19492060
public string? supported_driver_name { get; set; } = null;
19502061
/// <summary>Array of supported drivers for a given dialect (read-only)</summary>
1951-
public string[]? supported_driver_versions { get; set; } = null;
2062+
public DialectDriverVersion[]? supported_driver_versions { get; set; } = null;
19522063
public DialectInfoOptions? supported_options { get; set; }
19532064
}
19542065

@@ -4213,6 +4324,11 @@ public class Project : SdkModel
42134324
public string? dependency_status { get; set; } = null;
42144325
}
42154326

4327+
public class ProjectCIRun : SdkModel
4328+
{
4329+
public CIRun? run { get; set; }
4330+
}
4331+
42164332
public class ProjectError : SdkModel
42174333
{
42184334
/// <summary>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)</summary>
@@ -4499,6 +4615,8 @@ public class Report : SdkModel
44994615
public string? deleter_user_id { get; set; } = null;
45004616
/// <summary>Name of User that deleted the Report. (read-only)</summary>
45014617
public string? deleter_user_name { get; set; } = null;
4618+
/// <summary>Count of schedules on the report. (read-only)</summary>
4619+
public long? schedule_count { get; set; } = null;
45024620
}
45034621

45044622
public class RepositoryCredential : SdkModel
@@ -6311,9 +6429,11 @@ public class WriteDBConnection : SdkModel
63116429
public string? username { get; set; } = null;
63126430
/// <summary>(Write-Only) Password for server authentication</summary>
63136431
public string? password { get; set; } = null;
6432+
/// <summary>Whether the connection uses key-pair for authentication.</summary>
6433+
public bool? uses_key_pair_auth { get; set; } = null;
63146434
/// <summary>(Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect).</summary>
63156435
public string? certificate { get; set; } = null;
6316-
/// <summary>(Write-Only) Certificate keyfile type - .json or .p12</summary>
6436+
/// <summary>(Write-Only) Certificate keyfile type - .json, .p8 or .p12</summary>
63176437
public string? file_type { get; set; } = null;
63186438
/// <summary>Database name</summary>
63196439
public string? database { get; set; } = null;

go/sdk/v4/methods.go

+32-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SOFTWARE.
2626

2727
/*
2828
29-
469 API methods
29+
471 API methods
3030
*/
3131

3232
// NOTE: Do not edit this file generated by Looker SDK Codegen for API v4
@@ -602,8 +602,6 @@ func (l *LookerSDK) CreateSsoEmbedUrl(
602602
// it to disk, do not pass it to a third party, and only pass it through a secure HTTPS
603603
// encrypted transport.
604604
//
605-
// **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.
606-
//
607605
// POST /embed/token_url/me -> EmbedUrlResponse
608606
func (l *LookerSDK) CreateEmbedUrlAsMe(
609607
body EmbedParams,
@@ -5268,6 +5266,37 @@ func (l *LookerSDK) TagRef(request RequestTagRef,
52685266

52695267
}
52705268

5269+
// ### Fetches a CI Run.
5270+
//
5271+
// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
5272+
func (l *LookerSDK) GetCiRun(
5273+
projectId string,
5274+
runId string,
5275+
fields string,
5276+
options *rtl.ApiSettings) (ProjectCIRun, error) {
5277+
projectId = url.PathEscape(projectId)
5278+
runId = url.PathEscape(runId)
5279+
var result ProjectCIRun
5280+
err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/ci/runs/%v", projectId, runId), map[string]interface{}{"fields": fields}, nil, options)
5281+
return result, err
5282+
5283+
}
5284+
5285+
// ### Creates a CI Run.
5286+
//
5287+
// POST /projects/{project_id}/ci/run -> CreateCIRunResponse
5288+
func (l *LookerSDK) CreateCiRun(
5289+
projectId string,
5290+
body CreateCIRunRequest,
5291+
fields string,
5292+
options *rtl.ApiSettings) (CreateCIRunResponse, error) {
5293+
projectId = url.PathEscape(projectId)
5294+
var result CreateCIRunResponse
5295+
err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/ci/run", projectId), map[string]interface{}{"fields": fields}, body, options)
5296+
return result, err
5297+
5298+
}
5299+
52715300
// ### Configure Repository Credential for a remote dependency
52725301
//
52735302
// Admin required.

0 commit comments

Comments
 (0)