Documentation ¶
Index ¶
- func PossibleValuesForEventSubscriptionStatus() []string
- func PossibleValuesForTriggerRuntimeState() []string
- func ValidateFactoryID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTriggerID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type EventSubscriptionStatus
- type FactoryId
- type GetEventSubscriptionStatusOperationResponse
- type ListByFactoryCompleteResult
- type ListByFactoryOperationResponse
- type QueryByFactoryOperationResponse
- type StartOperationResponse
- type StopOperationResponse
- type SubscribeToEventsOperationResponse
- type Trigger
- type TriggerFilterParameters
- type TriggerId
- type TriggerQueryResponse
- type TriggerResource
- type TriggerResourceOperationPredicate
- type TriggerRuntimeState
- type TriggerSubscriptionOperationStatus
- type TriggersClient
- func (c TriggersClient) CreateOrUpdate(ctx context.Context, id TriggerId, input TriggerResource, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c TriggersClient) Delete(ctx context.Context, id TriggerId) (result DeleteOperationResponse, err error)
- func (c TriggersClient) GetEventSubscriptionStatus(ctx context.Context, id TriggerId) (result GetEventSubscriptionStatusOperationResponse, err error)
- func (c TriggersClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error)
- func (c TriggersClient) ListByFactoryComplete(ctx context.Context, id FactoryId) (ListByFactoryCompleteResult, error)
- func (c TriggersClient) ListByFactoryCompleteMatchingPredicate(ctx context.Context, id FactoryId, predicate TriggerResourceOperationPredicate) (result ListByFactoryCompleteResult, err error)
- func (c TriggersClient) QueryByFactory(ctx context.Context, id FactoryId, input TriggerFilterParameters) (result QueryByFactoryOperationResponse, err error)
- func (c TriggersClient) Start(ctx context.Context, id TriggerId) (result StartOperationResponse, err error)
- func (c TriggersClient) StartThenPoll(ctx context.Context, id TriggerId) error
- func (c TriggersClient) Stop(ctx context.Context, id TriggerId) (result StopOperationResponse, err error)
- func (c TriggersClient) StopThenPoll(ctx context.Context, id TriggerId) error
- func (c TriggersClient) SubscribeToEvents(ctx context.Context, id TriggerId) (result SubscribeToEventsOperationResponse, err error)
- func (c TriggersClient) SubscribeToEventsThenPoll(ctx context.Context, id TriggerId) error
- func (c TriggersClient) UnsubscribeFromEvents(ctx context.Context, id TriggerId) (result UnsubscribeFromEventsOperationResponse, err error)
- func (c TriggersClient) UnsubscribeFromEventsThenPoll(ctx context.Context, id TriggerId) error
- type UnsubscribeFromEventsOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEventSubscriptionStatus ¶
func PossibleValuesForEventSubscriptionStatus() []string
func PossibleValuesForTriggerRuntimeState ¶
func PossibleValuesForTriggerRuntimeState() []string
func ValidateFactoryID ¶
ValidateFactoryID checks that 'input' can be parsed as a Factory ID
func ValidateTriggerID ¶
ValidateTriggerID checks that 'input' can be parsed as a Trigger ID
Types ¶
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶ added in v0.20230516.1215417
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶ added in v0.20230516.1215417
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶ added in v0.20230516.1215417
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TriggerResource }
type DeleteOperationResponse ¶
type EventSubscriptionStatus ¶
type EventSubscriptionStatus string
const ( EventSubscriptionStatusDeprovisioning EventSubscriptionStatus = "Deprovisioning" EventSubscriptionStatusDisabled EventSubscriptionStatus = "Disabled" EventSubscriptionStatusEnabled EventSubscriptionStatus = "Enabled" EventSubscriptionStatusProvisioning EventSubscriptionStatus = "Provisioning" EventSubscriptionStatusUnknown EventSubscriptionStatus = "Unknown" )
func (*EventSubscriptionStatus) UnmarshalJSON ¶ added in v0.20230516.1215417
func (s *EventSubscriptionStatus) UnmarshalJSON(bytes []byte) error
type FactoryId ¶
FactoryId is a struct representing the Resource ID for a Factory
func NewFactoryID ¶
NewFactoryID returns a new FactoryId struct
func ParseFactoryID ¶
ParseFactoryID parses 'input' into a FactoryId
func ParseFactoryIDInsensitively ¶
ParseFactoryIDInsensitively parses 'input' case-insensitively into a FactoryId note: this method should only be used for API response data and not user input
func (FactoryId) Segments ¶
func (id FactoryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Factory ID
type GetEventSubscriptionStatusOperationResponse ¶
type GetEventSubscriptionStatusOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TriggerSubscriptionOperationStatus }
type ListByFactoryCompleteResult ¶
type ListByFactoryCompleteResult struct {
Items []TriggerResource
}
type ListByFactoryOperationResponse ¶
type ListByFactoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]TriggerResource }
type QueryByFactoryOperationResponse ¶
type QueryByFactoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TriggerQueryResponse }
type StartOperationResponse ¶
type StopOperationResponse ¶
type Trigger ¶
type Trigger struct { Annotations *[]interface{} `json:"annotations,omitempty"` Description *string `json:"description,omitempty"` RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"` Type string `json:"type"` }
type TriggerFilterParameters ¶
type TriggerId ¶
type TriggerId struct { SubscriptionId string ResourceGroupName string FactoryName string TriggerName string }
TriggerId is a struct representing the Resource ID for a Trigger
func NewTriggerID ¶
func NewTriggerID(subscriptionId string, resourceGroupName string, factoryName string, triggerName string) TriggerId
NewTriggerID returns a new TriggerId struct
func ParseTriggerID ¶
ParseTriggerID parses 'input' into a TriggerId
func ParseTriggerIDInsensitively ¶
ParseTriggerIDInsensitively parses 'input' case-insensitively into a TriggerId note: this method should only be used for API response data and not user input
func (TriggerId) Segments ¶
func (id TriggerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Trigger ID
type TriggerQueryResponse ¶
type TriggerQueryResponse struct { ContinuationToken *string `json:"continuationToken,omitempty"` Value []TriggerResource `json:"value"` }
type TriggerResource ¶
type TriggerResourceOperationPredicate ¶
func (TriggerResourceOperationPredicate) Matches ¶
func (p TriggerResourceOperationPredicate) Matches(input TriggerResource) bool
type TriggerRuntimeState ¶
type TriggerRuntimeState string
const ( TriggerRuntimeStateDisabled TriggerRuntimeState = "Disabled" TriggerRuntimeStateStarted TriggerRuntimeState = "Started" TriggerRuntimeStateStopped TriggerRuntimeState = "Stopped" )
func (*TriggerRuntimeState) UnmarshalJSON ¶ added in v0.20230516.1215417
func (s *TriggerRuntimeState) UnmarshalJSON(bytes []byte) error
type TriggerSubscriptionOperationStatus ¶
type TriggerSubscriptionOperationStatus struct { Status *EventSubscriptionStatus `json:"status,omitempty"` TriggerName *string `json:"triggerName,omitempty"` }
type TriggersClient ¶
type TriggersClient struct {
Client *resourcemanager.Client
}
func NewTriggersClientWithBaseURI ¶
func NewTriggersClientWithBaseURI(sdkApi sdkEnv.Api) (*TriggersClient, error)
func (TriggersClient) CreateOrUpdate ¶
func (c TriggersClient) CreateOrUpdate(ctx context.Context, id TriggerId, input TriggerResource, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (TriggersClient) Delete ¶
func (c TriggersClient) Delete(ctx context.Context, id TriggerId) (result DeleteOperationResponse, err error)
Delete ...
func (TriggersClient) GetEventSubscriptionStatus ¶
func (c TriggersClient) GetEventSubscriptionStatus(ctx context.Context, id TriggerId) (result GetEventSubscriptionStatusOperationResponse, err error)
GetEventSubscriptionStatus ...
func (TriggersClient) ListByFactory ¶
func (c TriggersClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error)
ListByFactory ...
func (TriggersClient) ListByFactoryComplete ¶
func (c TriggersClient) ListByFactoryComplete(ctx context.Context, id FactoryId) (ListByFactoryCompleteResult, error)
ListByFactoryComplete retrieves all the results into a single object
func (TriggersClient) ListByFactoryCompleteMatchingPredicate ¶
func (c TriggersClient) ListByFactoryCompleteMatchingPredicate(ctx context.Context, id FactoryId, predicate TriggerResourceOperationPredicate) (result ListByFactoryCompleteResult, err error)
ListByFactoryCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (TriggersClient) QueryByFactory ¶
func (c TriggersClient) QueryByFactory(ctx context.Context, id FactoryId, input TriggerFilterParameters) (result QueryByFactoryOperationResponse, err error)
QueryByFactory ...
func (TriggersClient) Start ¶
func (c TriggersClient) Start(ctx context.Context, id TriggerId) (result StartOperationResponse, err error)
Start ...
func (TriggersClient) StartThenPoll ¶
func (c TriggersClient) StartThenPoll(ctx context.Context, id TriggerId) error
StartThenPoll performs Start then polls until it's completed
func (TriggersClient) Stop ¶
func (c TriggersClient) Stop(ctx context.Context, id TriggerId) (result StopOperationResponse, err error)
Stop ...
func (TriggersClient) StopThenPoll ¶
func (c TriggersClient) StopThenPoll(ctx context.Context, id TriggerId) error
StopThenPoll performs Stop then polls until it's completed
func (TriggersClient) SubscribeToEvents ¶
func (c TriggersClient) SubscribeToEvents(ctx context.Context, id TriggerId) (result SubscribeToEventsOperationResponse, err error)
SubscribeToEvents ...
func (TriggersClient) SubscribeToEventsThenPoll ¶
func (c TriggersClient) SubscribeToEventsThenPoll(ctx context.Context, id TriggerId) error
SubscribeToEventsThenPoll performs SubscribeToEvents then polls until it's completed
func (TriggersClient) UnsubscribeFromEvents ¶
func (c TriggersClient) UnsubscribeFromEvents(ctx context.Context, id TriggerId) (result UnsubscribeFromEventsOperationResponse, err error)
UnsubscribeFromEvents ...
func (TriggersClient) UnsubscribeFromEventsThenPoll ¶
func (c TriggersClient) UnsubscribeFromEventsThenPoll(ctx context.Context, id TriggerId) error
UnsubscribeFromEventsThenPoll performs UnsubscribeFromEvents then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_factory.go
- id_trigger.go
- method_createorupdate.go
- method_delete.go
- method_geteventsubscriptionstatus.go
- method_listbyfactory.go
- method_querybyfactory.go
- method_start.go
- method_stop.go
- method_subscribetoevents.go
- method_unsubscribefromevents.go
- model_trigger.go
- model_triggerfilterparameters.go
- model_triggerqueryresponse.go
- model_triggerresource.go
- model_triggersubscriptionoperationstatus.go
- predicates.go
- version.go