Documentation ¶
Index ¶
- func PossibleValuesForAssessmentStatusCode() []string
- func PossibleValuesForAssessmentType() []string
- func PossibleValuesForCategories() []string
- func PossibleValuesForExpandEnum() []string
- func PossibleValuesForImplementationEffort() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForSource() []string
- func PossibleValuesForThreats() []string
- func PossibleValuesForUserImpact() []string
- func ValidateScopedAssessmentID(input interface{}, key string) (warnings []string, errors []error)
- type AssessmentLinks
- type AssessmentStatus
- type AssessmentStatusCode
- type AssessmentStatusResponse
- func (o *AssessmentStatusResponse) GetFirstEvaluationDateAsTime() (*time.Time, error)
- func (o *AssessmentStatusResponse) GetStatusChangeDateAsTime() (*time.Time, error)
- func (o *AssessmentStatusResponse) SetFirstEvaluationDateAsTime(input time.Time)
- func (o *AssessmentStatusResponse) SetStatusChangeDateAsTime(input time.Time)
- type AssessmentType
- type AssessmentsClient
- func (c AssessmentsClient) CreateOrUpdate(ctx context.Context, id ScopedAssessmentId, input SecurityAssessment) (result CreateOrUpdateOperationResponse, err error)
- func (c AssessmentsClient) Delete(ctx context.Context, id ScopedAssessmentId) (result DeleteOperationResponse, err error)
- func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (resp ListOperationResponse, err error)
- func (c AssessmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c AssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (resp ListCompleteResult, err error)
- type Categories
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExpandEnum
- type GetOperationOptions
- type GetOperationResponse
- type ImplementationEffort
- type ListCompleteResult
- type ListOperationResponse
- type ResourceDetails
- type ScopedAssessmentId
- type SecurityAssessment
- type SecurityAssessmentMetadataPartnerData
- type SecurityAssessmentMetadataProperties
- type SecurityAssessmentPartnerData
- type SecurityAssessmentProperties
- type SecurityAssessmentPropertiesResponse
- type SecurityAssessmentResponse
- type SecurityAssessmentResponseOperationPredicate
- type Severity
- type Source
- type Threats
- type UserImpact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAssessmentStatusCode ¶
func PossibleValuesForAssessmentStatusCode() []string
func PossibleValuesForAssessmentType ¶
func PossibleValuesForAssessmentType() []string
func PossibleValuesForCategories ¶
func PossibleValuesForCategories() []string
func PossibleValuesForExpandEnum ¶
func PossibleValuesForExpandEnum() []string
func PossibleValuesForImplementationEffort ¶
func PossibleValuesForImplementationEffort() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func PossibleValuesForSource ¶
func PossibleValuesForSource() []string
func PossibleValuesForThreats ¶
func PossibleValuesForThreats() []string
func PossibleValuesForUserImpact ¶
func PossibleValuesForUserImpact() []string
func ValidateScopedAssessmentID ¶
ValidateScopedAssessmentID checks that 'input' can be parsed as a Scoped Assessment ID
Types ¶
type AssessmentLinks ¶
type AssessmentLinks struct {
AzurePortalUri *string `json:"azurePortalUri,omitempty"`
}
type AssessmentStatus ¶
type AssessmentStatus struct { Cause *string `json:"cause,omitempty"` Code AssessmentStatusCode `json:"code"` Description *string `json:"description,omitempty"` }
type AssessmentStatusCode ¶
type AssessmentStatusCode string
const ( AssessmentStatusCodeHealthy AssessmentStatusCode = "Healthy" AssessmentStatusCodeNotApplicable AssessmentStatusCode = "NotApplicable" AssessmentStatusCodeUnhealthy AssessmentStatusCode = "Unhealthy" )
type AssessmentStatusResponse ¶
type AssessmentStatusResponse struct { Cause *string `json:"cause,omitempty"` Code AssessmentStatusCode `json:"code"` Description *string `json:"description,omitempty"` FirstEvaluationDate *string `json:"firstEvaluationDate,omitempty"` StatusChangeDate *string `json:"statusChangeDate,omitempty"` }
func (*AssessmentStatusResponse) GetFirstEvaluationDateAsTime ¶
func (o *AssessmentStatusResponse) GetFirstEvaluationDateAsTime() (*time.Time, error)
func (*AssessmentStatusResponse) GetStatusChangeDateAsTime ¶
func (o *AssessmentStatusResponse) GetStatusChangeDateAsTime() (*time.Time, error)
func (*AssessmentStatusResponse) SetFirstEvaluationDateAsTime ¶
func (o *AssessmentStatusResponse) SetFirstEvaluationDateAsTime(input time.Time)
func (*AssessmentStatusResponse) SetStatusChangeDateAsTime ¶
func (o *AssessmentStatusResponse) SetStatusChangeDateAsTime(input time.Time)
type AssessmentType ¶
type AssessmentType string
const ( AssessmentTypeBuiltIn AssessmentType = "BuiltIn" AssessmentTypeCustomPolicy AssessmentType = "CustomPolicy" AssessmentTypeCustomerManaged AssessmentType = "CustomerManaged" AssessmentTypeVerifiedPartner AssessmentType = "VerifiedPartner" )
type AssessmentsClient ¶
func NewAssessmentsClientWithBaseURI ¶
func NewAssessmentsClientWithBaseURI(endpoint string) AssessmentsClient
func (AssessmentsClient) CreateOrUpdate ¶
func (c AssessmentsClient) CreateOrUpdate(ctx context.Context, id ScopedAssessmentId, input SecurityAssessment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AssessmentsClient) Delete ¶
func (c AssessmentsClient) Delete(ctx context.Context, id ScopedAssessmentId) (result DeleteOperationResponse, err error)
Delete ...
func (AssessmentsClient) Get ¶
func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (AssessmentsClient) List ¶
func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (resp ListOperationResponse, err error)
List ...
func (AssessmentsClient) ListComplete ¶
func (c AssessmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (AssessmentsClient) ListCompleteMatchingPredicate ¶
func (c AssessmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate SecurityAssessmentResponseOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type Categories ¶
type Categories string
const ( CategoriesCompute Categories = "Compute" CategoriesData Categories = "Data" CategoriesIdentityAndAccess Categories = "IdentityAndAccess" CategoriesIoT Categories = "IoT" CategoriesNetworking Categories = "Networking" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *SecurityAssessmentResponse }
type DeleteOperationResponse ¶
type ExpandEnum ¶
type ExpandEnum string
const ( ExpandEnumLinks ExpandEnum = "links" ExpandEnumMetadata ExpandEnum = "metadata" )
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *ExpandEnum
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *SecurityAssessmentResponse }
type ImplementationEffort ¶
type ImplementationEffort string
const ( ImplementationEffortHigh ImplementationEffort = "High" ImplementationEffortLow ImplementationEffort = "Low" ImplementationEffortModerate ImplementationEffort = "Moderate" )
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []SecurityAssessmentResponse
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]SecurityAssessmentResponse // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ResourceDetails ¶
type ResourceDetails struct {
Source Source `json:"source"`
}
type ScopedAssessmentId ¶
ScopedAssessmentId is a struct representing the Resource ID for a Scoped Assessment
func NewScopedAssessmentID ¶
func NewScopedAssessmentID(resourceId string, assessmentName string) ScopedAssessmentId
NewScopedAssessmentID returns a new ScopedAssessmentId struct
func ParseScopedAssessmentID ¶
func ParseScopedAssessmentID(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentID parses 'input' into a ScopedAssessmentId
func ParseScopedAssessmentIDInsensitively ¶
func ParseScopedAssessmentIDInsensitively(input string) (*ScopedAssessmentId, error)
ParseScopedAssessmentIDInsensitively parses 'input' case-insensitively into a ScopedAssessmentId note: this method should only be used for API response data and not user input
func (ScopedAssessmentId) ID ¶
func (id ScopedAssessmentId) ID() string
ID returns the formatted Scoped Assessment ID
func (ScopedAssessmentId) Segments ¶
func (id ScopedAssessmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Assessment ID
func (ScopedAssessmentId) String ¶
func (id ScopedAssessmentId) String() string
String returns a human-readable description of this Scoped Assessment ID
type SecurityAssessment ¶
type SecurityAssessment struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityAssessmentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityAssessmentMetadataProperties ¶
type SecurityAssessmentMetadataProperties struct { AssessmentType AssessmentType `json:"assessmentType"` Categories *[]Categories `json:"categories,omitempty"` Description *string `json:"description,omitempty"` DisplayName string `json:"displayName"` ImplementationEffort *ImplementationEffort `json:"implementationEffort,omitempty"` PartnerData *SecurityAssessmentMetadataPartnerData `json:"partnerData,omitempty"` PolicyDefinitionId *string `json:"policyDefinitionId,omitempty"` Preview *bool `json:"preview,omitempty"` RemediationDescription *string `json:"remediationDescription,omitempty"` Severity Severity `json:"severity"` Threats *[]Threats `json:"threats,omitempty"` UserImpact *UserImpact `json:"userImpact,omitempty"` }
type SecurityAssessmentProperties ¶
type SecurityAssessmentProperties struct { AdditionalData *map[string]string `json:"additionalData,omitempty"` DisplayName *string `json:"displayName,omitempty"` Links *AssessmentLinks `json:"links,omitempty"` Metadata *SecurityAssessmentMetadataProperties `json:"metadata,omitempty"` PartnersData *SecurityAssessmentPartnerData `json:"partnersData,omitempty"` ResourceDetails ResourceDetails `json:"resourceDetails"` Status AssessmentStatus `json:"status"` }
type SecurityAssessmentPropertiesResponse ¶
type SecurityAssessmentPropertiesResponse struct { AdditionalData *map[string]string `json:"additionalData,omitempty"` DisplayName *string `json:"displayName,omitempty"` Links *AssessmentLinks `json:"links,omitempty"` Metadata *SecurityAssessmentMetadataProperties `json:"metadata,omitempty"` PartnersData *SecurityAssessmentPartnerData `json:"partnersData,omitempty"` ResourceDetails ResourceDetails `json:"resourceDetails"` Status AssessmentStatusResponse `json:"status"` }
type SecurityAssessmentResponse ¶
type SecurityAssessmentResponse struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityAssessmentPropertiesResponse `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityAssessmentResponseOperationPredicate ¶
func (SecurityAssessmentResponseOperationPredicate) Matches ¶
func (p SecurityAssessmentResponseOperationPredicate) Matches(input SecurityAssessmentResponse) bool
type Threats ¶
type Threats string
const ( ThreatsAccountBreach Threats = "accountBreach" ThreatsDataExfiltration Threats = "dataExfiltration" ThreatsDataSpillage Threats = "dataSpillage" ThreatsDenialOfService Threats = "denialOfService" ThreatsElevationOfPrivilege Threats = "elevationOfPrivilege" ThreatsMaliciousInsider Threats = "maliciousInsider" ThreatsMissingCoverage Threats = "missingCoverage" ThreatsThreatResistance Threats = "threatResistance" )
type UserImpact ¶
type UserImpact string
const ( UserImpactHigh UserImpact = "High" UserImpactLow UserImpact = "Low" UserImpactModerate UserImpact = "Moderate" )
Source Files ¶
- client.go
- constants.go
- id_scopedassessment.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_assessmentlinks.go
- model_assessmentstatus.go
- model_assessmentstatusresponse.go
- model_resourcedetails.go
- model_securityassessment.go
- model_securityassessmentmetadatapartnerdata.go
- model_securityassessmentmetadataproperties.go
- model_securityassessmentpartnerdata.go
- model_securityassessmentproperties.go
- model_securityassessmentpropertiesresponse.go
- model_securityassessmentresponse.go
- predicates.go
- version.go