Documentation ¶
Index ¶
- func PossibleValuesForActionType() []string
- func PossibleValuesForEventSource() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForPropertyType() []string
- func ValidateAutomationID(input interface{}, key string) (warnings []string, errors []error)
- type ActionType
- type Automation
- type AutomationAction
- type AutomationActionEventHub
- type AutomationActionLogicApp
- type AutomationActionWorkspace
- type AutomationId
- type AutomationOperationPredicate
- type AutomationProperties
- type AutomationRuleSet
- type AutomationScope
- type AutomationSource
- type AutomationTriggeringRule
- type AutomationValidationStatus
- type AutomationsClient
- func (c AutomationsClient) CreateOrUpdate(ctx context.Context, id AutomationId, input Automation) (result CreateOrUpdateOperationResponse, err error)
- func (c AutomationsClient) Delete(ctx context.Context, id AutomationId) (result DeleteOperationResponse, err error)
- func (c AutomationsClient) Get(ctx context.Context, id AutomationId) (result GetOperationResponse, err error)
- func (c AutomationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c AutomationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c AutomationsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c AutomationsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c AutomationsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c AutomationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c AutomationsClient) Validate(ctx context.Context, id AutomationId, input Automation) (result ValidateOperationResponse, err error)
- type BaseAutomationActionImpl
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type EventSource
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type Operator
- type PropertyType
- type RawAutomationActionImpl
- type ValidateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionType ¶
func PossibleValuesForActionType() []string
func PossibleValuesForEventSource ¶
func PossibleValuesForEventSource() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func PossibleValuesForPropertyType ¶
func PossibleValuesForPropertyType() []string
func ValidateAutomationID ¶
ValidateAutomationID checks that 'input' can be parsed as a Automation ID
Types ¶
type ActionType ¶
type ActionType string
const ( ActionTypeEventHub ActionType = "EventHub" ActionTypeLogicApp ActionType = "LogicApp" ActionTypeWorkspace ActionType = "Workspace" )
func (*ActionType) UnmarshalJSON ¶
func (s *ActionType) UnmarshalJSON(bytes []byte) error
type Automation ¶
type Automation struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *AutomationProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type AutomationAction ¶
type AutomationAction interface {
AutomationAction() BaseAutomationActionImpl
}
func UnmarshalAutomationActionImplementation ¶
func UnmarshalAutomationActionImplementation(input []byte) (AutomationAction, error)
type AutomationActionEventHub ¶
type AutomationActionEventHub struct { ConnectionString *string `json:"connectionString,omitempty"` EventHubResourceId *string `json:"eventHubResourceId,omitempty"` SasPolicyName *string `json:"sasPolicyName,omitempty"` ActionType ActionType `json:"actionType"` }
func (AutomationActionEventHub) AutomationAction ¶
func (s AutomationActionEventHub) AutomationAction() BaseAutomationActionImpl
func (AutomationActionEventHub) MarshalJSON ¶
func (s AutomationActionEventHub) MarshalJSON() ([]byte, error)
type AutomationActionLogicApp ¶
type AutomationActionLogicApp struct { LogicAppResourceId *string `json:"logicAppResourceId,omitempty"` Uri *string `json:"uri,omitempty"` ActionType ActionType `json:"actionType"` }
func (AutomationActionLogicApp) AutomationAction ¶
func (s AutomationActionLogicApp) AutomationAction() BaseAutomationActionImpl
func (AutomationActionLogicApp) MarshalJSON ¶
func (s AutomationActionLogicApp) MarshalJSON() ([]byte, error)
type AutomationActionWorkspace ¶
type AutomationActionWorkspace struct { WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` ActionType ActionType `json:"actionType"` }
func (AutomationActionWorkspace) AutomationAction ¶
func (s AutomationActionWorkspace) AutomationAction() BaseAutomationActionImpl
func (AutomationActionWorkspace) MarshalJSON ¶
func (s AutomationActionWorkspace) MarshalJSON() ([]byte, error)
type AutomationId ¶
AutomationId is a struct representing the Resource ID for a Automation
func NewAutomationID ¶
func NewAutomationID(subscriptionId string, resourceGroupName string, automationName string) AutomationId
NewAutomationID returns a new AutomationId struct
func ParseAutomationID ¶
func ParseAutomationID(input string) (*AutomationId, error)
ParseAutomationID parses 'input' into a AutomationId
func ParseAutomationIDInsensitively ¶
func ParseAutomationIDInsensitively(input string) (*AutomationId, error)
ParseAutomationIDInsensitively parses 'input' case-insensitively into a AutomationId note: this method should only be used for API response data and not user input
func (*AutomationId) FromParseResult ¶
func (id *AutomationId) FromParseResult(input resourceids.ParseResult) error
func (AutomationId) Segments ¶
func (id AutomationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Automation ID
func (AutomationId) String ¶
func (id AutomationId) String() string
String returns a human-readable description of this Automation ID
type AutomationOperationPredicate ¶
type AutomationOperationPredicate struct { Etag *string Id *string Kind *string Location *string Name *string Type *string }
func (AutomationOperationPredicate) Matches ¶
func (p AutomationOperationPredicate) Matches(input Automation) bool
type AutomationProperties ¶
type AutomationProperties struct { Actions *[]AutomationAction `json:"actions,omitempty"` Description *string `json:"description,omitempty"` IsEnabled *bool `json:"isEnabled,omitempty"` Scopes *[]AutomationScope `json:"scopes,omitempty"` Sources *[]AutomationSource `json:"sources,omitempty"` }
func (*AutomationProperties) UnmarshalJSON ¶
func (s *AutomationProperties) UnmarshalJSON(bytes []byte) error
type AutomationRuleSet ¶
type AutomationRuleSet struct {
Rules *[]AutomationTriggeringRule `json:"rules,omitempty"`
}
type AutomationScope ¶
type AutomationSource ¶
type AutomationSource struct { EventSource *EventSource `json:"eventSource,omitempty"` RuleSets *[]AutomationRuleSet `json:"ruleSets,omitempty"` }
type AutomationTriggeringRule ¶
type AutomationTriggeringRule struct { ExpectedValue *string `json:"expectedValue,omitempty"` Operator *Operator `json:"operator,omitempty"` PropertyJPath *string `json:"propertyJPath,omitempty"` PropertyType *PropertyType `json:"propertyType,omitempty"` }
type AutomationsClient ¶
type AutomationsClient struct {
Client *resourcemanager.Client
}
func NewAutomationsClientWithBaseURI ¶
func NewAutomationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AutomationsClient, error)
func (AutomationsClient) CreateOrUpdate ¶
func (c AutomationsClient) CreateOrUpdate(ctx context.Context, id AutomationId, input Automation) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AutomationsClient) Delete ¶
func (c AutomationsClient) Delete(ctx context.Context, id AutomationId) (result DeleteOperationResponse, err error)
Delete ...
func (AutomationsClient) Get ¶
func (c AutomationsClient) Get(ctx context.Context, id AutomationId) (result GetOperationResponse, err error)
Get ...
func (AutomationsClient) List ¶
func (c AutomationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (AutomationsClient) ListByResourceGroup ¶
func (c AutomationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (AutomationsClient) ListByResourceGroupComplete ¶
func (c AutomationsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (AutomationsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c AutomationsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AutomationOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AutomationsClient) ListComplete ¶
func (c AutomationsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AutomationsClient) ListCompleteMatchingPredicate ¶
func (c AutomationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AutomationOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AutomationsClient) Validate ¶
func (c AutomationsClient) Validate(ctx context.Context, id AutomationId, input Automation) (result ValidateOperationResponse, err error)
Validate ...
type BaseAutomationActionImpl ¶
type BaseAutomationActionImpl struct {
ActionType ActionType `json:"actionType"`
}
func (BaseAutomationActionImpl) AutomationAction ¶
func (s BaseAutomationActionImpl) AutomationAction() BaseAutomationActionImpl
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Automation }
type DeleteOperationResponse ¶
type EventSource ¶
type EventSource string
const ( EventSourceAlerts EventSource = "Alerts" EventSourceAssessments EventSource = "Assessments" EventSourceAssessmentsSnapshot EventSource = "AssessmentsSnapshot" EventSourceRegulatoryComplianceAssessment EventSource = "RegulatoryComplianceAssessment" EventSourceRegulatoryComplianceAssessmentSnapshot EventSource = "RegulatoryComplianceAssessmentSnapshot" EventSourceSecureScoreControls EventSource = "SecureScoreControls" EventSourceSecureScoreControlsSnapshot EventSource = "SecureScoreControlsSnapshot" EventSourceSecureScores EventSource = "SecureScores" EventSourceSecureScoresSnapshot EventSource = "SecureScoresSnapshot" EventSourceSubAssessments EventSource = "SubAssessments" EventSourceSubAssessmentsSnapshot EventSource = "SubAssessmentsSnapshot" )
func (*EventSource) UnmarshalJSON ¶
func (s *EventSource) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Automation }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []Automation }
type ListByResourceGroupCustomPager ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Automation }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []Automation }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Automation }
type Operator ¶
type Operator string
const ( OperatorContains Operator = "Contains" OperatorEndsWith Operator = "EndsWith" OperatorEquals Operator = "Equals" OperatorGreaterThan Operator = "GreaterThan" OperatorGreaterThanOrEqualTo Operator = "GreaterThanOrEqualTo" OperatorLesserThan Operator = "LesserThan" OperatorLesserThanOrEqualTo Operator = "LesserThanOrEqualTo" OperatorNotEquals Operator = "NotEquals" OperatorStartsWith Operator = "StartsWith" )
func (*Operator) UnmarshalJSON ¶
type PropertyType ¶
type PropertyType string
const ( PropertyTypeBoolean PropertyType = "Boolean" PropertyTypeInteger PropertyType = "Integer" PropertyTypeNumber PropertyType = "Number" PropertyTypeString PropertyType = "String" )
func (*PropertyType) UnmarshalJSON ¶
func (s *PropertyType) UnmarshalJSON(bytes []byte) error
type RawAutomationActionImpl ¶
type RawAutomationActionImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawAutomationActionImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawAutomationActionImpl) AutomationAction ¶
func (s RawAutomationActionImpl) AutomationAction() BaseAutomationActionImpl
type ValidateOperationResponse ¶
type ValidateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AutomationValidationStatus }
Source Files ¶
- client.go
- constants.go
- id_automation.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_validate.go
- model_automation.go
- model_automationaction.go
- model_automationactioneventhub.go
- model_automationactionlogicapp.go
- model_automationactionworkspace.go
- model_automationproperties.go
- model_automationruleset.go
- model_automationscope.go
- model_automationsource.go
- model_automationtriggeringrule.go
- model_automationvalidationstatus.go
- predicates.go
- version.go