/// <summary> /// Create new export configuration /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='properties'> /// Export configurations. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ExportConfigurationResult> CreateAsync(this IExportConfigurations operations, ExportConfiguration properties, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(properties, ownerName, appName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Disable export configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='exportConfigurationId'> /// The id of the export configuration. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DisableAsync(this IExportConfigurations operations, string exportConfigurationId, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DisableWithHttpMessagesAsync(exportConfigurationId, ownerName, appName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Disable export configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='exportConfigurationId'> /// The id of the export configuration. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static void Disable(this IExportConfigurations operations, string exportConfigurationId, string ownerName, string appName) { operations.DisableAsync(exportConfigurationId, ownerName, appName).GetAwaiter().GetResult(); }
/// <summary> /// Create new export configuration /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='properties'> /// Export configurations. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static ExportConfigurationResult Create(this IExportConfigurations operations, ExportConfiguration properties, string ownerName, string appName) { return(operations.CreateAsync(properties, ownerName, appName).GetAwaiter().GetResult()); }
/// <summary> /// List export configurations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static ExportConfigurationListResult List(this IExportConfigurations operations, string ownerName, string appName) { return(operations.ListAsync(ownerName, appName).GetAwaiter().GetResult()); }
/// <summary> /// Partially update export configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='exportConfigurationId'> /// The id of the export configuration. /// </param> /// <param name='properties'> /// Export configurations. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static ExportConfigurationResult PartialUpdate(this IExportConfigurations operations, string exportConfigurationId, ExportConfiguration properties, string ownerName, string appName) { return(operations.PartialUpdateAsync(exportConfigurationId, properties, ownerName, appName).GetAwaiter().GetResult()); }
/// <summary> /// Get export configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='exportConfigurationId'> /// The id of the export configuration. /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static ExportConfigurationResult Get(this IExportConfigurations operations, string exportConfigurationId, string ownerName, string appName) { return(operations.GetAsync(exportConfigurationId, ownerName, appName).GetAwaiter().GetResult()); }