11from dataclasses import dataclass , field
22from typing import TYPE_CHECKING , TypedDict
33
4- from databricks .bundles .apps ._models .app_deployment import (
5- AppDeployment ,
6- AppDeploymentParam ,
7- )
84from databricks .bundles .apps ._models .app_permission import (
95 AppPermission ,
106 AppPermissionParam ,
117)
128from databricks .bundles .apps ._models .app_resource import AppResource , AppResourceParam
13- from databricks .bundles .apps ._models .application_status import (
14- ApplicationStatus ,
15- ApplicationStatusParam ,
16- )
179from databricks .bundles .apps ._models .compute_size import ComputeSize , ComputeSizeParam
18- from databricks .bundles .apps ._models .compute_status import (
19- ComputeStatus ,
20- ComputeStatusParam ,
21- )
2210from databricks .bundles .apps ._models .lifecycle import Lifecycle , LifecycleParam
2311from databricks .bundles .core ._resource import Resource
2412from 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
0 commit comments