looker-sdk 25.16.0__py3-none-any.whl → 25.20.0__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
- # 472 API methods
24
+ # 476 API methods
25
25
 
26
26
 
27
27
  # NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0
@@ -417,7 +417,10 @@ class Looker40SDK(api_methods.APIMethods):
417
417
  #
418
418
  # See 'login' for more detail on the access token and how to use it.
419
419
  #
420
- # Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
420
+ # In [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview) this call will be denied unless all of the following criteria are met:
421
+ # 1. The calling user is an [API-only Service Account](https://cloud.google.com/looker/docs/looker-core-user-management#creating_an_api-only_service_account) with the Admin role
422
+ # 2. The target user is an [Embed User type](https://cloud.google.com/looker/docs/r/single-sign-on-embedding)
423
+ # Regular user types can not be impersonated in [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview). If your application needs to call the API for these users, use OAuth authentication instead.
421
424
  #
422
425
  # POST /login/{user_id} -> mdls.AccessToken
423
426
  def login_user(
@@ -5025,6 +5028,76 @@ class Looker40SDK(api_methods.APIMethods):
5025
5028
  )
5026
5029
  return response
5027
5030
 
5031
+ # ### Search LookML Dashboards
5032
+ #
5033
+ # Returns an array of **LookML Dashboard** objects that match the specified search criteria.
5034
+ # Note, this only returns LookML Dashboards in production.
5035
+ #
5036
+ # If multiple search params are given and `filter_or` is FALSE or not specified,
5037
+ # search params are combined in a logical AND operation.
5038
+ # Only rows that match *all* search param criteria will be returned.
5039
+ #
5040
+ # If `filter_or` is TRUE, multiple search params are combined in a logical OR operation.
5041
+ # Results will include rows that match **any** of the search criteria.
5042
+ #
5043
+ # String search params use case-insensitive matching.
5044
+ # String search params can contain `%` and '_' as SQL LIKE pattern match wildcard expressions.
5045
+ # example="dan%" will match "danger" and "Danzig" but not "David"
5046
+ # example="D_m%" will match "Damage" and "dump"
5047
+ #
5048
+ # Integer search params can accept a single value or a comma separated list of values. The multiple
5049
+ # values will be combined under a logical OR operation - results will match at least one of
5050
+ # the given values.
5051
+ #
5052
+ # Most search params can accept "IS NULL" and "NOT NULL" as special expressions to match
5053
+ # or exclude (respectively) rows where the column is null.
5054
+ #
5055
+ # Boolean search params accept only "true" and "false" as values.
5056
+ #
5057
+ #
5058
+ # The parameters `limit`, and `offset` are recommended for fetching results in page-size chunks.
5059
+ #
5060
+ # Get a **single LookML dashboard** by id with [dashboard_lookml()](#!/Dashboard/dashboard_lookml)
5061
+ #
5062
+ # GET /dashboards/lookml/search -> mdls.DashboardLookml
5063
+ def search_lookml_dashboards(
5064
+ self,
5065
+ # Filter on a particular folder.
5066
+ folder_id: Optional[str] = None,
5067
+ # Match LookML Dashboard title.
5068
+ title: Optional[str] = None,
5069
+ # Filter on a content favorite id.
5070
+ content_favorite_id: Optional[str] = None,
5071
+ # Requested fields.
5072
+ fields: Optional[str] = None,
5073
+ # Number of results to return. (used with offset and takes priority over page and per_page)
5074
+ limit: Optional[int] = None,
5075
+ # Number of results to skip before returning any. (used with limit and takes priority over page and per_page)
5076
+ offset: Optional[int] = None,
5077
+ # One or more fields to sort by. Sortable fields: [:title, :id, :folder_id, :content_favorite_id, :content_metadata_id]
5078
+ sorts: Optional[str] = None,
5079
+ transport_options: Optional[transport.TransportOptions] = None,
5080
+ ) -> mdls.DashboardLookml:
5081
+ """Search LookML Dashboards"""
5082
+ response = cast(
5083
+ mdls.DashboardLookml,
5084
+ self.get(
5085
+ path="/dashboards/lookml/search",
5086
+ structure=mdls.DashboardLookml,
5087
+ query_params={
5088
+ "folder_id": folder_id,
5089
+ "title": title,
5090
+ "content_favorite_id": content_favorite_id,
5091
+ "fields": fields,
5092
+ "limit": limit,
5093
+ "offset": offset,
5094
+ "sorts": sorts,
5095
+ },
5096
+ transport_options=transport_options,
5097
+ ),
5098
+ )
5099
+ return response
5100
+
5028
5101
  # ### Get lookml of a UDD
5029
5102
  #
5030
5103
  # Returns a JSON object that contains the dashboard id and the full lookml
@@ -6981,6 +7054,30 @@ class Looker40SDK(api_methods.APIMethods):
6981
7054
  )
6982
7055
  return response
6983
7056
 
7057
+ # Checks to see if the user is able to connect to their integration hub
7058
+ #
7059
+ # GET /integration_hubs/{integration_hub_id}/health -> mdls.IntegrationHubHealthResult
7060
+ def get_integration_hub_health(
7061
+ self,
7062
+ # Id of integration_hub
7063
+ integration_hub_id: str,
7064
+ # Requested fields.
7065
+ fields: Optional[str] = None,
7066
+ transport_options: Optional[transport.TransportOptions] = None,
7067
+ ) -> mdls.IntegrationHubHealthResult:
7068
+ """Check the health of Integration Hub"""
7069
+ integration_hub_id = self.encode_path_param(integration_hub_id)
7070
+ response = cast(
7071
+ mdls.IntegrationHubHealthResult,
7072
+ self.get(
7073
+ path=f"/integration_hubs/{integration_hub_id}/health",
7074
+ structure=mdls.IntegrationHubHealthResult,
7075
+ query_params={"fields": fields},
7076
+ transport_options=transport_options,
7077
+ ),
7078
+ )
7079
+ return response
7080
+
6984
7081
  # Accepts the legal agreement for a given integration hub. This only works for integration hubs that have legal_agreement_required set to true and legal_agreement_signed set to false.
6985
7082
  #
6986
7083
  # POST /integration_hubs/{integration_hub_id}/accept_legal_agreement -> mdls.IntegrationHub
@@ -7540,6 +7637,8 @@ class Looker40SDK(api_methods.APIMethods):
7540
7637
  exclude_hidden: Optional[bool] = None,
7541
7638
  # Whether or not to include built-in models such as System Activity (Defaults to false)
7542
7639
  include_internal: Optional[bool] = None,
7640
+ # Whether or not to include self service models (Defaults to false)
7641
+ include_self_service: Optional[bool] = None,
7543
7642
  transport_options: Optional[transport.TransportOptions] = None,
7544
7643
  ) -> Sequence[mdls.LookmlModel]:
7545
7644
  """Get All LookML Models"""
@@ -7555,6 +7654,7 @@ class Looker40SDK(api_methods.APIMethods):
7555
7654
  "exclude_empty": exclude_empty,
7556
7655
  "exclude_hidden": exclude_hidden,
7557
7656
  "include_internal": include_internal,
7657
+ "include_self_service": include_self_service,
7558
7658
  },
7559
7659
  transport_options=transport_options,
7560
7660
  ),
@@ -10348,6 +10448,8 @@ class Looker40SDK(api_methods.APIMethods):
10348
10448
  fields: Optional[str] = None,
10349
10449
  # Optional list of ids to get specific roles.
10350
10450
  ids: Optional[mdls.DelimSequence[str]] = None,
10451
+ # Get all Looker support roles.
10452
+ get_all_support_roles: Optional[bool] = None,
10351
10453
  transport_options: Optional[transport.TransportOptions] = None,
10352
10454
  ) -> Sequence[mdls.Role]:
10353
10455
  """Get All Roles"""
@@ -10356,7 +10458,11 @@ class Looker40SDK(api_methods.APIMethods):
10356
10458
  self.get(
10357
10459
  path="/roles",
10358
10460
  structure=Sequence[mdls.Role],
10359
- query_params={"fields": fields, "ids": ids},
10461
+ query_params={
10462
+ "fields": fields,
10463
+ "ids": ids,
10464
+ "get_all_support_roles": get_all_support_roles,
10465
+ },
10360
10466
  transport_options=transport_options,
10361
10467
  ),
10362
10468
  )
@@ -10426,8 +10532,6 @@ class Looker40SDK(api_methods.APIMethods):
10426
10532
  built_in: Optional[bool] = None,
10427
10533
  # Combine given search criteria in a boolean OR expression.
10428
10534
  filter_or: Optional[bool] = None,
10429
- # Search for Looker support roles.
10430
- is_support_role: Optional[bool] = None,
10431
10535
  transport_options: Optional[transport.TransportOptions] = None,
10432
10536
  ) -> Sequence[mdls.Role]:
10433
10537
  """Search Roles"""
@@ -10445,7 +10549,6 @@ class Looker40SDK(api_methods.APIMethods):
10445
10549
  "name": name,
10446
10550
  "built_in": built_in,
10447
10551
  "filter_or": filter_or,
10448
- "is_support_role": is_support_role,
10449
10552
  },
10450
10553
  transport_options=transport_options,
10451
10554
  ),
@@ -12011,13 +12114,13 @@ class Looker40SDK(api_methods.APIMethods):
12011
12114
  first_name: Optional[str] = None,
12012
12115
  # Match Last name.
12013
12116
  last_name: Optional[str] = None,
12014
- # Search for user accounts associated with Looker employees
12117
+ # Search for user accounts associated with Looker employees. Availability of this filter is limited to users with permission to view complete user details.
12015
12118
  verified_looker_employee: Optional[bool] = None,
12016
12119
  # Search for only embed users
12017
12120
  embed_user: Optional[bool] = None,
12018
- # Search for the user with this email address
12121
+ # Search for the user with this email address. Availability of this filter is limited to users with permission to view complete user details.
12019
12122
  email: Optional[str] = None,
12020
- # Search for disabled user accounts
12123
+ # Search for disabled user accounts. Availability of this filter is limited to users with permission to view complete user details.
12021
12124
  is_disabled: Optional[bool] = None,
12022
12125
  # Combine given search criteria in a boolean OR expression
12023
12126
  filter_or: Optional[bool] = None,
@@ -12025,8 +12128,10 @@ class Looker40SDK(api_methods.APIMethods):
12025
12128
  content_metadata_id: Optional[str] = None,
12026
12129
  # Search for users who are direct members of this group
12027
12130
  group_id: Optional[str] = None,
12028
- # Search for users who can manage API3 credentials
12131
+ # Search for users who can manage API3 credentials. This field may only be applicable for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview). Availability of this filter is limited to users with permission to view complete user details. This is an experimental feature and may not yet be available on your instance.
12029
12132
  can_manage_api3_creds: Optional[bool] = None,
12133
+ # Search for service account users. Send true to get only service accounts, or false to get all other types of users. This field may only be applicable for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview). Availability of this filter is limited to users with permission to view complete user details. This is an experimental feature and may not yet be available on your instance.
12134
+ is_service_account: Optional[bool] = None,
12030
12135
  transport_options: Optional[transport.TransportOptions] = None,
12031
12136
  ) -> Sequence[mdls.User]:
12032
12137
  """Search Users"""
@@ -12053,6 +12158,7 @@ class Looker40SDK(api_methods.APIMethods):
12053
12158
  "content_metadata_id": content_metadata_id,
12054
12159
  "group_id": group_id,
12055
12160
  "can_manage_api3_creds": can_manage_api3_creds,
12161
+ "is_service_account": is_service_account,
12056
12162
  },
12057
12163
  transport_options=transport_options,
12058
12164
  ),
@@ -13270,6 +13376,61 @@ class Looker40SDK(api_methods.APIMethods):
13270
13376
  )
13271
13377
  return response
13272
13378
 
13379
+ # ### Create a service account with the specified information. This action is restricted to Looker admins.
13380
+ #
13381
+ # Calls to this endpoint may only be available for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
13382
+ #
13383
+ # POST /users/service_accounts -> mdls.ServiceAccount
13384
+ def create_service_account(
13385
+ self,
13386
+ body: mdls.WriteServiceAccount,
13387
+ # Requested fields.
13388
+ fields: Optional[str] = None,
13389
+ transport_options: Optional[transport.TransportOptions] = None,
13390
+ ) -> mdls.ServiceAccount:
13391
+ """Create Service Account"""
13392
+ response = cast(
13393
+ mdls.ServiceAccount,
13394
+ self.post(
13395
+ path="/users/service_accounts",
13396
+ structure=mdls.ServiceAccount,
13397
+ query_params={"fields": fields},
13398
+ body=body,
13399
+ transport_options=transport_options,
13400
+ ),
13401
+ )
13402
+ return response
13403
+
13404
+ # ### Update information for a specific service account. This action is restricted to Looker admins.
13405
+ #
13406
+ # This endpoint is exclusively for updating service accounts. To update a regular user, please use the `PATCH /api/3.x/users/:user_id` endpoint instead.
13407
+ #
13408
+ # Calls to this endpoint may only be available for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
13409
+ #
13410
+ # PATCH /users/service_accounts/{user_id} -> mdls.ServiceAccount
13411
+ def update_service_account(
13412
+ self,
13413
+ # Id of service account
13414
+ user_id: str,
13415
+ body: mdls.WriteServiceAccount,
13416
+ # Requested fields.
13417
+ fields: Optional[str] = None,
13418
+ transport_options: Optional[transport.TransportOptions] = None,
13419
+ ) -> mdls.ServiceAccount:
13420
+ """Update Service Account"""
13421
+ user_id = self.encode_path_param(user_id)
13422
+ response = cast(
13423
+ mdls.ServiceAccount,
13424
+ self.patch(
13425
+ path=f"/users/service_accounts/{user_id}",
13426
+ structure=mdls.ServiceAccount,
13427
+ query_params={"fields": fields},
13428
+ body=body,
13429
+ transport_options=transport_options,
13430
+ ),
13431
+ )
13432
+ return response
13433
+
13273
13434
  # endregion
13274
13435
 
13275
13436
  # region UserAttribute: Manage User Attributes