databricks-sdk 0.48.0__py3-none-any.whl → 0.49.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.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

@@ -50,9 +50,16 @@ class App:
50
50
 
51
51
  effective_budget_policy_id: Optional[str] = None
52
52
 
53
+ effective_user_api_scopes: Optional[List[str]] = None
54
+ """The effective api scopes granted to the user access token."""
55
+
53
56
  id: Optional[str] = None
54
57
  """The unique identifier of the app."""
55
58
 
59
+ oauth2_app_client_id: Optional[str] = None
60
+
61
+ oauth2_app_integration_id: Optional[str] = None
62
+
56
63
  pending_deployment: Optional[AppDeployment] = None
57
64
  """The pending deployment of the app. A deployment is considered pending when it is being prepared
58
65
  for deployment to the app compute."""
@@ -75,6 +82,8 @@ class App:
75
82
  url: Optional[str] = None
76
83
  """The URL of the app once it is deployed."""
77
84
 
85
+ user_api_scopes: Optional[List[str]] = None
86
+
78
87
  def as_dict(self) -> dict:
79
88
  """Serializes the App into a dictionary suitable for use as a JSON request body."""
80
89
  body = {}
@@ -96,10 +105,16 @@ class App:
96
105
  body["description"] = self.description
97
106
  if self.effective_budget_policy_id is not None:
98
107
  body["effective_budget_policy_id"] = self.effective_budget_policy_id
108
+ if self.effective_user_api_scopes:
109
+ body["effective_user_api_scopes"] = [v for v in self.effective_user_api_scopes]
99
110
  if self.id is not None:
100
111
  body["id"] = self.id
101
112
  if self.name is not None:
102
113
  body["name"] = self.name
114
+ if self.oauth2_app_client_id is not None:
115
+ body["oauth2_app_client_id"] = self.oauth2_app_client_id
116
+ if self.oauth2_app_integration_id is not None:
117
+ body["oauth2_app_integration_id"] = self.oauth2_app_integration_id
103
118
  if self.pending_deployment:
104
119
  body["pending_deployment"] = self.pending_deployment.as_dict()
105
120
  if self.resources:
@@ -116,6 +131,8 @@ class App:
116
131
  body["updater"] = self.updater
117
132
  if self.url is not None:
118
133
  body["url"] = self.url
134
+ if self.user_api_scopes:
135
+ body["user_api_scopes"] = [v for v in self.user_api_scopes]
119
136
  return body
120
137
 
121
138
  def as_shallow_dict(self) -> dict:
@@ -139,10 +156,16 @@ class App:
139
156
  body["description"] = self.description
140
157
  if self.effective_budget_policy_id is not None:
141
158
  body["effective_budget_policy_id"] = self.effective_budget_policy_id
159
+ if self.effective_user_api_scopes:
160
+ body["effective_user_api_scopes"] = self.effective_user_api_scopes
142
161
  if self.id is not None:
143
162
  body["id"] = self.id
144
163
  if self.name is not None:
145
164
  body["name"] = self.name
165
+ if self.oauth2_app_client_id is not None:
166
+ body["oauth2_app_client_id"] = self.oauth2_app_client_id
167
+ if self.oauth2_app_integration_id is not None:
168
+ body["oauth2_app_integration_id"] = self.oauth2_app_integration_id
146
169
  if self.pending_deployment:
147
170
  body["pending_deployment"] = self.pending_deployment
148
171
  if self.resources:
@@ -159,6 +182,8 @@ class App:
159
182
  body["updater"] = self.updater
160
183
  if self.url is not None:
161
184
  body["url"] = self.url
185
+ if self.user_api_scopes:
186
+ body["user_api_scopes"] = self.user_api_scopes
162
187
  return body
163
188
 
164
189
  @classmethod
@@ -174,8 +199,11 @@ class App:
174
199
  default_source_code_path=d.get("default_source_code_path", None),
175
200
  description=d.get("description", None),
176
201
  effective_budget_policy_id=d.get("effective_budget_policy_id", None),
202
+ effective_user_api_scopes=d.get("effective_user_api_scopes", None),
177
203
  id=d.get("id", None),
178
204
  name=d.get("name", None),
205
+ oauth2_app_client_id=d.get("oauth2_app_client_id", None),
206
+ oauth2_app_integration_id=d.get("oauth2_app_integration_id", None),
179
207
  pending_deployment=_from_dict(d, "pending_deployment", AppDeployment),
180
208
  resources=_repeated_dict(d, "resources", AppResource),
181
209
  service_principal_client_id=d.get("service_principal_client_id", None),
@@ -184,6 +212,7 @@ class App:
184
212
  update_time=d.get("update_time", None),
185
213
  updater=d.get("updater", None),
186
214
  url=d.get("url", None),
215
+ user_api_scopes=d.get("user_api_scopes", None),
187
216
  )
188
217
 
189
218
 
@@ -372,7 +372,8 @@ class BudgetPolicy:
372
372
 
373
373
  policy_name: Optional[str] = None
374
374
  """The name of the policy. - Must be unique among active policies. - Can contain only characters
375
- from the ISO 8859-1 (latin1) set."""
375
+ from the ISO 8859-1 (latin1) set. - Can't start with reserved keywords such as
376
+ `databricks:default-policy`."""
376
377
 
377
378
  def as_dict(self) -> dict:
378
379
  """Serializes the BudgetPolicy into a dictionary suitable for use as a JSON request body."""
@@ -1065,6 +1065,7 @@ class CatalogType(Enum):
1065
1065
  """The type of the catalog."""
1066
1066
 
1067
1067
  DELTASHARING_CATALOG = "DELTASHARING_CATALOG"
1068
+ FOREIGN_CATALOG = "FOREIGN_CATALOG"
1068
1069
  MANAGED_CATALOG = "MANAGED_CATALOG"
1069
1070
  SYSTEM_CATALOG = "SYSTEM_CATALOG"
1070
1071
 
@@ -6664,6 +6665,7 @@ class Privilege(Enum):
6664
6665
  ACCESS = "ACCESS"
6665
6666
  ALL_PRIVILEGES = "ALL_PRIVILEGES"
6666
6667
  APPLY_TAG = "APPLY_TAG"
6668
+ BROWSE = "BROWSE"
6667
6669
  CREATE = "CREATE"
6668
6670
  CREATE_CATALOG = "CREATE_CATALOG"
6669
6671
  CREATE_CONNECTION = "CREATE_CONNECTION"
@@ -9471,6 +9473,8 @@ class UpdateWorkspaceBindingsParameters:
9471
9473
 
9472
9474
  @dataclass
9473
9475
  class ValidateCredentialRequest:
9476
+ """Next ID: 17"""
9477
+
9474
9478
  aws_iam_role: Optional[AwsIamRole] = None
9475
9479
  """The AWS IAM role configuration"""
9476
9480