looker-sdk 25.18.0__tar.gz → 26.0.0__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-25.18.0 → looker_sdk-26.0.0}/PKG-INFO +16 -2
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/sdk/api40/methods.py +107 -63
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/sdk/api40/models.py +361 -76
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/sdk/constants.py +1 -1
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/version.py +1 -1
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk.egg-info/PKG-INFO +17 -3
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/LICENSE.txt +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/MANIFEST.in +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/README.rst +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/error.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/py.typed +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/api_methods.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/api_settings.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/auth_session.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/auth_token.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/constants.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/hooks.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/model.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/requests_transport.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/serialize.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/rtl/transport.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/sdk/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk/sdk/api40/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk.egg-info/SOURCES.txt +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk.egg-info/dependency_links.txt +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk.egg-info/requires.txt +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/looker_sdk.egg-info/top_level.txt +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/setup.cfg +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/setup.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/integration/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/integration/test_methods.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/integration/test_netrc.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/__init__.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_api_methods.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_api_settings.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_auth_session.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_auth_token.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_requests_transport.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_serialize.py +0 -0
- {looker_sdk-25.18.0 → looker_sdk-26.0.0}/tests/rtl/test_transport.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: looker_sdk
|
|
3
|
-
Version:
|
|
3
|
+
Version: 26.0.0
|
|
4
4
|
Summary: Looker REST API
|
|
5
5
|
Home-page: https://pypi.python.org/pypi/looker_sdk
|
|
6
6
|
Author: Looker Data Sciences, Inc.
|
|
@@ -9,6 +9,20 @@ Keywords: Looker,Looker API,looker_sdk,Looker API 4.0
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/x-rst
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
|
+
Requires-Dist: requests>=2.22
|
|
13
|
+
Requires-Dist: typing-extensions>=4.1.1
|
|
14
|
+
Requires-Dist: attrs>=20.1.0; python_version >= "3.7"
|
|
15
|
+
Requires-Dist: cattrs>=1.3; python_version >= "3.7"
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: requires-python
|
|
25
|
+
Dynamic: summary
|
|
12
26
|
|
|
13
27
|
===========
|
|
14
28
|
Looker SDK
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
#
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# 478 API methods
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
# NOTE: Do not edit this file generated by Looker SDK Codegen for API 4.0
|
|
@@ -3779,6 +3779,29 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
3779
3779
|
)
|
|
3780
3780
|
return response
|
|
3781
3781
|
|
|
3782
|
+
# ### Delete an OAuth Application.
|
|
3783
|
+
#
|
|
3784
|
+
# This is an OAuth Application which Looker uses to access external systems.
|
|
3785
|
+
#
|
|
3786
|
+
# DELETE /external_oauth_applications/{client_id} -> str
|
|
3787
|
+
def delete_external_oauth_application(
|
|
3788
|
+
self,
|
|
3789
|
+
# The client ID of the OAuth App to delete
|
|
3790
|
+
client_id: str,
|
|
3791
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
3792
|
+
) -> str:
|
|
3793
|
+
"""Delete External OAuth Application"""
|
|
3794
|
+
client_id = self.encode_path_param(client_id)
|
|
3795
|
+
response = cast(
|
|
3796
|
+
str,
|
|
3797
|
+
self.delete(
|
|
3798
|
+
path=f"/external_oauth_applications/{client_id}",
|
|
3799
|
+
structure=str,
|
|
3800
|
+
transport_options=transport_options,
|
|
3801
|
+
),
|
|
3802
|
+
)
|
|
3803
|
+
return response
|
|
3804
|
+
|
|
3782
3805
|
# ### Create OAuth User state.
|
|
3783
3806
|
#
|
|
3784
3807
|
# POST /external_oauth_applications/user_state -> mdls.CreateOAuthApplicationUserStateResponse
|
|
@@ -4115,6 +4138,8 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
4115
4138
|
look_id: Optional[str] = None,
|
|
4116
4139
|
# Match board id(s). To create a list of multiple ids, use commas as separators
|
|
4117
4140
|
board_id: Optional[str] = None,
|
|
4141
|
+
# Match lookml dashboard id(s). To create a list of multiple ids, use commas as separators
|
|
4142
|
+
lookml_dashboard_id: Optional[str] = None,
|
|
4118
4143
|
# If true, and board_id is provided, returns the content favorites for all items on the board. If false, returns the content favorite for the board itself.
|
|
4119
4144
|
include_board_items: Optional[bool] = None,
|
|
4120
4145
|
# Number of results to return. (used with offset)
|
|
@@ -4142,6 +4167,7 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
4142
4167
|
"dashboard_id": dashboard_id,
|
|
4143
4168
|
"look_id": look_id,
|
|
4144
4169
|
"board_id": board_id,
|
|
4170
|
+
"lookml_dashboard_id": lookml_dashboard_id,
|
|
4145
4171
|
"include_board_items": include_board_items,
|
|
4146
4172
|
"limit": limit,
|
|
4147
4173
|
"offset": offset,
|
|
@@ -7637,6 +7663,8 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
7637
7663
|
exclude_hidden: Optional[bool] = None,
|
|
7638
7664
|
# Whether or not to include built-in models such as System Activity (Defaults to false)
|
|
7639
7665
|
include_internal: Optional[bool] = None,
|
|
7666
|
+
# Whether or not to include self service models (Defaults to false)
|
|
7667
|
+
include_self_service: Optional[bool] = None,
|
|
7640
7668
|
transport_options: Optional[transport.TransportOptions] = None,
|
|
7641
7669
|
) -> Sequence[mdls.LookmlModel]:
|
|
7642
7670
|
"""Get All LookML Models"""
|
|
@@ -7652,6 +7680,7 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
7652
7680
|
"exclude_empty": exclude_empty,
|
|
7653
7681
|
"exclude_hidden": exclude_hidden,
|
|
7654
7682
|
"include_internal": include_internal,
|
|
7683
|
+
"include_self_service": include_self_service,
|
|
7655
7684
|
},
|
|
7656
7685
|
transport_options=transport_options,
|
|
7657
7686
|
),
|
|
@@ -8533,6 +8562,10 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
8533
8562
|
# metadata. The remote git repository MUST be configured with the Looker-generated deploy
|
|
8534
8563
|
# key for this project prior to setting the project's `git_remote_url`.
|
|
8535
8564
|
#
|
|
8565
|
+
# Note that Looker will validate the git connection when the `git_remote_url` is modified.
|
|
8566
|
+
# If Looker cannot connect to the remote repository (e.g. because the deploy key has not
|
|
8567
|
+
# been added), the update will fail with a 400 Bad Request error.
|
|
8568
|
+
#
|
|
8536
8569
|
# To set up a Looker project with a git repository residing on the Looker server (a 'bare' git repo):
|
|
8537
8570
|
#
|
|
8538
8571
|
# 1. Call `update_session` to select the 'dev' workspace.
|
|
@@ -12127,7 +12160,7 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12127
12160
|
group_id: Optional[str] = None,
|
|
12128
12161
|
# 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.
|
|
12129
12162
|
can_manage_api3_creds: Optional[bool] = None,
|
|
12130
|
-
# Search for service account users. Send true to get only service accounts, or false to get all other types of users.
|
|
12163
|
+
# Search for service account users. Send true to get only service accounts, or false to get all other types of users. Availability of this filter is limited to users with permission to view complete user details.
|
|
12131
12164
|
is_service_account: Optional[bool] = None,
|
|
12132
12165
|
transport_options: Optional[transport.TransportOptions] = None,
|
|
12133
12166
|
) -> Sequence[mdls.User]:
|
|
@@ -12282,7 +12315,19 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12282
12315
|
|
|
12283
12316
|
# ### Delete the user with a specific id.
|
|
12284
12317
|
#
|
|
12285
|
-
# **
|
|
12318
|
+
# **This action cannot be undone.** If you want to keep the user's content, we recommend disabling their accounts instead of deleting them.
|
|
12319
|
+
#
|
|
12320
|
+
# Deletion will have the following impact:
|
|
12321
|
+
# * Their reports, Looks and dashboards will be moved to Trash.
|
|
12322
|
+
# * Any public URLs owned by them will no longer work.
|
|
12323
|
+
# * Schedules created by the users or that use their content will be deleted.
|
|
12324
|
+
# * Alerts will continue to run, but will not be visible or editable from the dashboard.
|
|
12325
|
+
#
|
|
12326
|
+
# The user cannot delete themselves.
|
|
12327
|
+
# The last administrator user cannot be deleted.
|
|
12328
|
+
#
|
|
12329
|
+
# Deleting Service Accounts via this endpoint is deprecated and can be blocked in future versions.
|
|
12330
|
+
# Please use the dedicated `delete_service_account` endpoint.
|
|
12286
12331
|
#
|
|
12287
12332
|
# DELETE /users/{user_id} -> str
|
|
12288
12333
|
def delete_user(
|
|
@@ -12359,6 +12404,65 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12359
12404
|
)
|
|
12360
12405
|
return response
|
|
12361
12406
|
|
|
12407
|
+
# ### Update information for a specific service account. This action is restricted to Looker admins.
|
|
12408
|
+
#
|
|
12409
|
+
# 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.
|
|
12410
|
+
#
|
|
12411
|
+
# PATCH /users/service_accounts/{user_id} -> mdls.ServiceAccount
|
|
12412
|
+
def update_service_account(
|
|
12413
|
+
self,
|
|
12414
|
+
# Id of service account
|
|
12415
|
+
user_id: str,
|
|
12416
|
+
body: mdls.WriteServiceAccount,
|
|
12417
|
+
# Requested fields.
|
|
12418
|
+
fields: Optional[str] = None,
|
|
12419
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
12420
|
+
) -> mdls.ServiceAccount:
|
|
12421
|
+
"""Update Service Account"""
|
|
12422
|
+
user_id = self.encode_path_param(user_id)
|
|
12423
|
+
response = cast(
|
|
12424
|
+
mdls.ServiceAccount,
|
|
12425
|
+
self.patch(
|
|
12426
|
+
path=f"/users/service_accounts/{user_id}",
|
|
12427
|
+
structure=mdls.ServiceAccount,
|
|
12428
|
+
query_params={"fields": fields},
|
|
12429
|
+
body=body,
|
|
12430
|
+
transport_options=transport_options,
|
|
12431
|
+
),
|
|
12432
|
+
)
|
|
12433
|
+
return response
|
|
12434
|
+
|
|
12435
|
+
# ### Delete the service account with a specific id.
|
|
12436
|
+
#
|
|
12437
|
+
# **This action cannot be undone.** If you want to keep the service account's content, we recommend disabling their accounts instead of deleting them.
|
|
12438
|
+
#
|
|
12439
|
+
# Deletion will have the following impact:
|
|
12440
|
+
# * Their reports, Looks and dashboards will be moved to Trash.
|
|
12441
|
+
# * Any public URLs owned by them will no longer work.
|
|
12442
|
+
# * Schedules created by the service account or that use their content will be deleted.
|
|
12443
|
+
# * Alerts will continue to run, but will not be visible or editable from the dashboard.
|
|
12444
|
+
#
|
|
12445
|
+
# The service account cannot delete itself.
|
|
12446
|
+
#
|
|
12447
|
+
# DELETE /users/service_accounts/{user_id} -> str
|
|
12448
|
+
def delete_service_account(
|
|
12449
|
+
self,
|
|
12450
|
+
# Id of service account user
|
|
12451
|
+
user_id: str,
|
|
12452
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
12453
|
+
) -> str:
|
|
12454
|
+
"""Delete Service Account"""
|
|
12455
|
+
user_id = self.encode_path_param(user_id)
|
|
12456
|
+
response = cast(
|
|
12457
|
+
str,
|
|
12458
|
+
self.delete(
|
|
12459
|
+
path=f"/users/service_accounts/{user_id}",
|
|
12460
|
+
structure=str,
|
|
12461
|
+
transport_options=transport_options,
|
|
12462
|
+
),
|
|
12463
|
+
)
|
|
12464
|
+
return response
|
|
12465
|
+
|
|
12362
12466
|
# ### Email/password login information for the specified user.
|
|
12363
12467
|
#
|
|
12364
12468
|
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
@@ -12593,8 +12697,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12593
12697
|
|
|
12594
12698
|
# ### Google authentication login information for the specified user.
|
|
12595
12699
|
#
|
|
12596
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12597
|
-
#
|
|
12598
12700
|
# GET /users/{user_id}/credentials_google -> mdls.CredentialsGoogle
|
|
12599
12701
|
def user_credentials_google(
|
|
12600
12702
|
self,
|
|
@@ -12619,8 +12721,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12619
12721
|
|
|
12620
12722
|
# ### Google authentication login information for the specified user.
|
|
12621
12723
|
#
|
|
12622
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12623
|
-
#
|
|
12624
12724
|
# DELETE /users/{user_id}/credentials_google -> str
|
|
12625
12725
|
def delete_user_credentials_google(
|
|
12626
12726
|
self,
|
|
@@ -12642,8 +12742,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12642
12742
|
|
|
12643
12743
|
# ### Saml authentication login information for the specified user.
|
|
12644
12744
|
#
|
|
12645
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12646
|
-
#
|
|
12647
12745
|
# GET /users/{user_id}/credentials_saml -> mdls.CredentialsSaml
|
|
12648
12746
|
def user_credentials_saml(
|
|
12649
12747
|
self,
|
|
@@ -12668,8 +12766,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12668
12766
|
|
|
12669
12767
|
# ### Saml authentication login information for the specified user.
|
|
12670
12768
|
#
|
|
12671
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12672
|
-
#
|
|
12673
12769
|
# DELETE /users/{user_id}/credentials_saml -> str
|
|
12674
12770
|
def delete_user_credentials_saml(
|
|
12675
12771
|
self,
|
|
@@ -12691,8 +12787,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12691
12787
|
|
|
12692
12788
|
# ### OpenID Connect (OIDC) authentication login information for the specified user.
|
|
12693
12789
|
#
|
|
12694
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12695
|
-
#
|
|
12696
12790
|
# GET /users/{user_id}/credentials_oidc -> mdls.CredentialsOIDC
|
|
12697
12791
|
def user_credentials_oidc(
|
|
12698
12792
|
self,
|
|
@@ -12717,8 +12811,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12717
12811
|
|
|
12718
12812
|
# ### OpenID Connect (OIDC) authentication login information for the specified user.
|
|
12719
12813
|
#
|
|
12720
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12721
|
-
#
|
|
12722
12814
|
# DELETE /users/{user_id}/credentials_oidc -> str
|
|
12723
12815
|
def delete_user_credentials_oidc(
|
|
12724
12816
|
self,
|
|
@@ -12740,8 +12832,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12740
12832
|
|
|
12741
12833
|
# ### API login information for the specified user. This is for the newer API keys that can be added for any user.
|
|
12742
12834
|
#
|
|
12743
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12744
|
-
#
|
|
12745
12835
|
# GET /users/{user_id}/credentials_api3/{credentials_api3_id} -> mdls.CredentialsApi3
|
|
12746
12836
|
def user_credentials_api3(
|
|
12747
12837
|
self,
|
|
@@ -12769,8 +12859,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12769
12859
|
|
|
12770
12860
|
# ### API login information for the specified user. This is for the newer API keys that can be added for any user.
|
|
12771
12861
|
#
|
|
12772
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12773
|
-
#
|
|
12774
12862
|
# PATCH /users/{user_id}/credentials_api3/{credentials_api3_id} -> mdls.CredentialsApi3
|
|
12775
12863
|
def update_user_credentials_api3(
|
|
12776
12864
|
self,
|
|
@@ -12800,8 +12888,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12800
12888
|
|
|
12801
12889
|
# ### API login information for the specified user. This is for the newer API keys that can be added for any user.
|
|
12802
12890
|
#
|
|
12803
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12804
|
-
#
|
|
12805
12891
|
# DELETE /users/{user_id}/credentials_api3/{credentials_api3_id} -> str
|
|
12806
12892
|
def delete_user_credentials_api3(
|
|
12807
12893
|
self,
|
|
@@ -12826,8 +12912,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12826
12912
|
|
|
12827
12913
|
# ### API login information for the specified user. This is for the newer API keys that can be added for any user.
|
|
12828
12914
|
#
|
|
12829
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12830
|
-
#
|
|
12831
12915
|
# GET /users/{user_id}/credentials_api3 -> Sequence[mdls.CredentialsApi3]
|
|
12832
12916
|
def all_user_credentials_api3s(
|
|
12833
12917
|
self,
|
|
@@ -12852,8 +12936,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
12852
12936
|
|
|
12853
12937
|
# ### API login information for the specified user. This is for the newer API keys that can be added for any user.
|
|
12854
12938
|
#
|
|
12855
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
12856
|
-
#
|
|
12857
12939
|
# POST /users/{user_id}/credentials_api3 -> mdls.CreateCredentialsApi3
|
|
12858
12940
|
def create_user_credentials_api3(
|
|
12859
12941
|
self,
|
|
@@ -13008,8 +13090,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
13008
13090
|
|
|
13009
13091
|
# ### Web login session for the specified user.
|
|
13010
13092
|
#
|
|
13011
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
13012
|
-
#
|
|
13013
13093
|
# GET /users/{user_id}/sessions/{session_id} -> mdls.Session
|
|
13014
13094
|
def user_session(
|
|
13015
13095
|
self,
|
|
@@ -13037,8 +13117,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
13037
13117
|
|
|
13038
13118
|
# ### Web login session for the specified user.
|
|
13039
13119
|
#
|
|
13040
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
13041
|
-
#
|
|
13042
13120
|
# DELETE /users/{user_id}/sessions/{session_id} -> str
|
|
13043
13121
|
def delete_user_session(
|
|
13044
13122
|
self,
|
|
@@ -13063,8 +13141,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
13063
13141
|
|
|
13064
13142
|
# ### Web login session for the specified user.
|
|
13065
13143
|
#
|
|
13066
|
-
# Calls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
13067
|
-
#
|
|
13068
13144
|
# GET /users/{user_id}/sessions -> Sequence[mdls.Session]
|
|
13069
13145
|
def all_user_sessions(
|
|
13070
13146
|
self,
|
|
@@ -13375,8 +13451,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
13375
13451
|
|
|
13376
13452
|
# ### Create a service account with the specified information. This action is restricted to Looker admins.
|
|
13377
13453
|
#
|
|
13378
|
-
# Calls to this endpoint may only be available for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
13379
|
-
#
|
|
13380
13454
|
# POST /users/service_accounts -> mdls.ServiceAccount
|
|
13381
13455
|
def create_service_account(
|
|
13382
13456
|
self,
|
|
@@ -13398,36 +13472,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
13398
13472
|
)
|
|
13399
13473
|
return response
|
|
13400
13474
|
|
|
13401
|
-
# ### Update information for a specific service account. This action is restricted to Looker admins.
|
|
13402
|
-
#
|
|
13403
|
-
# 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.
|
|
13404
|
-
#
|
|
13405
|
-
# Calls to this endpoint may only be available for [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).
|
|
13406
|
-
#
|
|
13407
|
-
# PATCH /users/service_accounts/{user_id} -> mdls.ServiceAccount
|
|
13408
|
-
def update_service_account(
|
|
13409
|
-
self,
|
|
13410
|
-
# Id of service account
|
|
13411
|
-
user_id: str,
|
|
13412
|
-
body: mdls.WriteServiceAccount,
|
|
13413
|
-
# Requested fields.
|
|
13414
|
-
fields: Optional[str] = None,
|
|
13415
|
-
transport_options: Optional[transport.TransportOptions] = None,
|
|
13416
|
-
) -> mdls.ServiceAccount:
|
|
13417
|
-
"""Update Service Account"""
|
|
13418
|
-
user_id = self.encode_path_param(user_id)
|
|
13419
|
-
response = cast(
|
|
13420
|
-
mdls.ServiceAccount,
|
|
13421
|
-
self.patch(
|
|
13422
|
-
path=f"/users/service_accounts/{user_id}",
|
|
13423
|
-
structure=mdls.ServiceAccount,
|
|
13424
|
-
query_params={"fields": fields},
|
|
13425
|
-
body=body,
|
|
13426
|
-
transport_options=transport_options,
|
|
13427
|
-
),
|
|
13428
|
-
)
|
|
13429
|
-
return response
|
|
13430
|
-
|
|
13431
13475
|
# endregion
|
|
13432
13476
|
|
|
13433
13477
|
# region UserAttribute: Manage User Attributes
|