Skip to content

Commit bd547d8

Browse files
committed
Fix
1 parent e0d3bac commit bd547d8

File tree

11 files changed

+0
-502
lines changed

11 files changed

+0
-502
lines changed

python/databricks/bundles/apps/__init__.py

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
__all__ = [
22
"App",
3-
"AppDeployment",
4-
"AppDeploymentArtifacts",
5-
"AppDeploymentArtifactsDict",
6-
"AppDeploymentArtifactsParam",
7-
"AppDeploymentDict",
8-
"AppDeploymentMode",
9-
"AppDeploymentModeParam",
10-
"AppDeploymentParam",
11-
"AppDeploymentState",
12-
"AppDeploymentStateParam",
13-
"AppDeploymentStatus",
14-
"AppDeploymentStatusDict",
15-
"AppDeploymentStatusParam",
163
"AppDict",
174
"AppParam",
185
"AppPermission",
@@ -60,48 +47,15 @@
6047
"AppResourceUcSecurableUcSecurablePermissionParam",
6148
"AppResourceUcSecurableUcSecurableType",
6249
"AppResourceUcSecurableUcSecurableTypeParam",
63-
"ApplicationState",
64-
"ApplicationStateParam",
65-
"ApplicationStatus",
66-
"ApplicationStatusDict",
67-
"ApplicationStatusParam",
6850
"ComputeSize",
6951
"ComputeSizeParam",
70-
"ComputeState",
71-
"ComputeStateParam",
72-
"ComputeStatus",
73-
"ComputeStatusDict",
74-
"ComputeStatusParam",
7552
"Lifecycle",
7653
"LifecycleDict",
7754
"LifecycleParam",
7855
]
7956

8057

8158
from databricks.bundles.apps._models.app import App, AppDict, AppParam
82-
from databricks.bundles.apps._models.app_deployment import (
83-
AppDeployment,
84-
AppDeploymentDict,
85-
AppDeploymentParam,
86-
)
87-
from databricks.bundles.apps._models.app_deployment_artifacts import (
88-
AppDeploymentArtifacts,
89-
AppDeploymentArtifactsDict,
90-
AppDeploymentArtifactsParam,
91-
)
92-
from databricks.bundles.apps._models.app_deployment_mode import (
93-
AppDeploymentMode,
94-
AppDeploymentModeParam,
95-
)
96-
from databricks.bundles.apps._models.app_deployment_state import (
97-
AppDeploymentState,
98-
AppDeploymentStateParam,
99-
)
100-
from databricks.bundles.apps._models.app_deployment_status import (
101-
AppDeploymentStatus,
102-
AppDeploymentStatusDict,
103-
AppDeploymentStatusParam,
104-
)
10559
from databricks.bundles.apps._models.app_permission import (
10660
AppPermission,
10761
AppPermissionDict,
@@ -183,25 +137,7 @@
183137
AppResourceUcSecurableUcSecurableType,
184138
AppResourceUcSecurableUcSecurableTypeParam,
185139
)
186-
from databricks.bundles.apps._models.application_state import (
187-
ApplicationState,
188-
ApplicationStateParam,
189-
)
190-
from databricks.bundles.apps._models.application_status import (
191-
ApplicationStatus,
192-
ApplicationStatusDict,
193-
ApplicationStatusParam,
194-
)
195140
from databricks.bundles.apps._models.compute_size import ComputeSize, ComputeSizeParam
196-
from databricks.bundles.apps._models.compute_state import (
197-
ComputeState,
198-
ComputeStateParam,
199-
)
200-
from databricks.bundles.apps._models.compute_status import (
201-
ComputeStatus,
202-
ComputeStatusDict,
203-
ComputeStatusParam,
204-
)
205141
from databricks.bundles.apps._models.lifecycle import (
206142
Lifecycle,
207143
LifecycleDict,

python/databricks/bundles/apps/_models/app.py

Lines changed: 0 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
from dataclasses import dataclass, field
22
from typing import TYPE_CHECKING, TypedDict
33

4-
from databricks.bundles.apps._models.app_deployment import (
5-
AppDeployment,
6-
AppDeploymentParam,
7-
)
84
from databricks.bundles.apps._models.app_permission import (
95
AppPermission,
106
AppPermissionParam,
117
)
128
from databricks.bundles.apps._models.app_resource import AppResource, AppResourceParam
13-
from databricks.bundles.apps._models.application_status import (
14-
ApplicationStatus,
15-
ApplicationStatusParam,
16-
)
179
from databricks.bundles.apps._models.compute_size import ComputeSize, ComputeSizeParam
18-
from databricks.bundles.apps._models.compute_status import (
19-
ComputeStatus,
20-
ComputeStatusParam,
21-
)
2210
from databricks.bundles.apps._models.lifecycle import Lifecycle, LifecycleParam
2311
from databricks.bundles.core._resource import Resource
2412
from databricks.bundles.core._transform import _transform
@@ -45,96 +33,27 @@ class App(Resource):
4533

4634
source_code_path: VariableOr[str]
4735

48-
active_deployment: VariableOrOptional[AppDeployment] = None
49-
"""
50-
The active deployment of the app. A deployment is considered active when it has been deployed
51-
to the app compute.
52-
"""
53-
54-
app_status: VariableOrOptional[ApplicationStatus] = None
55-
5636
budget_policy_id: VariableOrOptional[str] = None
5737

5838
compute_size: VariableOrOptional[ComputeSize] = None
5939

60-
compute_status: VariableOrOptional[ComputeStatus] = None
61-
62-
create_time: VariableOrOptional[str] = None
63-
"""
64-
The creation time of the app. Formatted timestamp in ISO 6801.
65-
"""
66-
67-
creator: VariableOrOptional[str] = None
68-
"""
69-
The email of the user that created the app.
70-
"""
71-
72-
default_source_code_path: VariableOrOptional[str] = None
73-
"""
74-
The default workspace file system path of the source code from which app deployment are
75-
created. This field tracks the workspace source code path of the last active deployment.
76-
"""
77-
7840
description: VariableOrOptional[str] = None
7941
"""
8042
The description of the app.
8143
"""
8244

83-
effective_budget_policy_id: VariableOrOptional[str] = None
84-
85-
effective_user_api_scopes: VariableOrList[str] = field(default_factory=list)
86-
"""
87-
The effective api scopes granted to the user access token.
88-
"""
89-
90-
id: VariableOrOptional[str] = None
91-
"""
92-
The unique identifier of the app.
93-
"""
94-
9545
lifecycle: VariableOrOptional[Lifecycle] = None
9646
"""
9747
Lifecycle is a struct that contains the lifecycle settings for a resource. It controls the behavior of the resource when it is deployed or destroyed.
9848
"""
9949

100-
oauth2_app_client_id: VariableOrOptional[str] = None
101-
102-
oauth2_app_integration_id: VariableOrOptional[str] = None
103-
104-
pending_deployment: VariableOrOptional[AppDeployment] = None
105-
"""
106-
The pending deployment of the app. A deployment is considered pending when it is being prepared
107-
for deployment to the app compute.
108-
"""
109-
11050
permissions: VariableOrList[AppPermission] = field(default_factory=list)
11151

11252
resources: VariableOrList[AppResource] = field(default_factory=list)
11353
"""
11454
Resources for the app.
11555
"""
11656

117-
service_principal_client_id: VariableOrOptional[str] = None
118-
119-
service_principal_id: VariableOrOptional[int] = None
120-
121-
service_principal_name: VariableOrOptional[str] = None
122-
123-
update_time: VariableOrOptional[str] = None
124-
"""
125-
The update time of the app. Formatted timestamp in ISO 6801.
126-
"""
127-
128-
updater: VariableOrOptional[str] = None
129-
"""
130-
The email of the user that last updated the app.
131-
"""
132-
133-
url: VariableOrOptional[str] = None
134-
"""
135-
The URL of the app once it is deployed.
136-
"""
137-
13857
user_api_scopes: VariableOrList[str] = field(default_factory=list)
13958

14059
@classmethod
@@ -156,96 +75,27 @@ class AppDict(TypedDict, total=False):
15675

15776
source_code_path: VariableOr[str]
15877

159-
active_deployment: VariableOrOptional[AppDeploymentParam]
160-
"""
161-
The active deployment of the app. A deployment is considered active when it has been deployed
162-
to the app compute.
163-
"""
164-
165-
app_status: VariableOrOptional[ApplicationStatusParam]
166-
16778
budget_policy_id: VariableOrOptional[str]
16879

16980
compute_size: VariableOrOptional[ComputeSizeParam]
17081

171-
compute_status: VariableOrOptional[ComputeStatusParam]
172-
173-
create_time: VariableOrOptional[str]
174-
"""
175-
The creation time of the app. Formatted timestamp in ISO 6801.
176-
"""
177-
178-
creator: VariableOrOptional[str]
179-
"""
180-
The email of the user that created the app.
181-
"""
182-
183-
default_source_code_path: VariableOrOptional[str]
184-
"""
185-
The default workspace file system path of the source code from which app deployment are
186-
created. This field tracks the workspace source code path of the last active deployment.
187-
"""
188-
18982
description: VariableOrOptional[str]
19083
"""
19184
The description of the app.
19285
"""
19386

194-
effective_budget_policy_id: VariableOrOptional[str]
195-
196-
effective_user_api_scopes: VariableOrList[str]
197-
"""
198-
The effective api scopes granted to the user access token.
199-
"""
200-
201-
id: VariableOrOptional[str]
202-
"""
203-
The unique identifier of the app.
204-
"""
205-
20687
lifecycle: VariableOrOptional[LifecycleParam]
20788
"""
20889
Lifecycle is a struct that contains the lifecycle settings for a resource. It controls the behavior of the resource when it is deployed or destroyed.
20990
"""
21091

211-
oauth2_app_client_id: VariableOrOptional[str]
212-
213-
oauth2_app_integration_id: VariableOrOptional[str]
214-
215-
pending_deployment: VariableOrOptional[AppDeploymentParam]
216-
"""
217-
The pending deployment of the app. A deployment is considered pending when it is being prepared
218-
for deployment to the app compute.
219-
"""
220-
22192
permissions: VariableOrList[AppPermissionParam]
22293

22394
resources: VariableOrList[AppResourceParam]
22495
"""
22596
Resources for the app.
22697
"""
22798

228-
service_principal_client_id: VariableOrOptional[str]
229-
230-
service_principal_id: VariableOrOptional[int]
231-
232-
service_principal_name: VariableOrOptional[str]
233-
234-
update_time: VariableOrOptional[str]
235-
"""
236-
The update time of the app. Formatted timestamp in ISO 6801.
237-
"""
238-
239-
updater: VariableOrOptional[str]
240-
"""
241-
The email of the user that last updated the app.
242-
"""
243-
244-
url: VariableOrOptional[str]
245-
"""
246-
The URL of the app once it is deployed.
247-
"""
248-
24999
user_api_scopes: VariableOrList[str]
250100

251101

python/databricks/bundles/apps/_models/app_deployment.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)