databasesqlvulnerabilityassessmentscanresult

package
v0.20240117.1113630 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult Documentation

The databasesqlvulnerabilityassessmentscanresult SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-02-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult"

Client Initialization

client := databasesqlvulnerabilityassessmentscanresult.NewDatabaseSqlVulnerabilityAssessmentScanResultClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DatabaseSqlVulnerabilityAssessmentScanResultClient.Get

ctx := context.TODO()
id := databasesqlvulnerabilityassessmentscanresult.NewScanScanResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "scanIdValue", "scanResultIdValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DatabaseSqlVulnerabilityAssessmentScanResultClient.ListByScan

ctx := context.TODO()
id := databasesqlvulnerabilityassessmentscanresult.NewSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "scanIdValue")

// alternatively `client.ListByScan(ctx, id)` can be used to do batched pagination
items, err := client.ListByScanComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForRuleSeverity

func PossibleValuesForRuleSeverity() []string

func PossibleValuesForRuleStatus

func PossibleValuesForRuleStatus() []string

func PossibleValuesForRuleType

func PossibleValuesForRuleType() []string

func ValidateScanScanResultID

func ValidateScanScanResultID(input interface{}, key string) (warnings []string, errors []error)

ValidateScanScanResultID checks that 'input' can be parsed as a Scan Scan Result ID

func ValidateSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID

func ValidateSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID(input interface{}, key string) (warnings []string, errors []error)

ValidateSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID checks that 'input' can be parsed as a Sql Vulnerability Assessment Vulnerability Assessment Scan ID

Types

type Baseline

type Baseline struct {
	ExpectedResults *[][]string `json:"expectedResults,omitempty"`
	UpdatedTime     *string     `json:"updatedTime,omitempty"`
}

func (*Baseline) GetUpdatedTimeAsTime

func (o *Baseline) GetUpdatedTimeAsTime() (*time.Time, error)

func (*Baseline) SetUpdatedTimeAsTime

func (o *Baseline) SetUpdatedTimeAsTime(input time.Time)

type BaselineAdjustedResult

type BaselineAdjustedResult struct {
	Baseline              *Baseline   `json:"baseline,omitempty"`
	ResultsNotInBaseline  *[][]string `json:"resultsNotInBaseline,omitempty"`
	ResultsOnlyInBaseline *[][]string `json:"resultsOnlyInBaseline,omitempty"`
	Status                *RuleStatus `json:"status,omitempty"`
}

type BenchmarkReference

type BenchmarkReference struct {
	Benchmark *string `json:"benchmark,omitempty"`
	Reference *string `json:"reference,omitempty"`
}

type DatabaseSqlVulnerabilityAssessmentScanResultClient

type DatabaseSqlVulnerabilityAssessmentScanResultClient struct {
	Client *resourcemanager.Client
}

func NewDatabaseSqlVulnerabilityAssessmentScanResultClientWithBaseURI

func NewDatabaseSqlVulnerabilityAssessmentScanResultClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseSqlVulnerabilityAssessmentScanResultClient, error)

func (DatabaseSqlVulnerabilityAssessmentScanResultClient) Get

Get ...

func (DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScan

ListByScan ...

func (DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScanComplete

ListByScanComplete retrieves all the results into a single object

func (DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScanCompleteMatchingPredicate

ListByScanCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlVulnerabilityAssessmentScanResults
}

type ListByScanCompleteResult

type ListByScanCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlVulnerabilityAssessmentScanResults
}

type ListByScanOperationResponse

type ListByScanOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlVulnerabilityAssessmentScanResults
}

type QueryCheck

type QueryCheck struct {
	ColumnNames    *[]string   `json:"columnNames,omitempty"`
	ExpectedResult *[][]string `json:"expectedResult,omitempty"`
	Query          *string     `json:"query,omitempty"`
}

type Remediation

type Remediation struct {
	Automated   *bool     `json:"automated,omitempty"`
	Description *string   `json:"description,omitempty"`
	PortalLink  *string   `json:"portalLink,omitempty"`
	Scripts     *[]string `json:"scripts,omitempty"`
}

type RuleSeverity

type RuleSeverity string
const (
	RuleSeverityHigh          RuleSeverity = "High"
	RuleSeverityInformational RuleSeverity = "Informational"
	RuleSeverityLow           RuleSeverity = "Low"
	RuleSeverityMedium        RuleSeverity = "Medium"
	RuleSeverityObsolete      RuleSeverity = "Obsolete"
)

func (*RuleSeverity) UnmarshalJSON

func (s *RuleSeverity) UnmarshalJSON(bytes []byte) error

type RuleStatus

type RuleStatus string
const (
	RuleStatusFinding       RuleStatus = "Finding"
	RuleStatusInternalError RuleStatus = "InternalError"
	RuleStatusNonFinding    RuleStatus = "NonFinding"
)

func (*RuleStatus) UnmarshalJSON

func (s *RuleStatus) UnmarshalJSON(bytes []byte) error

type RuleType

type RuleType string
const (
	RuleTypeBaselineExpected RuleType = "BaselineExpected"
	RuleTypeBinary           RuleType = "Binary"
	RuleTypeNegativeList     RuleType = "NegativeList"
	RuleTypePositiveList     RuleType = "PositiveList"
)

func (*RuleType) UnmarshalJSON

func (s *RuleType) UnmarshalJSON(bytes []byte) error

type ScanScanResultId

type ScanScanResultId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
	ScanId            string
	ScanResultId      string
}

ScanScanResultId is a struct representing the Resource ID for a Scan Scan Result

func NewScanScanResultID

func NewScanScanResultID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, scanId string, scanResultId string) ScanScanResultId

NewScanScanResultID returns a new ScanScanResultId struct

func ParseScanScanResultID

func ParseScanScanResultID(input string) (*ScanScanResultId, error)

ParseScanScanResultID parses 'input' into a ScanScanResultId

func ParseScanScanResultIDInsensitively

func ParseScanScanResultIDInsensitively(input string) (*ScanScanResultId, error)

ParseScanScanResultIDInsensitively parses 'input' case-insensitively into a ScanScanResultId note: this method should only be used for API response data and not user input

func (*ScanScanResultId) FromParseResult added in v0.20231127.1171502

func (id *ScanScanResultId) FromParseResult(input resourceids.ParseResult) error

func (ScanScanResultId) ID

func (id ScanScanResultId) ID() string

ID returns the formatted Scan Scan Result ID

func (ScanScanResultId) Segments

func (id ScanScanResultId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Scan Scan Result ID

func (ScanScanResultId) String

func (id ScanScanResultId) String() string

String returns a human-readable description of this Scan Scan Result ID

type SqlVulnerabilityAssessmentScanResultProperties

type SqlVulnerabilityAssessmentScanResultProperties struct {
	BaselineAdjustedResult *BaselineAdjustedResult `json:"baselineAdjustedResult,omitempty"`
	ErrorMessage           *string                 `json:"errorMessage,omitempty"`
	IsTrimmed              *bool                   `json:"isTrimmed,omitempty"`
	QueryResults           *[][]string             `json:"queryResults,omitempty"`
	Remediation            *Remediation            `json:"remediation,omitempty"`
	RuleId                 *string                 `json:"ruleId,omitempty"`
	RuleMetadata           *VaRule                 `json:"ruleMetadata,omitempty"`
	Status                 *RuleStatus             `json:"status,omitempty"`
}

type SqlVulnerabilityAssessmentScanResults

type SqlVulnerabilityAssessmentScanResults struct {
	Id         *string                                         `json:"id,omitempty"`
	Name       *string                                         `json:"name,omitempty"`
	Properties *SqlVulnerabilityAssessmentScanResultProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                          `json:"systemData,omitempty"`
	Type       *string                                         `json:"type,omitempty"`
}

type SqlVulnerabilityAssessmentScanResultsOperationPredicate

type SqlVulnerabilityAssessmentScanResultsOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SqlVulnerabilityAssessmentScanResultsOperationPredicate) Matches

type SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId

type SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
	ScanId            string
}

SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId is a struct representing the Resource ID for a Sql Vulnerability Assessment Vulnerability Assessment Scan

func NewSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID

func NewSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, scanId string) SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId

NewSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID returns a new SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId struct

func ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID

func ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID(input string) (*SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId, error)

ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanID parses 'input' into a SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId

func ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanIDInsensitively

func ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanIDInsensitively(input string) (*SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId, error)

ParseSqlVulnerabilityAssessmentVulnerabilityAssessmentScanIDInsensitively parses 'input' case-insensitively into a SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId note: this method should only be used for API response data and not user input

func (*SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) FromParseResult added in v0.20231127.1171502

func (SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) ID

ID returns the formatted Sql Vulnerability Assessment Vulnerability Assessment Scan ID

func (SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) Segments

Segments returns a slice of Resource ID Segments which comprise this Sql Vulnerability Assessment Vulnerability Assessment Scan ID

func (SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) String

String returns a human-readable description of this Sql Vulnerability Assessment Vulnerability Assessment Scan ID

type VaRule

type VaRule struct {
	BenchmarkReferences *[]BenchmarkReference `json:"benchmarkReferences,omitempty"`
	Category            *string               `json:"category,omitempty"`
	Description         *string               `json:"description,omitempty"`
	QueryCheck          *QueryCheck           `json:"queryCheck,omitempty"`
	Rationale           *string               `json:"rationale,omitempty"`
	RuleId              *string               `json:"ruleId,omitempty"`
	RuleType            *RuleType             `json:"ruleType,omitempty"`
	Severity            *RuleSeverity         `json:"severity,omitempty"`
	Title               *string               `json:"title,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL