Documentation ¶
Index ¶
- func ValidateScopedComplianceID(input interface{}, key string) (warnings []string, errors []error)
- type Compliance
- type ComplianceOperationPredicate
- type ComplianceProperties
- type ComplianceSegment
- type CompliancesClient
- func (c CompliancesClient) Get(ctx context.Context, id ScopedComplianceId) (result GetOperationResponse, err error)
- func (c CompliancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c CompliancesClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c CompliancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ScopedComplianceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScopedComplianceID ¶
ValidateScopedComplianceID checks that 'input' can be parsed as a Scoped Compliance ID
Types ¶
type Compliance ¶
type Compliance struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ComplianceProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ComplianceOperationPredicate ¶
func (ComplianceOperationPredicate) Matches ¶
func (p ComplianceOperationPredicate) Matches(input Compliance) bool
type ComplianceProperties ¶
type ComplianceProperties struct { AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"` AssessmentTimestampUtcDate *string `json:"assessmentTimestampUtcDate,omitempty"` ResourceCount *int64 `json:"resourceCount,omitempty"` }
func (*ComplianceProperties) GetAssessmentTimestampUtcDateAsTime ¶
func (o *ComplianceProperties) GetAssessmentTimestampUtcDateAsTime() (*time.Time, error)
func (*ComplianceProperties) SetAssessmentTimestampUtcDateAsTime ¶
func (o *ComplianceProperties) SetAssessmentTimestampUtcDateAsTime(input time.Time)
type ComplianceSegment ¶
type CompliancesClient ¶
type CompliancesClient struct {
Client *resourcemanager.Client
}
func NewCompliancesClientWithBaseURI ¶
func NewCompliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*CompliancesClient, error)
func (CompliancesClient) Get ¶
func (c CompliancesClient) Get(ctx context.Context, id ScopedComplianceId) (result GetOperationResponse, err error)
Get ...
func (CompliancesClient) List ¶
func (c CompliancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (CompliancesClient) ListComplete ¶
func (c CompliancesClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CompliancesClient) ListCompleteMatchingPredicate ¶
func (c CompliancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate ComplianceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Compliance }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []Compliance }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Compliance }
type ScopedComplianceId ¶
ScopedComplianceId is a struct representing the Resource ID for a Scoped Compliance
func NewScopedComplianceID ¶
func NewScopedComplianceID(scope string, complianceName string) ScopedComplianceId
NewScopedComplianceID returns a new ScopedComplianceId struct
func ParseScopedComplianceID ¶
func ParseScopedComplianceID(input string) (*ScopedComplianceId, error)
ParseScopedComplianceID parses 'input' into a ScopedComplianceId
func ParseScopedComplianceIDInsensitively ¶
func ParseScopedComplianceIDInsensitively(input string) (*ScopedComplianceId, error)
ParseScopedComplianceIDInsensitively parses 'input' case-insensitively into a ScopedComplianceId note: this method should only be used for API response data and not user input
func (*ScopedComplianceId) FromParseResult ¶
func (id *ScopedComplianceId) FromParseResult(input resourceids.ParseResult) error
func (ScopedComplianceId) ID ¶
func (id ScopedComplianceId) ID() string
ID returns the formatted Scoped Compliance ID
func (ScopedComplianceId) Segments ¶
func (id ScopedComplianceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Compliance ID
func (ScopedComplianceId) String ¶
func (id ScopedComplianceId) String() string
String returns a human-readable description of this Scoped Compliance ID