@Generated public class ProvidersAPI extends Object
Constructor and Description |
---|
ProvidersAPI(ApiClient apiClient)
Regular-use constructor
|
ProvidersAPI(ProvidersService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
ProviderInfo |
create(CreateProvider request)
Create an auth provider.
|
ProviderInfo |
create(String name,
AuthenticationType authenticationType) |
void |
delete(DeleteProviderRequest request)
Delete a provider.
|
void |
delete(String name) |
ProviderInfo |
get(GetProviderRequest request)
Get a provider.
|
ProviderInfo |
get(String name) |
ProvidersService |
impl() |
Iterable<ProviderInfo> |
list(ListProvidersRequest request)
List providers.
|
Iterable<ProviderShare> |
listShares(ListSharesRequest request)
List shares by Provider.
|
Iterable<ProviderShare> |
listShares(String name) |
ProviderInfo |
update(String name) |
ProviderInfo |
update(UpdateProvider request)
Update a provider.
|
public ProvidersAPI(ApiClient apiClient)
public ProvidersAPI(ProvidersService mock)
public ProviderInfo create(String name, AuthenticationType authenticationType)
public ProviderInfo create(CreateProvider request)
Creates a new authentication provider minimally based on a name and authentication type. The caller must be an admin on the metastore.
public void delete(String name)
public void delete(DeleteProviderRequest request)
Deletes an authentication provider, if the caller is a metastore admin or is the owner of the provider.
public ProviderInfo get(String name)
public ProviderInfo get(GetProviderRequest request)
Gets a specific authentication provider. The caller must supply the name of the provider, and must either be a metastore admin or the owner of the provider.
public Iterable<ProviderInfo> list(ListProvidersRequest request)
Gets an array of available authentication providers. The caller must either be a metastore admin or the owner of the providers. Providers not owned by the caller are not included in the response. There is no guarantee of a specific ordering of the elements in the array.
public Iterable<ProviderShare> listShares(String name)
public Iterable<ProviderShare> listShares(ListSharesRequest request)
Gets an array of a specified provider's shares within the metastore where:
* the caller is a metastore admin, or * the caller is the owner.
public ProviderInfo update(String name)
public ProviderInfo update(UpdateProvider request)
Updates the information for an authentication provider, if the caller is a metastore admin or is the owner of the provider. If the update changes the provider name, the caller must be both a metastore admin and the owner of the provider.
public ProvidersService impl()
Copyright © 2023. All rights reserved.