Skip to content

Commit

Permalink
[AutoPR securityinsights/resource-manager] Creates the "real" API for…
Browse files Browse the repository at this point in the history
… Scheduled Alert Rules (#3936)

* Generated from b63cbf7f7de110a9611e2c0d1f0b077920963104

Merge branch 'master' of https://github.com/nirgfani/azure-rest-api-specs

* Generated from 1d1029b373596e1dfe05b66fce115d5fd4b5ea57

Fixing comments from PR-

* Changing durations to fit standards
* Changing operators to fit other RPs
* Align naming to scheduledAlertRules
* Adding 200 response to DeleteScheduledAlertRule

* Generated from 573869de582350c81ae8c39877c2a170ac85cbfd

Adding kind to AlertRule and making Scheduled as a specific kind

* Generated from 27d8376898b34d8f7a3c1a0f31ba53ca217afa57

Fix some errors

* Generated from 0f74576d2fa0ae3526c5f42c39de849ddce62396

Trying to solve the model validator issues
  • Loading branch information
AutorestCI authored and jhendrixMSFT committed Jan 31, 2019
1 parent e94a9d9 commit e6171cd
Show file tree
Hide file tree
Showing 4 changed files with 762 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,46 @@ const (
DefaultBaseURI = original.DefaultBaseURI
)

type AlertRuleKind = original.AlertRuleKind

const (
Scheduled AlertRuleKind = original.Scheduled
)

type Kind = original.Kind

const (
KindAlertRule Kind = original.KindAlertRule
KindScheduled Kind = original.KindScheduled
)

type Severity = original.Severity

const (
High Severity = original.High
Informational Severity = original.Informational
Low Severity = original.Low
Medium Severity = original.Medium
)

type TriggerOperator = original.TriggerOperator

const (
Equal TriggerOperator = original.Equal
GreaterThan TriggerOperator = original.GreaterThan
LessThan TriggerOperator = original.LessThan
NotEqual TriggerOperator = original.NotEqual
)

type AlertRule = original.AlertRule
type AlertRuleProperties = original.AlertRuleProperties
type AlertRuleKind1 = original.AlertRuleKind1
type AlertRuleModel = original.AlertRuleModel
type AlertRulesClient = original.AlertRulesClient
type AlertRulesList = original.AlertRulesList
type AlertRulesListIterator = original.AlertRulesListIterator
type AlertRulesListPage = original.AlertRulesListPage
type BaseClient = original.BaseClient
type BasicAlertRule = original.BasicAlertRule
type CloudError = original.CloudError
type CloudErrorBody = original.CloudErrorBody
type Operation = original.Operation
Expand All @@ -42,6 +78,8 @@ type OperationsList = original.OperationsList
type OperationsListIterator = original.OperationsListIterator
type OperationsListPage = original.OperationsListPage
type Resource = original.Resource
type ScheduledAlertRule = original.ScheduledAlertRule
type ScheduledAlertRuleProperties = original.ScheduledAlertRuleProperties

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
Expand All @@ -52,6 +90,12 @@ func NewAlertRulesClient(subscriptionID string) AlertRulesClient {
func NewAlertRulesClientWithBaseURI(baseURI string, subscriptionID string) AlertRulesClient {
return original.NewAlertRulesClientWithBaseURI(baseURI, subscriptionID)
}
func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator {
return original.NewAlertRulesListIterator(page)
}
func NewAlertRulesListPage(getNextPage func(context.Context, AlertRulesList) (AlertRulesList, error)) AlertRulesListPage {
return original.NewAlertRulesListPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
Expand All @@ -67,6 +111,18 @@ func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (Op
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleAlertRuleKindValues() []AlertRuleKind {
return original.PossibleAlertRuleKindValues()
}
func PossibleKindValues() []Kind {
return original.PossibleKindValues()
}
func PossibleSeverityValues() []Severity {
return original.PossibleSeverityValues()
}
func PossibleTriggerOperatorValues() []TriggerOperator {
return original.PossibleTriggerOperatorValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e6171cd

Please sign in to comment.