Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR security/resource-manager] Add automations resource REST specification to Microsoft.Security #6439

Merged
merged 4 commits into from
Nov 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 95 additions & 2 deletions profiles/preview/preview/security/mgmt/security/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ const (
Remove Action = original.Remove
)

type ActionType = original.ActionType

const (
ActionTypeAutomationAction ActionType = original.ActionTypeAutomationAction
ActionTypeEventHub ActionType = original.ActionTypeEventHub
ActionTypeEventHub1 ActionType = original.ActionTypeEventHub1
ActionTypeEventHub2 ActionType = original.ActionTypeEventHub2
ActionTypeLogicApp ActionType = original.ActionTypeLogicApp
ActionTypeLogicApp1 ActionType = original.ActionTypeLogicApp1
ActionTypeLogicApp2 ActionType = original.ActionTypeLogicApp2
ActionTypeWorkspace ActionType = original.ActionTypeWorkspace
)

type AlertNotifications = original.AlertNotifications

const (
Expand Down Expand Up @@ -134,6 +147,13 @@ const (
EnforcementMode1None EnforcementMode1 = original.EnforcementMode1None
)

type EventSource = original.EventSource

const (
Alerts EventSource = original.Alerts
Assessments EventSource = original.Assessments
)

type Exe = original.Exe

const (
Expand Down Expand Up @@ -212,13 +232,36 @@ const (
MsiNone Msi = original.MsiNone
)

type Operator = original.Operator

const (
Contains Operator = original.Contains
EndsWith Operator = original.EndsWith
Equals Operator = original.Equals
GreaterThan Operator = original.GreaterThan
GreaterThanOrEqualTo Operator = original.GreaterThanOrEqualTo
LesserThan Operator = original.LesserThan
LesserThanOrEqualTo Operator = original.LesserThanOrEqualTo
NotEquals Operator = original.NotEquals
StartsWith Operator = original.StartsWith
)

type PricingTier = original.PricingTier

const (
Free PricingTier = original.Free
Standard PricingTier = original.Standard
)

type PropertyType = original.PropertyType

const (
Boolean PropertyType = original.Boolean
Integer PropertyType = original.Integer
Number PropertyType = original.Number
String PropertyType = original.String
)

type Protocol = original.Protocol

const (
Expand Down Expand Up @@ -409,8 +452,8 @@ const (
type ValueType = original.ValueType

const (
IPCidr ValueType = original.IPCidr
String ValueType = original.String
ValueTypeIPCidr ValueType = original.ValueTypeIPCidr
ValueTypeString ValueType = original.ValueTypeString
)

type AadConnectivityState1 = original.AadConnectivityState1
Expand Down Expand Up @@ -453,10 +496,33 @@ type AutoProvisioningSettingListIterator = original.AutoProvisioningSettingListI
type AutoProvisioningSettingListPage = original.AutoProvisioningSettingListPage
type AutoProvisioningSettingProperties = original.AutoProvisioningSettingProperties
type AutoProvisioningSettingsClient = original.AutoProvisioningSettingsClient
type Automation = original.Automation
type AutomationAction = original.AutomationAction
type AutomationActionEventHub = original.AutomationActionEventHub
type AutomationActionEventHubInput = original.AutomationActionEventHubInput
type AutomationActionEventHubOutput = original.AutomationActionEventHubOutput
type AutomationActionLogicApp = original.AutomationActionLogicApp
type AutomationActionLogicAppInput = original.AutomationActionLogicAppInput
type AutomationActionLogicAppOutput = original.AutomationActionLogicAppOutput
type AutomationActionWorkspace = original.AutomationActionWorkspace
type AutomationList = original.AutomationList
type AutomationListIterator = original.AutomationListIterator
type AutomationListPage = original.AutomationListPage
type AutomationMetadata = original.AutomationMetadata
type AutomationProperties = original.AutomationProperties
type AutomationRuleSet = original.AutomationRuleSet
type AutomationScope = original.AutomationScope
type AutomationSource = original.AutomationSource
type AutomationTriggeringRule = original.AutomationTriggeringRule
type AutomationValidationStatus = original.AutomationValidationStatus
type AutomationsClient = original.AutomationsClient
type AwsResourceDetails = original.AwsResourceDetails
type AzureResourceDetails = original.AzureResourceDetails
type BaseClient = original.BaseClient
type BasicAdditionalData = original.BasicAdditionalData
type BasicAutomationAction = original.BasicAutomationAction
type BasicAutomationActionEventHub = original.BasicAutomationActionEventHub
type BasicAutomationActionLogicApp = original.BasicAutomationActionLogicApp
type BasicExternalSecuritySolution = original.BasicExternalSecuritySolution
type BasicResourceDetails = original.BasicResourceDetails
type CVE = original.CVE
Expand Down Expand Up @@ -504,6 +570,7 @@ type DiscoveredSecuritySolutionListIterator = original.DiscoveredSecuritySolutio
type DiscoveredSecuritySolutionListPage = original.DiscoveredSecuritySolutionListPage
type DiscoveredSecuritySolutionProperties = original.DiscoveredSecuritySolutionProperties
type DiscoveredSecuritySolutionsClient = original.DiscoveredSecuritySolutionsClient
type ETag = original.ETag
type ExternalSecuritySolution = original.ExternalSecuritySolution
type ExternalSecuritySolutionKind1 = original.ExternalSecuritySolutionKind1
type ExternalSecuritySolutionList = original.ExternalSecuritySolutionList
Expand Down Expand Up @@ -620,6 +687,7 @@ type SubAssessmentListPage = original.SubAssessmentListPage
type SubAssessmentProperties = original.SubAssessmentProperties
type SubAssessmentStatus = original.SubAssessmentStatus
type SubAssessmentsClient = original.SubAssessmentsClient
type Tags = original.Tags
type TagsResource = original.TagsResource
type Task = original.Task
type TaskList = original.TaskList
Expand All @@ -639,6 +707,7 @@ type TopologyResourceProperties = original.TopologyResourceProperties
type TopologySingleResource = original.TopologySingleResource
type TopologySingleResourceChild = original.TopologySingleResourceChild
type TopologySingleResourceParent = original.TopologySingleResourceParent
type TrackedResource = original.TrackedResource
type UpdateIoTSecuritySolutionProperties = original.UpdateIoTSecuritySolutionProperties
type UpdateIotSecuritySolutionData = original.UpdateIotSecuritySolutionData
type UserDefinedResourcesProperties = original.UserDefinedResourcesProperties
Expand Down Expand Up @@ -709,6 +778,18 @@ func NewAutoProvisioningSettingsClient(subscriptionID string, ascLocation string
func NewAutoProvisioningSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AutoProvisioningSettingsClient {
return original.NewAutoProvisioningSettingsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
}
func NewAutomationListIterator(page AutomationListPage) AutomationListIterator {
return original.NewAutomationListIterator(page)
}
func NewAutomationListPage(getNextPage func(context.Context, AutomationList) (AutomationList, error)) AutomationListPage {
return original.NewAutomationListPage(getNextPage)
}
func NewAutomationsClient(subscriptionID string, ascLocation string) AutomationsClient {
return original.NewAutomationsClient(subscriptionID, ascLocation)
}
func NewAutomationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AutomationsClient {
return original.NewAutomationsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
}
func NewComplianceListIterator(page ComplianceListPage) ComplianceListIterator {
return original.NewComplianceListIterator(page)
}
Expand Down Expand Up @@ -979,6 +1060,9 @@ func NewWorkspaceSettingsClientWithBaseURI(baseURI string, subscriptionID string
func PossibleAadConnectivityStateValues() []AadConnectivityState {
return original.PossibleAadConnectivityStateValues()
}
func PossibleActionTypeValues() []ActionType {
return original.PossibleActionTypeValues()
}
func PossibleActionValues() []Action {
return original.PossibleActionValues()
}
Expand Down Expand Up @@ -1015,6 +1099,9 @@ func PossibleEnforcementMode1Values() []EnforcementMode1 {
func PossibleEnforcementModeValues() []EnforcementMode {
return original.PossibleEnforcementModeValues()
}
func PossibleEventSourceValues() []EventSource {
return original.PossibleEventSourceValues()
}
func PossibleExeValues() []Exe {
return original.PossibleExeValues()
}
Expand Down Expand Up @@ -1042,9 +1129,15 @@ func PossibleKindEnumValues() []KindEnum {
func PossibleMsiValues() []Msi {
return original.PossibleMsiValues()
}
func PossibleOperatorValues() []Operator {
return original.PossibleOperatorValues()
}
func PossiblePricingTierValues() []PricingTier {
return original.PossiblePricingTierValues()
}
func PossiblePropertyTypeValues() []PropertyType {
return original.PossiblePropertyTypeValues()
}
func PossibleProtocolValues() []Protocol {
return original.PossibleProtocolValues()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type AdvancedThreatProtectionClientAPI = original.AdvancedThreatProtectionClient
type AlertsClientAPI = original.AlertsClientAPI
type AllowedConnectionsClientAPI = original.AllowedConnectionsClientAPI
type AutoProvisioningSettingsClientAPI = original.AutoProvisioningSettingsClientAPI
type AutomationsClientAPI = original.AutomationsClientAPI
type ComplianceResultsClientAPI = original.ComplianceResultsClientAPI
type CompliancesClientAPI = original.CompliancesClientAPI
type ContactsClientAPI = original.ContactsClientAPI
Expand Down
Loading