manageddatabasevulnerabilityassessmentrulebaselines

package
v0.20230801.1071415 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The manageddatabasevulnerabilityassessmentrulebaselines SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-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/2021-02-01-preview/manageddatabasevulnerabilityassessmentrulebaselines"

Client Initialization

client := manageddatabasevulnerabilityassessmentrulebaselines.NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.CreateOrUpdate

ctx := context.TODO()
id := manageddatabasevulnerabilityassessmentrulebaselines.NewBaselineBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "ruleIdValue", "default")

payload := manageddatabasevulnerabilityassessmentrulebaselines.DatabaseVulnerabilityAssessmentRuleBaseline{
	// ...
}


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: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.Delete

ctx := context.TODO()
id := manageddatabasevulnerabilityassessmentrulebaselines.NewBaselineBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "ruleIdValue", "default")

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

Example Usage: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.Get

ctx := context.TODO()
id := manageddatabasevulnerabilityassessmentrulebaselines.NewBaselineBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "ruleIdValue", "default")

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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForVulnerabilityAssessmentPolicyBaselineName

func PossibleValuesForVulnerabilityAssessmentPolicyBaselineName() []string

func ValidateBaselineBaselineID

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

ValidateBaselineBaselineID checks that 'input' can be parsed as a Baseline Baseline ID

Types

type BaselineBaselineId

type BaselineBaselineId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedInstanceName string
	DatabaseName        string
	RuleId              string
	BaselineName        VulnerabilityAssessmentPolicyBaselineName
}

BaselineBaselineId is a struct representing the Resource ID for a Baseline Baseline

func NewBaselineBaselineID

func NewBaselineBaselineID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string, ruleId string, baselineName VulnerabilityAssessmentPolicyBaselineName) BaselineBaselineId

NewBaselineBaselineID returns a new BaselineBaselineId struct

func ParseBaselineBaselineID

func ParseBaselineBaselineID(input string) (*BaselineBaselineId, error)

ParseBaselineBaselineID parses 'input' into a BaselineBaselineId

func ParseBaselineBaselineIDInsensitively

func ParseBaselineBaselineIDInsensitively(input string) (*BaselineBaselineId, error)

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

func (BaselineBaselineId) ID

func (id BaselineBaselineId) ID() string

ID returns the formatted Baseline Baseline ID

func (BaselineBaselineId) Segments

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

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

func (BaselineBaselineId) String

func (id BaselineBaselineId) String() string

String returns a human-readable description of this Baseline Baseline ID

type CreateOrUpdateOperationResponse

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

type DatabaseVulnerabilityAssessmentRuleBaseline

type DatabaseVulnerabilityAssessmentRuleBaseline struct {
	Id         *string                                                `json:"id,omitempty"`
	Name       *string                                                `json:"name,omitempty"`
	Properties *DatabaseVulnerabilityAssessmentRuleBaselineProperties `json:"properties,omitempty"`
	Type       *string                                                `json:"type,omitempty"`
}

type DatabaseVulnerabilityAssessmentRuleBaselineItem

type DatabaseVulnerabilityAssessmentRuleBaselineItem struct {
	Result []string `json:"result"`
}

type DatabaseVulnerabilityAssessmentRuleBaselineProperties

type DatabaseVulnerabilityAssessmentRuleBaselineProperties struct {
	BaselineResults []DatabaseVulnerabilityAssessmentRuleBaselineItem `json:"baselineResults"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

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

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
	Client *resourcemanager.Client
}

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient, error)

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete

Delete ...

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get

Get ...

type VulnerabilityAssessmentPolicyBaselineName

type VulnerabilityAssessmentPolicyBaselineName string
const (
	VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = "default"
	VulnerabilityAssessmentPolicyBaselineNameMaster  VulnerabilityAssessmentPolicyBaselineName = "master"
)

func (*VulnerabilityAssessmentPolicyBaselineName) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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