Package com.databricks.sdk.service.iam
Class AccountServicePrincipalsAPI
- java.lang.Object
-
- com.databricks.sdk.service.iam.AccountServicePrincipalsAPI
-
@Generated public class AccountServicePrincipalsAPI extends Object
Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. Databricks recommends creating service principals to run production jobs or modify production data. If all processes that act on production data run with service principals, interactive users do not need any write, delete, or modify privileges in production. This eliminates the risk of a user overwriting production data by accident.
-
-
Constructor Summary
Constructors Constructor Description AccountServicePrincipalsAPI(ApiClient apiClient)
Regular-use constructorAccountServicePrincipalsAPI(AccountServicePrincipalsService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServicePrincipal
create(ServicePrincipal request)
Create a service principal.ServicePrincipal
create(String id)
void
delete(DeleteAccountServicePrincipalRequest request)
Delete a service principal.void
delete(String id)
ServicePrincipal
get(GetAccountServicePrincipalRequest request)
Get service principal details.ServicePrincipal
get(String id)
AccountServicePrincipalsService
impl()
Iterable<ServicePrincipal>
list(ListAccountServicePrincipalsRequest request)
List service principals.void
patch(PartialUpdate request)
Update service principal details.void
patch(String id)
void
update(ServicePrincipal request)
Replace service principal.void
update(String id)
-
-
-
Constructor Detail
-
AccountServicePrincipalsAPI
public AccountServicePrincipalsAPI(ApiClient apiClient)
Regular-use constructor
-
AccountServicePrincipalsAPI
public AccountServicePrincipalsAPI(AccountServicePrincipalsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public ServicePrincipal create(String id)
-
create
public ServicePrincipal create(ServicePrincipal request)
Create a service principal.Creates a new service principal in the Databricks Account.
-
delete
public void delete(String id)
-
delete
public void delete(DeleteAccountServicePrincipalRequest request)
Delete a service principal.Delete a single service principal in the Databricks Account.
-
get
public ServicePrincipal get(String id)
-
get
public ServicePrincipal get(GetAccountServicePrincipalRequest request)
Get service principal details.Gets the details for a single service principal define in the Databricks Account.
-
list
public Iterable<ServicePrincipal> list(ListAccountServicePrincipalsRequest request)
List service principals.Gets the set of service principals associated with a Databricks Account.
-
patch
public void patch(String id)
-
patch
public void patch(PartialUpdate request)
Update service principal details.Partially updates the details of a single service principal in the Databricks Account.
-
update
public void update(String id)
-
update
public void update(ServicePrincipal request)
Replace service principal.Updates the details of a single service principal.
This action replaces the existing service principal with the same name.
-
impl
public AccountServicePrincipalsService impl()
-
-