/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IAutomatedExportOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name. /// </param> /// <param name='serverName'> /// Required. The server name. /// </param> /// <param name='databaseName'> /// Required. The database name. /// </param> /// <param name='automatedExportSettingName'> /// Required. The automated export setting name. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static AzureOperationResponse CreateOrUpdateSetting(this IAutomatedExportOperations operations, string resourceGroupName, string serverName, string databaseName, string automatedExportSettingName, AutomatedExportSettingCreateOrUpdateParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IAutomatedExportOperations)s).CreateOrUpdateSettingAsync(resourceGroupName, serverName, databaseName, automatedExportSettingName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the InsightsManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public InsightsManagementClient(HttpClient httpClient) : base(httpClient) { this._agentDiagnosticSettingsOperations = new AgentDiagnosticSettingsOperations(this); this._alertOperations = new AlertOperations(this); this._automatedExportOperations = new AutomatedExportOperations(this); this._autoscaleOperations = new AutoscaleOperations(this); this._monitoringConfigurationOperations = new MonitoringConfigurationOperations(this); this._serviceDiagnosticSettingsOperations = new ServiceDiagnosticSettingsOperations(this); this._skuOperations = new SkuOperations(this); this._storageDiagnosticSettingsOperations = new StorageDiagnosticSettingsOperations(this); this._apiVersion = "2014-04-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IAutomatedExportOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name. /// </param> /// <param name='serverName'> /// Required. The server name. /// </param> /// <param name='databaseName'> /// Required. The database name. /// </param> /// <param name='automatedExportSettingName'> /// Required. The automated export setting name. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> CreateOrUpdateSettingAsync(this IAutomatedExportOperations operations, string resourceGroupName, string serverName, string databaseName, string automatedExportSettingName, AutomatedExportSettingCreateOrUpdateParameters parameters) { return(operations.CreateOrUpdateSettingAsync(resourceGroupName, serverName, databaseName, automatedExportSettingName, parameters, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IAutomatedExportOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource name. /// </param> /// <param name='serverName'> /// Required. The server name. /// </param> /// <param name='databaseName'> /// Required. The database name. /// </param> /// <param name='automatedExportSettingName'> /// Required. The automated export setting name. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AutomatedExportSettingGetResponse> GetSettingAsync(this IAutomatedExportOperations operations, string resourceGroupName, string serverName, string databaseName, string automatedExportSettingName) { return(operations.GetSettingAsync(resourceGroupName, serverName, databaseName, automatedExportSettingName, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IAutomatedExportOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource name. /// </param> /// <param name='serverName'> /// Required. The server name. /// </param> /// <param name='databaseName'> /// Required. The database name. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteSettingAsync(this IAutomatedExportOperations operations, string resourceGroupName, string serverName, string databaseName) { return(operations.DeleteSettingAsync(resourceGroupName, serverName, databaseName, CancellationToken.None)); }