sqlvulnerabilityassessmentbaseline

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

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

The sqlvulnerabilityassessmentbaseline SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2022-11-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/2022-11-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.NewServerID("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.NewServerID("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.NewServerID("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

func ValidateServerID

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

ValidateServerID checks that 'input' can be parsed as a Server ID

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

type ServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
}

ServerId is a struct representing the Resource ID for a Server

func NewServerID

func NewServerID(subscriptionId string, resourceGroupName string, serverName string) ServerId

NewServerID returns a new ServerId struct

func ParseServerID

func ParseServerID(input string) (*ServerId, error)

ParseServerID parses 'input' into a ServerId

func ParseServerIDInsensitively

func ParseServerIDInsensitively(input string) (*ServerId, error)

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

func (id ServerId) ID() string

ID returns the formatted Server ID

func (ServerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Server ID

func (ServerId) String

func (id ServerId) String() string

String returns a human-readable description of this Server ID

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