Documentation ¶
Index ¶
- func PossibleValuesForCategory() []string
- func PossibleValuesForImpact() []string
- func PossibleValuesForRisk() []string
- func ValidateScopedRecommendationID(input interface{}, key string) (warnings []string, errors []error)
- type Category
- type GetRecommendationsClient
- func (c GetRecommendationsClient) RecommendationsGet(ctx context.Context, id ScopedRecommendationId) (result RecommendationsGetOperationResponse, err error)
- func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, ...) (result RecommendationsListOperationResponse, err error)
- func (c GetRecommendationsClient) RecommendationsListComplete(ctx context.Context, id commonids.SubscriptionId, ...) (RecommendationsListCompleteResult, error)
- func (c GetRecommendationsClient) RecommendationsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result RecommendationsListCompleteResult, err error)
- type Impact
- type RecommendationProperties
- type RecommendationsGetOperationResponse
- type RecommendationsListCompleteResult
- type RecommendationsListCustomPager
- type RecommendationsListOperationOptions
- type RecommendationsListOperationResponse
- type ResourceMetadata
- type ResourceRecommendationBase
- type ResourceRecommendationBaseOperationPredicate
- type Risk
- type ScopedRecommendationId
- type ShortDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCategory ¶
func PossibleValuesForCategory() []string
func PossibleValuesForImpact ¶
func PossibleValuesForImpact() []string
func PossibleValuesForRisk ¶
func PossibleValuesForRisk() []string
func ValidateScopedRecommendationID ¶
func ValidateScopedRecommendationID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedRecommendationID checks that 'input' can be parsed as a Scoped Recommendation ID
Types ¶
type GetRecommendationsClient ¶
type GetRecommendationsClient struct {
Client *resourcemanager.Client
}
func NewGetRecommendationsClientWithBaseURI ¶
func NewGetRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*GetRecommendationsClient, error)
func (GetRecommendationsClient) RecommendationsGet ¶
func (c GetRecommendationsClient) RecommendationsGet(ctx context.Context, id ScopedRecommendationId) (result RecommendationsGetOperationResponse, err error)
RecommendationsGet ...
func (GetRecommendationsClient) RecommendationsList ¶
func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error)
RecommendationsList ...
func (GetRecommendationsClient) RecommendationsListComplete ¶
func (c GetRecommendationsClient) RecommendationsListComplete(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (RecommendationsListCompleteResult, error)
RecommendationsListComplete retrieves all the results into a single object
func (GetRecommendationsClient) RecommendationsListCompleteMatchingPredicate ¶
func (c GetRecommendationsClient) RecommendationsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions, predicate ResourceRecommendationBaseOperationPredicate) (result RecommendationsListCompleteResult, err error)
RecommendationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type RecommendationProperties ¶
type RecommendationProperties struct { Actions *[]map[string]interface{} `json:"actions,omitempty"` Category *Category `json:"category,omitempty"` Description *string `json:"description,omitempty"` ExposedMetadataProperties *map[string]interface{} `json:"exposedMetadataProperties,omitempty"` ExtendedProperties *map[string]string `json:"extendedProperties,omitempty"` Impact *Impact `json:"impact,omitempty"` ImpactedField *string `json:"impactedField,omitempty"` ImpactedValue *string `json:"impactedValue,omitempty"` Label *string `json:"label,omitempty"` LastUpdated *string `json:"lastUpdated,omitempty"` LearnMoreLink *string `json:"learnMoreLink,omitempty"` Metadata *map[string]interface{} `json:"metadata,omitempty"` PotentialBenefits *string `json:"potentialBenefits,omitempty"` RecommendationTypeId *string `json:"recommendationTypeId,omitempty"` Remediation *map[string]interface{} `json:"remediation,omitempty"` ResourceMetadata *ResourceMetadata `json:"resourceMetadata,omitempty"` Risk *Risk `json:"risk,omitempty"` ShortDescription *ShortDescription `json:"shortDescription,omitempty"` SuppressionIds *[]string `json:"suppressionIds,omitempty"` }
func (*RecommendationProperties) GetLastUpdatedAsTime ¶
func (o *RecommendationProperties) GetLastUpdatedAsTime() (*time.Time, error)
func (*RecommendationProperties) SetLastUpdatedAsTime ¶
func (o *RecommendationProperties) SetLastUpdatedAsTime(input time.Time)
type RecommendationsGetOperationResponse ¶
type RecommendationsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ResourceRecommendationBase }
type RecommendationsListCompleteResult ¶
type RecommendationsListCompleteResult struct { LatestHttpResponse *http.Response Items []ResourceRecommendationBase }
type RecommendationsListCustomPager ¶ added in v0.20240628.1153531
func (*RecommendationsListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link
type RecommendationsListOperationOptions ¶
func DefaultRecommendationsListOperationOptions ¶
func DefaultRecommendationsListOperationOptions() RecommendationsListOperationOptions
func (RecommendationsListOperationOptions) ToHeaders ¶
func (o RecommendationsListOperationOptions) ToHeaders() *client.Headers
func (RecommendationsListOperationOptions) ToOData ¶
func (o RecommendationsListOperationOptions) ToOData() *odata.Query
func (RecommendationsListOperationOptions) ToQuery ¶
func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams
type RecommendationsListOperationResponse ¶
type RecommendationsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ResourceRecommendationBase }
type ResourceMetadata ¶
type ResourceRecommendationBase ¶
type ResourceRecommendationBase struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RecommendationProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ResourceRecommendationBaseOperationPredicate ¶
func (ResourceRecommendationBaseOperationPredicate) Matches ¶
func (p ResourceRecommendationBaseOperationPredicate) Matches(input ResourceRecommendationBase) bool
type ScopedRecommendationId ¶
ScopedRecommendationId is a struct representing the Resource ID for a Scoped Recommendation
func NewScopedRecommendationID ¶
func NewScopedRecommendationID(resourceUri string, recommendationId string) ScopedRecommendationId
NewScopedRecommendationID returns a new ScopedRecommendationId struct
func ParseScopedRecommendationID ¶
func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error)
ParseScopedRecommendationID parses 'input' into a ScopedRecommendationId
func ParseScopedRecommendationIDInsensitively ¶
func ParseScopedRecommendationIDInsensitively(input string) (*ScopedRecommendationId, error)
ParseScopedRecommendationIDInsensitively parses 'input' case-insensitively into a ScopedRecommendationId note: this method should only be used for API response data and not user input
func (*ScopedRecommendationId) FromParseResult ¶
func (id *ScopedRecommendationId) FromParseResult(input resourceids.ParseResult) error
func (ScopedRecommendationId) ID ¶
func (id ScopedRecommendationId) ID() string
ID returns the formatted Scoped Recommendation ID
func (ScopedRecommendationId) Segments ¶
func (id ScopedRecommendationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Recommendation ID
func (ScopedRecommendationId) String ¶
func (id ScopedRecommendationId) String() string
String returns a human-readable description of this Scoped Recommendation ID