sqlpoolsvulnerabilityassessments

package
v0.20240206.1080438 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsvulnerabilityassessments Documentation

The sqlpoolsvulnerabilityassessments SDK allows for interaction with the Azure Resource Manager Service synapse (API Version 2021-06-01).

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/synapse/2021-06-01/sqlpoolsvulnerabilityassessments"

Client Initialization

client := sqlpoolsvulnerabilityassessments.NewSqlPoolsVulnerabilityAssessmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsVulnerabilityAssessmentsClient.SqlPoolVulnerabilityAssessmentsCreateOrUpdate

ctx := context.TODO()
id := sqlpoolsvulnerabilityassessments.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

payload := sqlpoolsvulnerabilityassessments.SqlPoolVulnerabilityAssessment{
	// ...
}


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

Example Usage: SqlPoolsVulnerabilityAssessmentsClient.SqlPoolVulnerabilityAssessmentsDelete

ctx := context.TODO()
id := sqlpoolsvulnerabilityassessments.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

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

Example Usage: SqlPoolsVulnerabilityAssessmentsClient.SqlPoolVulnerabilityAssessmentsGet

ctx := context.TODO()
id := sqlpoolsvulnerabilityassessments.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

read, err := client.SqlPoolVulnerabilityAssessmentsGet(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 ValidateSqlPoolID

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

ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID

Types

type SqlPoolId

type SqlPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
}

SqlPoolId is a struct representing the Resource ID for a Sql Pool

func NewSqlPoolID

func NewSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string) SqlPoolId

NewSqlPoolID returns a new SqlPoolId struct

func ParseSqlPoolID

func ParseSqlPoolID(input string) (*SqlPoolId, error)

ParseSqlPoolID parses 'input' into a SqlPoolId

func ParseSqlPoolIDInsensitively

func ParseSqlPoolIDInsensitively(input string) (*SqlPoolId, error)

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

func (*SqlPoolId) FromParseResult

func (id *SqlPoolId) FromParseResult(input resourceids.ParseResult) error

func (SqlPoolId) ID

func (id SqlPoolId) ID() string

ID returns the formatted Sql Pool ID

func (SqlPoolId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Sql Pool ID

func (SqlPoolId) String

func (id SqlPoolId) String() string

String returns a human-readable description of this Sql Pool ID

type SqlPoolVulnerabilityAssessment

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

type SqlPoolVulnerabilityAssessmentProperties

type SqlPoolVulnerabilityAssessmentProperties struct {
	RecurringScans          *VulnerabilityAssessmentRecurringScansProperties `json:"recurringScans,omitempty"`
	StorageAccountAccessKey *string                                          `json:"storageAccountAccessKey,omitempty"`
	StorageContainerPath    *string                                          `json:"storageContainerPath,omitempty"`
	StorageContainerSasKey  *string                                          `json:"storageContainerSasKey,omitempty"`
}

type SqlPoolVulnerabilityAssessmentsCreateOrUpdateOperationResponse

type SqlPoolVulnerabilityAssessmentsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlPoolVulnerabilityAssessment
}

type SqlPoolVulnerabilityAssessmentsDeleteOperationResponse

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

type SqlPoolVulnerabilityAssessmentsGetOperationResponse

type SqlPoolVulnerabilityAssessmentsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlPoolVulnerabilityAssessment
}

type SqlPoolsVulnerabilityAssessmentsClient

type SqlPoolsVulnerabilityAssessmentsClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsVulnerabilityAssessmentsClientWithBaseURI

func NewSqlPoolsVulnerabilityAssessmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsVulnerabilityAssessmentsClient, error)

func (SqlPoolsVulnerabilityAssessmentsClient) SqlPoolVulnerabilityAssessmentsCreateOrUpdate

SqlPoolVulnerabilityAssessmentsCreateOrUpdate ...

func (SqlPoolsVulnerabilityAssessmentsClient) SqlPoolVulnerabilityAssessmentsDelete

SqlPoolVulnerabilityAssessmentsDelete ...

func (SqlPoolsVulnerabilityAssessmentsClient) SqlPoolVulnerabilityAssessmentsGet

SqlPoolVulnerabilityAssessmentsGet ...

type VulnerabilityAssessmentRecurringScansProperties

type VulnerabilityAssessmentRecurringScansProperties struct {
	EmailSubscriptionAdmins *bool     `json:"emailSubscriptionAdmins,omitempty"`
	Emails                  *[]string `json:"emails,omitempty"`
	IsEnabled               *bool     `json:"isEnabled,omitempty"`
}

Jump to

Keyboard shortcuts

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