Documentation ¶
Index ¶
- func PossibleValuesForAlertNotifications() []string
- func PossibleValuesForAlertsToAdmins() []string
- func ValidateSecurityContactID(input interface{}, key string) (warnings []string, errors []error)
- type AlertNotifications
- type AlertsToAdmins
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type SecurityContact
- type SecurityContactId
- type SecurityContactOperationPredicate
- type SecurityContactProperties
- type SecurityContactsClient
- func (c SecurityContactsClient) Create(ctx context.Context, id SecurityContactId, input SecurityContact) (result CreateOperationResponse, err error)
- func (c SecurityContactsClient) Delete(ctx context.Context, id SecurityContactId) (result DeleteOperationResponse, err error)
- func (c SecurityContactsClient) Get(ctx context.Context, id SecurityContactId) (result GetOperationResponse, err error)
- func (c SecurityContactsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c SecurityContactsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c SecurityContactsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c SecurityContactsClient) Update(ctx context.Context, id SecurityContactId, input SecurityContact) (result UpdateOperationResponse, err error)
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertNotifications ¶
func PossibleValuesForAlertNotifications() []string
func PossibleValuesForAlertsToAdmins ¶
func PossibleValuesForAlertsToAdmins() []string
func ValidateSecurityContactID ¶
ValidateSecurityContactID checks that 'input' can be parsed as a Security Contact ID
Types ¶
type AlertNotifications ¶
type AlertNotifications string
const ( AlertNotificationsOff AlertNotifications = "Off" AlertNotificationsOn AlertNotifications = "On" )
func (*AlertNotifications) UnmarshalJSON ¶ added in v0.20240228.1142829
func (s *AlertNotifications) UnmarshalJSON(bytes []byte) error
type AlertsToAdmins ¶
type AlertsToAdmins string
const ( AlertsToAdminsOff AlertsToAdmins = "Off" AlertsToAdminsOn AlertsToAdmins = "On" )
func (*AlertsToAdmins) UnmarshalJSON ¶ added in v0.20240228.1142829
func (s *AlertsToAdmins) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityContact }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityContact }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []SecurityContact }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecurityContact }
type SecurityContact ¶
type SecurityContact struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityContactProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityContactId ¶
SecurityContactId is a struct representing the Resource ID for a Security Contact
func NewSecurityContactID ¶
func NewSecurityContactID(subscriptionId string, securityContactName string) SecurityContactId
NewSecurityContactID returns a new SecurityContactId struct
func ParseSecurityContactID ¶
func ParseSecurityContactID(input string) (*SecurityContactId, error)
ParseSecurityContactID parses 'input' into a SecurityContactId
func ParseSecurityContactIDInsensitively ¶
func ParseSecurityContactIDInsensitively(input string) (*SecurityContactId, error)
ParseSecurityContactIDInsensitively parses 'input' case-insensitively into a SecurityContactId note: this method should only be used for API response data and not user input
func (*SecurityContactId) FromParseResult ¶
func (id *SecurityContactId) FromParseResult(input resourceids.ParseResult) error
func (SecurityContactId) ID ¶
func (id SecurityContactId) ID() string
ID returns the formatted Security Contact ID
func (SecurityContactId) Segments ¶
func (id SecurityContactId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Security Contact ID
func (SecurityContactId) String ¶
func (id SecurityContactId) String() string
String returns a human-readable description of this Security Contact ID
type SecurityContactOperationPredicate ¶
func (SecurityContactOperationPredicate) Matches ¶
func (p SecurityContactOperationPredicate) Matches(input SecurityContact) bool
type SecurityContactProperties ¶
type SecurityContactProperties struct { AlertNotifications AlertNotifications `json:"alertNotifications"` AlertsToAdmins AlertsToAdmins `json:"alertsToAdmins"` Email string `json:"email"` Phone *string `json:"phone,omitempty"` }
type SecurityContactsClient ¶
type SecurityContactsClient struct {
Client *resourcemanager.Client
}
func NewSecurityContactsClientWithBaseURI ¶
func NewSecurityContactsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityContactsClient, error)
func (SecurityContactsClient) Create ¶
func (c SecurityContactsClient) Create(ctx context.Context, id SecurityContactId, input SecurityContact) (result CreateOperationResponse, err error)
Create ...
func (SecurityContactsClient) Delete ¶
func (c SecurityContactsClient) Delete(ctx context.Context, id SecurityContactId) (result DeleteOperationResponse, err error)
Delete ...
func (SecurityContactsClient) Get ¶
func (c SecurityContactsClient) Get(ctx context.Context, id SecurityContactId) (result GetOperationResponse, err error)
Get ...
func (SecurityContactsClient) List ¶
func (c SecurityContactsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (SecurityContactsClient) ListComplete ¶
func (c SecurityContactsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SecurityContactsClient) ListCompleteMatchingPredicate ¶
func (c SecurityContactsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SecurityContactOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SecurityContactsClient) Update ¶
func (c SecurityContactsClient) Update(ctx context.Context, id SecurityContactId, input SecurityContact) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityContact }