actiongroupsapis

package
v0.20240123.1170558 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/actiongroupsapis Documentation

The actiongroupsapis SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2018-03-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/actiongroupsapis"

Client Initialization

client := actiongroupsapis.NewActionGroupsAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ActionGroupsAPIsClient.ActionGroupsCreateOrUpdate

ctx := context.TODO()
id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue")

payload := actiongroupsapis.ActionGroupResource{
	// ...
}


read, err := client.ActionGroupsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsDelete

ctx := context.TODO()
id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue")

read, err := client.ActionGroupsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsEnableReceiver

ctx := context.TODO()
id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue")

payload := actiongroupsapis.EnableRequest{
	// ...
}


read, err := client.ActionGroupsEnableReceiver(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsGet

ctx := context.TODO()
id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue")

read, err := client.ActionGroupsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsListByResourceGroup

ctx := context.TODO()
id := actiongroupsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

read, err := client.ActionGroupsListByResourceGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsListBySubscriptionId

ctx := context.TODO()
id := actiongroupsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.ActionGroupsListBySubscriptionId(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActionGroupsAPIsClient.ActionGroupsUpdate

ctx := context.TODO()
id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue")

payload := actiongroupsapis.ActionGroupPatchBody{
	// ...
}


read, err := client.ActionGroupsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForReceiverStatus

func PossibleValuesForReceiverStatus() []string

func ValidateActionGroupID

func ValidateActionGroupID(input interface{}, key string) (warnings []string, errors []error)

ValidateActionGroupID checks that 'input' can be parsed as a Action Group ID

Types

type ActionGroup

type ActionGroup struct {
	AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"`
	AzureAppPushReceivers      *[]AzureAppPushReceiver      `json:"azureAppPushReceivers,omitempty"`
	AzureFunctionReceivers     *[]AzureFunctionReceiver     `json:"azureFunctionReceivers,omitempty"`
	EmailReceivers             *[]EmailReceiver             `json:"emailReceivers,omitempty"`
	Enabled                    bool                         `json:"enabled"`
	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

type ActionGroupId struct {
	SubscriptionId    string
	ResourceGroupName string
	ActionGroupName   string
}

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 added in v0.20231127.1171502

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 ActionGroupList

type ActionGroupList struct {
	NextLink *string                `json:"nextLink,omitempty"`
	Value    *[]ActionGroupResource `json:"value,omitempty"`
}

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 ActionGroupResource struct {
	Id         *string            `json:"id,omitempty"`
	Location   string             `json:"location"`
	Name       *string            `json:"name,omitempty"`
	Properties *ActionGroup       `json:"properties,omitempty"`
	Tags       *map[string]string `json:"tags,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type ActionGroupsAPIsClient

type ActionGroupsAPIsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewActionGroupsAPIsClientWithBaseURI

func NewActionGroupsAPIsClientWithBaseURI(endpoint string) ActionGroupsAPIsClient

func (ActionGroupsAPIsClient) ActionGroupsCreateOrUpdate

ActionGroupsCreateOrUpdate ...

func (ActionGroupsAPIsClient) ActionGroupsDelete

ActionGroupsDelete ...

func (ActionGroupsAPIsClient) ActionGroupsEnableReceiver

func (c ActionGroupsAPIsClient) ActionGroupsEnableReceiver(ctx context.Context, id ActionGroupId, input EnableRequest) (result ActionGroupsEnableReceiverOperationResponse, err error)

ActionGroupsEnableReceiver ...

func (ActionGroupsAPIsClient) ActionGroupsGet

ActionGroupsGet ...

func (ActionGroupsAPIsClient) ActionGroupsListByResourceGroup

ActionGroupsListByResourceGroup ...

func (ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId

ActionGroupsListBySubscriptionId ...

func (ActionGroupsAPIsClient) ActionGroupsUpdate

ActionGroupsUpdate ...

type ActionGroupsCreateOrUpdateOperationResponse

type ActionGroupsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActionGroupResource
}

type ActionGroupsDeleteOperationResponse

type ActionGroupsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ActionGroupsEnableReceiverOperationResponse

type ActionGroupsEnableReceiverOperationResponse struct {
	HttpResponse *http.Response
}

type ActionGroupsGetOperationResponse

type ActionGroupsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActionGroupResource
}

type ActionGroupsListByResourceGroupOperationResponse

type ActionGroupsListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActionGroupList
}

type ActionGroupsListBySubscriptionIdOperationResponse

type ActionGroupsListBySubscriptionIdOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActionGroupList
}

type ActionGroupsUpdateOperationResponse

type ActionGroupsUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActionGroupResource
}

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"`
	WebhookResourceId   string  `json:"webhookResourceId"`
}

type AzureAppPushReceiver

type AzureAppPushReceiver struct {
	EmailAddress string `json:"emailAddress"`
	Name         string `json:"name"`
}

type AzureFunctionReceiver

type AzureFunctionReceiver struct {
	FunctionAppResourceId string `json:"functionAppResourceId"`
	FunctionName          string `json:"functionName"`
	HTTPTriggerUrl        string `json:"httpTriggerUrl"`
	Name                  string `json:"name"`
}

type EmailReceiver

type EmailReceiver struct {
	EmailAddress string          `json:"emailAddress"`
	Name         string          `json:"name"`
	Status       *ReceiverStatus `json:"status,omitempty"`
}

type EnableRequest

type EnableRequest struct {
	ReceiverName string `json:"receiverName"`
}

type ItsmReceiver

type ItsmReceiver struct {
	ConnectionId        string `json:"connectionId"`
	Name                string `json:"name"`
	Region              string `json:"region"`
	TicketConfiguration string `json:"ticketConfiguration"`
	WorkspaceId         string `json:"workspaceId"`
}

type LogicAppReceiver

type LogicAppReceiver struct {
	CallbackUrl string `json:"callbackUrl"`
	Name        string `json:"name"`
	ResourceId  string `json:"resourceId"`
}

type ReceiverStatus

type ReceiverStatus string
const (
	ReceiverStatusDisabled     ReceiverStatus = "Disabled"
	ReceiverStatusEnabled      ReceiverStatus = "Enabled"
	ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified"
)

type SmsReceiver

type SmsReceiver struct {
	CountryCode string          `json:"countryCode"`
	Name        string          `json:"name"`
	PhoneNumber string          `json:"phoneNumber"`
	Status      *ReceiverStatus `json:"status,omitempty"`
}

type VoiceReceiver

type VoiceReceiver struct {
	CountryCode string `json:"countryCode"`
	Name        string `json:"name"`
	PhoneNumber string `json:"phoneNumber"`
}

type WebhookReceiver

type WebhookReceiver struct {
	Name       string `json:"name"`
	ServiceUri string `json:"serviceUri"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL