looker-sdk 24.14.0__tar.gz → 24.16.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/PKG-INFO +1 -1
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/sdk/api40/methods.py +45 -1
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/sdk/api40/models.py +95 -10
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/sdk/constants.py +1 -1
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/version.py +1 -1
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk.egg-info/PKG-INFO +1 -1
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/LICENSE.txt +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/MANIFEST.in +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/README.rst +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/error.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/py.typed +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/api_methods.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/api_settings.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/auth_session.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/auth_token.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/constants.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/hooks.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/model.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/requests_transport.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/serialize.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/rtl/transport.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/sdk/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk/sdk/api40/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk.egg-info/SOURCES.txt +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk.egg-info/dependency_links.txt +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk.egg-info/requires.txt +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/looker_sdk.egg-info/top_level.txt +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/setup.cfg +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/setup.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/conftest.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/integration/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/integration/test_methods.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/integration/test_netrc.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/__init__.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_api_methods.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_api_settings.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_auth_session.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_auth_token.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_requests_transport.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_serialize.py +0 -0
- {looker_sdk-24.14.0 → looker_sdk-24.16.1}/tests/rtl/test_transport.py +0 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
#
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# 466 API methods
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
# NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0
|
|
@@ -4424,6 +4424,50 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
4424
4424
|
)
|
|
4425
4425
|
return response
|
|
4426
4426
|
|
|
4427
|
+
# ### Get Content Summary
|
|
4428
|
+
#
|
|
4429
|
+
# Retrieves a collection of content items related to user activity and engagement, such as recently viewed content,
|
|
4430
|
+
# favorites and scheduled items.
|
|
4431
|
+
#
|
|
4432
|
+
# GET /content_summary -> Sequence[mdls.ContentSummary]
|
|
4433
|
+
def content_summary(
|
|
4434
|
+
self,
|
|
4435
|
+
# Comma-delimited names of fields to return in responses. Omit for all fields
|
|
4436
|
+
fields: Optional[str] = None,
|
|
4437
|
+
# Number of results to return. (used with offset)
|
|
4438
|
+
limit: Optional[int] = None,
|
|
4439
|
+
# Number of results to skip before returning any. (used with limit)
|
|
4440
|
+
offset: Optional[int] = None,
|
|
4441
|
+
# Match group id
|
|
4442
|
+
target_group_id: Optional[str] = None,
|
|
4443
|
+
# Match user id
|
|
4444
|
+
target_user_id: Optional[str] = None,
|
|
4445
|
+
# Content type to match, options are: look, dashboard. Can be provided as a comma delimited list.
|
|
4446
|
+
target_content_type: Optional[str] = None,
|
|
4447
|
+
# Fields to sort by
|
|
4448
|
+
sorts: Optional[str] = None,
|
|
4449
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
4450
|
+
) -> Sequence[mdls.ContentSummary]:
|
|
4451
|
+
"""Search Content Summaries"""
|
|
4452
|
+
response = cast(
|
|
4453
|
+
Sequence[mdls.ContentSummary],
|
|
4454
|
+
self.get(
|
|
4455
|
+
path="/content_summary",
|
|
4456
|
+
structure=Sequence[mdls.ContentSummary],
|
|
4457
|
+
query_params={
|
|
4458
|
+
"fields": fields,
|
|
4459
|
+
"limit": limit,
|
|
4460
|
+
"offset": offset,
|
|
4461
|
+
"target_group_id": target_group_id,
|
|
4462
|
+
"target_user_id": target_user_id,
|
|
4463
|
+
"target_content_type": target_content_type,
|
|
4464
|
+
"sorts": sorts,
|
|
4465
|
+
},
|
|
4466
|
+
transport_options=transport_options,
|
|
4467
|
+
),
|
|
4468
|
+
)
|
|
4469
|
+
return response
|
|
4470
|
+
|
|
4427
4471
|
# ### Get an image representing the contents of a dashboard or look.
|
|
4428
4472
|
#
|
|
4429
4473
|
# The returned thumbnail is an abstract representation of the contents of a dashboard or look and does not
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
#
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# 343 API models: 260 Spec, 0 Request, 61 Write, 22 Enum
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
# NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0
|
|
@@ -1283,6 +1283,91 @@ class ContentSearch(model.Model):
|
|
|
1283
1283
|
self.preferred_viewer = preferred_viewer
|
|
1284
1284
|
|
|
1285
1285
|
|
|
1286
|
+
@attr.s(auto_attribs=True, init=False)
|
|
1287
|
+
class ContentSummary(model.Model):
|
|
1288
|
+
"""
|
|
1289
|
+
Attributes:
|
|
1290
|
+
can: Operations the current user is able to perform on this object
|
|
1291
|
+
id: Unique id
|
|
1292
|
+
content_type: Content type
|
|
1293
|
+
content_id: Content id
|
|
1294
|
+
content_slug: Content slug
|
|
1295
|
+
title: Content title
|
|
1296
|
+
description: Content Description
|
|
1297
|
+
last_viewed_at: Last time viewed by current user
|
|
1298
|
+
user_id: ID of user who created the content
|
|
1299
|
+
user_full_name: Full name of user who created the content
|
|
1300
|
+
is_scheduled: If the content is scheduled by the current user
|
|
1301
|
+
favorite_count: Number of favorites
|
|
1302
|
+
view_count: Number of views
|
|
1303
|
+
favorite_id: Corresponding favorite id if item is favorited by current user
|
|
1304
|
+
weighted_score:
|
|
1305
|
+
group_weighted_score:
|
|
1306
|
+
suggestion_score:
|
|
1307
|
+
preferred_viewer: The preferred route for viewing this content (ie: dashboards or dashboards-next)
|
|
1308
|
+
"""
|
|
1309
|
+
|
|
1310
|
+
can: Optional[MutableMapping[str, bool]] = None
|
|
1311
|
+
id: Optional[str] = None
|
|
1312
|
+
content_type: Optional[str] = None
|
|
1313
|
+
content_id: Optional[str] = None
|
|
1314
|
+
content_slug: Optional[str] = None
|
|
1315
|
+
title: Optional[str] = None
|
|
1316
|
+
description: Optional[str] = None
|
|
1317
|
+
last_viewed_at: Optional[datetime.datetime] = None
|
|
1318
|
+
user_id: Optional[str] = None
|
|
1319
|
+
user_full_name: Optional[str] = None
|
|
1320
|
+
is_scheduled: Optional[bool] = None
|
|
1321
|
+
favorite_count: Optional[int] = None
|
|
1322
|
+
view_count: Optional[int] = None
|
|
1323
|
+
favorite_id: Optional[str] = None
|
|
1324
|
+
weighted_score: Optional[float] = None
|
|
1325
|
+
group_weighted_score: Optional[float] = None
|
|
1326
|
+
suggestion_score: Optional[float] = None
|
|
1327
|
+
preferred_viewer: Optional[str] = None
|
|
1328
|
+
|
|
1329
|
+
def __init__(
|
|
1330
|
+
self,
|
|
1331
|
+
*,
|
|
1332
|
+
can: Optional[MutableMapping[str, bool]] = None,
|
|
1333
|
+
id: Optional[str] = None,
|
|
1334
|
+
content_type: Optional[str] = None,
|
|
1335
|
+
content_id: Optional[str] = None,
|
|
1336
|
+
content_slug: Optional[str] = None,
|
|
1337
|
+
title: Optional[str] = None,
|
|
1338
|
+
description: Optional[str] = None,
|
|
1339
|
+
last_viewed_at: Optional[datetime.datetime] = None,
|
|
1340
|
+
user_id: Optional[str] = None,
|
|
1341
|
+
user_full_name: Optional[str] = None,
|
|
1342
|
+
is_scheduled: Optional[bool] = None,
|
|
1343
|
+
favorite_count: Optional[int] = None,
|
|
1344
|
+
view_count: Optional[int] = None,
|
|
1345
|
+
favorite_id: Optional[str] = None,
|
|
1346
|
+
weighted_score: Optional[float] = None,
|
|
1347
|
+
group_weighted_score: Optional[float] = None,
|
|
1348
|
+
suggestion_score: Optional[float] = None,
|
|
1349
|
+
preferred_viewer: Optional[str] = None
|
|
1350
|
+
):
|
|
1351
|
+
self.can = can
|
|
1352
|
+
self.id = id
|
|
1353
|
+
self.content_type = content_type
|
|
1354
|
+
self.content_id = content_id
|
|
1355
|
+
self.content_slug = content_slug
|
|
1356
|
+
self.title = title
|
|
1357
|
+
self.description = description
|
|
1358
|
+
self.last_viewed_at = last_viewed_at
|
|
1359
|
+
self.user_id = user_id
|
|
1360
|
+
self.user_full_name = user_full_name
|
|
1361
|
+
self.is_scheduled = is_scheduled
|
|
1362
|
+
self.favorite_count = favorite_count
|
|
1363
|
+
self.view_count = view_count
|
|
1364
|
+
self.favorite_id = favorite_id
|
|
1365
|
+
self.weighted_score = weighted_score
|
|
1366
|
+
self.group_weighted_score = group_weighted_score
|
|
1367
|
+
self.suggestion_score = suggestion_score
|
|
1368
|
+
self.preferred_viewer = preferred_viewer
|
|
1369
|
+
|
|
1370
|
+
|
|
1286
1371
|
@attr.s(auto_attribs=True, init=False)
|
|
1287
1372
|
class ContentValidation(model.Model):
|
|
1288
1373
|
"""
|
|
@@ -10404,7 +10489,6 @@ class ScheduledPlan(model.Model):
|
|
|
10404
10489
|
crontab: Vixie-Style crontab specification when to run
|
|
10405
10490
|
datagroup: Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)
|
|
10406
10491
|
timezone: Timezone for interpreting the specified crontab (default is Looker instance timezone)
|
|
10407
|
-
query_id: Query id
|
|
10408
10492
|
scheduled_plan_destination: Scheduled plan destinations
|
|
10409
10493
|
run_once: Whether the plan in question should only be run once (usually for testing)
|
|
10410
10494
|
include_links: Whether links back to Looker should be included in this ScheduledPlan
|
|
@@ -10418,6 +10502,7 @@ class ScheduledPlan(model.Model):
|
|
|
10418
10502
|
color_theme: Color scheme of the dashboard if applicable
|
|
10419
10503
|
long_tables: Whether or not to expand table vis to full length
|
|
10420
10504
|
inline_table_width: The pixel width at which we render the inline table visualizations
|
|
10505
|
+
query_id: Query id
|
|
10421
10506
|
id: Unique Id
|
|
10422
10507
|
created_at: Date and time when ScheduledPlan was created
|
|
10423
10508
|
updated_at: Date and time when ScheduledPlan was last updated
|
|
@@ -10444,7 +10529,6 @@ class ScheduledPlan(model.Model):
|
|
|
10444
10529
|
crontab: Optional[str] = None
|
|
10445
10530
|
datagroup: Optional[str] = None
|
|
10446
10531
|
timezone: Optional[str] = None
|
|
10447
|
-
query_id: Optional[str] = None
|
|
10448
10532
|
scheduled_plan_destination: Optional[Sequence["ScheduledPlanDestination"]] = None
|
|
10449
10533
|
run_once: Optional[bool] = None
|
|
10450
10534
|
include_links: Optional[bool] = None
|
|
@@ -10458,6 +10542,7 @@ class ScheduledPlan(model.Model):
|
|
|
10458
10542
|
color_theme: Optional[str] = None
|
|
10459
10543
|
long_tables: Optional[bool] = None
|
|
10460
10544
|
inline_table_width: Optional[int] = None
|
|
10545
|
+
query_id: Optional[str] = None
|
|
10461
10546
|
id: Optional[str] = None
|
|
10462
10547
|
created_at: Optional[datetime.datetime] = None
|
|
10463
10548
|
updated_at: Optional[datetime.datetime] = None
|
|
@@ -10486,7 +10571,6 @@ class ScheduledPlan(model.Model):
|
|
|
10486
10571
|
crontab: Optional[str] = None,
|
|
10487
10572
|
datagroup: Optional[str] = None,
|
|
10488
10573
|
timezone: Optional[str] = None,
|
|
10489
|
-
query_id: Optional[str] = None,
|
|
10490
10574
|
scheduled_plan_destination: Optional[
|
|
10491
10575
|
Sequence["ScheduledPlanDestination"]
|
|
10492
10576
|
] = None,
|
|
@@ -10502,6 +10586,7 @@ class ScheduledPlan(model.Model):
|
|
|
10502
10586
|
color_theme: Optional[str] = None,
|
|
10503
10587
|
long_tables: Optional[bool] = None,
|
|
10504
10588
|
inline_table_width: Optional[int] = None,
|
|
10589
|
+
query_id: Optional[str] = None,
|
|
10505
10590
|
id: Optional[str] = None,
|
|
10506
10591
|
created_at: Optional[datetime.datetime] = None,
|
|
10507
10592
|
updated_at: Optional[datetime.datetime] = None,
|
|
@@ -10527,7 +10612,6 @@ class ScheduledPlan(model.Model):
|
|
|
10527
10612
|
self.crontab = crontab
|
|
10528
10613
|
self.datagroup = datagroup
|
|
10529
10614
|
self.timezone = timezone
|
|
10530
|
-
self.query_id = query_id
|
|
10531
10615
|
self.scheduled_plan_destination = scheduled_plan_destination
|
|
10532
10616
|
self.run_once = run_once
|
|
10533
10617
|
self.include_links = include_links
|
|
@@ -10541,6 +10625,7 @@ class ScheduledPlan(model.Model):
|
|
|
10541
10625
|
self.color_theme = color_theme
|
|
10542
10626
|
self.long_tables = long_tables
|
|
10543
10627
|
self.inline_table_width = inline_table_width
|
|
10628
|
+
self.query_id = query_id
|
|
10544
10629
|
self.id = id
|
|
10545
10630
|
self.created_at = created_at
|
|
10546
10631
|
self.updated_at = updated_at
|
|
@@ -14993,7 +15078,6 @@ class WriteScheduledPlan(model.Model):
|
|
|
14993
15078
|
crontab: Vixie-Style crontab specification when to run
|
|
14994
15079
|
datagroup: Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)
|
|
14995
15080
|
timezone: Timezone for interpreting the specified crontab (default is Looker instance timezone)
|
|
14996
|
-
query_id: Query id
|
|
14997
15081
|
scheduled_plan_destination: Scheduled plan destinations
|
|
14998
15082
|
run_once: Whether the plan in question should only be run once (usually for testing)
|
|
14999
15083
|
include_links: Whether links back to Looker should be included in this ScheduledPlan
|
|
@@ -15007,6 +15091,7 @@ class WriteScheduledPlan(model.Model):
|
|
|
15007
15091
|
color_theme: Color scheme of the dashboard if applicable
|
|
15008
15092
|
long_tables: Whether or not to expand table vis to full length
|
|
15009
15093
|
inline_table_width: The pixel width at which we render the inline table visualizations
|
|
15094
|
+
query_id: Query id
|
|
15010
15095
|
"""
|
|
15011
15096
|
|
|
15012
15097
|
name: Optional[str] = None
|
|
@@ -15025,7 +15110,6 @@ class WriteScheduledPlan(model.Model):
|
|
|
15025
15110
|
crontab: Optional[str] = None
|
|
15026
15111
|
datagroup: Optional[str] = None
|
|
15027
15112
|
timezone: Optional[str] = None
|
|
15028
|
-
query_id: Optional[str] = None
|
|
15029
15113
|
scheduled_plan_destination: Optional[Sequence["ScheduledPlanDestination"]] = None
|
|
15030
15114
|
run_once: Optional[bool] = None
|
|
15031
15115
|
include_links: Optional[bool] = None
|
|
@@ -15039,6 +15123,7 @@ class WriteScheduledPlan(model.Model):
|
|
|
15039
15123
|
color_theme: Optional[str] = None
|
|
15040
15124
|
long_tables: Optional[bool] = None
|
|
15041
15125
|
inline_table_width: Optional[int] = None
|
|
15126
|
+
query_id: Optional[str] = None
|
|
15042
15127
|
|
|
15043
15128
|
def __init__(
|
|
15044
15129
|
self,
|
|
@@ -15059,7 +15144,6 @@ class WriteScheduledPlan(model.Model):
|
|
|
15059
15144
|
crontab: Optional[str] = None,
|
|
15060
15145
|
datagroup: Optional[str] = None,
|
|
15061
15146
|
timezone: Optional[str] = None,
|
|
15062
|
-
query_id: Optional[str] = None,
|
|
15063
15147
|
scheduled_plan_destination: Optional[
|
|
15064
15148
|
Sequence["ScheduledPlanDestination"]
|
|
15065
15149
|
] = None,
|
|
@@ -15074,7 +15158,8 @@ class WriteScheduledPlan(model.Model):
|
|
|
15074
15158
|
embed: Optional[bool] = None,
|
|
15075
15159
|
color_theme: Optional[str] = None,
|
|
15076
15160
|
long_tables: Optional[bool] = None,
|
|
15077
|
-
inline_table_width: Optional[int] = None
|
|
15161
|
+
inline_table_width: Optional[int] = None,
|
|
15162
|
+
query_id: Optional[str] = None
|
|
15078
15163
|
):
|
|
15079
15164
|
self.name = name
|
|
15080
15165
|
self.user_id = user_id
|
|
@@ -15092,7 +15177,6 @@ class WriteScheduledPlan(model.Model):
|
|
|
15092
15177
|
self.crontab = crontab
|
|
15093
15178
|
self.datagroup = datagroup
|
|
15094
15179
|
self.timezone = timezone
|
|
15095
|
-
self.query_id = query_id
|
|
15096
15180
|
self.scheduled_plan_destination = scheduled_plan_destination
|
|
15097
15181
|
self.run_once = run_once
|
|
15098
15182
|
self.include_links = include_links
|
|
@@ -15106,6 +15190,7 @@ class WriteScheduledPlan(model.Model):
|
|
|
15106
15190
|
self.color_theme = color_theme
|
|
15107
15191
|
self.long_tables = long_tables
|
|
15108
15192
|
self.inline_table_width = inline_table_width
|
|
15193
|
+
self.query_id = query_id
|
|
15109
15194
|
|
|
15110
15195
|
|
|
15111
15196
|
@attr.s(auto_attribs=True, init=False)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|