Ejemplo n.º 1
0
 /// <summary>
 /// Gets all entity query templates.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='kind'>
 /// The entity template query kind we want to fetch. Possible values include:
 /// 'Activity'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EntityQueryTemplate> > ListAsync(this IEntityQueryTemplatesOperations operations, string resourceGroupName, string workspaceName, string kind = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, kind, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets all entity query templates.
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EntityQueryTemplate> > ListNextAsync(this IEntityQueryTemplatesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     AlertRules                         = new AlertRulesOperations(this);
     Actions                            = new ActionsOperations(this);
     AlertRuleTemplates                 = new AlertRuleTemplatesOperations(this);
     AutomationRules                    = new AutomationRulesOperations(this);
     Bookmarks                          = new BookmarksOperations(this);
     BookmarkRelations                  = new BookmarkRelationsOperations(this);
     Bookmark                           = new BookmarkOperations(this);
     IPGeodata                          = new IPGeodataOperations(this);
     DomainWhois                        = new DomainWhoisOperations(this);
     EntityQueries                      = new EntityQueriesOperations(this);
     Entities                           = new EntitiesOperations(this);
     EntitiesGetTimeline                = new EntitiesGetTimelineOperations(this);
     EntitiesRelations                  = new EntitiesRelationsOperations(this);
     EntityRelations                    = new EntityRelationsOperations(this);
     Incidents                          = new IncidentsOperations(this);
     IncidentComments                   = new IncidentCommentsOperations(this);
     IncidentRelations                  = new IncidentRelationsOperations(this);
     Metadata                           = new MetadataOperations(this);
     SentinelOnboardingStates           = new SentinelOnboardingStatesOperations(this);
     ProductSettings                    = new ProductSettingsOperations(this);
     SourceControl                      = new SourceControlOperations(this);
     SourceControls                     = new SourceControlsOperations(this);
     Watchlists                         = new WatchlistsOperations(this);
     WatchlistItems                     = new WatchlistItemsOperations(this);
     DataConnectors                     = new DataConnectorsOperations(this);
     DataConnectorsCheckRequirements    = new DataConnectorsCheckRequirementsOperations(this);
     ThreatIntelligenceIndicator        = new ThreatIntelligenceIndicatorOperations(this);
     ThreatIntelligenceIndicators       = new ThreatIntelligenceIndicatorsOperations(this);
     ThreatIntelligenceIndicatorMetrics = new ThreatIntelligenceIndicatorMetricsOperations(this);
     Operations                         = new Operations(this);
     OfficeConsents                     = new OfficeConsentsOperations(this);
     EntityQueryTemplates               = new EntityQueryTemplatesOperations(this);
     BaseUri                            = new System.Uri("https://management.azure.com");
     ApiVersion                         = "2021-09-01-preview";
     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 <AlertRule>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AlertRule>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AlertRuleTemplate>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AlertRuleTemplate>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AutomationRuleCondition>("conditionType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AutomationRuleCondition>("conditionType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AutomationRuleAction>("actionType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AutomationRuleAction>("actionType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Entity>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Entity>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EntityQuery>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EntityQuery>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomEntityQuery>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomEntityQuery>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EntityTimelineItem>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EntityTimelineItem>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EntityQueryItem>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EntityQueryItem>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Settings>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Settings>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DataConnectorsCheckRequirements>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DataConnectorsCheckRequirements>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DataConnector>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DataConnector>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ThreatIntelligenceInformation>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ThreatIntelligenceInformation>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EntityQueryTemplate>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EntityQueryTemplate>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets an entity query.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='entityQueryTemplateId'>
 /// entity query template ID
 /// </param>
 public static EntityQueryTemplate Get(this IEntityQueryTemplatesOperations operations, string resourceGroupName, string workspaceName, string entityQueryTemplateId)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, entityQueryTemplateId).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets all entity query templates.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='kind'>
 /// The entity template query kind we want to fetch. Possible values include:
 /// 'Activity'
 /// </param>
 public static IPage <EntityQueryTemplate> List(this IEntityQueryTemplatesOperations operations, string resourceGroupName, string workspaceName, string kind = default(string))
 {
     return(operations.ListAsync(resourceGroupName, workspaceName, kind).GetAwaiter().GetResult());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Gets all entity query templates.
 /// </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 <EntityQueryTemplate> ListNext(this IEntityQueryTemplatesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }