Documentation ¶
Index ¶
- func ValidateAutomationAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWatcherID(input interface{}, key string) (warnings []string, errors []error)
- type AutomationAccountId
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByAutomationAccountCompleteResult
- type ListByAutomationAccountOperationOptions
- type ListByAutomationAccountOperationResponse
- type StartOperationResponse
- type StopOperationResponse
- type UpdateOperationResponse
- type Watcher
- type WatcherClient
- func (c WatcherClient) CreateOrUpdate(ctx context.Context, id WatcherId, input Watcher) (result CreateOrUpdateOperationResponse, err error)
- func (c WatcherClient) Delete(ctx context.Context, id WatcherId) (result DeleteOperationResponse, err error)
- func (c WatcherClient) Get(ctx context.Context, id WatcherId) (result GetOperationResponse, err error)
- func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, ...) (resp ListByAutomationAccountOperationResponse, err error)
- func (c WatcherClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, ...) (ListByAutomationAccountCompleteResult, error)
- func (c WatcherClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, ...) (resp ListByAutomationAccountCompleteResult, err error)
- func (c WatcherClient) Start(ctx context.Context, id WatcherId) (result StartOperationResponse, err error)
- func (c WatcherClient) Stop(ctx context.Context, id WatcherId) (result StopOperationResponse, err error)
- func (c WatcherClient) Update(ctx context.Context, id WatcherId, input WatcherUpdateParameters) (result UpdateOperationResponse, err error)
- type WatcherId
- type WatcherOperationPredicate
- type WatcherProperties
- type WatcherUpdateParameters
- type WatcherUpdateProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAutomationAccountID ¶
ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID
func ValidateWatcherID ¶
ValidateWatcherID checks that 'input' can be parsed as a Watcher ID
Types ¶
type AutomationAccountId ¶
type AutomationAccountId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string }
AutomationAccountId is a struct representing the Resource ID for a Automation Account
func NewAutomationAccountID ¶
func NewAutomationAccountID(subscriptionId string, resourceGroupName string, automationAccountName string) AutomationAccountId
NewAutomationAccountID returns a new AutomationAccountId struct
func ParseAutomationAccountID ¶
func ParseAutomationAccountID(input string) (*AutomationAccountId, error)
ParseAutomationAccountID parses 'input' into a AutomationAccountId
func ParseAutomationAccountIDInsensitively ¶
func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, error)
ParseAutomationAccountIDInsensitively parses 'input' case-insensitively into a AutomationAccountId note: this method should only be used for API response data and not user input
func (AutomationAccountId) ID ¶
func (id AutomationAccountId) ID() string
ID returns the formatted Automation Account ID
func (AutomationAccountId) Segments ¶
func (id AutomationAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Automation Account ID
func (AutomationAccountId) String ¶
func (id AutomationAccountId) String() string
String returns a human-readable description of this Automation Account ID
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByAutomationAccountCompleteResult ¶
type ListByAutomationAccountCompleteResult struct {
Items []Watcher
}
type ListByAutomationAccountOperationOptions ¶
type ListByAutomationAccountOperationOptions struct {
Filter *string
}
func DefaultListByAutomationAccountOperationOptions ¶
func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions
type ListByAutomationAccountOperationResponse ¶
type ListByAutomationAccountOperationResponse struct { HttpResponse *http.Response Model *[]Watcher // contains filtered or unexported fields }
func (ListByAutomationAccountOperationResponse) HasMore ¶
func (r ListByAutomationAccountOperationResponse) HasMore() bool
func (ListByAutomationAccountOperationResponse) LoadMore ¶
func (r ListByAutomationAccountOperationResponse) LoadMore(ctx context.Context) (resp ListByAutomationAccountOperationResponse, err error)
type StartOperationResponse ¶
type StopOperationResponse ¶
type UpdateOperationResponse ¶
type Watcher ¶
type Watcher struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *WatcherProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type WatcherClient ¶
func NewWatcherClientWithBaseURI ¶
func NewWatcherClientWithBaseURI(endpoint string) WatcherClient
func (WatcherClient) CreateOrUpdate ¶
func (c WatcherClient) CreateOrUpdate(ctx context.Context, id WatcherId, input Watcher) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (WatcherClient) Delete ¶
func (c WatcherClient) Delete(ctx context.Context, id WatcherId) (result DeleteOperationResponse, err error)
Delete ...
func (WatcherClient) Get ¶
func (c WatcherClient) Get(ctx context.Context, id WatcherId) (result GetOperationResponse, err error)
Get ...
func (WatcherClient) ListByAutomationAccount ¶
func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (resp ListByAutomationAccountOperationResponse, err error)
ListByAutomationAccount ...
func (WatcherClient) ListByAutomationAccountComplete ¶
func (c WatcherClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (ListByAutomationAccountCompleteResult, error)
ListByAutomationAccountComplete retrieves all of the results into a single object
func (WatcherClient) ListByAutomationAccountCompleteMatchingPredicate ¶
func (c WatcherClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions, predicate WatcherOperationPredicate) (resp ListByAutomationAccountCompleteResult, err error)
ListByAutomationAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (WatcherClient) Start ¶
func (c WatcherClient) Start(ctx context.Context, id WatcherId) (result StartOperationResponse, err error)
Start ...
func (WatcherClient) Stop ¶
func (c WatcherClient) Stop(ctx context.Context, id WatcherId) (result StopOperationResponse, err error)
Stop ...
func (WatcherClient) Update ¶
func (c WatcherClient) Update(ctx context.Context, id WatcherId, input WatcherUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
type WatcherId ¶
type WatcherId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string WatcherName string }
WatcherId is a struct representing the Resource ID for a Watcher
func NewWatcherID ¶
func NewWatcherID(subscriptionId string, resourceGroupName string, automationAccountName string, watcherName string) WatcherId
NewWatcherID returns a new WatcherId struct
func ParseWatcherID ¶
ParseWatcherID parses 'input' into a WatcherId
func ParseWatcherIDInsensitively ¶
ParseWatcherIDInsensitively parses 'input' case-insensitively into a WatcherId note: this method should only be used for API response data and not user input
func (WatcherId) Segments ¶
func (id WatcherId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Watcher ID
type WatcherOperationPredicate ¶
type WatcherOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (WatcherOperationPredicate) Matches ¶
func (p WatcherOperationPredicate) Matches(input Watcher) bool
type WatcherProperties ¶
type WatcherProperties struct { CreationTime *string `json:"creationTime,omitempty"` Description *string `json:"description,omitempty"` ExecutionFrequencyInSeconds *int64 `json:"executionFrequencyInSeconds,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` ScriptName *string `json:"scriptName,omitempty"` ScriptParameters *map[string]string `json:"scriptParameters,omitempty"` ScriptRunOn *string `json:"scriptRunOn,omitempty"` Status *string `json:"status,omitempty"` }
func (*WatcherProperties) GetCreationTimeAsTime ¶
func (o *WatcherProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*WatcherProperties) GetLastModifiedTimeAsTime ¶
func (o *WatcherProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*WatcherProperties) SetCreationTimeAsTime ¶
func (o *WatcherProperties) SetCreationTimeAsTime(input time.Time)
func (*WatcherProperties) SetLastModifiedTimeAsTime ¶
func (o *WatcherProperties) SetLastModifiedTimeAsTime(input time.Time)
type WatcherUpdateParameters ¶
type WatcherUpdateParameters struct { Name *string `json:"name,omitempty"` Properties *WatcherUpdateProperties `json:"properties,omitempty"` }
type WatcherUpdateProperties ¶
type WatcherUpdateProperties struct {
ExecutionFrequencyInSeconds *int64 `json:"executionFrequencyInSeconds,omitempty"`
}
Source Files ¶
- client.go
- id_automationaccount.go
- id_watcher.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyautomationaccount_autorest.go
- method_start_autorest.go
- method_stop_autorest.go
- method_update_autorest.go
- model_watcher.go
- model_watcherproperties.go
- model_watcherupdateparameters.go
- model_watcherupdateproperties.go
- predicates.go
- version.go