databasesqlvulnerabilityassessmentscans

package
v0.20240208.1165011 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

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

The databasesqlvulnerabilityassessmentscans SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-05-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans"

Client Initialization

client := databasesqlvulnerabilityassessmentscans.NewDatabaseSqlVulnerabilityAssessmentScansClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DatabaseSqlVulnerabilityAssessmentScansClient.Get

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

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: DatabaseSqlVulnerabilityAssessmentScansClient.ListBySqlVulnerabilityAssessments

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

// alternatively `client.ListBySqlVulnerabilityAssessments(ctx, id)` can be used to do batched pagination
items, err := client.ListBySqlVulnerabilityAssessmentsComplete(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 PossibleValuesForVulnerabilityAssessmentScanState

func PossibleValuesForVulnerabilityAssessmentScanState() []string

func PossibleValuesForVulnerabilityAssessmentScanTriggerType

func PossibleValuesForVulnerabilityAssessmentScanTriggerType() []string

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 DatabaseSqlVulnerabilityAssessmentScansClient

type DatabaseSqlVulnerabilityAssessmentScansClient struct {
	Client *resourcemanager.Client
}

func NewDatabaseSqlVulnerabilityAssessmentScansClientWithBaseURI

func NewDatabaseSqlVulnerabilityAssessmentScansClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseSqlVulnerabilityAssessmentScansClient, error)

func (DatabaseSqlVulnerabilityAssessmentScansClient) Get

Get ...

func (DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments

ListBySqlVulnerabilityAssessments ...

func (DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsComplete

ListBySqlVulnerabilityAssessmentsComplete retrieves all the results into a single object

func (DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate

ListBySqlVulnerabilityAssessmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

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

type ListBySqlVulnerabilityAssessmentsCompleteResult

type ListBySqlVulnerabilityAssessmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlVulnerabilityAssessmentScanRecord
}

type ListBySqlVulnerabilityAssessmentsOperationResponse

type ListBySqlVulnerabilityAssessmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlVulnerabilityAssessmentScanRecord
}

type SqlVulnerabilityAssessmentScanError

type SqlVulnerabilityAssessmentScanError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

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

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 (*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 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

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 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

Jump to

Keyboard shortcuts

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