alerts

package
v0.20240214.1100807 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/alerts Documentation

The alerts SDK allows for interaction with the Azure Resource Manager Service security (API Version 2020-01-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/alerts"

Client Initialization

client := alerts.NewAlertsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AlertsClient.GetResourceGroupLevelAlerts

ctx := context.TODO()
id := alerts.NewLocationAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "alertValue")

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

Example Usage: AlertsClient.GetSubscriptionLevelAlert

ctx := context.TODO()
id := alerts.NewAlertID("12345678-1234-9876-4563-123456789012", "locationValue", "alertValue")

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

Example Usage: AlertsClient.List

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

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AlertsClient.ListByResourceGroup

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

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AlertsClient.ListResourceGroupLevelAlertsByRegion

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

// alternatively `client.ListResourceGroupLevelAlertsByRegion(ctx, id)` can be used to do batched pagination
items, err := client.ListResourceGroupLevelAlertsByRegionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AlertsClient.ListSubscriptionLevelAlertsByRegion

ctx := context.TODO()
id := alerts.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

// alternatively `client.ListSubscriptionLevelAlertsByRegion(ctx, id)` can be used to do batched pagination
items, err := client.ListSubscriptionLevelAlertsByRegionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AlertsClient.UpdateResourceGroupLevelAlertStateToDismiss

ctx := context.TODO()
id := alerts.NewLocationAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "alertValue")

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

Example Usage: AlertsClient.UpdateResourceGroupLevelAlertStateToReactivate

ctx := context.TODO()
id := alerts.NewLocationAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "alertValue")

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

Example Usage: AlertsClient.UpdateResourceGroupLevelStateToResolve

ctx := context.TODO()
id := alerts.NewLocationAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "alertValue")

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

Example Usage: AlertsClient.UpdateSubscriptionLevelAlertStateToDismiss

ctx := context.TODO()
id := alerts.NewAlertID("12345678-1234-9876-4563-123456789012", "locationValue", "alertValue")

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

Example Usage: AlertsClient.UpdateSubscriptionLevelAlertStateToReactivate

ctx := context.TODO()
id := alerts.NewAlertID("12345678-1234-9876-4563-123456789012", "locationValue", "alertValue")

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

Example Usage: AlertsClient.UpdateSubscriptionLevelStateToResolve

ctx := context.TODO()
id := alerts.NewAlertID("12345678-1234-9876-4563-123456789012", "locationValue", "alertValue")

read, err := client.UpdateSubscriptionLevelStateToResolve(ctx, id)
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 PossibleValuesForAlertSeverity

func PossibleValuesForAlertSeverity() []string

func PossibleValuesForAlertStatus

func PossibleValuesForAlertStatus() []string

func PossibleValuesForIntent

func PossibleValuesForIntent() []string

func PossibleValuesForResourceIdentifierType

func PossibleValuesForResourceIdentifierType() []string

func ValidateAlertID

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

ValidateAlertID checks that 'input' can be parsed as a Alert ID

func ValidateLocationAlertID

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

ValidateLocationAlertID checks that 'input' can be parsed as a Location Alert ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateProviderLocationID

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

ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID

Types

type Alert

type Alert struct {
	Id         *string          `json:"id,omitempty"`
	Name       *string          `json:"name,omitempty"`
	Properties *AlertProperties `json:"properties,omitempty"`
	Type       *string          `json:"type,omitempty"`
}

type AlertEntity

type AlertEntity struct {
	Type *string `json:"type,omitempty"`
}

type AlertId

type AlertId struct {
	SubscriptionId string
	LocationName   string
	AlertName      string
}

AlertId is a struct representing the Resource ID for a Alert

func NewAlertID

func NewAlertID(subscriptionId string, locationName string, alertName string) AlertId

NewAlertID returns a new AlertId struct

func ParseAlertID

func ParseAlertID(input string) (*AlertId, error)

ParseAlertID parses 'input' into a AlertId

func ParseAlertIDInsensitively

func ParseAlertIDInsensitively(input string) (*AlertId, error)

ParseAlertIDInsensitively parses 'input' case-insensitively into a AlertId note: this method should only be used for API response data and not user input

func (*AlertId) FromParseResult

func (id *AlertId) FromParseResult(input resourceids.ParseResult) error

func (AlertId) ID

func (id AlertId) ID() string

ID returns the formatted Alert ID

func (AlertId) Segments

func (id AlertId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Alert ID

func (AlertId) String

func (id AlertId) String() string

String returns a human-readable description of this Alert ID

type AlertOperationPredicate

type AlertOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AlertOperationPredicate) Matches

func (p AlertOperationPredicate) Matches(input Alert) bool

type AlertProperties

type AlertProperties struct {
	AlertDisplayName     *string               `json:"alertDisplayName,omitempty"`
	AlertType            *string               `json:"alertType,omitempty"`
	AlertUri             *string               `json:"alertUri,omitempty"`
	CompromisedEntity    *string               `json:"compromisedEntity,omitempty"`
	CorrelationKey       *string               `json:"correlationKey,omitempty"`
	Description          *string               `json:"description,omitempty"`
	EndTimeUtc           *string               `json:"endTimeUtc,omitempty"`
	Entities             *[]AlertEntity        `json:"entities,omitempty"`
	ExtendedLinks        *[]map[string]string  `json:"extendedLinks,omitempty"`
	ExtendedProperties   *map[string]string    `json:"extendedProperties,omitempty"`
	Intent               *Intent               `json:"intent,omitempty"`
	IsIncident           *bool                 `json:"isIncident,omitempty"`
	ProcessingEndTimeUtc *string               `json:"processingEndTimeUtc,omitempty"`
	ProductComponentName *string               `json:"productComponentName,omitempty"`
	ProductName          *string               `json:"productName,omitempty"`
	RemediationSteps     *[]string             `json:"remediationSteps,omitempty"`
	ResourceIdentifiers  *[]ResourceIdentifier `json:"resourceIdentifiers,omitempty"`
	Severity             *AlertSeverity        `json:"severity,omitempty"`
	StartTimeUtc         *string               `json:"startTimeUtc,omitempty"`
	Status               *AlertStatus          `json:"status,omitempty"`
	SystemAlertId        *string               `json:"systemAlertId,omitempty"`
	TimeGeneratedUtc     *string               `json:"timeGeneratedUtc,omitempty"`
	VendorName           *string               `json:"vendorName,omitempty"`
}

func (*AlertProperties) GetEndTimeUtcAsTime

func (o *AlertProperties) GetEndTimeUtcAsTime() (*time.Time, error)

func (*AlertProperties) GetProcessingEndTimeUtcAsTime

func (o *AlertProperties) GetProcessingEndTimeUtcAsTime() (*time.Time, error)

func (*AlertProperties) GetStartTimeUtcAsTime

func (o *AlertProperties) GetStartTimeUtcAsTime() (*time.Time, error)

func (*AlertProperties) GetTimeGeneratedUtcAsTime

func (o *AlertProperties) GetTimeGeneratedUtcAsTime() (*time.Time, error)

func (*AlertProperties) SetEndTimeUtcAsTime

func (o *AlertProperties) SetEndTimeUtcAsTime(input time.Time)

func (*AlertProperties) SetProcessingEndTimeUtcAsTime

func (o *AlertProperties) SetProcessingEndTimeUtcAsTime(input time.Time)

func (*AlertProperties) SetStartTimeUtcAsTime

func (o *AlertProperties) SetStartTimeUtcAsTime(input time.Time)

func (*AlertProperties) SetTimeGeneratedUtcAsTime

func (o *AlertProperties) SetTimeGeneratedUtcAsTime(input time.Time)

func (*AlertProperties) UnmarshalJSON

func (s *AlertProperties) UnmarshalJSON(bytes []byte) error

type AlertSeverity

type AlertSeverity string
const (
	AlertSeverityHigh          AlertSeverity = "High"
	AlertSeverityInformational AlertSeverity = "Informational"
	AlertSeverityLow           AlertSeverity = "Low"
	AlertSeverityMedium        AlertSeverity = "Medium"
)

type AlertStatus

type AlertStatus string
const (
	AlertStatusActive    AlertStatus = "Active"
	AlertStatusDismissed AlertStatus = "Dismissed"
	AlertStatusResolved  AlertStatus = "Resolved"
)

type AlertsClient

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

func NewAlertsClientWithBaseURI

func NewAlertsClientWithBaseURI(endpoint string) AlertsClient

func (AlertsClient) GetResourceGroupLevelAlerts

func (c AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, id LocationAlertId) (result GetResourceGroupLevelAlertsOperationResponse, err error)

GetResourceGroupLevelAlerts ...

func (AlertsClient) GetSubscriptionLevelAlert

func (c AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, id AlertId) (result GetSubscriptionLevelAlertOperationResponse, err error)

GetSubscriptionLevelAlert ...

func (AlertsClient) List

List ...

func (AlertsClient) ListByResourceGroup

ListByResourceGroup ...

func (AlertsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (AlertsClient) ListByResourceGroupCompleteMatchingPredicate

func (c AlertsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AlertOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AlertsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (AlertsClient) ListCompleteMatchingPredicate

func (c AlertsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AlertOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AlertsClient) ListResourceGroupLevelAlertsByRegion

func (c AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Context, id ProviderLocationId) (resp ListResourceGroupLevelAlertsByRegionOperationResponse, err error)

ListResourceGroupLevelAlertsByRegion ...

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete

func (c AlertsClient) ListResourceGroupLevelAlertsByRegionComplete(ctx context.Context, id ProviderLocationId) (ListResourceGroupLevelAlertsByRegionCompleteResult, error)

ListResourceGroupLevelAlertsByRegionComplete retrieves all of the results into a single object

func (AlertsClient) ListResourceGroupLevelAlertsByRegionCompleteMatchingPredicate

func (c AlertsClient) ListResourceGroupLevelAlertsByRegionCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate AlertOperationPredicate) (resp ListResourceGroupLevelAlertsByRegionCompleteResult, err error)

ListResourceGroupLevelAlertsByRegionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AlertsClient) ListSubscriptionLevelAlertsByRegion

func (c AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Context, id LocationId) (resp ListSubscriptionLevelAlertsByRegionOperationResponse, err error)

ListSubscriptionLevelAlertsByRegion ...

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete

func (c AlertsClient) ListSubscriptionLevelAlertsByRegionComplete(ctx context.Context, id LocationId) (ListSubscriptionLevelAlertsByRegionCompleteResult, error)

ListSubscriptionLevelAlertsByRegionComplete retrieves all of the results into a single object

func (AlertsClient) ListSubscriptionLevelAlertsByRegionCompleteMatchingPredicate

func (c AlertsClient) ListSubscriptionLevelAlertsByRegionCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate AlertOperationPredicate) (resp ListSubscriptionLevelAlertsByRegionCompleteResult, err error)

ListSubscriptionLevelAlertsByRegionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AlertsClient) UpdateResourceGroupLevelAlertStateToDismiss

func (c AlertsClient) UpdateResourceGroupLevelAlertStateToDismiss(ctx context.Context, id LocationAlertId) (result UpdateResourceGroupLevelAlertStateToDismissOperationResponse, err error)

UpdateResourceGroupLevelAlertStateToDismiss ...

func (AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate

func (c AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate(ctx context.Context, id LocationAlertId) (result UpdateResourceGroupLevelAlertStateToReactivateOperationResponse, err error)

UpdateResourceGroupLevelAlertStateToReactivate ...

func (AlertsClient) UpdateResourceGroupLevelStateToResolve

func (c AlertsClient) UpdateResourceGroupLevelStateToResolve(ctx context.Context, id LocationAlertId) (result UpdateResourceGroupLevelStateToResolveOperationResponse, err error)

UpdateResourceGroupLevelStateToResolve ...

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss

func (c AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss(ctx context.Context, id AlertId) (result UpdateSubscriptionLevelAlertStateToDismissOperationResponse, err error)

UpdateSubscriptionLevelAlertStateToDismiss ...

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate

func (c AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate(ctx context.Context, id AlertId) (result UpdateSubscriptionLevelAlertStateToReactivateOperationResponse, err error)

UpdateSubscriptionLevelAlertStateToReactivate ...

func (AlertsClient) UpdateSubscriptionLevelStateToResolve

func (c AlertsClient) UpdateSubscriptionLevelStateToResolve(ctx context.Context, id AlertId) (result UpdateSubscriptionLevelStateToResolveOperationResponse, err error)

UpdateSubscriptionLevelStateToResolve ...

type AzureResourceIdentifier

type AzureResourceIdentifier struct {
	AzureResourceId *string `json:"azureResourceId,omitempty"`
}

func (AzureResourceIdentifier) MarshalJSON

func (s AzureResourceIdentifier) MarshalJSON() ([]byte, error)

type GetResourceGroupLevelAlertsOperationResponse

type GetResourceGroupLevelAlertsOperationResponse struct {
	HttpResponse *http.Response
	Model        *Alert
}

type GetSubscriptionLevelAlertOperationResponse

type GetSubscriptionLevelAlertOperationResponse struct {
	HttpResponse *http.Response
	Model        *Alert
}

type Intent

type Intent string
const (
	IntentCollection          Intent = "Collection"
	IntentCommandAndControl   Intent = "CommandAndControl"
	IntentCredentialAccess    Intent = "CredentialAccess"
	IntentDefenseEvasion      Intent = "DefenseEvasion"
	IntentDiscovery           Intent = "Discovery"
	IntentExecution           Intent = "Execution"
	IntentExfiltration        Intent = "Exfiltration"
	IntentExploitation        Intent = "Exploitation"
	IntentImpact              Intent = "Impact"
	IntentInitialAccess       Intent = "InitialAccess"
	IntentLateralMovement     Intent = "LateralMovement"
	IntentPersistence         Intent = "Persistence"
	IntentPreAttack           Intent = "PreAttack"
	IntentPrivilegeEscalation Intent = "PrivilegeEscalation"
	IntentProbing             Intent = "Probing"
	IntentUnknown             Intent = "Unknown"
)

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []Alert
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Alert
	// contains filtered or unexported fields
}

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListCompleteResult

type ListCompleteResult struct {
	Items []Alert
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Alert
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ListResourceGroupLevelAlertsByRegionCompleteResult

type ListResourceGroupLevelAlertsByRegionCompleteResult struct {
	Items []Alert
}

type ListResourceGroupLevelAlertsByRegionOperationResponse

type ListResourceGroupLevelAlertsByRegionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Alert
	// contains filtered or unexported fields
}

func (ListResourceGroupLevelAlertsByRegionOperationResponse) HasMore

func (ListResourceGroupLevelAlertsByRegionOperationResponse) LoadMore

type ListSubscriptionLevelAlertsByRegionCompleteResult

type ListSubscriptionLevelAlertsByRegionCompleteResult struct {
	Items []Alert
}

type ListSubscriptionLevelAlertsByRegionOperationResponse

type ListSubscriptionLevelAlertsByRegionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Alert
	// contains filtered or unexported fields
}

func (ListSubscriptionLevelAlertsByRegionOperationResponse) HasMore

func (ListSubscriptionLevelAlertsByRegionOperationResponse) LoadMore

type LocationAlertId

type LocationAlertId struct {
	SubscriptionId    string
	ResourceGroupName string
	LocationName      string
	AlertName         string
}

LocationAlertId is a struct representing the Resource ID for a Location Alert

func NewLocationAlertID

func NewLocationAlertID(subscriptionId string, resourceGroupName string, locationName string, alertName string) LocationAlertId

NewLocationAlertID returns a new LocationAlertId struct

func ParseLocationAlertID

func ParseLocationAlertID(input string) (*LocationAlertId, error)

ParseLocationAlertID parses 'input' into a LocationAlertId

func ParseLocationAlertIDInsensitively

func ParseLocationAlertIDInsensitively(input string) (*LocationAlertId, error)

ParseLocationAlertIDInsensitively parses 'input' case-insensitively into a LocationAlertId note: this method should only be used for API response data and not user input

func (*LocationAlertId) FromParseResult

func (id *LocationAlertId) FromParseResult(input resourceids.ParseResult) error

func (LocationAlertId) ID

func (id LocationAlertId) ID() string

ID returns the formatted Location Alert ID

func (LocationAlertId) Segments

func (id LocationAlertId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location Alert ID

func (LocationAlertId) String

func (id LocationAlertId) String() string

String returns a human-readable description of this Location Alert ID

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (*LocationId) FromParseResult

func (id *LocationId) FromParseResult(input resourceids.ParseResult) error

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

func (id LocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type LogAnalyticsIdentifier

type LogAnalyticsIdentifier struct {
	AgentId                 *string `json:"agentId,omitempty"`
	WorkspaceId             *string `json:"workspaceId,omitempty"`
	WorkspaceResourceGroup  *string `json:"workspaceResourceGroup,omitempty"`
	WorkspaceSubscriptionId *string `json:"workspaceSubscriptionId,omitempty"`
}

func (LogAnalyticsIdentifier) MarshalJSON

func (s LogAnalyticsIdentifier) MarshalJSON() ([]byte, error)

type ProviderLocationId

type ProviderLocationId struct {
	SubscriptionId    string
	ResourceGroupName string
	LocationName      string
}

ProviderLocationId is a struct representing the Resource ID for a Provider Location

func NewProviderLocationID

func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId

NewProviderLocationID returns a new ProviderLocationId struct

func ParseProviderLocationID

func ParseProviderLocationID(input string) (*ProviderLocationId, error)

ParseProviderLocationID parses 'input' into a ProviderLocationId

func ParseProviderLocationIDInsensitively

func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error)

ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId note: this method should only be used for API response data and not user input

func (*ProviderLocationId) FromParseResult

func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error

func (ProviderLocationId) ID

func (id ProviderLocationId) ID() string

ID returns the formatted Provider Location ID

func (ProviderLocationId) Segments

func (id ProviderLocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Provider Location ID

func (ProviderLocationId) String

func (id ProviderLocationId) String() string

String returns a human-readable description of this Provider Location ID

type RawResourceIdentifierImpl

type RawResourceIdentifierImpl struct {
	Type   string
	Values map[string]interface{}
}

RawResourceIdentifierImpl 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).

type ResourceIdentifier

type ResourceIdentifier interface {
}

type ResourceIdentifierType

type ResourceIdentifierType string
const (
	ResourceIdentifierTypeAzureResource ResourceIdentifierType = "AzureResource"
	ResourceIdentifierTypeLogAnalytics  ResourceIdentifierType = "LogAnalytics"
)

type UpdateResourceGroupLevelAlertStateToDismissOperationResponse

type UpdateResourceGroupLevelAlertStateToDismissOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateResourceGroupLevelAlertStateToReactivateOperationResponse

type UpdateResourceGroupLevelAlertStateToReactivateOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateResourceGroupLevelStateToResolveOperationResponse

type UpdateResourceGroupLevelStateToResolveOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateSubscriptionLevelAlertStateToDismissOperationResponse

type UpdateSubscriptionLevelAlertStateToDismissOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateSubscriptionLevelAlertStateToReactivateOperationResponse

type UpdateSubscriptionLevelAlertStateToReactivateOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateSubscriptionLevelStateToResolveOperationResponse

type UpdateSubscriptionLevelStateToResolveOperationResponse struct {
	HttpResponse *http.Response
}

Jump to

Keyboard shortcuts

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