Documentation ¶
Index ¶
- func PossibleValuesForVulnerabilityAssessmentScanState() []string
- func PossibleValuesForVulnerabilityAssessmentScanTriggerType() []string
- func PossibleValuesForVulnerabilityAssessmentSystemDatabaseName() []string
- func ValidateScanID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationOptions
- type GetOperationResponse
- type ListBySqlVulnerabilityAssessmentsCompleteResult
- type ListBySqlVulnerabilityAssessmentsOperationOptions
- type ListBySqlVulnerabilityAssessmentsOperationResponse
- type ScanId
- type ServerId
- type SqlVulnerabilityAssessmentScanError
- type SqlVulnerabilityAssessmentScanRecord
- type SqlVulnerabilityAssessmentScanRecordOperationPredicate
- type SqlVulnerabilityAssessmentScanRecordProperties
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetEndTimeAsTime() (*time.Time, error)
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetLastScanTimeAsTime() (*time.Time, error)
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetEndTimeAsTime(input time.Time)
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetLastScanTimeAsTime(input time.Time)
- func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetStartTimeAsTime(input time.Time)
- type SqlVulnerabilityAssessmentScansClient
- func (c SqlVulnerabilityAssessmentScansClient) Get(ctx context.Context, id ScanId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id ServerId, ...) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error)
- func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsComplete(ctx context.Context, id ServerId, ...) (ListBySqlVulnerabilityAssessmentsCompleteResult, error)
- func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate(ctx context.Context, id ServerId, ...) (result ListBySqlVulnerabilityAssessmentsCompleteResult, err error)
- type VulnerabilityAssessmentScanState
- type VulnerabilityAssessmentScanTriggerType
- type VulnerabilityAssessmentSystemDatabaseName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForVulnerabilityAssessmentScanState ¶
func PossibleValuesForVulnerabilityAssessmentScanState() []string
func PossibleValuesForVulnerabilityAssessmentScanTriggerType ¶
func PossibleValuesForVulnerabilityAssessmentScanTriggerType() []string
func PossibleValuesForVulnerabilityAssessmentSystemDatabaseName ¶
func PossibleValuesForVulnerabilityAssessmentSystemDatabaseName() []string
func ValidateScanID ¶
ValidateScanID checks that 'input' can be parsed as a Scan ID
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
Types ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
SystemDatabaseName *VulnerabilityAssessmentSystemDatabaseName
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SqlVulnerabilityAssessmentScanRecord }
type ListBySqlVulnerabilityAssessmentsCompleteResult ¶
type ListBySqlVulnerabilityAssessmentsCompleteResult struct {
Items []SqlVulnerabilityAssessmentScanRecord
}
type ListBySqlVulnerabilityAssessmentsOperationOptions ¶
type ListBySqlVulnerabilityAssessmentsOperationOptions struct {
SystemDatabaseName *VulnerabilityAssessmentSystemDatabaseName
}
func DefaultListBySqlVulnerabilityAssessmentsOperationOptions ¶
func DefaultListBySqlVulnerabilityAssessmentsOperationOptions() ListBySqlVulnerabilityAssessmentsOperationOptions
func (ListBySqlVulnerabilityAssessmentsOperationOptions) ToHeaders ¶
func (o ListBySqlVulnerabilityAssessmentsOperationOptions) ToHeaders() *client.Headers
func (ListBySqlVulnerabilityAssessmentsOperationOptions) ToOData ¶
func (o ListBySqlVulnerabilityAssessmentsOperationOptions) ToOData() *odata.Query
func (ListBySqlVulnerabilityAssessmentsOperationOptions) ToQuery ¶
func (o ListBySqlVulnerabilityAssessmentsOperationOptions) ToQuery() *client.QueryParams
type ListBySqlVulnerabilityAssessmentsOperationResponse ¶
type ListBySqlVulnerabilityAssessmentsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SqlVulnerabilityAssessmentScanRecord }
type ScanId ¶
type ScanId struct { SubscriptionId string ResourceGroupName string ServerName string ScanId string }
ScanId is a struct representing the Resource ID for a Scan
func NewScanID ¶
func NewScanID(subscriptionId string, resourceGroupName string, serverName string, scanId string) ScanId
NewScanID returns a new ScanId struct
func ParseScanID ¶
ParseScanID parses 'input' into a ScanId
func ParseScanIDInsensitively ¶
ParseScanIDInsensitively parses 'input' case-insensitively into a ScanId note: this method should only be used for API response data and not user input
func (ScanId) Segments ¶
func (id ScanId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scan ID
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
ParseServerIDInsensitively parses 'input' case-insensitively into a ServerId note: this method should only be used for API response data and not user input
func (ServerId) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID
type SqlVulnerabilityAssessmentScanRecord ¶
type SqlVulnerabilityAssessmentScanRecord struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SqlVulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type SqlVulnerabilityAssessmentScanRecordOperationPredicate ¶
type SqlVulnerabilityAssessmentScanRecordOperationPredicate struct { Id *string Name *string Type *string }
func (SqlVulnerabilityAssessmentScanRecordOperationPredicate) Matches ¶
func (p SqlVulnerabilityAssessmentScanRecordOperationPredicate) Matches(input SqlVulnerabilityAssessmentScanRecord) bool
type SqlVulnerabilityAssessmentScanRecordProperties ¶
type SqlVulnerabilityAssessmentScanRecordProperties struct { Database *string `json:"database,omitempty"` EndTime *string `json:"endTime,omitempty"` Errors *[]SqlVulnerabilityAssessmentScanError `json:"errors,omitempty"` HighSeverityFailedRulesCount *int64 `json:"highSeverityFailedRulesCount,omitempty"` IsBaselineApplied *bool `json:"isBaselineApplied,omitempty"` LastScanTime *string `json:"lastScanTime,omitempty"` LowSeverityFailedRulesCount *int64 `json:"lowSeverityFailedRulesCount,omitempty"` MediumSeverityFailedRulesCount *int64 `json:"mediumSeverityFailedRulesCount,omitempty"` ScanId *string `json:"scanId,omitempty"` Server *string `json:"server,omitempty"` SqlVersion *string `json:"sqlVersion,omitempty"` StartTime *string `json:"startTime,omitempty"` State *VulnerabilityAssessmentScanState `json:"state,omitempty"` TotalFailedRulesCount *int64 `json:"totalFailedRulesCount,omitempty"` TotalPassedRulesCount *int64 `json:"totalPassedRulesCount,omitempty"` TotalRulesCount *int64 `json:"totalRulesCount,omitempty"` TriggerType *VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"` }
func (*SqlVulnerabilityAssessmentScanRecordProperties) GetEndTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetEndTimeAsTime() (*time.Time, error)
func (*SqlVulnerabilityAssessmentScanRecordProperties) GetLastScanTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetLastScanTimeAsTime() (*time.Time, error)
func (*SqlVulnerabilityAssessmentScanRecordProperties) GetStartTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) GetStartTimeAsTime() (*time.Time, error)
func (*SqlVulnerabilityAssessmentScanRecordProperties) SetEndTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetEndTimeAsTime(input time.Time)
func (*SqlVulnerabilityAssessmentScanRecordProperties) SetLastScanTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetLastScanTimeAsTime(input time.Time)
func (*SqlVulnerabilityAssessmentScanRecordProperties) SetStartTimeAsTime ¶
func (o *SqlVulnerabilityAssessmentScanRecordProperties) SetStartTimeAsTime(input time.Time)
type SqlVulnerabilityAssessmentScansClient ¶
type SqlVulnerabilityAssessmentScansClient struct {
Client *resourcemanager.Client
}
func NewSqlVulnerabilityAssessmentScansClientWithBaseURI ¶
func NewSqlVulnerabilityAssessmentScansClientWithBaseURI(api environments.Api) (*SqlVulnerabilityAssessmentScansClient, error)
func (SqlVulnerabilityAssessmentScansClient) Get ¶
func (c SqlVulnerabilityAssessmentScansClient) Get(ctx context.Context, id ScanId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments ¶
func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id ServerId, options ListBySqlVulnerabilityAssessmentsOperationOptions) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error)
ListBySqlVulnerabilityAssessments ...
func (SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsComplete ¶
func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsComplete(ctx context.Context, id ServerId, options ListBySqlVulnerabilityAssessmentsOperationOptions) (ListBySqlVulnerabilityAssessmentsCompleteResult, error)
ListBySqlVulnerabilityAssessmentsComplete retrieves all the results into a single object
func (SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate ¶
func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate(ctx context.Context, id ServerId, options ListBySqlVulnerabilityAssessmentsOperationOptions, predicate SqlVulnerabilityAssessmentScanRecordOperationPredicate) (result ListBySqlVulnerabilityAssessmentsCompleteResult, err error)
ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate
type VulnerabilityAssessmentScanState ¶
type VulnerabilityAssessmentScanState string
const ( VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = "Failed" VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun" VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = "InProgress" VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = "Passed" )
func (*VulnerabilityAssessmentScanState) UnmarshalJSON ¶
func (s *VulnerabilityAssessmentScanState) UnmarshalJSON(bytes []byte) error
type VulnerabilityAssessmentScanTriggerType ¶
type VulnerabilityAssessmentScanTriggerType string
const ( VulnerabilityAssessmentScanTriggerTypeOnDemand VulnerabilityAssessmentScanTriggerType = "OnDemand" VulnerabilityAssessmentScanTriggerTypeRecurring VulnerabilityAssessmentScanTriggerType = "Recurring" )
func (*VulnerabilityAssessmentScanTriggerType) UnmarshalJSON ¶
func (s *VulnerabilityAssessmentScanTriggerType) UnmarshalJSON(bytes []byte) error
type VulnerabilityAssessmentSystemDatabaseName ¶
type VulnerabilityAssessmentSystemDatabaseName string
const (
VulnerabilityAssessmentSystemDatabaseNameMaster VulnerabilityAssessmentSystemDatabaseName = "master"
)
func (*VulnerabilityAssessmentSystemDatabaseName) UnmarshalJSON ¶
func (s *VulnerabilityAssessmentSystemDatabaseName) UnmarshalJSON(bytes []byte) error