Interface PolicyFragmentContract


public interface PolicyFragmentContract
An immutable client-side representation of PolicyFragmentContract.
  • 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

      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

      Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.PolicyFragmentContractInner object.
      Returns:
      the inner object.
    • update

      Begins update for the PolicyFragmentContract resource.
      Returns:
      the stage of resource update.
    • refresh

      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      PolicyFragmentContract refresh(com.azure.core.util.Context context)
      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.