Interface NamedValueContract
public interface NamedValueContract
An immutable client-side representation of NamedValueContract.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the NamedValueContract definition.static interfaceThe NamedValueContract definition stages.static interfaceThe template for NamedValueContract update.static interfaceThe NamedValueContract update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the displayName property: Unique name of NamedValue.id()Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner object.keyVault()Gets the keyVault property: KeyVault location details of the namedValue.Gets the secret of the named value specified by its identifier.com.azure.core.http.rest.Response<NamedValueSecretContract> listValueWithResponse(com.azure.core.util.Context context) Gets the secret of the named value specified by its identifier.name()Gets the name property: The name of the resource.Gets the provisioningState property: The provisioning state.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Refresh the secret of the named value specified by its identifier.refreshSecret(com.azure.core.util.Context context) Refresh the secret of the named value specified by its identifier.Gets the name of the resource group.secret()Gets the secret property: Determines whether the value is a secret and should be encrypted or not.tags()Gets the tags property: Optional tags that when provided can be used to filter the NamedValue list.type()Gets the type property: The type of the resource.update()Begins update for the NamedValueContract resource.value()Gets the value property: Value of the NamedValue.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
displayName
String displayName()Gets the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.- Returns:
- the displayName value.
-
value
String value()Gets the value property: Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.- Returns:
- the value value.
-
keyVault
KeyVaultContractProperties keyVault()Gets the keyVault property: KeyVault location details of the namedValue.- Returns:
- the keyVault value.
-
provisioningState
String provisioningState()Gets the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
tags
Gets the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Returns:
- the tags value.
-
secret
Boolean secret()Gets the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Returns:
- the secret value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
NamedValueContractInner innerModel()Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner object.- Returns:
- the inner object.
-
update
NamedValueContract.Update update()Begins update for the NamedValueContract resource.- Returns:
- the stage of resource update.
-
refresh
NamedValueContract refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
listValueWithResponse
com.azure.core.http.rest.Response<NamedValueSecretContract> listValueWithResponse(com.azure.core.util.Context context) Gets the secret of the named value specified by its identifier.- Parameters:
context- The context to associate with this operation.- Returns:
- the secret of the named value specified by its identifier.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listValue
NamedValueSecretContract listValue()Gets the secret of the named value specified by its identifier.- Returns:
- the secret of the named value specified by its identifier.
- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
refreshSecret
NamedValueContract refreshSecret()Refresh the secret of the named value specified by its identifier.- Returns:
- namedValue details.
- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
refreshSecret
Refresh the secret of the named value specified by its identifier.- Parameters:
context- The context to associate with this operation.- Returns:
- namedValue details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-