Interface PolicyFragmentContract
public interface PolicyFragmentContract
An immutable client-side representation of PolicyFragmentContract.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the PolicyFragmentContract definition.static interfaceThe PolicyFragmentContract definition stages.static interfaceThe template for PolicyFragmentContract update.static interfaceThe PolicyFragmentContract update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the description property: Policy fragment description.format()Gets the format property: Format of the policy fragment content.id()Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.PolicyFragmentContractInner object.Lists policy resources that reference the policy fragment.com.azure.core.http.rest.Response<ResourceCollection> listReferencesWithResponse(Integer top, Integer skip, com.azure.core.util.Context context) Lists policy resources that reference the policy fragment.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.Gets the name of the resource group.type()Gets the type property: The type of the resource.update()Begins update for the PolicyFragmentContract resource.value()Gets the value property: Contents of the policy fragment.
-
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.
-
value
String value()Gets the value property: Contents of the policy fragment.- Returns:
- the value value.
-
description
String description()Gets the description property: Policy fragment description.- Returns:
- the description value.
-
format
PolicyFragmentContentFormat format()Gets the format property: Format of the policy fragment content.- Returns:
- the format value.
-
provisioningState
String provisioningState()Gets the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
PolicyFragmentContractInner innerModel()Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.PolicyFragmentContractInner object.- Returns:
- the inner object.
-
update
PolicyFragmentContract.Update update()Begins update for the PolicyFragmentContract resource.- Returns:
- the stage of resource update.
-
refresh
PolicyFragmentContract 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.
-
listReferencesWithResponse
com.azure.core.http.rest.Response<ResourceCollection> listReferencesWithResponse(Integer top, Integer skip, com.azure.core.util.Context context) Lists policy resources that reference the policy fragment.- Parameters:
top- Number of records to return.skip- Number of records to skip.context- The context to associate with this operation.- Returns:
- a collection of resources along with
Response. - 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.
-
listReferences
ResourceCollection listReferences()Lists policy resources that reference the policy fragment.- Returns:
- a collection of resources.
- 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.
-