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-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 := databasesqlvulnerabilityassessmentbaselines.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 := databasesqlvulnerabilityassessmentbaselines.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 := databasesqlvulnerabilityassessmentbaselines.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 ¶
- type CreateOrUpdateOperationResponse
- type DatabaseSqlVulnerabilityAssessmentBaselineSet
- type DatabaseSqlVulnerabilityAssessmentBaselineSetOperationPredicate
- type DatabaseSqlVulnerabilityAssessmentBaselineSetProperties
- type DatabaseSqlVulnerabilityAssessmentBaselinesClient
- func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) CreateOrUpdate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) Get(ctx context.Context, id commonids.SqlDatabaseId) (result GetOperationResponse, err error)
- func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error)
- func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListBySqlVulnerabilityAssessmentCompleteResult, error)
- func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListBySqlVulnerabilityAssessmentCompleteResult, err error)
- type DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput
- type DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputProperties
- type GetOperationResponse
- type ListBySqlVulnerabilityAssessmentCompleteResult
- type ListBySqlVulnerabilityAssessmentOperationResponse
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 }
type DatabaseSqlVulnerabilityAssessmentBaselinesClient ¶
type DatabaseSqlVulnerabilityAssessmentBaselinesClient struct {
Client *resourcemanager.Client
}
func NewDatabaseSqlVulnerabilityAssessmentBaselinesClientWithBaseURI ¶
func NewDatabaseSqlVulnerabilityAssessmentBaselinesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseSqlVulnerabilityAssessmentBaselinesClient, error)
func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) CreateOrUpdate ¶
func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) CreateOrUpdate(ctx context.Context, id commonids.SqlDatabaseId, input DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) Get ¶
func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) Get(ctx context.Context, id commonids.SqlDatabaseId) (result GetOperationResponse, err error)
Get ...
func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment ¶
func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error)
ListBySqlVulnerabilityAssessment ...
func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentComplete ¶
func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListBySqlVulnerabilityAssessmentCompleteResult, error)
ListBySqlVulnerabilityAssessmentComplete retrieves all the results into a single object
func (DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate ¶
func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessmentCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, predicate DatabaseSqlVulnerabilityAssessmentBaselineSetOperationPredicate) (result ListBySqlVulnerabilityAssessmentCompleteResult, err error)
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabaseSqlVulnerabilityAssessmentBaselineSet }
type ListBySqlVulnerabilityAssessmentCompleteResult ¶
type ListBySqlVulnerabilityAssessmentCompleteResult struct {
Items []DatabaseSqlVulnerabilityAssessmentBaselineSet
}
type ListBySqlVulnerabilityAssessmentOperationResponse ¶
type ListBySqlVulnerabilityAssessmentOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatabaseSqlVulnerabilityAssessmentBaselineSet }
Source Files ¶
- client.go
- method_createorupdate.go
- method_get.go
- method_listbysqlvulnerabilityassessment.go
- model_databasesqlvulnerabilityassessmentbaselineset.go
- model_databasesqlvulnerabilityassessmentbaselinesetproperties.go
- model_databasesqlvulnerabilityassessmentrulebaselinelistinput.go
- model_databasesqlvulnerabilityassessmentrulebaselinelistinputproperties.go
- predicates.go
- version.go
Click to show internal directories.
Click to hide internal directories.