workspacemanagedsqlserverservervulnerabilityassessments

package
v0.20241126.1723 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The workspacemanagedsqlserverservervulnerabilityassessments SDK allows for interaction with Azure Resource Manager 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/workspacemanagedsqlserverservervulnerabilityassessments"

Client Initialization

client := workspacemanagedsqlserverservervulnerabilityassessments.NewWorkspaceManagedSqlServerServerVulnerabilityAssessmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient.WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdate

ctx := context.TODO()
id := workspacemanagedsqlserverservervulnerabilityassessments.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

payload := workspacemanagedsqlserverservervulnerabilityassessments.ServerVulnerabilityAssessment{
	// ...
}


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

Example Usage: WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient.WorkspaceManagedSqlServerVulnerabilityAssessmentsDelete

ctx := context.TODO()
id := workspacemanagedsqlserverservervulnerabilityassessments.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

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

Example Usage: WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient.WorkspaceManagedSqlServerVulnerabilityAssessmentsGet

ctx := context.TODO()
id := workspacemanagedsqlserverservervulnerabilityassessments.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

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

Example Usage: WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient.WorkspaceManagedSqlServerVulnerabilityAssessmentsList

ctx := context.TODO()
id := workspacemanagedsqlserverservervulnerabilityassessments.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

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

func ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type ServerVulnerabilityAssessment

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

type ServerVulnerabilityAssessmentOperationPredicate

type ServerVulnerabilityAssessmentOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ServerVulnerabilityAssessmentOperationPredicate) Matches

type ServerVulnerabilityAssessmentProperties

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

type VulnerabilityAssessmentRecurringScansProperties

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

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

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

func (*WorkspaceId) FromParseResult

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

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

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

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

type WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient

type WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerServerVulnerabilityAssessmentsClientWithBaseURI

func NewWorkspaceManagedSqlServerServerVulnerabilityAssessmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient, error)

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdate

WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdate ...

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsDelete

WorkspaceManagedSqlServerVulnerabilityAssessmentsDelete ...

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsGet

WorkspaceManagedSqlServerVulnerabilityAssessmentsGet ...

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsList

WorkspaceManagedSqlServerVulnerabilityAssessmentsList ...

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsListComplete

WorkspaceManagedSqlServerVulnerabilityAssessmentsListComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsListCompleteMatchingPredicate

WorkspaceManagedSqlServerVulnerabilityAssessmentsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOperationResponse

type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerVulnerabilityAssessment
}

type WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOperationResponse

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

type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOperationResponse

type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerVulnerabilityAssessment
}

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCompleteResult

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ServerVulnerabilityAssessment
}

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCustomPager

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListOperationResponse

type WorkspaceManagedSqlServerVulnerabilityAssessmentsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerVulnerabilityAssessment
}

Jump to

Keyboard shortcuts

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