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 ListByServerCustomPager
- 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) (result 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, ...) (result 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) FromParseResult ¶
func (id *AdvisorId) FromParseResult(input resourceids.ParseResult) error
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 OData *odata.OData Model *RecommendationAction }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct { LatestHttpResponse *http.Response Items []RecommendationAction }
type ListByServerCustomPager ¶ added in v0.20240628.1153531
func (*ListByServerCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByServerCustomPager) NextPageLink() *odata.Link
type ListByServerOperationOptions ¶
type ListByServerOperationOptions struct {
SessionId *string
}
func DefaultListByServerOperationOptions ¶
func DefaultListByServerOperationOptions() ListByServerOperationOptions
func (ListByServerOperationOptions) ToHeaders ¶
func (o ListByServerOperationOptions) ToHeaders() *client.Headers
func (ListByServerOperationOptions) ToOData ¶
func (o ListByServerOperationOptions) ToOData() *odata.Query
func (ListByServerOperationOptions) ToQuery ¶
func (o ListByServerOperationOptions) ToQuery() *client.QueryParams
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RecommendationAction }
type RecommendationAction ¶
type RecommendationAction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RecommendationActionProperties `json:"properties,omitempty"` 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) FromParseResult ¶
func (id *RecommendedActionId) FromParseResult(input resourceids.ParseResult) error
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 *resourcemanager.Client
}
func NewRecommendedActionsClientWithBaseURI ¶
func NewRecommendedActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RecommendedActionsClient, error)
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) (result ListByServerOperationResponse, err error)
ListByServer ...
func (RecommendedActionsClient) ListByServerComplete ¶
func (c RecommendedActionsClient) ListByServerComplete(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (RecommendedActionsClient) ListByServerCompleteMatchingPredicate ¶
func (c RecommendedActionsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id AdvisorId, options ListByServerOperationOptions, predicate RecommendationActionOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate