Beispiel #1
0
 /// <summary>
 /// Adds group resources
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// list of group resources
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ErrorResponse> AddGroupResourcesAsync(this IResourcesAPI operations, GroupResourcesModel model = default(GroupResourcesModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddGroupResourcesWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Adds group resources
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// list of group resources
 /// </param>
 public static ErrorResponse AddGroupResources(this IResourcesAPI operations, GroupResourcesModel model = default(GroupResourcesModel))
 {
     return(operations.AddGroupResourcesAsync(model).GetAwaiter().GetResult());
 }