Class KeyVaultSettingsClient
java.lang.Object
com.azure.security.keyvault.administration.KeyVaultSettingsClient
The
KeyVaultSettingsClient
provides asynchronous methods to create, update, get and list
settings
for the Azure Key Vault.
Instances of this client are obtained by calling the KeyVaultSettingsClientBuilder.buildClient()
method on a KeyVaultSettingsClientBuilder
object.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetSetting
(String name) Get the value of a specific account setting.com.azure.core.http.rest.Response<KeyVaultSetting>
getSettingWithResponse
(String name, com.azure.core.util.Context context) Get the value of a specific account setting.List the account's settings.com.azure.core.http.rest.Response<KeyVaultListSettingsResult>
listSettingsWithResponse
(com.azure.core.util.Context context) List the account's settings.updateSetting
(KeyVaultSetting setting) Updates a givenaccount setting
.com.azure.core.http.rest.Response<KeyVaultSetting>
updateSettingWithResponse
(KeyVaultSetting setting, com.azure.core.util.Context context) Updates a givenaccount setting
.
-
Method Details
-
updateSetting
Updates a givenaccount setting
.- Parameters:
setting
- Theaccount setting
to update.- Returns:
- The updated
account setting
. - Throws:
NullPointerException
- ifsetting
isnull
.IllegalArgumentException
- thrown ifname
isnull
or empty.com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
updateSettingWithResponse
public com.azure.core.http.rest.Response<KeyVaultSetting> updateSettingWithResponse(KeyVaultSetting setting, com.azure.core.util.Context context) Updates a givenaccount setting
.- Parameters:
setting
- Theaccount setting
to update.context
- AdditionalContext
that is passed through the HTTP pipeline during the service call.- Returns:
- A
Response
whosevalue
contains the updatedaccount setting
. - Throws:
NullPointerException
- ifsetting
isnull
.IllegalArgumentException
- thrown ifname
isnull
or empty.com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
getSetting
Get the value of a specific account setting.- Parameters:
name
- The name of setting to retrieve the value of.- Returns:
- The
account setting
. - Throws:
IllegalArgumentException
- thrown ifname
isnull
or empty.com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
getSettingWithResponse
public com.azure.core.http.rest.Response<KeyVaultSetting> getSettingWithResponse(String name, com.azure.core.util.Context context) Get the value of a specific account setting.- Parameters:
name
- The name of setting to retrieve the value of.context
- AdditionalContext
that is passed through the HTTP pipeline during the service call.- Returns:
- A
Response
whosevalue
contains theaccount setting
. - Throws:
IllegalArgumentException
- thrown ifname
isnull
or empty.com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
listSettings
List the account's settings.- Returns:
- A
result object
wrapping the list ofaccount settings
. - Throws:
com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
listSettingsWithResponse
public com.azure.core.http.rest.Response<KeyVaultListSettingsResult> listSettingsWithResponse(com.azure.core.util.Context context) List the account's settings.- Parameters:
context
- AdditionalContext
that is passed through the HTTP pipeline during the service call.- Returns:
- A
Response
whosevalue
contains aresult object
wrapping the list ofaccount settings
. - Throws:
com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-