sqlvulnerabilityassessmentbaseline

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: 11 Imported by: 0

README

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

The sqlvulnerabilityassessmentbaseline 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/sqlvulnerabilityassessmentbaseline"

Client Initialization

client := sqlvulnerabilityassessmentbaseline.NewSqlVulnerabilityAssessmentBaselineClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlVulnerabilityAssessmentBaselineClient.CreateOrUpdate

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

payload := sqlvulnerabilityassessmentbaseline.DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput{
	// ...
}


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

Example Usage: SqlVulnerabilityAssessmentBaselineClient.Get

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

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

Example Usage: SqlVulnerabilityAssessmentBaselineClient.ListBySqlVulnerabilityAssessment

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

// alternatively `client.ListBySqlVulnerabilityAssessment(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions())` can be used to do batched pagination
items, err := client.ListBySqlVulnerabilityAssessmentComplete(ctx, id, sqlvulnerabilityassessmentbaseline.DefaultListBySqlVulnerabilityAssessmentOperationOptions())
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 PossibleValuesForVulnerabilityAssessmentSystemDatabaseName

func PossibleValuesForVulnerabilityAssessmentSystemDatabaseName() []string

Types

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	SystemDatabaseName *VulnerabilityAssessmentSystemDatabaseName
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DatabaseSqlVulnerabilityAssessmentBaselineSet
}

type DatabaseSqlVulnerabilityAssessmentBaselineSet

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

type DatabaseSqlVulnerabilityAssessmentBaselineSetOperationPredicate

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

func (DatabaseSqlVulnerabilityAssessmentBaselineSetOperationPredicate) Matches

type DatabaseSqlVulnerabilityAssessmentBaselineSetProperties

type DatabaseSqlVulnerabilityAssessmentBaselineSetProperties struct {
	Results map[string][][]string `json:"results"`
}

type DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput

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

type DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputProperties

type DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputProperties struct {
	LatestScan bool                  `json:"latestScan"`
	Results    map[string][][]string `json:"results"`
}

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        *DatabaseSqlVulnerabilityAssessmentBaselineSet
}

type ListBySqlVulnerabilityAssessmentCompleteResult

type ListBySqlVulnerabilityAssessmentCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DatabaseSqlVulnerabilityAssessmentBaselineSet
}

type ListBySqlVulnerabilityAssessmentOperationOptions

type ListBySqlVulnerabilityAssessmentOperationOptions struct {
	SystemDatabaseName *VulnerabilityAssessmentSystemDatabaseName
}

func DefaultListBySqlVulnerabilityAssessmentOperationOptions

func DefaultListBySqlVulnerabilityAssessmentOperationOptions() ListBySqlVulnerabilityAssessmentOperationOptions

func (ListBySqlVulnerabilityAssessmentOperationOptions) ToHeaders

func (ListBySqlVulnerabilityAssessmentOperationOptions) ToOData

func (ListBySqlVulnerabilityAssessmentOperationOptions) ToQuery

type ListBySqlVulnerabilityAssessmentOperationResponse

type ListBySqlVulnerabilityAssessmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DatabaseSqlVulnerabilityAssessmentBaselineSet
}

type SqlVulnerabilityAssessmentBaselineClient

type SqlVulnerabilityAssessmentBaselineClient struct {
	Client *resourcemanager.Client
}

func NewSqlVulnerabilityAssessmentBaselineClientWithBaseURI

func NewSqlVulnerabilityAssessmentBaselineClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlVulnerabilityAssessmentBaselineClient, error)

func (SqlVulnerabilityAssessmentBaselineClient) CreateOrUpdate

CreateOrUpdate ...

func (SqlVulnerabilityAssessmentBaselineClient) Get

Get ...

func (SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessment

ListBySqlVulnerabilityAssessment ...

func (SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessmentComplete

ListBySqlVulnerabilityAssessmentComplete retrieves all the results into a single object

func (SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate

ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

type VulnerabilityAssessmentSystemDatabaseName

type VulnerabilityAssessmentSystemDatabaseName string
const (
	VulnerabilityAssessmentSystemDatabaseNameMaster VulnerabilityAssessmentSystemDatabaseName = "master"
)

func (*VulnerabilityAssessmentSystemDatabaseName) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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