From 903214c74ca57f333a8e0c6520c7b3fab6d28620 Mon Sep 17 00:00:00 2001 From: Martino di Filippo Date: Wed, 7 Jun 2023 23:52:34 +0200 Subject: [PATCH] Regenerate the GraphQL client and update docs The generated schema and GraphQL client aren't up-to-date with respect with the current API, regenerate them and the related docs to match. --- docs/resources/rule.md | 2 +- jupiterone/internal/client/generated.go | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/resources/rule.md b/docs/resources/rule.md index abd4cdcd..b787f75a 100644 --- a/docs/resources/rule.md +++ b/docs/resources/rule.md @@ -114,10 +114,10 @@ resource "jupiterone_rule" "users_without_mfa" { - `polling_interval` (String) Frequency of automated rule evaluation. Defaults to ONE_DAY. - `question` (Block List) Contains properties related to queries used in the rule evaluation. (see [below for nested schema](#nestedblock--question)) - `question_id` (String) Specifies the ID of a question to be used in rule evaluation. -- `question_name` (String, Deprecated) Specifies the name of a question to be used in rule evaluation. - `spec_version` (Number) Rule evaluation specification version in the case of breaking changes. - `tags` (List of String) Comma separated list of tags to apply to the rule. - `templates` (Map of String) Optional key/value pairs of template name to template +- `trigger_on_new_only` (Boolean) ### Read-Only diff --git a/jupiterone/internal/client/generated.go b/jupiterone/internal/client/generated.go index d428000d..e7d6b776 100644 --- a/jupiterone/internal/client/generated.go +++ b/jupiterone/internal/client/generated.go @@ -1184,14 +1184,15 @@ func (v *RuleStateInput) GetActions() map[string]interface{} { return v.Actions type SchedulerPollingInterval string const ( - SchedulerPollingIntervalDisabled SchedulerPollingInterval = "DISABLED" - SchedulerPollingIntervalThirtyMinutes SchedulerPollingInterval = "THIRTY_MINUTES" - SchedulerPollingIntervalOneHour SchedulerPollingInterval = "ONE_HOUR" - SchedulerPollingIntervalFourHours SchedulerPollingInterval = "FOUR_HOURS" - SchedulerPollingIntervalEightHours SchedulerPollingInterval = "EIGHT_HOURS" - SchedulerPollingIntervalTwelveHours SchedulerPollingInterval = "TWELVE_HOURS" - SchedulerPollingIntervalOneDay SchedulerPollingInterval = "ONE_DAY" - SchedulerPollingIntervalOneWeek SchedulerPollingInterval = "ONE_WEEK" + SchedulerPollingIntervalDisabled SchedulerPollingInterval = "DISABLED" + SchedulerPollingIntervalFifteenMinutes SchedulerPollingInterval = "FIFTEEN_MINUTES" + SchedulerPollingIntervalThirtyMinutes SchedulerPollingInterval = "THIRTY_MINUTES" + SchedulerPollingIntervalOneHour SchedulerPollingInterval = "ONE_HOUR" + SchedulerPollingIntervalFourHours SchedulerPollingInterval = "FOUR_HOURS" + SchedulerPollingIntervalEightHours SchedulerPollingInterval = "EIGHT_HOURS" + SchedulerPollingIntervalTwelveHours SchedulerPollingInterval = "TWELVE_HOURS" + SchedulerPollingIntervalOneDay SchedulerPollingInterval = "ONE_DAY" + SchedulerPollingIntervalOneWeek SchedulerPollingInterval = "ONE_WEEK" ) type UpdateComplianceFrameworkFields struct {