/// <summary>
 /// Retrieves the current policy for a given kind of TEE.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantBaseUrl'>
 /// The tenant name, for example https://mytenant.attest.azure.net.
 /// </param>
 /// <param name='tee'>
 /// Specifies the trusted execution environment to be used to validate the
 /// evidence. Possible values include: 'SgxEnclave', 'OpenEnclave',
 /// 'CyResComponent', 'AzureGuest'
 /// </param>
 public static object Get(this IPolicyOperations operations, string tenantBaseUrl, string tee)
 {
     return(operations.GetAsync(tenantBaseUrl, tee).GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the Global policy definition of the Api Management service.
 /// </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>
 public static PolicyContract Get(this IPolicyOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.GetAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the protected Profile by Id.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations.
 /// </param>
 /// <param name='policyName'>
 /// Required. Policy Name.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Policy object.
 /// </returns>
 public static Task <PolicyResponse> GetAsync(this IPolicyOperations operations, string policyName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.GetAsync(policyName, customRequestHeaders, CancellationToken.None));
 }