Пример #1
0
 /// <summary>
 /// Lists all the Global Policy definitions 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>
 /// <param name='scope'>
 /// Policy scope. Possible values include: 'Tenant', 'Product', 'Api',
 /// 'Operation', 'All'
 /// </param>
 public static PolicyCollection ListByService(this IPolicyOperations operations, string resourceGroupName, string serviceName, PolicyScopeContract?scope = default(PolicyScopeContract?))
 {
     return(operations.ListByServiceAsync(resourceGroupName, serviceName, scope).GetAwaiter().GetResult());
 }
Пример #2
0
 /// <summary>
 /// Lists all the Global Policy definitions 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 PolicyCollection ListByService(this IPolicyOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.ListByServiceAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }