-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_as.k
More file actions
24 lines (20 loc) · 897 Bytes
/
run_as.k
File metadata and controls
24 lines (20 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
schema RunAs:
"""Write-only setting. Specifies the user, service principal or
group that the job/pipeline runs as. If not specified, the job/pipeline runs
as the user who created the job/pipeline.
Exactly one of `user_name`, `service_principal_name`, `group_name` should be
specified. If not, an error is thrown.
(Note: `group_name` is not listed as an attribute in the DAB Schema. Kept
the documentation in line with the schema.)
Attributes
----------
service_principal_name: str
Application ID of an active service principal. Setting this field
requires the `servicePrincipal/user` role.
user_name: str
The email of an active workspace user. Non-admin users can only set this
field to their own email.
"""
service_principal_name?: str
user_name?: str
# TODO: Guard so only one of the two can be filled.