/// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceSettingName'>
 /// Name of the security setting
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WorkspaceSetting> GetAsync(this IWorkspaceSettingsOperations operations, string workspaceSettingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(workspaceSettingName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <WorkspaceSetting> > ListAsync(this IWorkspaceSettingsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Pricings = new PricingsOperations(this);
     Alerts = new AlertsOperations(this);
     Settings = new SettingsOperations(this);
     AllowedConnections = new AllowedConnectionsOperations(this);
     DiscoveredSecuritySolutions = new DiscoveredSecuritySolutionsOperations(this);
     ExternalSecuritySolutions = new ExternalSecuritySolutionsOperations(this);
     JitNetworkAccessPolicies = new JitNetworkAccessPoliciesOperations(this);
     Locations = new LocationsOperations(this);
     Operations = new Operations(this);
     Tasks = new TasksOperations(this);
     Topology = new TopologyOperations(this);
     AdvancedThreatProtection = new AdvancedThreatProtectionOperations(this);
     AutoProvisioningSettings = new AutoProvisioningSettingsOperations(this);
     Compliances = new CompliancesOperations(this);
     InformationProtectionPolicies = new InformationProtectionPoliciesOperations(this);
     SecurityContacts = new SecurityContactsOperations(this);
     WorkspaceSettings = new WorkspaceSettingsOperations(this);
     BaseUri = new System.Uri("https://management.azure.com");
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId = true;
     SerializationSettings = new JsonSerializerSettings
     {
         Formatting = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver = new ReadOnlyJsonContractResolver(),
         Converters = new List<JsonConverter>
             {
                 new Iso8601TimeSpanConverter()
             }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver = new ReadOnlyJsonContractResolver(),
         Converters = new List<JsonConverter>
             {
                 new Iso8601TimeSpanConverter()
             }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<ExternalSecuritySolution>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<ExternalSecuritySolution>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceSettingName'>
 /// Name of the security setting
 /// </param>
 public static WorkspaceSetting Get(this IWorkspaceSettingsOperations operations, string workspaceSettingName)
 {
     return(operations.GetAsync(workspaceSettingName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <WorkspaceSetting> List(this IWorkspaceSettingsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <WorkspaceSetting> ListNext(this IWorkspaceSettingsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes the custom workspace settings for this subscription. new VMs will
 /// report to the default workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceSettingName'>
 /// Name of the security setting
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IWorkspaceSettingsOperations operations, string workspaceSettingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(workspaceSettingName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes the custom workspace settings for this subscription. new VMs will
 /// report to the default workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceSettingName'>
 /// Name of the security setting
 /// </param>
 public static void Delete(this IWorkspaceSettingsOperations operations, string workspaceSettingName)
 {
     operations.DeleteAsync(workspaceSettingName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Settings about where we should store your security data and logs
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceSettingName'>
 /// Name of the security setting
 /// </param>
 /// <param name='workspaceId'>
 /// The full Azure ID of the workspace to save the data in
 /// </param>
 /// <param name='scope'>
 /// All the VMs in this scope will send their security data to the mentioned
 /// workspace unless overridden by a setting with more specific scope
 /// </param>
 public static WorkspaceSetting Update(this IWorkspaceSettingsOperations operations, string workspaceSettingName, string workspaceId, string scope)
 {
     return(operations.UpdateAsync(workspaceSettingName, workspaceId, scope).GetAwaiter().GetResult());
 }