Skip to content

Commit 9beffa3

Browse files
feat: generate SDKs for Looker 25.10 (#1592)
Release-As: 25.10.0
1 parent 4794aab commit 9beffa3

File tree

24 files changed

+941
-900
lines changed

24 files changed

+941
-900
lines changed

csharp/rtl/Constants.cs

Lines changed: 1 addition & 1 deletion
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.8";
64+
public const string LookerVersion = "25.10";
6565

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

csharp/sdk/4.0/methods.cs

Lines changed: 40 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6213,6 +6213,46 @@ public async Task<SdkResponse<CostEstimate, Exception>> connection_cost_estimate
62136213

62146214
#region Project: Manage Projects
62156215

6216+
/// ### Fetches a CI Run.
6217+
///
6218+
/// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
6219+
///
6220+
/// <returns><c>ProjectCIRun</c> CI Run (application/json)</returns>
6221+
///
6222+
/// <param name="project_id">Project Id</param>
6223+
/// <param name="run_id">Run Id</param>
6224+
/// <param name="fields">Requested fields</param>
6225+
public async Task<SdkResponse<ProjectCIRun, Exception>> get_ci_run(
6226+
string project_id,
6227+
string run_id,
6228+
string? fields = null,
6229+
ITransportSettings? options = null)
6230+
{
6231+
project_id = SdkUtils.EncodeParam(project_id);
6232+
run_id = SdkUtils.EncodeParam(run_id);
6233+
return await AuthRequest<ProjectCIRun, Exception>(HttpMethod.Get, $"/projects/{project_id}/ci/runs/{run_id}", new Values {
6234+
{ "fields", fields }},null,options);
6235+
}
6236+
6237+
/// ### Creates a CI Run.
6238+
///
6239+
/// POST /projects/{project_id}/ci/run -> CreateCIRunResponse
6240+
///
6241+
/// <returns><c>CreateCIRunResponse</c> CI Run (application/json)</returns>
6242+
///
6243+
/// <param name="project_id">Project Id</param>
6244+
/// <param name="fields">Requested fields</param>
6245+
public async Task<SdkResponse<CreateCIRunResponse, Exception>> create_ci_run(
6246+
string project_id,
6247+
CreateCIRunRequest body,
6248+
string? fields = null,
6249+
ITransportSettings? options = null)
6250+
{
6251+
project_id = SdkUtils.EncodeParam(project_id);
6252+
return await AuthRequest<CreateCIRunResponse, Exception>(HttpMethod.Post, $"/projects/{project_id}/ci/run", new Values {
6253+
{ "fields", fields }},body,options);
6254+
}
6255+
62166256
/// ### Generate Lockfile for All LookML Dependencies
62176257
///
62186258
/// Git must have been configured, must be in dev mode and deploy permission required
@@ -6738,9 +6778,6 @@ public async Task<SdkResponse<ProjectFile, Exception>> project_file(
67386778

67396779
/// ### Get All Git Connection Tests
67406780
///
6741-
/// dev mode required.
6742-
/// - Call `update_session` to select the 'dev' workspace.
6743-
///
67446781
/// Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call [Run Git Connection Test](#!/Project/run_git_connection_test) to execute each test in sequence.
67456782
///
67466783
/// Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list.
@@ -6869,46 +6906,6 @@ public async Task<SdkResponse<TSuccess, Exception>> tag_ref<TSuccess>(
68696906
{ "tag_message", tag_message }},body,options);
68706907
}
68716908

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

csharp/sdk/4.0/models.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3657,6 +3657,8 @@ public class LookmlModelExploreField : SdkModel
36573657
public bool? suggestable { get; set; } = null;
36583658
/// <summary>If available, a list of suggestions for this field. For most fields, a suggest query is a more appropriate way to get an up-to-date list of suggestions. Or use enumerations to list all the possible values. (read-only)</summary>
36593659
public string[]? suggestions { get; set; } = null;
3660+
/// <summary>A list of string synonyms (words or phrases) that can be used to help large language models and app developers understand other ways that users may refer to a field. (read-only)</summary>
3661+
public string[]? synonyms { get; set; } = null;
36603662
/// <summary>An array of arbitrary string tags provided in the model for this field. (read-only)</summary>
36613663
public string[]? tags { get; set; } = null;
36623664
/// <summary>The LookML type of the field. (read-only)</summary>
@@ -3733,6 +3735,8 @@ public class LookmlModelExploreFieldPeriodOverPeriodParams : SdkModel
37333735
/// <summary>The type of calculation for the period_over_period measure. Valid values are: "previous", "difference", "relative_change". (read-only)</summary>
37343736
[JsonConverter(typeof(StringEnumConverter))]
37353737
public Kind? kind { get; set; }
3738+
/// <summary>specifies whether to compare the current partially completed period to an equivalent part of the previous period, or to use the entire previous period. (read-only)</summary>
3739+
public bool? value_to_date { get; set; } = null;
37363740
}
37373741

37383742
public class LookmlModelExploreFieldset : SdkModel

go/sdk/v4/methods.go

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4746,6 +4746,37 @@ func (l *LookerSDK) ConnectionCostEstimate(
47464746

47474747
// region Project: Manage Projects
47484748

4749+
// ### Fetches a CI Run.
4750+
//
4751+
// GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
4752+
func (l *LookerSDK) GetCiRun(
4753+
projectId string,
4754+
runId string,
4755+
fields string,
4756+
options *rtl.ApiSettings) (ProjectCIRun, error) {
4757+
projectId = url.PathEscape(projectId)
4758+
runId = url.PathEscape(runId)
4759+
var result ProjectCIRun
4760+
err := l.session.Do(&result, "GET", "/4.0", fmt.Sprintf("/projects/%v/ci/runs/%v", projectId, runId), map[string]interface{}{"fields": fields}, nil, options)
4761+
return result, err
4762+
4763+
}
4764+
4765+
// ### Creates a CI Run.
4766+
//
4767+
// POST /projects/{project_id}/ci/run -> CreateCIRunResponse
4768+
func (l *LookerSDK) CreateCiRun(
4769+
projectId string,
4770+
body CreateCIRunRequest,
4771+
fields string,
4772+
options *rtl.ApiSettings) (CreateCIRunResponse, error) {
4773+
projectId = url.PathEscape(projectId)
4774+
var result CreateCIRunResponse
4775+
err := l.session.Do(&result, "POST", "/4.0", fmt.Sprintf("/projects/%v/ci/run", projectId), map[string]interface{}{"fields": fields}, body, options)
4776+
return result, err
4777+
4778+
}
4779+
47494780
// ### Generate Lockfile for All LookML Dependencies
47504781
//
47514782
// Git must have been configured, must be in dev mode and deploy permission required
@@ -5181,9 +5212,6 @@ func (l *LookerSDK) ProjectFile(
51815212

51825213
// ### Get All Git Connection Tests
51835214
//
5184-
// dev mode required.
5185-
// - Call `update_session` to select the 'dev' workspace.
5186-
//
51875215
// Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call [Run Git Connection Test](#!/Project/run_git_connection_test) to execute each test in sequence.
51885216
//
51895217
// Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list.
@@ -5265,37 +5293,6 @@ func (l *LookerSDK) TagRef(request RequestTagRef,
52655293

52665294
}
52675295

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

go/sdk/v4/models.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,7 @@ type LookmlModelExploreField struct {
20532053
SuggestExplore *string `json:"suggest_explore,omitempty"` // The name of the explore to base suggest queries from.
20542054
Suggestable *bool `json:"suggestable,omitempty"` // Whether or not suggestions are possible for this field.
20552055
Suggestions *[]string `json:"suggestions,omitempty"` // If available, a list of suggestions for this field. For most fields, a suggest query is a more appropriate way to get an up-to-date list of suggestions. Or use enumerations to list all the possible values.
2056+
Synonyms *[]string `json:"synonyms,omitempty"` // A list of string synonyms (words or phrases) that can be used to help large language models and app developers understand other ways that users may refer to a field.
20562057
Tags *[]string `json:"tags,omitempty"` // An array of arbitrary string tags provided in the model for this field.
20572058
Type *string `json:"type,omitempty"` // The LookML type of the field.
20582059
UserAttributeFilterTypes *[]UserAttributeFilterTypes `json:"user_attribute_filter_types,omitempty"` // An array of user attribute types that are allowed to be used in filters on this field. Valid values are: "advanced_filter_string", "advanced_filter_number", "advanced_filter_datetime", "string", "number", "datetime", "relative_url", "yesno", "zipcode".
@@ -2093,6 +2094,7 @@ type LookmlModelExploreFieldPeriodOverPeriodParams struct {
20932094
BasedOnTime *string `json:"based_on_time,omitempty"` // Specifies the time dimension that this measure will operate over.
20942095
Period *Period `json:"period,omitempty"` // Specifies the time frame for the comparison. Valid values are: "year", "fiscal_year", "quarter", "fiscal_quarter", "month", "week", "date".
20952096
Kind *Kind `json:"kind,omitempty"` // The type of calculation for the period_over_period measure. Valid values are: "previous", "difference", "relative_change".
2097+
ValueToDate *bool `json:"value_to_date,omitempty"` // specifies whether to compare the current partially completed period to an equivalent part of the previous period, or to use the entire previous period.
20962098
}
20972099

20982100
type LookmlModelExploreFieldset struct {

kotlin/src/main/com/looker/sdk/4.0/methods.kt

Lines changed: 44 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6364,6 +6364,50 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
63646364

63656365
//region Project: Manage Projects
63666366

6367+
/**
6368+
* ### Fetches a CI Run.
6369+
*
6370+
* @param {String} project_id Project Id
6371+
* @param {String} run_id Run Id
6372+
* @param {String} fields Requested fields
6373+
*
6374+
* GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
6375+
*/
6376+
@JvmOverloads fun get_ci_run(
6377+
project_id: String,
6378+
run_id: String,
6379+
fields: String? = null,
6380+
): SDKResponse {
6381+
val path_project_id = encodeParam(project_id)
6382+
val path_run_id = encodeParam(run_id)
6383+
return this.get<ProjectCIRun>(
6384+
"/projects/${path_project_id}/ci/runs/${path_run_id}",
6385+
mapOf("fields" to fields),
6386+
)
6387+
}
6388+
6389+
/**
6390+
* ### Creates a CI Run.
6391+
*
6392+
* @param {String} project_id Project Id
6393+
* @param {CreateCIRunRequest} body
6394+
* @param {String} fields Requested fields
6395+
*
6396+
* POST /projects/{project_id}/ci/run -> CreateCIRunResponse
6397+
*/
6398+
@JvmOverloads fun create_ci_run(
6399+
project_id: String,
6400+
body: CreateCIRunRequest,
6401+
fields: String? = null,
6402+
): SDKResponse {
6403+
val path_project_id = encodeParam(project_id)
6404+
return this.post<CreateCIRunResponse>(
6405+
"/projects/${path_project_id}/ci/run",
6406+
mapOf("fields" to fields),
6407+
body,
6408+
)
6409+
}
6410+
63676411
/**
63686412
* ### Generate Lockfile for All LookML Dependencies
63696413
*
@@ -6878,9 +6922,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
68786922
/**
68796923
* ### Get All Git Connection Tests
68806924
*
6881-
* dev mode required.
6882-
* - Call `update_session` to select the 'dev' workspace.
6883-
*
68846925
* Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call [Run Git Connection Test](#!/Project/run_git_connection_test) to execute each test in sequence.
68856926
*
68866927
* Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list.
@@ -7018,50 +7059,6 @@ class LookerSDK(authSession: AuthSession) : APIMethods(authSession) {
70187059
)
70197060
}
70207061

7021-
/**
7022-
* ### Fetches a CI Run.
7023-
*
7024-
* @param {String} project_id Project Id
7025-
* @param {String} run_id Run Id
7026-
* @param {String} fields Requested fields
7027-
*
7028-
* GET /projects/{project_id}/ci/runs/{run_id} -> ProjectCIRun
7029-
*/
7030-
@JvmOverloads fun get_ci_run(
7031-
project_id: String,
7032-
run_id: String,
7033-
fields: String? = null,
7034-
): SDKResponse {
7035-
val path_project_id = encodeParam(project_id)
7036-
val path_run_id = encodeParam(run_id)
7037-
return this.get<ProjectCIRun>(
7038-
"/projects/${path_project_id}/ci/runs/${path_run_id}",
7039-
mapOf("fields" to fields),
7040-
)
7041-
}
7042-
7043-
/**
7044-
* ### Creates a CI Run.
7045-
*
7046-
* @param {String} project_id Project Id
7047-
* @param {CreateCIRunRequest} body
7048-
* @param {String} fields Requested fields
7049-
*
7050-
* POST /projects/{project_id}/ci/run -> CreateCIRunResponse
7051-
*/
7052-
@JvmOverloads fun create_ci_run(
7053-
project_id: String,
7054-
body: CreateCIRunRequest,
7055-
fields: String? = null,
7056-
): SDKResponse {
7057-
val path_project_id = encodeParam(project_id)
7058-
return this.post<CreateCIRunResponse>(
7059-
"/projects/${path_project_id}/ci/run",
7060-
mapOf("fields" to fields),
7061-
body,
7062-
)
7063-
}
7064-
70657062
/**
70667063
* ### Configure Repository Credential for a remote dependency
70677064
*

kotlin/src/main/com/looker/sdk/4.0/models.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,6 +3816,7 @@ data class LookmlModelExploreError(
38163816
* @property suggest_explore The name of the explore to base suggest queries from. (read-only)
38173817
* @property suggestable Whether or not suggestions are possible for this field. (read-only)
38183818
* @property suggestions If available, a list of suggestions for this field. For most fields, a suggest query is a more appropriate way to get an up-to-date list of suggestions. Or use enumerations to list all the possible values. (read-only)
3819+
* @property synonyms A list of string synonyms (words or phrases) that can be used to help large language models and app developers understand other ways that users may refer to a field. (read-only)
38193820
* @property tags An array of arbitrary string tags provided in the model for this field. (read-only)
38203821
* @property type The LookML type of the field. (read-only)
38213822
* @property user_attribute_filter_types An array of user attribute types that are allowed to be used in filters on this field. Valid values are: "advanced_filter_string", "advanced_filter_number", "advanced_filter_datetime", "string", "number", "datetime", "relative_url", "yesno", "zipcode". (read-only)
@@ -3876,6 +3877,7 @@ data class LookmlModelExploreField(
38763877
var suggest_explore: String? = null,
38773878
var suggestable: Boolean? = null,
38783879
var suggestions: Array<String>? = null,
3880+
var synonyms: Array<String>? = null,
38793881
var tags: Array<String>? = null,
38803882
var type: String? = null,
38813883
var user_attribute_filter_types: Array<UserAttributeFilterTypes>? = null,
@@ -3936,12 +3938,14 @@ data class LookmlModelExploreFieldMeasureFilters(
39363938
* @property based_on_time Specifies the time dimension that this measure will operate over. (read-only)
39373939
* @property period Specifies the time frame for the comparison. Valid values are: "year", "fiscal_year", "quarter", "fiscal_quarter", "month", "week", "date". (read-only)
39383940
* @property kind The type of calculation for the period_over_period measure. Valid values are: "previous", "difference", "relative_change". (read-only)
3941+
* @property value_to_date specifies whether to compare the current partially completed period to an equivalent part of the previous period, or to use the entire previous period. (read-only)
39393942
*/
39403943
data class LookmlModelExploreFieldPeriodOverPeriodParams(
39413944
var based_on: String? = null,
39423945
var based_on_time: String? = null,
39433946
var period: Period? = null,
39443947
var kind: Kind? = null,
3948+
var value_to_date: Boolean? = null,
39453949
) : Serializable
39463950

39473951
/**

0 commit comments

Comments
 (0)