looker-sdk 25.8.0__tar.gz → 25.10.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.8.0 → looker_sdk-25.10.0}/PKG-INFO +1 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/error.py +1 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/sdk/api40/methods.py +53 -56
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/sdk/api40/models.py +9 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/sdk/constants.py +1 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/version.py +1 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk.egg-info/PKG-INFO +1 -1
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/LICENSE.txt +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/MANIFEST.in +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/README.rst +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/py.typed +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/api_methods.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/api_settings.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/auth_session.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/auth_token.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/constants.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/hooks.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/model.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/requests_transport.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/serialize.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/rtl/transport.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/sdk/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk/sdk/api40/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk.egg-info/SOURCES.txt +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk.egg-info/dependency_links.txt +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk.egg-info/requires.txt +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/looker_sdk.egg-info/top_level.txt +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/setup.cfg +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/setup.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/integration/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/integration/test_methods.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/integration/test_netrc.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/__init__.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_api_methods.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_api_settings.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_auth_session.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_auth_token.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_requests_transport.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_serialize.py +0 -0
- {looker_sdk-25.8.0 → looker_sdk-25.10.0}/tests/rtl/test_transport.py +0 -0
|
@@ -82,7 +82,7 @@ class SDKError(Exception):
|
|
|
82
82
|
documentation_url: {self.documentation_url}
|
|
83
83
|
error_doc_url: {self.error_doc_url}
|
|
84
84
|
error details:
|
|
85
|
-
{sep.join(str(
|
|
85
|
+
{sep.join(str(error_details) for error_details in self.errors)}
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
88
|
|
|
@@ -7986,6 +7986,59 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
7986
7986
|
|
|
7987
7987
|
# region Project: Manage Projects
|
|
7988
7988
|
|
|
7989
|
+
# ### Fetches a CI Run.
|
|
7990
|
+
#
|
|
7991
|
+
# GET /projects/{project_id}/ci/runs/{run_id} -> mdls.ProjectCIRun
|
|
7992
|
+
def get_ci_run(
|
|
7993
|
+
self,
|
|
7994
|
+
# Project Id
|
|
7995
|
+
project_id: str,
|
|
7996
|
+
# Run Id
|
|
7997
|
+
run_id: str,
|
|
7998
|
+
# Requested fields
|
|
7999
|
+
fields: Optional[str] = None,
|
|
8000
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
8001
|
+
) -> mdls.ProjectCIRun:
|
|
8002
|
+
"""Fetch Continuous Integration run"""
|
|
8003
|
+
project_id = self.encode_path_param(project_id)
|
|
8004
|
+
run_id = self.encode_path_param(run_id)
|
|
8005
|
+
response = cast(
|
|
8006
|
+
mdls.ProjectCIRun,
|
|
8007
|
+
self.get(
|
|
8008
|
+
path=f"/projects/{project_id}/ci/runs/{run_id}",
|
|
8009
|
+
structure=mdls.ProjectCIRun,
|
|
8010
|
+
query_params={"fields": fields},
|
|
8011
|
+
transport_options=transport_options,
|
|
8012
|
+
),
|
|
8013
|
+
)
|
|
8014
|
+
return response
|
|
8015
|
+
|
|
8016
|
+
# ### Creates a CI Run.
|
|
8017
|
+
#
|
|
8018
|
+
# POST /projects/{project_id}/ci/run -> mdls.CreateCIRunResponse
|
|
8019
|
+
def create_ci_run(
|
|
8020
|
+
self,
|
|
8021
|
+
# Project Id
|
|
8022
|
+
project_id: str,
|
|
8023
|
+
body: mdls.CreateCIRunRequest,
|
|
8024
|
+
# Requested fields
|
|
8025
|
+
fields: Optional[str] = None,
|
|
8026
|
+
transport_options: Optional[transport.TransportOptions] = None,
|
|
8027
|
+
) -> mdls.CreateCIRunResponse:
|
|
8028
|
+
"""Create a Continuous Integration run"""
|
|
8029
|
+
project_id = self.encode_path_param(project_id)
|
|
8030
|
+
response = cast(
|
|
8031
|
+
mdls.CreateCIRunResponse,
|
|
8032
|
+
self.post(
|
|
8033
|
+
path=f"/projects/{project_id}/ci/run",
|
|
8034
|
+
structure=mdls.CreateCIRunResponse,
|
|
8035
|
+
query_params={"fields": fields},
|
|
8036
|
+
body=body,
|
|
8037
|
+
transport_options=transport_options,
|
|
8038
|
+
),
|
|
8039
|
+
)
|
|
8040
|
+
return response
|
|
8041
|
+
|
|
7989
8042
|
# ### Generate Lockfile for All LookML Dependencies
|
|
7990
8043
|
#
|
|
7991
8044
|
# Git must have been configured, must be in dev mode and deploy permission required
|
|
@@ -8633,9 +8686,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
8633
8686
|
|
|
8634
8687
|
# ### Get All Git Connection Tests
|
|
8635
8688
|
#
|
|
8636
|
-
# dev mode required.
|
|
8637
|
-
# - Call `update_session` to select the 'dev' workspace.
|
|
8638
|
-
#
|
|
8639
8689
|
# Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call [Run Git Connection Test](#!/Project/run_git_connection_test) to execute each test in sequence.
|
|
8640
8690
|
#
|
|
8641
8691
|
# Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list.
|
|
@@ -8794,59 +8844,6 @@ class Looker40SDK(api_methods.APIMethods):
|
|
|
8794
8844
|
)
|
|
8795
8845
|
return response
|
|
8796
8846
|
|
|
8797
|
-
# ### Fetches a CI Run.
|
|
8798
|
-
#
|
|
8799
|
-
# GET /projects/{project_id}/ci/runs/{run_id} -> mdls.ProjectCIRun
|
|
8800
|
-
def get_ci_run(
|
|
8801
|
-
self,
|
|
8802
|
-
# Project Id
|
|
8803
|
-
project_id: str,
|
|
8804
|
-
# Run Id
|
|
8805
|
-
run_id: str,
|
|
8806
|
-
# Requested fields
|
|
8807
|
-
fields: Optional[str] = None,
|
|
8808
|
-
transport_options: Optional[transport.TransportOptions] = None,
|
|
8809
|
-
) -> mdls.ProjectCIRun:
|
|
8810
|
-
"""Fetch Continuous Integration run"""
|
|
8811
|
-
project_id = self.encode_path_param(project_id)
|
|
8812
|
-
run_id = self.encode_path_param(run_id)
|
|
8813
|
-
response = cast(
|
|
8814
|
-
mdls.ProjectCIRun,
|
|
8815
|
-
self.get(
|
|
8816
|
-
path=f"/projects/{project_id}/ci/runs/{run_id}",
|
|
8817
|
-
structure=mdls.ProjectCIRun,
|
|
8818
|
-
query_params={"fields": fields},
|
|
8819
|
-
transport_options=transport_options,
|
|
8820
|
-
),
|
|
8821
|
-
)
|
|
8822
|
-
return response
|
|
8823
|
-
|
|
8824
|
-
# ### Creates a CI Run.
|
|
8825
|
-
#
|
|
8826
|
-
# POST /projects/{project_id}/ci/run -> mdls.CreateCIRunResponse
|
|
8827
|
-
def create_ci_run(
|
|
8828
|
-
self,
|
|
8829
|
-
# Project Id
|
|
8830
|
-
project_id: str,
|
|
8831
|
-
body: mdls.CreateCIRunRequest,
|
|
8832
|
-
# Requested fields
|
|
8833
|
-
fields: Optional[str] = None,
|
|
8834
|
-
transport_options: Optional[transport.TransportOptions] = None,
|
|
8835
|
-
) -> mdls.CreateCIRunResponse:
|
|
8836
|
-
"""Create a Continuous Integration run"""
|
|
8837
|
-
project_id = self.encode_path_param(project_id)
|
|
8838
|
-
response = cast(
|
|
8839
|
-
mdls.CreateCIRunResponse,
|
|
8840
|
-
self.post(
|
|
8841
|
-
path=f"/projects/{project_id}/ci/run",
|
|
8842
|
-
structure=mdls.CreateCIRunResponse,
|
|
8843
|
-
query_params={"fields": fields},
|
|
8844
|
-
body=body,
|
|
8845
|
-
transport_options=transport_options,
|
|
8846
|
-
),
|
|
8847
|
-
)
|
|
8848
|
-
return response
|
|
8849
|
-
|
|
8850
8847
|
# ### Configure Repository Credential for a remote dependency
|
|
8851
8848
|
#
|
|
8852
8849
|
# Admin required.
|
|
@@ -7997,6 +7997,7 @@ class LookmlModelExploreField(model.Model):
|
|
|
7997
7997
|
suggest_explore: The name of the explore to base suggest queries from.
|
|
7998
7998
|
suggestable: Whether or not suggestions are possible for this field.
|
|
7999
7999
|
suggestions: If available, a list of suggestions for this field. For most fields, a suggest query is a more appropriate way to get an up-to-date list of suggestions. Or use enumerations to list all the possible values.
|
|
8000
|
+
synonyms: A list of string synonyms (words or phrases) that can be used to help large language models and app developers understand other ways that users may refer to a field.
|
|
8000
8001
|
tags: An array of arbitrary string tags provided in the model for this field.
|
|
8001
8002
|
type: The LookML type of the field.
|
|
8002
8003
|
user_attribute_filter_types: An array of user attribute types that are allowed to be used in filters on this field. Valid values are: "advanced_filter_string", "advanced_filter_number", "advanced_filter_datetime", "string", "number", "datetime", "relative_url", "yesno", "zipcode".
|
|
@@ -8059,6 +8060,7 @@ class LookmlModelExploreField(model.Model):
|
|
|
8059
8060
|
suggest_explore: Optional[str] = None
|
|
8060
8061
|
suggestable: Optional[bool] = None
|
|
8061
8062
|
suggestions: Optional[Sequence[str]] = None
|
|
8063
|
+
synonyms: Optional[Sequence[str]] = None
|
|
8062
8064
|
tags: Optional[Sequence[str]] = None
|
|
8063
8065
|
type: Optional[str] = None
|
|
8064
8066
|
user_attribute_filter_types: Optional[Sequence["UserAttributeFilterTypes"]] = None
|
|
@@ -8123,6 +8125,7 @@ class LookmlModelExploreField(model.Model):
|
|
|
8123
8125
|
suggest_explore: Optional[str] = None,
|
|
8124
8126
|
suggestable: Optional[bool] = None,
|
|
8125
8127
|
suggestions: Optional[Sequence[str]] = None,
|
|
8128
|
+
synonyms: Optional[Sequence[str]] = None,
|
|
8126
8129
|
tags: Optional[Sequence[str]] = None,
|
|
8127
8130
|
type: Optional[str] = None,
|
|
8128
8131
|
user_attribute_filter_types: Optional[
|
|
@@ -8184,6 +8187,7 @@ class LookmlModelExploreField(model.Model):
|
|
|
8184
8187
|
self.suggest_explore = suggest_explore
|
|
8185
8188
|
self.suggestable = suggestable
|
|
8186
8189
|
self.suggestions = suggestions
|
|
8190
|
+
self.synonyms = synonyms
|
|
8187
8191
|
self.tags = tags
|
|
8188
8192
|
self.type = type
|
|
8189
8193
|
self.user_attribute_filter_types = user_attribute_filter_types
|
|
@@ -8289,12 +8293,14 @@ class LookmlModelExploreFieldPeriodOverPeriodParams(model.Model):
|
|
|
8289
8293
|
based_on_time: Specifies the time dimension that this measure will operate over.
|
|
8290
8294
|
period: Specifies the time frame for the comparison. Valid values are: "year", "fiscal_year", "quarter", "fiscal_quarter", "month", "week", "date".
|
|
8291
8295
|
kind: The type of calculation for the period_over_period measure. Valid values are: "previous", "difference", "relative_change".
|
|
8296
|
+
value_to_date: specifies whether to compare the current partially completed period to an equivalent part of the previous period, or to use the entire previous period.
|
|
8292
8297
|
"""
|
|
8293
8298
|
|
|
8294
8299
|
based_on: Optional[str] = None
|
|
8295
8300
|
based_on_time: Optional[str] = None
|
|
8296
8301
|
period: Optional["Period"] = None
|
|
8297
8302
|
kind: Optional["Kind"] = None
|
|
8303
|
+
value_to_date: Optional[bool] = None
|
|
8298
8304
|
|
|
8299
8305
|
def __init__(
|
|
8300
8306
|
self,
|
|
@@ -8302,12 +8308,14 @@ class LookmlModelExploreFieldPeriodOverPeriodParams(model.Model):
|
|
|
8302
8308
|
based_on: Optional[str] = None,
|
|
8303
8309
|
based_on_time: Optional[str] = None,
|
|
8304
8310
|
period: Optional["Period"] = None,
|
|
8305
|
-
kind: Optional["Kind"] = None
|
|
8311
|
+
kind: Optional["Kind"] = None,
|
|
8312
|
+
value_to_date: Optional[bool] = None
|
|
8306
8313
|
):
|
|
8307
8314
|
self.based_on = based_on
|
|
8308
8315
|
self.based_on_time = based_on_time
|
|
8309
8316
|
self.period = period
|
|
8310
8317
|
self.kind = kind
|
|
8318
|
+
self.value_to_date = value_to_date
|
|
8311
8319
|
|
|
8312
8320
|
|
|
8313
8321
|
@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
|