Documentation ¶
Index ¶
- func PossibleValuesForNotificationChannelEventType() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateNotificationChannelID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type Event
- type GetOperationOptions
- type GetOperationResponse
- type LabId
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type NotificationChannel
- type NotificationChannelEventType
- type NotificationChannelId
- type NotificationChannelOperationPredicate
- type NotificationChannelProperties
- type NotificationChannelsClient
- func (c NotificationChannelsClient) CreateOrUpdate(ctx context.Context, id NotificationChannelId, input NotificationChannel) (result CreateOrUpdateOperationResponse, err error)
- func (c NotificationChannelsClient) Delete(ctx context.Context, id NotificationChannelId) (result DeleteOperationResponse, err error)
- func (c NotificationChannelsClient) Get(ctx context.Context, id NotificationChannelId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c NotificationChannelsClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c NotificationChannelsClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c NotificationChannelsClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c NotificationChannelsClient) Notify(ctx context.Context, id NotificationChannelId, input NotifyParameters) (result NotifyOperationResponse, err error)
- func (c NotificationChannelsClient) Update(ctx context.Context, id NotificationChannelId, input UpdateResource) (result UpdateOperationResponse, err error)
- type NotifyOperationResponse
- type NotifyParameters
- type UpdateOperationResponse
- type UpdateResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForNotificationChannelEventType ¶
func PossibleValuesForNotificationChannelEventType() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateNotificationChannelID ¶
func ValidateNotificationChannelID(input interface{}, key string) (warnings []string, errors []error)
ValidateNotificationChannelID checks that 'input' can be parsed as a Notification Channel ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *NotificationChannel }
type DeleteOperationResponse ¶
type Event ¶
type Event struct {
EventName *NotificationChannelEventType `json:"eventName,omitempty"`
}
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *NotificationChannel }
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (*LabId) FromParseResult ¶
func (id *LabId) FromParseResult(input resourceids.ParseResult) error
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []NotificationChannel }
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]NotificationChannel }
type NotificationChannel ¶
type NotificationChannelEventType ¶
type NotificationChannelEventType string
const ( NotificationChannelEventTypeAutoShutdown NotificationChannelEventType = "AutoShutdown" NotificationChannelEventTypeCost NotificationChannelEventType = "Cost" )
func (*NotificationChannelEventType) UnmarshalJSON ¶
func (s *NotificationChannelEventType) UnmarshalJSON(bytes []byte) error
type NotificationChannelId ¶
type NotificationChannelId struct { SubscriptionId string ResourceGroupName string LabName string NotificationChannelName string }
NotificationChannelId is a struct representing the Resource ID for a Notification Channel
func NewNotificationChannelID ¶
func NewNotificationChannelID(subscriptionId string, resourceGroupName string, labName string, notificationChannelName string) NotificationChannelId
NewNotificationChannelID returns a new NotificationChannelId struct
func ParseNotificationChannelID ¶
func ParseNotificationChannelID(input string) (*NotificationChannelId, error)
ParseNotificationChannelID parses 'input' into a NotificationChannelId
func ParseNotificationChannelIDInsensitively ¶
func ParseNotificationChannelIDInsensitively(input string) (*NotificationChannelId, error)
ParseNotificationChannelIDInsensitively parses 'input' case-insensitively into a NotificationChannelId note: this method should only be used for API response data and not user input
func (*NotificationChannelId) FromParseResult ¶
func (id *NotificationChannelId) FromParseResult(input resourceids.ParseResult) error
func (NotificationChannelId) ID ¶
func (id NotificationChannelId) ID() string
ID returns the formatted Notification Channel ID
func (NotificationChannelId) Segments ¶
func (id NotificationChannelId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Notification Channel ID
func (NotificationChannelId) String ¶
func (id NotificationChannelId) String() string
String returns a human-readable description of this Notification Channel ID
type NotificationChannelOperationPredicate ¶
type NotificationChannelOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (NotificationChannelOperationPredicate) Matches ¶
func (p NotificationChannelOperationPredicate) Matches(input NotificationChannel) bool
type NotificationChannelProperties ¶
type NotificationChannelProperties struct { CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` EmailRecipient *string `json:"emailRecipient,omitempty"` Events *[]Event `json:"events,omitempty"` NotificationLocale *string `json:"notificationLocale,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` WebHookUrl *string `json:"webHookUrl,omitempty"` }
func (*NotificationChannelProperties) GetCreatedDateAsTime ¶
func (o *NotificationChannelProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*NotificationChannelProperties) SetCreatedDateAsTime ¶
func (o *NotificationChannelProperties) SetCreatedDateAsTime(input time.Time)
type NotificationChannelsClient ¶
type NotificationChannelsClient struct {
Client *resourcemanager.Client
}
func NewNotificationChannelsClientWithBaseURI ¶
func NewNotificationChannelsClientWithBaseURI(sdkApi sdkEnv.Api) (*NotificationChannelsClient, error)
func (NotificationChannelsClient) CreateOrUpdate ¶
func (c NotificationChannelsClient) CreateOrUpdate(ctx context.Context, id NotificationChannelId, input NotificationChannel) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (NotificationChannelsClient) Delete ¶
func (c NotificationChannelsClient) Delete(ctx context.Context, id NotificationChannelId) (result DeleteOperationResponse, err error)
Delete ...
func (NotificationChannelsClient) Get ¶
func (c NotificationChannelsClient) Get(ctx context.Context, id NotificationChannelId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (NotificationChannelsClient) List ¶
func (c NotificationChannelsClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (NotificationChannelsClient) ListComplete ¶
func (c NotificationChannelsClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (NotificationChannelsClient) ListCompleteMatchingPredicate ¶
func (c NotificationChannelsClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate NotificationChannelOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (NotificationChannelsClient) Notify ¶
func (c NotificationChannelsClient) Notify(ctx context.Context, id NotificationChannelId, input NotifyParameters) (result NotifyOperationResponse, err error)
Notify ...
func (NotificationChannelsClient) Update ¶
func (c NotificationChannelsClient) Update(ctx context.Context, id NotificationChannelId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type NotifyOperationResponse ¶
type NotifyParameters ¶
type NotifyParameters struct { EventName *NotificationChannelEventType `json:"eventName,omitempty"` JsonPayload *string `json:"jsonPayload,omitempty"` }
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *NotificationChannel }
type UpdateResource ¶
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_notificationchannel.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_notify.go
- method_update.go
- model_event.go
- model_notificationchannel.go
- model_notificationchannelproperties.go
- model_notifyparameters.go
- model_updateresource.go
- predicates.go
- version.go