Documentation ¶
Index ¶
- func ValidateAdvisorID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRecommendedActionID(input interface{}, key string) (warnings []string, errors []error)
- type AdvisorId
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationOptions
- type ListByServerOperationResponse
- type RecommendationAction
- type RecommendationActionOperationPredicate
- type RecommendationActionProperties
- func (o *RecommendationActionProperties) GetCreatedTimeAsTime() (*time.Time, error)
- func (o *RecommendationActionProperties) GetExpirationTimeAsTime() (*time.Time, error)
- func (o *RecommendationActionProperties) SetCreatedTimeAsTime(input time.Time)
- func (o *RecommendationActionProperties) SetExpirationTimeAsTime(input time.Time)
- type RecommendedActionId
- type RecommendedActionsClient
- func (c RecommendedActionsClient) Get(ctx context.Context, id RecommendedActionId) (result GetOperationResponse, err error)
- func (c RecommendedActionsClient) ListByServer(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (resp ListByServerOperationResponse, err error)
- func (c RecommendedActionsClient) ListByServerComplete(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (ListByServerCompleteResult, error)
- func (c RecommendedActionsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id AdvisorId, options ListByServerOperationOptions, ...) (resp ListByServerCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAdvisorID ¶
ValidateAdvisorID checks that 'input' can be parsed as a Advisor ID
func ValidateRecommendedActionID ¶
ValidateRecommendedActionID checks that 'input' can be parsed as a Recommended Action ID
Types ¶
type AdvisorId ¶
type AdvisorId struct { SubscriptionId string ResourceGroupName string ServerName string AdvisorName string }
AdvisorId is a struct representing the Resource ID for a Advisor
func NewAdvisorID ¶
func NewAdvisorID(subscriptionId string, resourceGroupName string, serverName string, advisorName string) AdvisorId
NewAdvisorID returns a new AdvisorId struct
func ParseAdvisorID ¶
ParseAdvisorID parses 'input' into a AdvisorId
func ParseAdvisorIDInsensitively ¶
ParseAdvisorIDInsensitively parses 'input' case-insensitively into a AdvisorId note: this method should only be used for API response data and not user input
func (AdvisorId) Segments ¶
func (id AdvisorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Advisor ID
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *RecommendationAction }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct {
Items []RecommendationAction
}
type ListByServerOperationOptions ¶
type ListByServerOperationOptions struct {
SessionId *string
}
func DefaultListByServerOperationOptions ¶
func DefaultListByServerOperationOptions() ListByServerOperationOptions
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response Model *[]RecommendationAction // contains filtered or unexported fields }
func (ListByServerOperationResponse) HasMore ¶
func (r ListByServerOperationResponse) HasMore() bool
func (ListByServerOperationResponse) LoadMore ¶
func (r ListByServerOperationResponse) LoadMore(ctx context.Context) (resp ListByServerOperationResponse, err error)
type RecommendationAction ¶
type RecommendationAction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RecommendationActionProperties `json:"properties"` Type *string `json:"type,omitempty"` }
type RecommendationActionOperationPredicate ¶
func (RecommendationActionOperationPredicate) Matches ¶
func (p RecommendationActionOperationPredicate) Matches(input RecommendationAction) bool
type RecommendationActionProperties ¶
type RecommendationActionProperties struct { ActionId *int64 `json:"actionId,omitempty"` AdvisorName *string `json:"advisorName,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` Details *map[string]string `json:"details,omitempty"` ExpirationTime *string `json:"expirationTime,omitempty"` Reason *string `json:"reason,omitempty"` RecommendationType *string `json:"recommendationType,omitempty"` SessionId *string `json:"sessionId,omitempty"` }
func (*RecommendationActionProperties) GetCreatedTimeAsTime ¶
func (o *RecommendationActionProperties) GetCreatedTimeAsTime() (*time.Time, error)
func (*RecommendationActionProperties) GetExpirationTimeAsTime ¶
func (o *RecommendationActionProperties) GetExpirationTimeAsTime() (*time.Time, error)
func (*RecommendationActionProperties) SetCreatedTimeAsTime ¶
func (o *RecommendationActionProperties) SetCreatedTimeAsTime(input time.Time)
func (*RecommendationActionProperties) SetExpirationTimeAsTime ¶
func (o *RecommendationActionProperties) SetExpirationTimeAsTime(input time.Time)
type RecommendedActionId ¶
type RecommendedActionId struct { SubscriptionId string ResourceGroupName string ServerName string AdvisorName string RecommendedActionName string }
RecommendedActionId is a struct representing the Resource ID for a Recommended Action
func NewRecommendedActionID ¶
func NewRecommendedActionID(subscriptionId string, resourceGroupName string, serverName string, advisorName string, recommendedActionName string) RecommendedActionId
NewRecommendedActionID returns a new RecommendedActionId struct
func ParseRecommendedActionID ¶
func ParseRecommendedActionID(input string) (*RecommendedActionId, error)
ParseRecommendedActionID parses 'input' into a RecommendedActionId
func ParseRecommendedActionIDInsensitively ¶
func ParseRecommendedActionIDInsensitively(input string) (*RecommendedActionId, error)
ParseRecommendedActionIDInsensitively parses 'input' case-insensitively into a RecommendedActionId note: this method should only be used for API response data and not user input
func (RecommendedActionId) ID ¶
func (id RecommendedActionId) ID() string
ID returns the formatted Recommended Action ID
func (RecommendedActionId) Segments ¶
func (id RecommendedActionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Recommended Action ID
func (RecommendedActionId) String ¶
func (id RecommendedActionId) String() string
String returns a human-readable description of this Recommended Action ID
type RecommendedActionsClient ¶
type RecommendedActionsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewRecommendedActionsClientWithBaseURI ¶
func NewRecommendedActionsClientWithBaseURI(endpoint string) RecommendedActionsClient
func (RecommendedActionsClient) Get ¶
func (c RecommendedActionsClient) Get(ctx context.Context, id RecommendedActionId) (result GetOperationResponse, err error)
Get ...
func (RecommendedActionsClient) ListByServer ¶
func (c RecommendedActionsClient) ListByServer(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (resp ListByServerOperationResponse, err error)
ListByServer ...
func (RecommendedActionsClient) ListByServerComplete ¶
func (c RecommendedActionsClient) ListByServerComplete(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all of the results into a single object
func (RecommendedActionsClient) ListByServerCompleteMatchingPredicate ¶
func (c RecommendedActionsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id AdvisorId, options ListByServerOperationOptions, predicate RecommendationActionOperationPredicate) (resp ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all of the results and then applied the predicate