Skip to content

Commit

Permalink
Merge branch 'main' into an/strange-parsing-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaster authored Jul 8, 2021
2 parents 0e7e97a + 3ed6af7 commit 2e94405
Show file tree
Hide file tree
Showing 67 changed files with 1,506 additions and 287 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/required-checks-hack-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,31 @@ jobs:
name: Codegen Tests
runs-on: ubuntu-latest
steps:
# using `sleep 900` as a naive solution to avoiding early approval: 99% of
# real CI jobs finish in under 15 minutes. Waiting 15 minutes here should
# using `sleep 480` as a naive solution to avoiding early approval: 99% of
# real CI jobs finish in under 8 minutes. Waiting 8 minutes here should
# mostly avoid the scenario where these noop jobs meet all required checks
# on a PR prior to a corresponding real CI job being able to report.
#
# A more elegant hack to this github-lack-of-configurable-required-checks
# might be to run a script with https://github.com/octokit/action.js/
# that uses either the REST or GraphQL API to figure out when all
# outstanding workflows for this PR have finished and only then `exit 0`
- run: sleep 900 && exit 0
- run: sleep 480 && exit 0

noop-typescript-results:
name: Typescript Tests
runs-on: ubuntu-latest
steps:
- run: sleep 900 && exit 0
- run: sleep 480 && exit 0

noop-python-results:
name: Python Tests
runs-on: ubuntu-latest
steps:
- run: sleep 900 && exit 0
- run: sleep 480 && exit 0

noop-apix-results:
name: APIX Tests
runs-on: ubuntu-latest
steps:
- run: sleep 900 && exit 0
- run: sleep 480 && exit 0
30 changes: 15 additions & 15 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
".": "1.9.1",
"packages/api-explorer": "0.9.11",
"packages/code-editor": "0.1.4",
"packages/extension-api-explorer": "21.8.1",
"packages/extension-sdk": "21.8.2",
"packages/extension-sdk-react": "21.8.2",
"packages/hackathon": "21.8.1",
"packages/run-it": "0.9.11",
"packages/sdk": "21.8.2",
"packages/sdk-codegen": "21.0.19",
"packages/sdk-codegen-scripts": "21.0.20",
".": "1.9.2",
"packages/api-explorer": "0.9.12",
"packages/code-editor": "0.1.5",
"packages/extension-api-explorer": "21.8.2",
"packages/extension-sdk": "21.8.3",
"packages/extension-sdk-react": "21.8.3",
"packages/hackathon": "21.8.2",
"packages/run-it": "0.9.12",
"packages/sdk": "21.8.3",
"packages/sdk-codegen": "21.0.20",
"packages/sdk-codegen-scripts": "21.0.21",
"packages/sdk-codegen-utils": "21.0.11",
"packages/sdk-node": "21.8.1",
"packages/sdk-rtl": "21.0.15",
"packages/wholly-sheet": "0.5.10",
"python": "21.8.0"
"packages/sdk-node": "21.8.2",
"packages/sdk-rtl": "21.0.16",
"packages/wholly-sheet": "0.5.11",
"python": "21.8.1"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

### [1.9.2](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v1.9.1...sdk-codegen-all-v1.9.2) (2021-07-02)


### Bug Fixes

* explain pager and pageAll sdk param better ([#736](https://www.github.com/looker-open-source/sdk-codegen/issues/736)) ([a93a9b1](https://www.github.com/looker-open-source/sdk-codegen/commit/a93a9b1ded0acddeaf051e7a2fed5132c1cb5c0c))
* python datetime [de]serialization bug ([#734](https://www.github.com/looker-open-source/sdk-codegen/issues/734)) ([c821f2b](https://www.github.com/looker-open-source/sdk-codegen/commit/c821f2b77b99edfa2dd53aa0af82ab48081c3220))
* python remove runtime asserts ([#703](https://www.github.com/looker-open-source/sdk-codegen/issues/703)) ([9b963c3](https://www.github.com/looker-open-source/sdk-codegen/commit/9b963c3367905f907e7867df1446f56e18284c3b)), closes [#695](https://www.github.com/looker-open-source/sdk-codegen/issues/695)

### [1.9.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-all-v1.9.0...sdk-codegen-all-v1.9.1) (2021-07-01)


Expand Down
2 changes: 1 addition & 1 deletion csharp/rtl/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct Constants

public const string DefaultApiVersion = "4.0";
public const string AgentPrefix = "CS-SDK";
public const string LookerVersion = "21.8";
public const string LookerVersion = "21.10";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
8 changes: 7 additions & 1 deletion csharp/sdk/3.1/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ public class ContentValidationLook : SdkModel
public long? id { get; set; } = null;
/// <summary>Look Title</summary>
public string? title { get; set; } = null;
/// <summary>Short Url (read-only)</summary>
public string? short_url { get; set; } = null;
public ContentValidationFolder? folder { get; set; }
public ContentValidationSpace? space { get; set; }
}
Expand Down Expand Up @@ -738,6 +740,8 @@ public class Dashboard : SdkModel
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
public string? preferred_viewer { get; set; } = null;
public SpaceBase? space { get; set; }
/// <summary>Enables alerts to keep in sync with dashboard filter changes - only available in alerts 2.0 (beta)</summary>
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
/// <summary>Background color</summary>
public string? background_color { get; set; } = null;
/// <summary>Time that the Dashboard was created. (read-only)</summary>
Expand Down Expand Up @@ -1043,7 +1047,7 @@ public class DataActionFormSelectOption : SdkModel
public class DataActionRequest : SdkModel
{
/// <summary>The JSON describing the data action. This JSON should be considered opaque and should be passed through unmodified from the query result it came from.</summary>
public StringDictionary<string>? action { get; set; } = null;
public StringDictionary<object>? action { get; set; } = null;
/// <summary>User input for any form values the data action might use.</summary>
public StringDictionary<string>? form_values { get; set; } = null;
}
Expand Down Expand Up @@ -4498,6 +4502,8 @@ public class WriteDashboard : SdkModel
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
public string? preferred_viewer { get; set; } = null;
public WriteSpaceBase? space { get; set; }
/// <summary>Enables alerts to keep in sync with dashboard filter changes - only available in alerts 2.0 (beta)</summary>
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
/// <summary>Background color</summary>
public string? background_color { get; set; } = null;
/// <summary>Enables crossfiltering in dashboards - only available in dashboards-next (beta)</summary>
Expand Down
70 changes: 67 additions & 3 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 412 API methods
/// 413 API methods

#nullable enable
using System;
Expand Down Expand Up @@ -1936,9 +1936,11 @@ public async Task<SdkResponse<DialectInfo[], Exception>> all_dialect_infos(

/// ### Get all External OAuth Applications.
///
/// This is an OAuth Application which Looker uses to access external systems.
///
/// GET /external_oauth_applications -> ExternalOauthApplication[]
///
/// <returns><c>ExternalOauthApplication[]</c> External OAuth Application. This is an OAuth Application which Looker uses to access external systems. (application/json)</returns>
/// <returns><c>ExternalOauthApplication[]</c> External OAuth Application (application/json)</returns>
///
/// <param name="name">Application name</param>
/// <param name="client_id">Application Client ID</param>
Expand All @@ -1954,9 +1956,11 @@ public async Task<SdkResponse<ExternalOauthApplication[], Exception>> all_extern

/// ### Create an OAuth Application using the specified configuration.
///
/// This is an OAuth Application which Looker uses to access external systems.
///
/// POST /external_oauth_applications -> ExternalOauthApplication
///
/// <returns><c>ExternalOauthApplication</c> External OAuth Application. This is an OAuth Application which Looker uses to access external systems. (application/json)</returns>
/// <returns><c>ExternalOauthApplication</c> External OAuth Application (application/json)</returns>
///
public async Task<SdkResponse<ExternalOauthApplication, Exception>> create_external_oauth_application(
WriteExternalOauthApplication body,
Expand Down Expand Up @@ -6853,6 +6857,66 @@ public async Task<SdkResponse<Role[], Exception>> search_roles(
{ "filter_or", filter_or }},null,options);
}

/// ### Search roles include user count
///
/// Returns all role records that match the given search criteria, and attaches
/// associated user counts.
///
/// If multiple search params are given and `filter_or` is FALSE or not specified,
/// search params are combined in a logical AND operation.
/// Only rows that match *all* search param criteria will be returned.
///
/// If `filter_or` is TRUE, multiple search params are combined in a logical OR operation.
/// Results will include rows that match **any** of the search criteria.
///
/// String search params use case-insensitive matching.
/// String search params can contain `%` and '_' as SQL LIKE pattern match wildcard expressions.
/// example="dan%" will match "danger" and "Danzig" but not "David"
/// example="D_m%" will match "Damage" and "dump"
///
/// Integer search params can accept a single value or a comma separated list of values. The multiple
/// values will be combined under a logical OR operation - results will match at least one of
/// the given values.
///
/// Most search params can accept "IS NULL" and "NOT NULL" as special expressions to match
/// or exclude (respectively) rows where the column is null.
///
/// Boolean search params accept only "true" and "false" as values.
///
/// GET /roles/search/with_user_count -> RoleSearch[]
///
/// <returns><c>RoleSearch[]</c> Role (application/json)</returns>
///
/// <param name="fields">Requested fields.</param>
/// <param name="limit">Number of results to return (used with `offset`).</param>
/// <param name="offset">Number of results to skip before returning any (used with `limit`).</param>
/// <param name="sorts">Fields to sort by.</param>
/// <param name="id">Match role id.</param>
/// <param name="name">Match role name.</param>
/// <param name="built_in">Match roles by built_in status.</param>
/// <param name="filter_or">Combine given search criteria in a boolean OR expression.</param>
public async Task<SdkResponse<RoleSearch[], Exception>> search_roles_with_user_count(
string? fields = null,
long? limit = null,
long? offset = null,
string? sorts = null,
long? id = null,
string? name = null,
bool? built_in = null,
bool? filter_or = null,
ITransportSettings? options = null)
{
return await AuthRequest<RoleSearch[], Exception>(HttpMethod.Get, "/roles/search/with_user_count", new Values {
{ "fields", fields },
{ "limit", limit },
{ "offset", offset },
{ "sorts", sorts },
{ "id", id },
{ "name", name },
{ "built_in", built_in },
{ "filter_or", filter_or }},null,options);
}

/// ### Get information about the role with a specific id.
///
/// GET /roles/{role_id} -> Role
Expand Down
40 changes: 35 additions & 5 deletions csharp/sdk/4.0/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// SOFTWARE.
///

/// 283 API models: 210 Spec, 0 Request, 56 Write, 17 Enum
/// 284 API models: 211 Spec, 0 Request, 56 Write, 17 Enum

#nullable enable
using System;
Expand Down Expand Up @@ -405,6 +405,8 @@ public class ContentValidationDashboard : SdkModel
public ContentValidationFolder? folder { get; set; }
/// <summary>Dashboard Title</summary>
public string? title { get; set; } = null;
/// <summary>Relative URL of the dashboard (read-only)</summary>
public string? url { get; set; } = null;
}

public class ContentValidationDashboardElement : SdkModel
Expand Down Expand Up @@ -489,6 +491,8 @@ public class ContentValidationLook : SdkModel
public long? id { get; set; } = null;
/// <summary>Look Title</summary>
public string? title { get; set; } = null;
/// <summary>Short Url (read-only)</summary>
public string? short_url { get; set; } = null;
public ContentValidationFolder? folder { get; set; }
}

Expand Down Expand Up @@ -918,6 +922,8 @@ public class Dashboard : SdkModel
public string? slug { get; set; } = null;
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
public string? preferred_viewer { get; set; } = null;
/// <summary>Enables alerts to keep in sync with dashboard filter changes - only available in alerts 2.0 (beta)</summary>
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
/// <summary>Background color</summary>
public string? background_color { get; set; } = null;
/// <summary>Time that the Dashboard was created. (read-only)</summary>
Expand Down Expand Up @@ -965,6 +971,8 @@ public class Dashboard : SdkModel
/// <summary>Number of times viewed in the Looker web UI (read-only)</summary>
public long? view_count { get; set; } = null;
public DashboardAppearance? appearance { get; set; }
/// <summary>Relative URL of the dashboard (read-only)</summary>
public string? url { get; set; } = null;
}

public class DashboardAggregateTableLookml : SdkModel
Expand Down Expand Up @@ -1220,7 +1228,7 @@ public class DataActionFormSelectOption : SdkModel
public class DataActionRequest : SdkModel
{
/// <summary>The JSON describing the data action. This JSON should be considered opaque and should be passed through unmodified from the query result it came from.</summary>
public StringDictionary<string>? action { get; set; } = null;
public StringDictionary<object>? action { get; set; } = null;
/// <summary>User input for any form values the data action might use.</summary>
public StringDictionary<string>? form_values { get; set; } = null;
}
Expand Down Expand Up @@ -3714,7 +3722,27 @@ public class Role : SdkModel
public ModelSet? model_set { get; set; }
/// <summary>(Write-Only) Id of model set</summary>
public long? model_set_id { get; set; } = null;
/// <summary>Count of users with this role, only returned if user_count field is requested (read-only)</summary>
/// <summary>Link to get this item (read-only)</summary>
public string? url { get; set; } = null;
/// <summary>Link to get list of users with this role (read-only)</summary>
public string? users_url { get; set; } = null;
}

public class RoleSearch : SdkModel
{
/// <summary>Operations the current user is able to perform on this object (read-only)</summary>
public StringDictionary<bool>? can { get; set; } = null;
/// <summary>Unique Id (read-only)</summary>
public long? id { get; set; } = null;
/// <summary>Name of Role</summary>
public string? name { get; set; } = null;
public PermissionSet? permission_set { get; set; }
/// <summary>(Write-Only) Id of permission set</summary>
public long? permission_set_id { get; set; } = null;
public ModelSet? model_set { get; set; }
/// <summary>(Write-Only) Id of model set</summary>
public long? model_set_id { get; set; } = null;
/// <summary>Count of users with this role (read-only)</summary>
public long? user_count { get; set; } = null;
/// <summary>Link to get this item (read-only)</summary>
public string? url { get; set; } = null;
Expand Down Expand Up @@ -4871,7 +4899,7 @@ public class WriteCustomWelcomeEmail : SdkModel
}

/// Dynamically generated writeable type for Dashboard removes properties:
/// can, content_favorite_id, content_metadata_id, id, model, readonly, refresh_interval_to_i, user_id, created_at, dashboard_elements, dashboard_filters, dashboard_layouts, deleted_at, deleter_id, edit_uri, favorite_count, last_accessed_at, last_viewed_at, view_count
/// can, content_favorite_id, content_metadata_id, id, model, readonly, refresh_interval_to_i, user_id, created_at, dashboard_elements, dashboard_filters, dashboard_layouts, deleted_at, deleter_id, edit_uri, favorite_count, last_accessed_at, last_viewed_at, view_count, url
public class WriteDashboard : SdkModel
{
/// <summary>Description</summary>
Expand All @@ -4889,6 +4917,8 @@ public class WriteDashboard : SdkModel
public string? slug { get; set; } = null;
/// <summary>The preferred route for viewing this dashboard (ie: dashboards or dashboards-next)</summary>
public string? preferred_viewer { get; set; } = null;
/// <summary>Enables alerts to keep in sync with dashboard filter changes - only available in alerts 2.0 (beta)</summary>
public bool? alert_sync_with_dashboard_filter_enabled { get; set; } = null;
/// <summary>Background color</summary>
public string? background_color { get; set; } = null;
/// <summary>Enables crossfiltering in dashboards - only available in dashboards-next (beta)</summary>
Expand Down Expand Up @@ -5570,7 +5600,7 @@ public class WriteResultMakerWithIdVisConfigAndDynamicFields : SdkModel
}

/// Dynamically generated writeable type for Role removes properties:
/// can, id, user_count, url, users_url
/// can, id, url, users_url
public class WriteRole : SdkModel
{
/// <summary>Name of Role</summary>
Expand Down
Loading

0 comments on commit 2e94405

Please sign in to comment.