databasesqlvulnerabilityassessmentbaselines

package
v0.20240513.1085605 Latest Latest
Warning

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

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

README

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

The databasesqlvulnerabilityassessmentbaselines 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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines"

Client Initialization

client := databasesqlvulnerabilityassessmentbaselines.NewDatabaseSqlVulnerabilityAssessmentBaselinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DatabaseSqlVulnerabilityAssessmentBaselinesClient.CreateOrUpdate

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

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


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

Example Usage: DatabaseSqlVulnerabilityAssessmentBaselinesClient.Get

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

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: DatabaseSqlVulnerabilityAssessmentBaselinesClient.ListBySqlVulnerabilityAssessment

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

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

This section is empty.

Types

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 DatabaseSqlVulnerabilityAssessmentBaselinesClient

type DatabaseSqlVulnerabilityAssessmentBaselinesClient struct {
	Client *resourcemanager.Client
}

func NewDatabaseSqlVulnerabilityAssessmentBaselinesClientWithBaseURI

func NewDatabaseSqlVulnerabilityAssessmentBaselinesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseSqlVulnerabilityAssessmentBaselinesClient, error)

func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) CreateOrUpdate

CreateOrUpdate ...

func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) Get

Get ...

func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment

ListBySqlVulnerabilityAssessment ...

func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentComplete

ListBySqlVulnerabilityAssessmentComplete retrieves all the results into a single object

func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate

ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

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 GetOperationResponse

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

type ListBySqlVulnerabilityAssessmentCompleteResult

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

type ListBySqlVulnerabilityAssessmentOperationResponse

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

Jump to

Keyboard shortcuts

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