/// <summary>
 /// Gets specific API policy.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IApiPolicyOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='aid'>
 /// Required. Identifier of the API.
 /// </param>
 /// <param name='format'>
 /// Required. Format of the policy. Supported formats:
 /// application/vnd.ms-azure-apim.policy+xml,
 /// application/vnd.ms-azure-apim.policy.raw+xml
 /// </param>
 /// <returns>
 /// The response model for the get policy output operation.
 /// </returns>
 public static Task <PolicyGetResponse> GetAsync(this IApiPolicyOperations operations, string resourceGroupName, string serviceName, string aid, string format)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, aid, format, CancellationToken.None));
 }
 /// <summary>
 /// Get the policy configuration at the API level.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='apiId'>
 /// API revision identifier. Must be unique in the current API Management
 /// service instance. Non-current revision has ;rev=n as a suffix where n is
 /// the revision number.
 /// </param>
 /// <param name='format'>
 /// Policy Export Format. Possible values include: 'xml', 'rawxml'
 /// </param>
 public static PolicyContract Get(this IApiPolicyOperations operations, string resourceGroupName, string serviceName, string apiId, string format = default(string))
 {
     return(operations.GetAsync(resourceGroupName, serviceName, apiId, format).GetAwaiter().GetResult());
 }