Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Looker 21.18 bindings #865

Merged
merged 3 commits into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/codegen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ env:
LOOKERSDK_BASE_URL: https://localhost:20000
LOOKERSDK_VERIFY_SSL: false
TS_JUNIT_OUTPUT_DIR: results/sdk-codegen
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID__21_16 }}
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET__21_16 }}
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID__21_18 }}
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET__21_18 }}

jobs:
unit:
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
# TODO: can we cache some layers of the image for faster download?
# we probably don't want to cache the final image for IP security...
run: |
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_16
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_18
# set $LOOKER_OPTS to --no-ssl if we want to turn off ssl
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_16
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_18
docker logs -f looker-sdk-codegen-ci --until=30s &
python ${{ github.workspace }}/.github/scripts/wait_for_looker.py

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lerna-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
env:
LOOKERSDK_BASE_URL: https://localhost:20000
LOOKERSDK_VERIFY_SSL: false
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID__21_16 }}
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET__21_16 }}
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID__21_18 }}
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET__21_18 }}
steps:
- name: Clone repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -70,8 +70,8 @@ jobs:

- name: Pull and run Looker docker image
run: |
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_16
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_16
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_18
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/21_18
docker logs -f looker-sdk-codegen-ci --until=30s &
python ${{ github.workspace }}/.github/scripts/wait_for_looker.py

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jobs:
- ubuntu
looker:
- '21_12'
- '21_14'
- '21_16'
- '21_18'
# TODO uncomment `include:` when either macos or windows works to satisfaction.
#include:
# TODO: macos matrix leg is functional but it takes ~20 minutes (compared
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tssdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:
- ubuntu
looker:
- '21_12'
- '21_14'
- '21_16'
- '21_18'

steps:
- name: Repo Checkout
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".": "1.16.0",
".": "1.18.0",
drstrangelooker marked this conversation as resolved.
Show resolved Hide resolved
"packages/api-explorer": "0.9.20",
"packages/code-editor": "0.1.11",
"packages/extension-api-explorer": "21.16.0",
drstrangelooker marked this conversation as resolved.
Show resolved Hide resolved
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.16";
public const string LookerVersion = "21.18";

public const string Bearer = "Bearer";
public const string LookerAppiId = "x-looker-appid";
Expand Down
12 changes: 11 additions & 1 deletion csharp/sdk/3.1/models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,14 @@ public class Dashboard : SdkModel
public DateTime? last_accessed_at { get; set; } = null;
/// <summary>Time last viewed in the Looker web UI (read-only)</summary>
public DateTime? last_viewed_at { get; set; } = null;
/// <summary>Time that the Dashboard was most recently updated. (read-only)</summary>
public DateTime? updated_at { get; set; } = null;
/// <summary>Id of User that most recently updated the dashboard. (read-only)</summary>
public long? last_updater_id { get; set; } = null;
/// <summary>Name of User that most recently updated the dashboard. (read-only)</summary>
public string? last_updater_name { get; set; } = null;
/// <summary>Name of User that created the dashboard. (read-only)</summary>
public string? user_name { get; set; } = null;
drstrangelooker marked this conversation as resolved.
Show resolved Hide resolved
/// <summary>configuration option that governs how dashboard loading will happen.</summary>
public string? load_configuration { get; set; } = null;
/// <summary>Links this dashboard to a particular LookML dashboard such that calling a **sync** operation on that LookML dashboard will update this dashboard to match.</summary>
Expand Down Expand Up @@ -3313,6 +3321,8 @@ public class RenderTask : SdkModel
public string? lookml_dashboard_id { get; set; } = null;
/// <summary>Id of query to render (read-only)</summary>
public long? query_id { get; set; } = null;
/// <summary>Id of dashboard element to render: UDD dashboard element would be numeric and LookML dashboard element would be model_name::dashboard_title::lookml_link_id (read-only)</summary>
public string? dashboard_element_id { get; set; } = null;
/// <summary>Number of seconds elapsed running queries (read-only)</summary>
public double? query_runtime { get; set; } = null;
/// <summary>Number of seconds elapsed rendering data (read-only)</summary>
Expand Down Expand Up @@ -4495,7 +4505,7 @@ public class WriteCustomWelcomeEmail : SdkModel
}

/// Dynamic writeable type for Dashboard removes:
/// 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, updated_at, last_updater_id, last_updater_name, user_name, view_count
public class WriteDashboard : SdkModel
{
/// <summary>Description</summary>
Expand Down
4 changes: 2 additions & 2 deletions csharp/sdk/4.0/methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public async Task<SdkResponse<Alert, Exception>> update_alert(
}

/// ### Update select alert fields
/// # Available fields: `owner_id`, `is_disabled`, `is_public`, `threshold`
/// # Available fields: `owner_id`, `is_disabled`, `disabled_reason`, `is_public`, `threshold`
/// #
///
/// PATCH /alerts/{alert_id} -> Alert
Expand All @@ -125,7 +125,7 @@ public async Task<SdkResponse<Alert, Exception>> update_alert(
/// <param name="alert_id">ID of an alert</param>
public async Task<SdkResponse<Alert, Exception>> update_alert_field(
long alert_id,
WriteAlert body,
AlertPatch body,
ITransportSettings? options = null)
{
return await AuthRequest<Alert, Exception>(HttpMethod.Patch, $"/alerts/{alert_id}", null,body,options);
Expand Down
Loading