Documentation ¶
Index ¶
- func PossibleValuesForReceiverStatus() []string
- func ValidateActionGroupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateNotificationStatusID(input interface{}, key string) (warnings []string, errors []error)
- type ActionDetail
- type ActionGroup
- type ActionGroupId
- type ActionGroupPatch
- type ActionGroupPatchBody
- type ActionGroupResource
- type ActionGroupResourceOperationPredicate
- type ActionGroupsAPIsClient
- func (c ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevel(ctx context.Context, id ActionGroupId, input NotificationRequestBody) (...)
- func (c ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPoll(ctx context.Context, id ActionGroupId, input NotificationRequestBody) error
- func (c ActionGroupsAPIsClient) ActionGroupsCreateOrUpdate(ctx context.Context, id ActionGroupId, input ActionGroupResource) (result ActionGroupsCreateOrUpdateOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsDelete(ctx context.Context, id ActionGroupId) (result ActionGroupsDeleteOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsEnableReceiver(ctx context.Context, id ActionGroupId, input EnableRequest) (result ActionGroupsEnableReceiverOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsGet(ctx context.Context, id ActionGroupId) (result ActionGroupsGetOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsGetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, id NotificationStatusId) (...)
- func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ActionGroupsListByResourceGroupCompleteResult, error)
- func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ActionGroupsListByResourceGroupCompleteResult, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdComplete(ctx context.Context, id commonids.SubscriptionId) (ActionGroupsListBySubscriptionIdCompleteResult, error)
- func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ActionGroupsListBySubscriptionIdCompleteResult, err error)
- func (c ActionGroupsAPIsClient) ActionGroupsUpdate(ctx context.Context, id ActionGroupId, input ActionGroupPatchBody) (result ActionGroupsUpdateOperationResponse, err error)
- type ActionGroupsCreateNotificationsAtActionGroupResourceLevelOperationResponse
- type ActionGroupsCreateOrUpdateOperationResponse
- type ActionGroupsDeleteOperationResponse
- type ActionGroupsEnableReceiverOperationResponse
- type ActionGroupsGetOperationResponse
- type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOperationResponse
- type ActionGroupsListByResourceGroupCompleteResult
- type ActionGroupsListByResourceGroupOperationResponse
- type ActionGroupsListBySubscriptionIdCompleteResult
- type ActionGroupsListBySubscriptionIdOperationResponse
- type ActionGroupsUpdateOperationResponse
- type ArmRoleReceiver
- type AutomationRunbookReceiver
- type AzureAppPushReceiver
- type AzureFunctionReceiver
- type Context
- type EmailReceiver
- type EnableRequest
- type EventHubReceiver
- type ItsmReceiver
- type LogicAppReceiver
- type NotificationRequestBody
- type NotificationStatusId
- type ReceiverStatus
- type SmsReceiver
- type TestNotificationDetailsResponse
- type VoiceReceiver
- type WebhookReceiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForReceiverStatus ¶
func PossibleValuesForReceiverStatus() []string
func ValidateActionGroupID ¶
ValidateActionGroupID checks that 'input' can be parsed as a Action Group ID
func ValidateNotificationStatusID ¶
func ValidateNotificationStatusID(input interface{}, key string) (warnings []string, errors []error)
ValidateNotificationStatusID checks that 'input' can be parsed as a Notification Status ID
Types ¶
type ActionDetail ¶
type ActionGroup ¶
type ActionGroup struct { ArmRoleReceivers *[]ArmRoleReceiver `json:"armRoleReceivers,omitempty"` AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"` AzureAppPushReceivers *[]AzureAppPushReceiver `json:"azureAppPushReceivers,omitempty"` AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"` EmailReceivers *[]EmailReceiver `json:"emailReceivers,omitempty"` Enabled bool `json:"enabled"` EventHubReceivers *[]EventHubReceiver `json:"eventHubReceivers,omitempty"` GroupShortName string `json:"groupShortName"` ItsmReceivers *[]ItsmReceiver `json:"itsmReceivers,omitempty"` LogicAppReceivers *[]LogicAppReceiver `json:"logicAppReceivers,omitempty"` SmsReceivers *[]SmsReceiver `json:"smsReceivers,omitempty"` VoiceReceivers *[]VoiceReceiver `json:"voiceReceivers,omitempty"` WebhookReceivers *[]WebhookReceiver `json:"webhookReceivers,omitempty"` }
type ActionGroupId ¶
ActionGroupId is a struct representing the Resource ID for a Action Group
func NewActionGroupID ¶
func NewActionGroupID(subscriptionId string, resourceGroupName string, actionGroupName string) ActionGroupId
NewActionGroupID returns a new ActionGroupId struct
func ParseActionGroupID ¶
func ParseActionGroupID(input string) (*ActionGroupId, error)
ParseActionGroupID parses 'input' into a ActionGroupId
func ParseActionGroupIDInsensitively ¶
func ParseActionGroupIDInsensitively(input string) (*ActionGroupId, error)
ParseActionGroupIDInsensitively parses 'input' case-insensitively into a ActionGroupId note: this method should only be used for API response data and not user input
func (*ActionGroupId) FromParseResult ¶
func (id *ActionGroupId) FromParseResult(input resourceids.ParseResult) error
func (ActionGroupId) ID ¶
func (id ActionGroupId) ID() string
ID returns the formatted Action Group ID
func (ActionGroupId) Segments ¶
func (id ActionGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Action Group ID
func (ActionGroupId) String ¶
func (id ActionGroupId) String() string
String returns a human-readable description of this Action Group ID
type ActionGroupPatch ¶
type ActionGroupPatch struct {
Enabled *bool `json:"enabled,omitempty"`
}
type ActionGroupPatchBody ¶
type ActionGroupPatchBody struct { Properties *ActionGroupPatch `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ActionGroupResource ¶
type ActionGroupResourceOperationPredicate ¶ added in v0.20240226.1173038
type ActionGroupResourceOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (ActionGroupResourceOperationPredicate) Matches ¶ added in v0.20240226.1173038
func (p ActionGroupResourceOperationPredicate) Matches(input ActionGroupResource) bool
type ActionGroupsAPIsClient ¶
type ActionGroupsAPIsClient struct {
Client *resourcemanager.Client
}
func NewActionGroupsAPIsClientWithBaseURI ¶
func NewActionGroupsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ActionGroupsAPIsClient, error)
func (ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevel ¶
func (c ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevel(ctx context.Context, id ActionGroupId, input NotificationRequestBody) (result ActionGroupsCreateNotificationsAtActionGroupResourceLevelOperationResponse, err error)
ActionGroupsCreateNotificationsAtActionGroupResourceLevel ...
func (ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPoll ¶
func (c ActionGroupsAPIsClient) ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPoll(ctx context.Context, id ActionGroupId, input NotificationRequestBody) error
ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPoll performs ActionGroupsCreateNotificationsAtActionGroupResourceLevel then polls until it's completed
func (ActionGroupsAPIsClient) ActionGroupsCreateOrUpdate ¶
func (c ActionGroupsAPIsClient) ActionGroupsCreateOrUpdate(ctx context.Context, id ActionGroupId, input ActionGroupResource) (result ActionGroupsCreateOrUpdateOperationResponse, err error)
ActionGroupsCreateOrUpdate ...
func (ActionGroupsAPIsClient) ActionGroupsDelete ¶
func (c ActionGroupsAPIsClient) ActionGroupsDelete(ctx context.Context, id ActionGroupId) (result ActionGroupsDeleteOperationResponse, err error)
ActionGroupsDelete ...
func (ActionGroupsAPIsClient) ActionGroupsEnableReceiver ¶
func (c ActionGroupsAPIsClient) ActionGroupsEnableReceiver(ctx context.Context, id ActionGroupId, input EnableRequest) (result ActionGroupsEnableReceiverOperationResponse, err error)
ActionGroupsEnableReceiver ...
func (ActionGroupsAPIsClient) ActionGroupsGet ¶
func (c ActionGroupsAPIsClient) ActionGroupsGet(ctx context.Context, id ActionGroupId) (result ActionGroupsGetOperationResponse, err error)
ActionGroupsGet ...
func (ActionGroupsAPIsClient) ActionGroupsGetTestNotificationsAtActionGroupResourceLevel ¶
func (c ActionGroupsAPIsClient) ActionGroupsGetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, id NotificationStatusId) (result ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOperationResponse, err error)
ActionGroupsGetTestNotificationsAtActionGroupResourceLevel ...
func (ActionGroupsAPIsClient) ActionGroupsListByResourceGroup ¶
func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error)
ActionGroupsListByResourceGroup ...
func (ActionGroupsAPIsClient) ActionGroupsListByResourceGroupComplete ¶ added in v0.20240226.1173038
func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ActionGroupsListByResourceGroupCompleteResult, error)
ActionGroupsListByResourceGroupComplete retrieves all the results into a single object
func (ActionGroupsAPIsClient) ActionGroupsListByResourceGroupCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ActionGroupResourceOperationPredicate) (result ActionGroupsListByResourceGroupCompleteResult, err error)
ActionGroupsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId ¶
func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error)
ActionGroupsListBySubscriptionId ...
func (ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdComplete ¶ added in v0.20240226.1173038
func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdComplete(ctx context.Context, id commonids.SubscriptionId) (ActionGroupsListBySubscriptionIdCompleteResult, error)
ActionGroupsListBySubscriptionIdComplete retrieves all the results into a single object
func (ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionIdCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ActionGroupResourceOperationPredicate) (result ActionGroupsListBySubscriptionIdCompleteResult, err error)
ActionGroupsListBySubscriptionIdCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ActionGroupsAPIsClient) ActionGroupsUpdate ¶
func (c ActionGroupsAPIsClient) ActionGroupsUpdate(ctx context.Context, id ActionGroupId, input ActionGroupPatchBody) (result ActionGroupsUpdateOperationResponse, err error)
ActionGroupsUpdate ...
type ActionGroupsCreateOrUpdateOperationResponse ¶
type ActionGroupsCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionGroupResource }
type ActionGroupsGetOperationResponse ¶
type ActionGroupsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionGroupResource }
type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOperationResponse ¶
type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TestNotificationDetailsResponse }
type ActionGroupsListByResourceGroupCompleteResult ¶ added in v0.20240226.1173038
type ActionGroupsListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []ActionGroupResource }
type ActionGroupsListByResourceGroupOperationResponse ¶
type ActionGroupsListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ActionGroupResource }
type ActionGroupsListBySubscriptionIdCompleteResult ¶ added in v0.20240226.1173038
type ActionGroupsListBySubscriptionIdCompleteResult struct { LatestHttpResponse *http.Response Items []ActionGroupResource }
type ActionGroupsListBySubscriptionIdOperationResponse ¶
type ActionGroupsListBySubscriptionIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ActionGroupResource }
type ActionGroupsUpdateOperationResponse ¶
type ActionGroupsUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionGroupResource }
type ArmRoleReceiver ¶
type AutomationRunbookReceiver ¶
type AutomationRunbookReceiver struct { AutomationAccountId string `json:"automationAccountId"` IsGlobalRunbook bool `json:"isGlobalRunbook"` Name *string `json:"name,omitempty"` RunbookName string `json:"runbookName"` ServiceUri *string `json:"serviceUri,omitempty"` UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` WebhookResourceId string `json:"webhookResourceId"` }
type AzureAppPushReceiver ¶
type AzureFunctionReceiver ¶
type EmailReceiver ¶
type EmailReceiver struct { EmailAddress string `json:"emailAddress"` Name string `json:"name"` Status *ReceiverStatus `json:"status,omitempty"` UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
type EnableRequest ¶
type EnableRequest struct {
ReceiverName string `json:"receiverName"`
}
type EventHubReceiver ¶
type EventHubReceiver struct { EventHubName string `json:"eventHubName"` EventHubNameSpace string `json:"eventHubNameSpace"` Name string `json:"name"` SubscriptionId string `json:"subscriptionId"` TenantId *string `json:"tenantId,omitempty"` UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
type ItsmReceiver ¶
type LogicAppReceiver ¶
type NotificationRequestBody ¶
type NotificationRequestBody struct { AlertType string `json:"alertType"` ArmRoleReceivers *[]ArmRoleReceiver `json:"armRoleReceivers,omitempty"` AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"` AzureAppPushReceivers *[]AzureAppPushReceiver `json:"azureAppPushReceivers,omitempty"` AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"` EmailReceivers *[]EmailReceiver `json:"emailReceivers,omitempty"` EventHubReceivers *[]EventHubReceiver `json:"eventHubReceivers,omitempty"` ItsmReceivers *[]ItsmReceiver `json:"itsmReceivers,omitempty"` LogicAppReceivers *[]LogicAppReceiver `json:"logicAppReceivers,omitempty"` SmsReceivers *[]SmsReceiver `json:"smsReceivers,omitempty"` VoiceReceivers *[]VoiceReceiver `json:"voiceReceivers,omitempty"` WebhookReceivers *[]WebhookReceiver `json:"webhookReceivers,omitempty"` }
type NotificationStatusId ¶
type NotificationStatusId struct { SubscriptionId string ResourceGroupName string ActionGroupName string NotificationId string }
NotificationStatusId is a struct representing the Resource ID for a Notification Status
func NewNotificationStatusID ¶
func NewNotificationStatusID(subscriptionId string, resourceGroupName string, actionGroupName string, notificationId string) NotificationStatusId
NewNotificationStatusID returns a new NotificationStatusId struct
func ParseNotificationStatusID ¶
func ParseNotificationStatusID(input string) (*NotificationStatusId, error)
ParseNotificationStatusID parses 'input' into a NotificationStatusId
func ParseNotificationStatusIDInsensitively ¶
func ParseNotificationStatusIDInsensitively(input string) (*NotificationStatusId, error)
ParseNotificationStatusIDInsensitively parses 'input' case-insensitively into a NotificationStatusId note: this method should only be used for API response data and not user input
func (*NotificationStatusId) FromParseResult ¶
func (id *NotificationStatusId) FromParseResult(input resourceids.ParseResult) error
func (NotificationStatusId) ID ¶
func (id NotificationStatusId) ID() string
ID returns the formatted Notification Status ID
func (NotificationStatusId) Segments ¶
func (id NotificationStatusId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Notification Status ID
func (NotificationStatusId) String ¶
func (id NotificationStatusId) String() string
String returns a human-readable description of this Notification Status ID
type ReceiverStatus ¶
type ReceiverStatus string
const ( ReceiverStatusDisabled ReceiverStatus = "Disabled" ReceiverStatusEnabled ReceiverStatus = "Enabled" ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified" )
func (*ReceiverStatus) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ReceiverStatus) UnmarshalJSON(bytes []byte) error
type SmsReceiver ¶
type SmsReceiver struct { CountryCode string `json:"countryCode"` Name string `json:"name"` PhoneNumber string `json:"phoneNumber"` Status *ReceiverStatus `json:"status,omitempty"` }
type TestNotificationDetailsResponse ¶
type TestNotificationDetailsResponse struct { ActionDetails *[]ActionDetail `json:"actionDetails,omitempty"` CompletedTime *string `json:"completedTime,omitempty"` Context *Context `json:"context,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` State string `json:"state"` }
type VoiceReceiver ¶
type WebhookReceiver ¶
type WebhookReceiver struct { IdentifierUri *string `json:"identifierUri,omitempty"` Name string `json:"name"` ObjectId *string `json:"objectId,omitempty"` ServiceUri string `json:"serviceUri"` TenantId *string `json:"tenantId,omitempty"` UseAadAuth *bool `json:"useAadAuth,omitempty"` UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_actiongroup.go
- id_notificationstatus.go
- method_actiongroupscreatenotificationsatactiongroupresourcelevel.go
- method_actiongroupscreateorupdate.go
- method_actiongroupsdelete.go
- method_actiongroupsenablereceiver.go
- method_actiongroupsget.go
- method_actiongroupsgettestnotificationsatactiongroupresourcelevel.go
- method_actiongroupslistbyresourcegroup.go
- method_actiongroupslistbysubscriptionid.go
- method_actiongroupsupdate.go
- model_actiondetail.go
- model_actiongroup.go
- model_actiongrouppatch.go
- model_actiongrouppatchbody.go
- model_actiongroupresource.go
- model_armrolereceiver.go
- model_automationrunbookreceiver.go
- model_azureapppushreceiver.go
- model_azurefunctionreceiver.go
- model_context.go
- model_emailreceiver.go
- model_enablerequest.go
- model_eventhubreceiver.go
- model_itsmreceiver.go
- model_logicappreceiver.go
- model_notificationrequestbody.go
- model_smsreceiver.go
- model_testnotificationdetailsresponse.go
- model_voicereceiver.go
- model_webhookreceiver.go
- predicates.go
- version.go