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, ...) (result ListByAutomationAccountOperationResponse, err error)
- func (c WatcherClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, ...) (ListByAutomationAccountCompleteResult, error)
- func (c WatcherClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, ...) (result 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) FromParseResult ¶
func (id *AutomationAccountId) FromParseResult(input resourceids.ParseResult) error
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 ListByAutomationAccountOperationOptions ¶
type ListByAutomationAccountOperationOptions struct {
Filter *string
}
func DefaultListByAutomationAccountOperationOptions ¶
func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions
func (ListByAutomationAccountOperationOptions) ToHeaders ¶ added in v0.20240209.1164150
func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers
func (ListByAutomationAccountOperationOptions) ToOData ¶ added in v0.20240209.1164150
func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query
func (ListByAutomationAccountOperationOptions) ToQuery ¶ added in v0.20240209.1164150
func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams
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 ¶
type WatcherClient struct {
Client *resourcemanager.Client
}
func NewWatcherClientWithBaseURI ¶
func NewWatcherClientWithBaseURI(sdkApi sdkEnv.Api) (*WatcherClient, error)
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) (result ListByAutomationAccountOperationResponse, err error)
ListByAutomationAccount ...
func (WatcherClient) ListByAutomationAccountComplete ¶
func (c WatcherClient) ListByAutomationAccountComplete(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (ListByAutomationAccountCompleteResult, error)
ListByAutomationAccountComplete retrieves all the results into a single object
func (WatcherClient) ListByAutomationAccountCompleteMatchingPredicate ¶
func (c WatcherClient) ListByAutomationAccountCompleteMatchingPredicate(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions, predicate WatcherOperationPredicate) (result ListByAutomationAccountCompleteResult, err error)
ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies 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) FromParseResult ¶
func (id *WatcherId) FromParseResult(input resourceids.ParseResult) error
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.go
- method_delete.go
- method_get.go
- method_listbyautomationaccount.go
- method_start.go
- method_stop.go
- method_update.go
- model_watcher.go
- model_watcherproperties.go
- model_watcherupdateparameters.go
- model_watcherupdateproperties.go
- predicates.go
- version.go