Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaponi committed Mar 23, 2021
2 parents d2b386f + 5d54976 commit a06da4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/services/smarthooks/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ type SmartHook struct {
Runtime *string `json:"runtime,omitempty"`
ContextVersion *string `json:"context_version,omitempty"`
Retries *int32 `json:"retries,omitempty"`
Options *SmartHookOptions `json:"options,omitempty"`
Options *Options `json:"options,omitempty"`
Packages map[string]string `json:"packages,omitempty"`
Function *string `json:"function,omitempty"`
Status *string `json:"status,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Conditions []SmartHookCondition `json:"conditions,omitempty"`
Conditions []Condition `json:"conditions,omitempty"`
}

// SmartHookOptions represents the options to be associated with a SmartHook
type SmartHookOptions struct {
type Options struct {
RiskEnabled *bool `json:"risk_enabled,omitempty"`
MFADeviceInfoEnabled *bool `json:"mfa_device_info_enabled,omitempty"`
LocationEnabled *bool `json:"location_enabled,omitempty"`
}

type SmartHookCondition struct {
type Condition struct {
Source *string `json:"source,omitempty"`
Operator *string `json:"operator,omitempty"`
Value *string `json:"value,omitempty"`
Expand Down

0 comments on commit a06da4b

Please sign in to comment.