Documentation ¶
Index ¶
- func PossibleValuesForRecommendationSupportedClouds() []string
- func PossibleValuesForSecurityIssue() []string
- func PossibleValuesForSeverityEnum() []string
- func ValidateScopedCustomRecommendationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type CustomRecommendation
- type CustomRecommendationOperationPredicate
- type CustomRecommendationProperties
- type CustomRecommendationsClient
- func (c CustomRecommendationsClient) CreateOrUpdate(ctx context.Context, id ScopedCustomRecommendationId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c CustomRecommendationsClient) Delete(ctx context.Context, id ScopedCustomRecommendationId) (result DeleteOperationResponse, err error)
- func (c CustomRecommendationsClient) Get(ctx context.Context, id ScopedCustomRecommendationId) (result GetOperationResponse, err error)
- func (c CustomRecommendationsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c CustomRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c CustomRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type RecommendationSupportedClouds
- type ScopedCustomRecommendationId
- func NewScopedCustomRecommendationID(scope string, customRecommendationName string) ScopedCustomRecommendationId
- func ParseScopedCustomRecommendationID(input string) (*ScopedCustomRecommendationId, error)
- func ParseScopedCustomRecommendationIDInsensitively(input string) (*ScopedCustomRecommendationId, error)
- type SecurityIssue
- type SeverityEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRecommendationSupportedClouds ¶
func PossibleValuesForRecommendationSupportedClouds() []string
func PossibleValuesForSecurityIssue ¶
func PossibleValuesForSecurityIssue() []string
func PossibleValuesForSeverityEnum ¶
func PossibleValuesForSeverityEnum() []string
func ValidateScopedCustomRecommendationID ¶
func ValidateScopedCustomRecommendationID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedCustomRecommendationID checks that 'input' can be parsed as a Scoped Custom Recommendation ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CustomRecommendation }
type CustomRecommendation ¶
type CustomRecommendation struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CustomRecommendationProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type CustomRecommendationOperationPredicate ¶
func (CustomRecommendationOperationPredicate) Matches ¶
func (p CustomRecommendationOperationPredicate) Matches(input CustomRecommendation) bool
type CustomRecommendationProperties ¶
type CustomRecommendationProperties struct { AssessmentKey *string `json:"assessmentKey,omitempty"` CloudProviders *[]RecommendationSupportedClouds `json:"cloudProviders,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Query *string `json:"query,omitempty"` RemediationDescription *string `json:"remediationDescription,omitempty"` SecurityIssue *SecurityIssue `json:"securityIssue,omitempty"` Severity *SeverityEnum `json:"severity,omitempty"` }
type CustomRecommendationsClient ¶
type CustomRecommendationsClient struct {
Client *resourcemanager.Client
}
func NewCustomRecommendationsClientWithBaseURI ¶
func NewCustomRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomRecommendationsClient, error)
func (CustomRecommendationsClient) CreateOrUpdate ¶
func (c CustomRecommendationsClient) CreateOrUpdate(ctx context.Context, id ScopedCustomRecommendationId, input CustomRecommendation) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CustomRecommendationsClient) Delete ¶
func (c CustomRecommendationsClient) Delete(ctx context.Context, id ScopedCustomRecommendationId) (result DeleteOperationResponse, err error)
Delete ...
func (CustomRecommendationsClient) Get ¶
func (c CustomRecommendationsClient) Get(ctx context.Context, id ScopedCustomRecommendationId) (result GetOperationResponse, err error)
Get ...
func (CustomRecommendationsClient) List ¶
func (c CustomRecommendationsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (CustomRecommendationsClient) ListComplete ¶
func (c CustomRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CustomRecommendationsClient) ListCompleteMatchingPredicate ¶
func (c CustomRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate CustomRecommendationOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CustomRecommendation }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []CustomRecommendation }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CustomRecommendation }
type RecommendationSupportedClouds ¶
type RecommendationSupportedClouds string
const ( RecommendationSupportedCloudsAWS RecommendationSupportedClouds = "AWS" RecommendationSupportedCloudsAzure RecommendationSupportedClouds = "Azure" RecommendationSupportedCloudsGCP RecommendationSupportedClouds = "GCP" )
func (*RecommendationSupportedClouds) UnmarshalJSON ¶
func (s *RecommendationSupportedClouds) UnmarshalJSON(bytes []byte) error
type ScopedCustomRecommendationId ¶
ScopedCustomRecommendationId is a struct representing the Resource ID for a Scoped Custom Recommendation
func NewScopedCustomRecommendationID ¶
func NewScopedCustomRecommendationID(scope string, customRecommendationName string) ScopedCustomRecommendationId
NewScopedCustomRecommendationID returns a new ScopedCustomRecommendationId struct
func ParseScopedCustomRecommendationID ¶
func ParseScopedCustomRecommendationID(input string) (*ScopedCustomRecommendationId, error)
ParseScopedCustomRecommendationID parses 'input' into a ScopedCustomRecommendationId
func ParseScopedCustomRecommendationIDInsensitively ¶
func ParseScopedCustomRecommendationIDInsensitively(input string) (*ScopedCustomRecommendationId, error)
ParseScopedCustomRecommendationIDInsensitively parses 'input' case-insensitively into a ScopedCustomRecommendationId note: this method should only be used for API response data and not user input
func (*ScopedCustomRecommendationId) FromParseResult ¶
func (id *ScopedCustomRecommendationId) FromParseResult(input resourceids.ParseResult) error
func (ScopedCustomRecommendationId) ID ¶
func (id ScopedCustomRecommendationId) ID() string
ID returns the formatted Scoped Custom Recommendation ID
func (ScopedCustomRecommendationId) Segments ¶
func (id ScopedCustomRecommendationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Custom Recommendation ID
func (ScopedCustomRecommendationId) String ¶
func (id ScopedCustomRecommendationId) String() string
String returns a human-readable description of this Scoped Custom Recommendation ID
type SecurityIssue ¶
type SecurityIssue string
const ( SecurityIssueAnonymousAccess SecurityIssue = "AnonymousAccess" SecurityIssueBestPractices SecurityIssue = "BestPractices" SecurityIssueExcessivePermissions SecurityIssue = "ExcessivePermissions" SecurityIssueNetworkExposure SecurityIssue = "NetworkExposure" SecurityIssueTrafficEncryption SecurityIssue = "TrafficEncryption" SecurityIssueVulnerability SecurityIssue = "Vulnerability" )
func (*SecurityIssue) UnmarshalJSON ¶
func (s *SecurityIssue) UnmarshalJSON(bytes []byte) error
type SeverityEnum ¶
type SeverityEnum string
const ( SeverityEnumHigh SeverityEnum = "High" SeverityEnumLow SeverityEnum = "Low" SeverityEnumMedium SeverityEnum = "Medium" )
func (*SeverityEnum) UnmarshalJSON ¶
func (s *SeverityEnum) UnmarshalJSON(bytes []byte) error