Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <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();
 }
Beispiel #3
0
 /// <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();
 }
Beispiel #4
0
 /// <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());
 }
Beispiel #5
0
 /// <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());
 }
Beispiel #6
0
 /// <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());
 }
Beispiel #7
0
 /// <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());
 }