/// <summary> /// Gets a model by id /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='modelId'> /// The model id to retrieve /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <Model> GetModelAsync(this IModels operations, System.Guid modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetModelWithHttpMessagesAsync(modelId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }