looker-sdk 24.14.0__py3-none-any.whl → 24.16.1__py3-none-any.whl

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.
@@ -21,7 +21,7 @@
21
21
  # SOFTWARE.
22
22
  #
23
23
 
24
- # 465 API methods
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
- # 342 API models: 259 Spec, 0 Request, 61 Write, 22 Enum
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)
@@ -20,5 +20,5 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  # THE SOFTWARE.
22
22
 
23
- sdk_version = "24.14"
23
+ sdk_version = "24.16"
24
24
  environment_prefix = "LOOKERSDK"
looker_sdk/version.py CHANGED
@@ -20,4 +20,4 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  # THE SOFTWARE.
22
22
 
23
- __version__ = "24.14.0"
23
+ __version__ = "24.16.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: looker-sdk
3
- Version: 24.14.0
3
+ Version: 24.16.1
4
4
  Summary: Looker REST API
5
5
  Home-page: https://pypi.python.org/pypi/looker_sdk
6
6
  Author: Looker Data Sciences, Inc.
@@ -1,7 +1,7 @@
1
1
  looker_sdk/__init__.py,sha256=0UOw2v-BP1bNoBIIm-BnyKUpGQB3Zx-JZRmpYyLiIuY,2589
2
2
  looker_sdk/error.py,sha256=XTKuy1zEyhSVd-VCWHKB2zVjj0X7VUzVwq9y9L22Bo0,4941
3
3
  looker_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- looker_sdk/version.py,sha256=xKoiFvhrKukMVOx73WVs77evfQzvleWoC51nmBNNgW4,1156
4
+ looker_sdk/version.py,sha256=vR43d2PM8HQo3DQvTBSGOtt8Uzo1PIXl7PmaEDpMuks,1156
5
5
  looker_sdk/rtl/__init__.py,sha256=hgj6CO_Du2XcJ4bRYbhaVS3dvLxjCqPQDR8KwD9IPTQ,1132
6
6
  looker_sdk/rtl/api_methods.py,sha256=J-dm7UMyJajsJDCB0JMpGUmp80I8oPMs7cggdIaCWng,8862
7
7
  looker_sdk/rtl/api_settings.py,sha256=0QbmNhfgjBJNnr1CNEMxCHoiu908jT8amAtSAha1xS8,6953
@@ -14,10 +14,10 @@ looker_sdk/rtl/requests_transport.py,sha256=2lckuJyjeySAuAn7v-RA_xTjjWe53uCCLSWg
14
14
  looker_sdk/rtl/serialize.py,sha256=Arm26aGLOhW-uUW4qgV1tTna83A3gNMYcF9YwRvf0gQ,4418
15
15
  looker_sdk/rtl/transport.py,sha256=zNCaGmmJBtF87iLS6xtSTwiyEXP0BDdMJafPn0_tIrk,3911
16
16
  looker_sdk/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- looker_sdk/sdk/constants.py,sha256=Z7fE8o6kYxsDWYe0hakvzNWLHNmXAbUG4KffVQ6JjpA,1187
17
+ looker_sdk/sdk/constants.py,sha256=sMC86j8K5SvdZmZNYYLyNqfxsgEp6su_U04OQt77Jo8,1187
18
18
  looker_sdk/sdk/api40/__init__.py,sha256=Dvx1t9vDBvgEl-p1eeP7ebEC6Q6wb6rASPi7nx3z7dg,18
19
- looker_sdk/sdk/api40/methods.py,sha256=mRuV_yh488uABb7Ed1Zj-66UfybpoygqOzMEqj3_hGo,513393
20
- looker_sdk/sdk/api40/models.py,sha256=V3LjZW9fr65Zr9_iphwJuEoJRWeXjfZLypl-9bA4dTw,632420
19
+ looker_sdk/sdk/api40/methods.py,sha256=B3XN9ITdIidxsSJju_zhqJDsLKfV-sSHw4pMT0Y1_BY,515202
20
+ looker_sdk/sdk/api40/models.py,sha256=2XvnDQeDX7i_0bQlIP1LtUD7dKXF9GpCecvSjIw9Opg,635709
21
21
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  tests/conftest.py,sha256=ZLymw2rfMVus_CRBbbcxpK3_rEpMJRMQX9A5m2aQgQs,3895
23
23
  tests/integration/__init__.py,sha256=K4tvUu8CgFRwtDhDNixHKDDb8uubXgevQBq8JmZvf8Y,63
@@ -31,8 +31,8 @@ tests/rtl/test_auth_token.py,sha256=Ep4u0ushHqKiIkGgw-XVn1lSzPeH6pVmDB2bw-MXNAo,
31
31
  tests/rtl/test_requests_transport.py,sha256=mSsxudpAkKe-uSVOIzDrV0XCFlj_ACt6T1yzbUbuwG0,5442
32
32
  tests/rtl/test_serialize.py,sha256=1SC8jigZFFL3mrU2oSTnc2nbDxXve224_r3GaxEeU90,25917
33
33
  tests/rtl/test_transport.py,sha256=tI83LYOeuWEmkngXyRqMjW-pv-ipLPLj4t0hGD8zqL8,1555
34
- looker_sdk-24.14.0.dist-info/LICENSE.txt,sha256=N4Rmmbuo5EryYSCXcvjuXL1ZXwyXanRzuGP-dJzwsoE,1094
35
- looker_sdk-24.14.0.dist-info/METADATA,sha256=lnaM4LhRep9Q3-3ovGsI6s2cha9PtfBqi6JKLXu7Lt0,7022
36
- looker_sdk-24.14.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
37
- looker_sdk-24.14.0.dist-info/top_level.txt,sha256=tDPNJRQM_A_Oncxlgxwvnzq7hZDWZaadt_nR8DmORTI,17
38
- looker_sdk-24.14.0.dist-info/RECORD,,
34
+ looker_sdk-24.16.1.dist-info/LICENSE.txt,sha256=N4Rmmbuo5EryYSCXcvjuXL1ZXwyXanRzuGP-dJzwsoE,1094
35
+ looker_sdk-24.16.1.dist-info/METADATA,sha256=ZnP4b0JgUz0CGrEhQPIc6gciBOAi473Fy85Y2C152g4,7022
36
+ looker_sdk-24.16.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
37
+ looker_sdk-24.16.1.dist-info/top_level.txt,sha256=tDPNJRQM_A_Oncxlgxwvnzq7hZDWZaadt_nR8DmORTI,17
38
+ looker_sdk-24.16.1.dist-info/RECORD,,