/// <summary>
 /// Retrieve a collection organization chart definitions owned by this tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// GET /api/v1/charts
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='version'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <ChartDefinition> > GetAsync(this IChartsApi operations, string version, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(version, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create a new organization chart definition within the tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// POST /api/v1/charts/
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// organization chart definition
 /// </param>
 /// <param name='version'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ChartDefinition> CreateChartAsync(this IChartsApi operations, CreateChartModel model, string version, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateChartWithHttpMessagesAsync(model, version, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create a new organization chart definition within the tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// POST /api/v1/charts/
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// organization chart definition
 /// </param>
 /// <param name='version'>
 /// </param>
 public static ChartDefinition CreateChart(this IChartsApi operations, CreateChartModel model, string version)
 {
     return(operations.CreateChartAsync(model, version).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve a collection organization chart definitions owned by this tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// GET /api/v1/charts
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='version'>
 /// </param>
 public static IList <ChartDefinition> Get(this IChartsApi operations, string version)
 {
     return(operations.GetAsync(version).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete an organization chart definition owned by this tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// DELETE /api/v1/charts/53bec490-1cdc-42f5-8983-e6efe66dc685
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='chartId'>
 /// ID of the chart definition
 /// </param>
 /// <param name='version'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IChartsApi operations, string chartId, string version, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(chartId, version, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete an organization chart definition owned by this tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// DELETE /api/v1/charts/53bec490-1cdc-42f5-8983-e6efe66dc685
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='chartId'>
 /// ID of the chart definition
 /// </param>
 /// <param name='version'>
 /// </param>
 public static void Delete(this IChartsApi operations, string chartId, string version)
 {
     operations.DeleteAsync(chartId, version).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Retrieve an organization chart definition owned by this tenant.
 /// </summary>
 /// <remarks>
 /// &lt;br /&gt;
 /// GET /api/v1/charts/53bec490-1cdc-42f5-8983-e6efe66dc685
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='chartId'>
 /// ID of the chart definition
 /// </param>
 /// <param name='version'>
 /// </param>
 public static ChartDefinition Get1(this IChartsApi operations, string chartId, string version)
 {
     return(operations.Get1Async(chartId, version).GetAwaiter().GetResult());
 }