Class KeyVaultSettingsAsyncClient
java.lang.Object
com.azure.security.keyvault.administration.KeyVaultSettingsAsyncClient
The
KeyVaultSettingsAsyncClient
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.buildAsyncClient()
method on a KeyVaultSettingsClientBuilder
object.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetSetting
(String name) Get the value of a specific account setting.Mono<com.azure.core.http.rest.Response<KeyVaultSetting>>
getSettingWithResponse
(String name) Get the value of a specific account setting.List the account's settings.Mono<com.azure.core.http.rest.Response<KeyVaultListSettingsResult>>
List the account's settings.updateSetting
(KeyVaultSetting setting) Updates a givenaccount setting
.Mono<com.azure.core.http.rest.Response<KeyVaultSetting>>
updateSettingWithResponse
(KeyVaultSetting setting) Updates a givenaccount setting
.
-
Method Details
-
updateSetting
Updates a givenaccount setting
.- Parameters:
setting
- Theaccount setting
to update.- Returns:
- A
Mono
containing the updatedaccount setting
. - Throws:
NullPointerException
- ifsetting
isnull
.IllegalArgumentException
- thrown ifname
orvalue
isnull
or empty.com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException
- thrown if the request is rejected by the server.
-
updateSettingWithResponse
public Mono<com.azure.core.http.rest.Response<KeyVaultSetting>> updateSettingWithResponse(KeyVaultSetting setting) Updates a givenaccount setting
.- Parameters:
setting
- Theaccount setting
to update.- Returns:
- A
Mono
containing aResponse
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:
- A
Mono
containing 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.
-
getSettingWithResponse
Get the value of a specific account setting.- Parameters:
name
- The name of setting to retrieve the value of.- Returns:
- A
Mono
containing aResponse
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
Mono
containing 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.
-
listSettingsWithResponse
public Mono<com.azure.core.http.rest.Response<KeyVaultListSettingsResult>> listSettingsWithResponse()List the account's settings.- Returns:
- A
Mono
containing aResponse
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.
-