Documentation ¶
Index ¶
- func PossibleValuesForControlType() []string
- func PossibleValuesForExpandControlsEnum() []string
- func ValidateSecureScoreID(input interface{}, key string) (warnings []string, errors []error)
- type AzureResourceLink
- type ControlType
- type ControlsListBySecureScoreCompleteResult
- type ControlsListBySecureScoreOperationOptions
- type ControlsListBySecureScoreOperationResponse
- type ExpandControlsEnum
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ScoreDetails
- type SecureScoreClient
- func (c SecureScoreClient) ControlsListBySecureScore(ctx context.Context, id SecureScoreId, ...) (result ControlsListBySecureScoreOperationResponse, err error)
- func (c SecureScoreClient) ControlsListBySecureScoreComplete(ctx context.Context, id SecureScoreId, ...) (ControlsListBySecureScoreCompleteResult, error)
- func (c SecureScoreClient) ControlsListBySecureScoreCompleteMatchingPredicate(ctx context.Context, id SecureScoreId, ...) (result ControlsListBySecureScoreCompleteResult, err error)
- func (c SecureScoreClient) Get(ctx context.Context, id SecureScoreId) (result GetOperationResponse, err error)
- func (c SecureScoreClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c SecureScoreClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c SecureScoreClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- type SecureScoreControlDefinitionItem
- type SecureScoreControlDefinitionItemProperties
- type SecureScoreControlDefinitionSource
- type SecureScoreControlDetails
- type SecureScoreControlDetailsOperationPredicate
- type SecureScoreControlScoreDetails
- type SecureScoreId
- type SecureScoreItem
- type SecureScoreItemOperationPredicate
- type SecureScoreItemProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForControlType ¶
func PossibleValuesForControlType() []string
func PossibleValuesForExpandControlsEnum ¶
func PossibleValuesForExpandControlsEnum() []string
func ValidateSecureScoreID ¶
ValidateSecureScoreID checks that 'input' can be parsed as a Secure Score ID
Types ¶
type AzureResourceLink ¶
type AzureResourceLink struct {
Id *string `json:"id,omitempty"`
}
type ControlType ¶
type ControlType string
const ( ControlTypeBuiltIn ControlType = "BuiltIn" ControlTypeCustom ControlType = "Custom" )
func (*ControlType) UnmarshalJSON ¶ added in v0.20240228.1142829
func (s *ControlType) UnmarshalJSON(bytes []byte) error
type ControlsListBySecureScoreCompleteResult ¶
type ControlsListBySecureScoreCompleteResult struct { LatestHttpResponse *http.Response Items []SecureScoreControlDetails }
type ControlsListBySecureScoreOperationOptions ¶
type ControlsListBySecureScoreOperationOptions struct {
Expand *ExpandControlsEnum
}
func DefaultControlsListBySecureScoreOperationOptions ¶
func DefaultControlsListBySecureScoreOperationOptions() ControlsListBySecureScoreOperationOptions
func (ControlsListBySecureScoreOperationOptions) ToHeaders ¶ added in v0.20240228.1142829
func (o ControlsListBySecureScoreOperationOptions) ToHeaders() *client.Headers
func (ControlsListBySecureScoreOperationOptions) ToOData ¶ added in v0.20240228.1142829
func (o ControlsListBySecureScoreOperationOptions) ToOData() *odata.Query
func (ControlsListBySecureScoreOperationOptions) ToQuery ¶ added in v0.20240228.1142829
func (o ControlsListBySecureScoreOperationOptions) ToQuery() *client.QueryParams
type ControlsListBySecureScoreOperationResponse ¶
type ControlsListBySecureScoreOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecureScoreControlDetails }
type ExpandControlsEnum ¶
type ExpandControlsEnum string
const (
ExpandControlsEnumDefinition ExpandControlsEnum = "definition"
)
func (*ExpandControlsEnum) UnmarshalJSON ¶ added in v0.20240228.1142829
func (s *ExpandControlsEnum) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecureScoreItem }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []SecureScoreItem }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecureScoreItem }
type ScoreDetails ¶
type SecureScoreClient ¶
type SecureScoreClient struct {
Client *resourcemanager.Client
}
func NewSecureScoreClientWithBaseURI ¶
func NewSecureScoreClientWithBaseURI(sdkApi sdkEnv.Api) (*SecureScoreClient, error)
func (SecureScoreClient) ControlsListBySecureScore ¶
func (c SecureScoreClient) ControlsListBySecureScore(ctx context.Context, id SecureScoreId, options ControlsListBySecureScoreOperationOptions) (result ControlsListBySecureScoreOperationResponse, err error)
ControlsListBySecureScore ...
func (SecureScoreClient) ControlsListBySecureScoreComplete ¶
func (c SecureScoreClient) ControlsListBySecureScoreComplete(ctx context.Context, id SecureScoreId, options ControlsListBySecureScoreOperationOptions) (ControlsListBySecureScoreCompleteResult, error)
ControlsListBySecureScoreComplete retrieves all the results into a single object
func (SecureScoreClient) ControlsListBySecureScoreCompleteMatchingPredicate ¶
func (c SecureScoreClient) ControlsListBySecureScoreCompleteMatchingPredicate(ctx context.Context, id SecureScoreId, options ControlsListBySecureScoreOperationOptions, predicate SecureScoreControlDetailsOperationPredicate) (result ControlsListBySecureScoreCompleteResult, err error)
ControlsListBySecureScoreCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SecureScoreClient) Get ¶
func (c SecureScoreClient) Get(ctx context.Context, id SecureScoreId) (result GetOperationResponse, err error)
Get ...
func (SecureScoreClient) List ¶
func (c SecureScoreClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (SecureScoreClient) ListComplete ¶
func (c SecureScoreClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SecureScoreClient) ListCompleteMatchingPredicate ¶
func (c SecureScoreClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SecureScoreItemOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SecureScoreControlDefinitionItem ¶
type SecureScoreControlDefinitionItem struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecureScoreControlDefinitionItemProperties ¶
type SecureScoreControlDefinitionItemProperties struct { AssessmentDefinitions *[]AzureResourceLink `json:"assessmentDefinitions,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` MaxScore *int64 `json:"maxScore,omitempty"` Source *SecureScoreControlDefinitionSource `json:"source,omitempty"` }
type SecureScoreControlDefinitionSource ¶
type SecureScoreControlDefinitionSource struct {
SourceType *ControlType `json:"sourceType,omitempty"`
}
type SecureScoreControlDetails ¶
type SecureScoreControlDetails struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecureScoreControlScoreDetails `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecureScoreControlDetailsOperationPredicate ¶
func (SecureScoreControlDetailsOperationPredicate) Matches ¶
func (p SecureScoreControlDetailsOperationPredicate) Matches(input SecureScoreControlDetails) bool
type SecureScoreControlScoreDetails ¶
type SecureScoreControlScoreDetails struct { Definition *SecureScoreControlDefinitionItem `json:"definition,omitempty"` DisplayName *string `json:"displayName,omitempty"` HealthyResourceCount *int64 `json:"healthyResourceCount,omitempty"` NotApplicableResourceCount *int64 `json:"notApplicableResourceCount,omitempty"` Score *ScoreDetails `json:"score,omitempty"` UnhealthyResourceCount *int64 `json:"unhealthyResourceCount,omitempty"` Weight *int64 `json:"weight,omitempty"` }
type SecureScoreId ¶
SecureScoreId is a struct representing the Resource ID for a Secure Score
func NewSecureScoreID ¶
func NewSecureScoreID(subscriptionId string, secureScoreName string) SecureScoreId
NewSecureScoreID returns a new SecureScoreId struct
func ParseSecureScoreID ¶
func ParseSecureScoreID(input string) (*SecureScoreId, error)
ParseSecureScoreID parses 'input' into a SecureScoreId
func ParseSecureScoreIDInsensitively ¶
func ParseSecureScoreIDInsensitively(input string) (*SecureScoreId, error)
ParseSecureScoreIDInsensitively parses 'input' case-insensitively into a SecureScoreId note: this method should only be used for API response data and not user input
func (*SecureScoreId) FromParseResult ¶
func (id *SecureScoreId) FromParseResult(input resourceids.ParseResult) error
func (SecureScoreId) ID ¶
func (id SecureScoreId) ID() string
ID returns the formatted Secure Score ID
func (SecureScoreId) Segments ¶
func (id SecureScoreId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Secure Score ID
func (SecureScoreId) String ¶
func (id SecureScoreId) String() string
String returns a human-readable description of this Secure Score ID
type SecureScoreItem ¶
type SecureScoreItem struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecureScoreItemProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecureScoreItemOperationPredicate ¶
func (SecureScoreItemOperationPredicate) Matches ¶
func (p SecureScoreItemOperationPredicate) Matches(input SecureScoreItem) bool
type SecureScoreItemProperties ¶
type SecureScoreItemProperties struct { DisplayName *string `json:"displayName,omitempty"` Score *ScoreDetails `json:"score,omitempty"` Weight *int64 `json:"weight,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_securescore.go
- method_controlslistbysecurescore.go
- method_get.go
- method_list.go
- model_azureresourcelink.go
- model_scoredetails.go
- model_securescorecontroldefinitionitem.go
- model_securescorecontroldefinitionitemproperties.go
- model_securescorecontroldefinitionsource.go
- model_securescorecontroldetails.go
- model_securescorecontrolscoredetails.go
- model_securescoreitem.go
- model_securescoreitemproperties.go
- predicates.go
- version.go