Documentation ¶
Index ¶
- func PossibleValuesForCategory() []string
- func PossibleValuesForContext() []string
- func PossibleValuesForPriority() []string
- func PossibleValuesForState() []string
- func ValidateRecommendationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type Category
- type Content
- type Context
- type GetRecommendationsListOperationResponse
- type GetSingleRecommendationOperationResponse
- type Instructions
- type Priority
- type Recommendation
- func (o *Recommendation) GetDisplayUntilTimeUtcAsTime() (*time.Time, error)
- func (o *Recommendation) GetHideUntilTimeUtcAsTime() (*time.Time, error)
- func (o *Recommendation) GetLastEvaluatedTimeUtcAsTime() (*time.Time, error)
- func (o *Recommendation) SetDisplayUntilTimeUtcAsTime(input time.Time)
- func (o *Recommendation) SetHideUntilTimeUtcAsTime(input time.Time)
- func (o *Recommendation) SetLastEvaluatedTimeUtcAsTime(input time.Time)
- type RecommendationId
- type RecommendationList
- type RecommendationPatch
- type RecommendationsClient
- func (c RecommendationsClient) GetRecommendationsList(ctx context.Context, id WorkspaceId) (result GetRecommendationsListOperationResponse, err error)
- func (c RecommendationsClient) GetSingleRecommendation(ctx context.Context, id RecommendationId) (result GetSingleRecommendationOperationResponse, err error)
- func (c RecommendationsClient) UpdateRecommendation(ctx context.Context, id RecommendationId, input []RecommendationPatch) (result UpdateRecommendationOperationResponse, err error)
- func (c RecommendationsClient) UpdateRecommendationThenPoll(ctx context.Context, id RecommendationId, input []RecommendationPatch) error
- type RecommendedAction
- type State
- type UpdateRecommendationOperationResponse
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCategory ¶
func PossibleValuesForCategory() []string
func PossibleValuesForContext ¶
func PossibleValuesForContext() []string
func PossibleValuesForPriority ¶
func PossibleValuesForPriority() []string
func PossibleValuesForState ¶
func PossibleValuesForState() []string
func ValidateRecommendationID ¶
ValidateRecommendationID checks that 'input' can be parsed as a Recommendation ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type GetRecommendationsListOperationResponse ¶
type GetRecommendationsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RecommendationList }
type GetSingleRecommendationOperationResponse ¶
type GetSingleRecommendationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Recommendation }
type Instructions ¶
type Recommendation ¶
type Recommendation struct { Actions []RecommendedAction `json:"actions"` AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` Category Category `json:"category"` Content *Content `json:"content,omitempty"` Context Context `json:"context"` Description string `json:"description"` DisplayUntilTimeUtc *string `json:"displayUntilTimeUtc,omitempty"` HideUntilTimeUtc *string `json:"hideUntilTimeUtc,omitempty"` Id string `json:"id"` Instructions Instructions `json:"instructions"` LastEvaluatedTimeUtc string `json:"lastEvaluatedTimeUtc"` Priority Priority `json:"priority"` RecommendationTypeId string `json:"recommendationTypeId"` RecommendationTypeTitle string `json:"recommendationTypeTitle"` ResourceId *string `json:"resourceId,omitempty"` State State `json:"state"` Title string `json:"title"` Visible *bool `json:"visible,omitempty"` WorkspaceId string `json:"workspaceId"` }
func (*Recommendation) GetDisplayUntilTimeUtcAsTime ¶
func (o *Recommendation) GetDisplayUntilTimeUtcAsTime() (*time.Time, error)
func (*Recommendation) GetHideUntilTimeUtcAsTime ¶
func (o *Recommendation) GetHideUntilTimeUtcAsTime() (*time.Time, error)
func (*Recommendation) GetLastEvaluatedTimeUtcAsTime ¶
func (o *Recommendation) GetLastEvaluatedTimeUtcAsTime() (*time.Time, error)
func (*Recommendation) SetDisplayUntilTimeUtcAsTime ¶
func (o *Recommendation) SetDisplayUntilTimeUtcAsTime(input time.Time)
func (*Recommendation) SetHideUntilTimeUtcAsTime ¶
func (o *Recommendation) SetHideUntilTimeUtcAsTime(input time.Time)
func (*Recommendation) SetLastEvaluatedTimeUtcAsTime ¶
func (o *Recommendation) SetLastEvaluatedTimeUtcAsTime(input time.Time)
type RecommendationId ¶
type RecommendationId struct { SubscriptionId string ResourceGroupName string WorkspaceName string RecommendationId string }
RecommendationId is a struct representing the Resource ID for a Recommendation
func NewRecommendationID ¶
func NewRecommendationID(subscriptionId string, resourceGroupName string, workspaceName string, recommendationId string) RecommendationId
NewRecommendationID returns a new RecommendationId struct
func ParseRecommendationID ¶
func ParseRecommendationID(input string) (*RecommendationId, error)
ParseRecommendationID parses 'input' into a RecommendationId
func ParseRecommendationIDInsensitively ¶
func ParseRecommendationIDInsensitively(input string) (*RecommendationId, error)
ParseRecommendationIDInsensitively parses 'input' case-insensitively into a RecommendationId note: this method should only be used for API response data and not user input
func (*RecommendationId) FromParseResult ¶
func (id *RecommendationId) FromParseResult(input resourceids.ParseResult) error
func (RecommendationId) ID ¶
func (id RecommendationId) ID() string
ID returns the formatted Recommendation ID
func (RecommendationId) Segments ¶
func (id RecommendationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Recommendation ID
func (RecommendationId) String ¶
func (id RecommendationId) String() string
String returns a human-readable description of this Recommendation ID
type RecommendationList ¶
type RecommendationList struct {
Value *[]Recommendation `json:"value,omitempty"`
}
type RecommendationPatch ¶
type RecommendationPatch struct { HideUntilTimeUtc *string `json:"hideUntilTimeUtc,omitempty"` State *State `json:"state,omitempty"` }
func (*RecommendationPatch) GetHideUntilTimeUtcAsTime ¶
func (o *RecommendationPatch) GetHideUntilTimeUtcAsTime() (*time.Time, error)
func (*RecommendationPatch) SetHideUntilTimeUtcAsTime ¶
func (o *RecommendationPatch) SetHideUntilTimeUtcAsTime(input time.Time)
type RecommendationsClient ¶
type RecommendationsClient struct {
Client *resourcemanager.Client
}
func NewRecommendationsClientWithBaseURI ¶
func NewRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*RecommendationsClient, error)
func (RecommendationsClient) GetRecommendationsList ¶
func (c RecommendationsClient) GetRecommendationsList(ctx context.Context, id WorkspaceId) (result GetRecommendationsListOperationResponse, err error)
GetRecommendationsList ...
func (RecommendationsClient) GetSingleRecommendation ¶
func (c RecommendationsClient) GetSingleRecommendation(ctx context.Context, id RecommendationId) (result GetSingleRecommendationOperationResponse, err error)
GetSingleRecommendation ...
func (RecommendationsClient) UpdateRecommendation ¶
func (c RecommendationsClient) UpdateRecommendation(ctx context.Context, id RecommendationId, input []RecommendationPatch) (result UpdateRecommendationOperationResponse, err error)
UpdateRecommendation ...
func (RecommendationsClient) UpdateRecommendationThenPoll ¶
func (c RecommendationsClient) UpdateRecommendationThenPoll(ctx context.Context, id RecommendationId, input []RecommendationPatch) error
UpdateRecommendationThenPoll performs UpdateRecommendation then polls until it's completed
type RecommendedAction ¶
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID
Source Files ¶
- client.go
- constants.go
- id_recommendation.go
- id_workspace.go
- method_getrecommendationslist.go
- method_getsinglerecommendation.go
- method_updaterecommendation.go
- model_content.go
- model_instructions.go
- model_recommendation.go
- model_recommendationlist.go
- model_recommendationpatch.go
- model_recommendedaction.go
- version.go