triggers

package
v0.20241212.1154051 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/triggers Documentation

The triggers SDK allows for interaction with Azure Resource Manager datafactory (API Version 2018-06-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/datafactory/2018-06-01/triggers"

Client Initialization

client := triggers.NewTriggersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TriggersClient.CreateOrUpdate

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

payload := triggers.TriggerResource{
	// ...
}


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

Example Usage: TriggersClient.Delete

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

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

Example Usage: TriggersClient.GetEventSubscriptionStatus

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

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

Example Usage: TriggersClient.ListByFactory

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

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

Example Usage: TriggersClient.QueryByFactory

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

payload := triggers.TriggerFilterParameters{
	// ...
}


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

Example Usage: TriggersClient.Start

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

if err := client.StartThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: TriggersClient.Stop

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

if err := client.StopThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: TriggersClient.SubscribeToEvents

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

if err := client.SubscribeToEventsThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: TriggersClient.UnsubscribeFromEvents

ctx := context.TODO()
id := triggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "triggerName")

if err := client.UnsubscribeFromEventsThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForBlobEventTypes added in v0.20240320.1143605

func PossibleValuesForBlobEventTypes() []string

func PossibleValuesForDayOfWeek added in v0.20240320.1143605

func PossibleValuesForDayOfWeek() []string

func PossibleValuesForDaysOfWeek added in v0.20240320.1143605

func PossibleValuesForDaysOfWeek() []string

func PossibleValuesForEventSubscriptionStatus

func PossibleValuesForEventSubscriptionStatus() []string

func PossibleValuesForPipelineReferenceType added in v0.20240320.1143605

func PossibleValuesForPipelineReferenceType() []string

func PossibleValuesForRecurrenceFrequency added in v0.20240320.1143605

func PossibleValuesForRecurrenceFrequency() []string

func PossibleValuesForTriggerReferenceType added in v0.20240320.1143605

func PossibleValuesForTriggerReferenceType() []string

func PossibleValuesForTriggerRuntimeState

func PossibleValuesForTriggerRuntimeState() []string

func PossibleValuesForTumblingWindowFrequency added in v0.20240320.1143605

func PossibleValuesForTumblingWindowFrequency() []string

func PossibleValuesForType added in v0.20240320.1143605

func PossibleValuesForType() []string

func ValidateFactoryID

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

ValidateFactoryID checks that 'input' can be parsed as a Factory ID

func ValidateTriggerID

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

ValidateTriggerID checks that 'input' can be parsed as a Trigger ID

Types

type BaseDependencyReferenceImpl added in v0.20240920.1135249

type BaseDependencyReferenceImpl struct {
	Type string `json:"type"`
}

func (BaseDependencyReferenceImpl) DependencyReference added in v0.20240920.1135249

type BaseTriggerImpl added in v0.20240920.1135249

type BaseTriggerImpl struct {
	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (BaseTriggerImpl) Trigger added in v0.20240920.1135249

func (s BaseTriggerImpl) Trigger() BaseTriggerImpl

type BlobEventTypes added in v0.20240320.1143605

type BlobEventTypes string
const (
	BlobEventTypesMicrosoftPointStoragePointBlobCreated BlobEventTypes = "Microsoft.Storage.BlobCreated"
	BlobEventTypesMicrosoftPointStoragePointBlobDeleted BlobEventTypes = "Microsoft.Storage.BlobDeleted"
)

func (*BlobEventTypes) UnmarshalJSON added in v0.20240320.1143605

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

type BlobEventsTrigger added in v0.20240320.1143605

type BlobEventsTrigger struct {
	Pipelines      *[]TriggerPipelineReference     `json:"pipelines,omitempty"`
	TypeProperties BlobEventsTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (BlobEventsTrigger) MarshalJSON added in v0.20240327.1081628

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

func (BlobEventsTrigger) Trigger added in v0.20240920.1135249

func (s BlobEventsTrigger) Trigger() BaseTriggerImpl

type BlobEventsTriggerTypeProperties added in v0.20240320.1143605

type BlobEventsTriggerTypeProperties struct {
	BlobPathBeginsWith *string          `json:"blobPathBeginsWith,omitempty"`
	BlobPathEndsWith   *string          `json:"blobPathEndsWith,omitempty"`
	Events             []BlobEventTypes `json:"events"`
	IgnoreEmptyBlobs   *bool            `json:"ignoreEmptyBlobs,omitempty"`
	Scope              string           `json:"scope"`
}

type BlobTrigger added in v0.20240320.1143605

type BlobTrigger struct {
	Pipelines      *[]TriggerPipelineReference `json:"pipelines,omitempty"`
	TypeProperties BlobTriggerTypeProperties   `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (BlobTrigger) MarshalJSON added in v0.20240327.1081628

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

func (BlobTrigger) Trigger added in v0.20240920.1135249

func (s BlobTrigger) Trigger() BaseTriggerImpl

type BlobTriggerTypeProperties added in v0.20240320.1143605

type BlobTriggerTypeProperties struct {
	FolderPath     string                 `json:"folderPath"`
	LinkedService  LinkedServiceReference `json:"linkedService"`
	MaxConcurrency int64                  `json:"maxConcurrency"`
}

type ChainingTrigger added in v0.20240320.1143605

type ChainingTrigger struct {
	Pipeline       TriggerPipelineReference      `json:"pipeline"`
	TypeProperties ChainingTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (ChainingTrigger) MarshalJSON added in v0.20240327.1081628

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

func (ChainingTrigger) Trigger added in v0.20240920.1135249

func (s ChainingTrigger) Trigger() BaseTriggerImpl

type ChainingTriggerTypeProperties added in v0.20240320.1143605

type ChainingTriggerTypeProperties struct {
	DependsOn    []PipelineReference `json:"dependsOn"`
	RunDimension string              `json:"runDimension"`
}

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TriggerResource
}

type CustomEventsTrigger added in v0.20240320.1143605

type CustomEventsTrigger struct {
	Pipelines      *[]TriggerPipelineReference       `json:"pipelines,omitempty"`
	TypeProperties CustomEventsTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (CustomEventsTrigger) MarshalJSON added in v0.20240327.1081628

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

func (CustomEventsTrigger) Trigger added in v0.20240920.1135249

type CustomEventsTriggerTypeProperties added in v0.20240320.1143605

type CustomEventsTriggerTypeProperties struct {
	Events            []interface{} `json:"events"`
	Scope             string        `json:"scope"`
	SubjectBeginsWith *string       `json:"subjectBeginsWith,omitempty"`
	SubjectEndsWith   *string       `json:"subjectEndsWith,omitempty"`
}

type DayOfWeek added in v0.20240320.1143605

type DayOfWeek string
const (
	DayOfWeekFriday    DayOfWeek = "Friday"
	DayOfWeekMonday    DayOfWeek = "Monday"
	DayOfWeekSaturday  DayOfWeek = "Saturday"
	DayOfWeekSunday    DayOfWeek = "Sunday"
	DayOfWeekThursday  DayOfWeek = "Thursday"
	DayOfWeekTuesday   DayOfWeek = "Tuesday"
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func (*DayOfWeek) UnmarshalJSON added in v0.20240320.1143605

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

type DaysOfWeek added in v0.20240320.1143605

type DaysOfWeek string
const (
	DaysOfWeekFriday    DaysOfWeek = "Friday"
	DaysOfWeekMonday    DaysOfWeek = "Monday"
	DaysOfWeekSaturday  DaysOfWeek = "Saturday"
	DaysOfWeekSunday    DaysOfWeek = "Sunday"
	DaysOfWeekThursday  DaysOfWeek = "Thursday"
	DaysOfWeekTuesday   DaysOfWeek = "Tuesday"
	DaysOfWeekWednesday DaysOfWeek = "Wednesday"
)

func (*DaysOfWeek) UnmarshalJSON added in v0.20240320.1143605

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DependencyReference added in v0.20240320.1143605

type DependencyReference interface {
	DependencyReference() BaseDependencyReferenceImpl
}

func UnmarshalDependencyReferenceImplementation added in v0.20240920.1135249

func UnmarshalDependencyReferenceImplementation(input []byte) (DependencyReference, error)

type EventSubscriptionStatus

type EventSubscriptionStatus string
const (
	EventSubscriptionStatusDeprovisioning EventSubscriptionStatus = "Deprovisioning"
	EventSubscriptionStatusDisabled       EventSubscriptionStatus = "Disabled"
	EventSubscriptionStatusEnabled        EventSubscriptionStatus = "Enabled"
	EventSubscriptionStatusProvisioning   EventSubscriptionStatus = "Provisioning"
	EventSubscriptionStatusUnknown        EventSubscriptionStatus = "Unknown"
)

func (*EventSubscriptionStatus) UnmarshalJSON

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

type FactoryId

type FactoryId struct {
	SubscriptionId    string
	ResourceGroupName string
	FactoryName       string
}

FactoryId is a struct representing the Resource ID for a Factory

func NewFactoryID

func NewFactoryID(subscriptionId string, resourceGroupName string, factoryName string) FactoryId

NewFactoryID returns a new FactoryId struct

func ParseFactoryID

func ParseFactoryID(input string) (*FactoryId, error)

ParseFactoryID parses 'input' into a FactoryId

func ParseFactoryIDInsensitively

func ParseFactoryIDInsensitively(input string) (*FactoryId, error)

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) FromParseResult

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

func (FactoryId) ID

func (id FactoryId) ID() string

ID returns the formatted Factory ID

func (FactoryId) Segments

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

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

func (FactoryId) String

func (id FactoryId) String() string

String returns a human-readable description of this Factory ID

type GetEventSubscriptionStatusOperationResponse

type GetEventSubscriptionStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TriggerSubscriptionOperationStatus
}

type LinkedServiceReference added in v0.20240320.1143605

type LinkedServiceReference struct {
	Parameters    *map[string]interface{} `json:"parameters,omitempty"`
	ReferenceName string                  `json:"referenceName"`
	Type          Type                    `json:"type"`
}

type ListByFactoryCompleteResult

type ListByFactoryCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TriggerResource
}

type ListByFactoryCustomPager added in v0.20240628.1153531

type ListByFactoryCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link

type ListByFactoryOperationResponse

type ListByFactoryOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TriggerResource
}

type MultiplePipelineTrigger added in v0.20240320.1143605

type MultiplePipelineTrigger struct {
	Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (MultiplePipelineTrigger) MarshalJSON added in v0.20240320.1143605

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

func (MultiplePipelineTrigger) Trigger added in v0.20240920.1135249

type PipelineReference added in v0.20240320.1143605

type PipelineReference struct {
	Name          *string               `json:"name,omitempty"`
	ReferenceName string                `json:"referenceName"`
	Type          PipelineReferenceType `json:"type"`
}

type PipelineReferenceType added in v0.20240320.1143605

type PipelineReferenceType string
const (
	PipelineReferenceTypePipelineReference PipelineReferenceType = "PipelineReference"
)

func (*PipelineReferenceType) UnmarshalJSON added in v0.20240320.1143605

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

type QueryByFactoryOperationResponse

type QueryByFactoryOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TriggerQueryResponse
}

type RawDependencyReferenceImpl added in v0.20240320.1143605

type RawDependencyReferenceImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawDependencyReferenceImpl) DependencyReference added in v0.20240920.1135249

type RawTriggerImpl added in v0.20240320.1143605

type RawTriggerImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawTriggerImpl) Trigger added in v0.20240920.1135249

func (s RawTriggerImpl) Trigger() BaseTriggerImpl

type RecurrenceFrequency added in v0.20240320.1143605

type RecurrenceFrequency string
const (
	RecurrenceFrequencyDay          RecurrenceFrequency = "Day"
	RecurrenceFrequencyHour         RecurrenceFrequency = "Hour"
	RecurrenceFrequencyMinute       RecurrenceFrequency = "Minute"
	RecurrenceFrequencyMonth        RecurrenceFrequency = "Month"
	RecurrenceFrequencyNotSpecified RecurrenceFrequency = "NotSpecified"
	RecurrenceFrequencyWeek         RecurrenceFrequency = "Week"
	RecurrenceFrequencyYear         RecurrenceFrequency = "Year"
)

func (*RecurrenceFrequency) UnmarshalJSON added in v0.20240320.1143605

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

type RecurrenceSchedule added in v0.20240320.1143605

type RecurrenceSchedule struct {
	Hours              *[]int64                        `json:"hours,omitempty"`
	Minutes            *[]int64                        `json:"minutes,omitempty"`
	MonthDays          *[]int64                        `json:"monthDays,omitempty"`
	MonthlyOccurrences *[]RecurrenceScheduleOccurrence `json:"monthlyOccurrences,omitempty"`
	WeekDays           *[]DaysOfWeek                   `json:"weekDays,omitempty"`
}

type RecurrenceScheduleOccurrence added in v0.20240320.1143605

type RecurrenceScheduleOccurrence struct {
	Day        *DayOfWeek `json:"day,omitempty"`
	Occurrence *int64     `json:"occurrence,omitempty"`
}

type RerunTumblingWindowTrigger added in v0.20240320.1143605

type RerunTumblingWindowTrigger struct {
	TypeProperties RerunTumblingWindowTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (RerunTumblingWindowTrigger) MarshalJSON added in v0.20240327.1081628

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

func (RerunTumblingWindowTrigger) Trigger added in v0.20240920.1135249

type RerunTumblingWindowTriggerTypeProperties added in v0.20240320.1143605

type RerunTumblingWindowTriggerTypeProperties struct {
	ParentTrigger      interface{} `json:"parentTrigger"`
	RequestedEndTime   string      `json:"requestedEndTime"`
	RequestedStartTime string      `json:"requestedStartTime"`
	RerunConcurrency   int64       `json:"rerunConcurrency"`
}

func (*RerunTumblingWindowTriggerTypeProperties) GetRequestedEndTimeAsTime added in v0.20240320.1143605

func (o *RerunTumblingWindowTriggerTypeProperties) GetRequestedEndTimeAsTime() (*time.Time, error)

func (*RerunTumblingWindowTriggerTypeProperties) GetRequestedStartTimeAsTime added in v0.20240320.1143605

func (o *RerunTumblingWindowTriggerTypeProperties) GetRequestedStartTimeAsTime() (*time.Time, error)

func (*RerunTumblingWindowTriggerTypeProperties) SetRequestedEndTimeAsTime added in v0.20240320.1143605

func (o *RerunTumblingWindowTriggerTypeProperties) SetRequestedEndTimeAsTime(input time.Time)

func (*RerunTumblingWindowTriggerTypeProperties) SetRequestedStartTimeAsTime added in v0.20240320.1143605

func (o *RerunTumblingWindowTriggerTypeProperties) SetRequestedStartTimeAsTime(input time.Time)

type RetryPolicy added in v0.20240320.1143605

type RetryPolicy struct {
	Count             *int64 `json:"count,omitempty"`
	IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"`
}

type ScheduleTrigger added in v0.20240320.1143605

type ScheduleTrigger struct {
	Pipelines      *[]TriggerPipelineReference   `json:"pipelines,omitempty"`
	TypeProperties ScheduleTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (ScheduleTrigger) MarshalJSON added in v0.20240327.1081628

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

func (ScheduleTrigger) Trigger added in v0.20240920.1135249

func (s ScheduleTrigger) Trigger() BaseTriggerImpl

type ScheduleTriggerRecurrence added in v0.20240320.1143605

type ScheduleTriggerRecurrence struct {
	EndTime   *string              `json:"endTime,omitempty"`
	Frequency *RecurrenceFrequency `json:"frequency,omitempty"`
	Interval  *int64               `json:"interval,omitempty"`
	Schedule  *RecurrenceSchedule  `json:"schedule,omitempty"`
	StartTime *string              `json:"startTime,omitempty"`
	TimeZone  *string              `json:"timeZone,omitempty"`
}

func (*ScheduleTriggerRecurrence) GetEndTimeAsTime added in v0.20240320.1143605

func (o *ScheduleTriggerRecurrence) GetEndTimeAsTime() (*time.Time, error)

func (*ScheduleTriggerRecurrence) GetStartTimeAsTime added in v0.20240320.1143605

func (o *ScheduleTriggerRecurrence) GetStartTimeAsTime() (*time.Time, error)

func (*ScheduleTriggerRecurrence) SetEndTimeAsTime added in v0.20240320.1143605

func (o *ScheduleTriggerRecurrence) SetEndTimeAsTime(input time.Time)

func (*ScheduleTriggerRecurrence) SetStartTimeAsTime added in v0.20240320.1143605

func (o *ScheduleTriggerRecurrence) SetStartTimeAsTime(input time.Time)

type ScheduleTriggerTypeProperties added in v0.20240320.1143605

type ScheduleTriggerTypeProperties struct {
	Recurrence ScheduleTriggerRecurrence `json:"recurrence"`
}

type SelfDependencyTumblingWindowTriggerReference added in v0.20240320.1143605

type SelfDependencyTumblingWindowTriggerReference struct {
	Offset string  `json:"offset"`
	Size   *string `json:"size,omitempty"`

	Type string `json:"type"`
}

func (SelfDependencyTumblingWindowTriggerReference) DependencyReference added in v0.20240920.1135249

func (SelfDependencyTumblingWindowTriggerReference) MarshalJSON added in v0.20240327.1081628

type StartOperationResponse

type StartOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type StopOperationResponse

type StopOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type SubscribeToEventsOperationResponse

type SubscribeToEventsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TriggerSubscriptionOperationStatus
}

type Trigger

type Trigger interface {
	Trigger() BaseTriggerImpl
}

func UnmarshalTriggerImplementation added in v0.20240920.1135249

func UnmarshalTriggerImplementation(input []byte) (Trigger, error)

type TriggerDependencyReference added in v0.20240320.1143605

type TriggerDependencyReference struct {
	ReferenceTrigger TriggerReference `json:"referenceTrigger"`

	Type string `json:"type"`
}

func (TriggerDependencyReference) DependencyReference added in v0.20240920.1135249

func (TriggerDependencyReference) MarshalJSON added in v0.20240327.1081628

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

type TriggerFilterParameters

type TriggerFilterParameters struct {
	ContinuationToken *string `json:"continuationToken,omitempty"`
	ParentTriggerName *string `json:"parentTriggerName,omitempty"`
}

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

func ParseTriggerID(input string) (*TriggerId, error)

ParseTriggerID parses 'input' into a TriggerId

func ParseTriggerIDInsensitively

func ParseTriggerIDInsensitively(input string) (*TriggerId, error)

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) FromParseResult

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

func (TriggerId) ID

func (id TriggerId) ID() string

ID returns the formatted Trigger ID

func (TriggerId) Segments

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

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

func (TriggerId) String

func (id TriggerId) String() string

String returns a human-readable description of this Trigger ID

type TriggerPipelineReference added in v0.20240320.1143605

type TriggerPipelineReference struct {
	Parameters        *map[string]interface{} `json:"parameters,omitempty"`
	PipelineReference *PipelineReference      `json:"pipelineReference,omitempty"`
}

type TriggerQueryResponse

type TriggerQueryResponse struct {
	ContinuationToken *string           `json:"continuationToken,omitempty"`
	Value             []TriggerResource `json:"value"`
}

type TriggerReference added in v0.20240320.1143605

type TriggerReference struct {
	ReferenceName string               `json:"referenceName"`
	Type          TriggerReferenceType `json:"type"`
}

type TriggerReferenceType added in v0.20240320.1143605

type TriggerReferenceType string
const (
	TriggerReferenceTypeTriggerReference TriggerReferenceType = "TriggerReference"
)

func (*TriggerReferenceType) UnmarshalJSON added in v0.20240320.1143605

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

type TriggerResource

type TriggerResource struct {
	Etag       *string `json:"etag,omitempty"`
	Id         *string `json:"id,omitempty"`
	Name       *string `json:"name,omitempty"`
	Properties Trigger `json:"properties"`
	Type       *string `json:"type,omitempty"`
}

func (*TriggerResource) UnmarshalJSON added in v0.20240320.1143605

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

type TriggerResourceOperationPredicate

type TriggerResourceOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (TriggerResourceOperationPredicate) Matches

type TriggerRuntimeState

type TriggerRuntimeState string
const (
	TriggerRuntimeStateDisabled TriggerRuntimeState = "Disabled"
	TriggerRuntimeStateStarted  TriggerRuntimeState = "Started"
	TriggerRuntimeStateStopped  TriggerRuntimeState = "Stopped"
)

func (*TriggerRuntimeState) UnmarshalJSON

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

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

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

type TumblingWindowFrequency added in v0.20240320.1143605

type TumblingWindowFrequency string
const (
	TumblingWindowFrequencyHour   TumblingWindowFrequency = "Hour"
	TumblingWindowFrequencyMinute TumblingWindowFrequency = "Minute"
	TumblingWindowFrequencyMonth  TumblingWindowFrequency = "Month"
)

func (*TumblingWindowFrequency) UnmarshalJSON added in v0.20240320.1143605

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

type TumblingWindowTrigger added in v0.20240320.1143605

type TumblingWindowTrigger struct {
	Pipeline       TriggerPipelineReference            `json:"pipeline"`
	TypeProperties TumblingWindowTriggerTypeProperties `json:"typeProperties"`

	Annotations  *[]interface{}       `json:"annotations,omitempty"`
	Description  *string              `json:"description,omitempty"`
	RuntimeState *TriggerRuntimeState `json:"runtimeState,omitempty"`
	Type         string               `json:"type"`
}

func (TumblingWindowTrigger) MarshalJSON added in v0.20240327.1081628

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

func (TumblingWindowTrigger) Trigger added in v0.20240920.1135249

type TumblingWindowTriggerDependencyReference added in v0.20240320.1143605

type TumblingWindowTriggerDependencyReference struct {
	Offset           *string          `json:"offset,omitempty"`
	ReferenceTrigger TriggerReference `json:"referenceTrigger"`
	Size             *string          `json:"size,omitempty"`

	Type string `json:"type"`
}

func (TumblingWindowTriggerDependencyReference) DependencyReference added in v0.20240920.1135249

func (TumblingWindowTriggerDependencyReference) MarshalJSON added in v0.20240327.1081628

type TumblingWindowTriggerTypeProperties added in v0.20240320.1143605

type TumblingWindowTriggerTypeProperties struct {
	Delay          *string                 `json:"delay,omitempty"`
	DependsOn      *[]DependencyReference  `json:"dependsOn,omitempty"`
	EndTime        *string                 `json:"endTime,omitempty"`
	Frequency      TumblingWindowFrequency `json:"frequency"`
	Interval       int64                   `json:"interval"`
	MaxConcurrency int64                   `json:"maxConcurrency"`
	RetryPolicy    *RetryPolicy            `json:"retryPolicy,omitempty"`
	StartTime      string                  `json:"startTime"`
}

func (*TumblingWindowTriggerTypeProperties) GetEndTimeAsTime added in v0.20240320.1143605

func (o *TumblingWindowTriggerTypeProperties) GetEndTimeAsTime() (*time.Time, error)

func (*TumblingWindowTriggerTypeProperties) GetStartTimeAsTime added in v0.20240320.1143605

func (o *TumblingWindowTriggerTypeProperties) GetStartTimeAsTime() (*time.Time, error)

func (*TumblingWindowTriggerTypeProperties) SetEndTimeAsTime added in v0.20240320.1143605

func (o *TumblingWindowTriggerTypeProperties) SetEndTimeAsTime(input time.Time)

func (*TumblingWindowTriggerTypeProperties) SetStartTimeAsTime added in v0.20240320.1143605

func (o *TumblingWindowTriggerTypeProperties) SetStartTimeAsTime(input time.Time)

func (*TumblingWindowTriggerTypeProperties) UnmarshalJSON added in v0.20240320.1143605

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

type Type added in v0.20240320.1143605

type Type string
const (
	TypeLinkedServiceReference Type = "LinkedServiceReference"
)

func (*Type) UnmarshalJSON added in v0.20240320.1143605

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

type UnsubscribeFromEventsOperationResponse

type UnsubscribeFromEventsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TriggerSubscriptionOperationStatus
}

Jump to

Keyboard shortcuts

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