workspacemanagedsqlserversecurityalertpolicies

package
v0.20240314.1083835 Latest Latest
Warning

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

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

README

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

The workspacemanagedsqlserversecurityalertpolicies 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/workspacemanagedsqlserversecurityalertpolicies"

Client Initialization

client := workspacemanagedsqlserversecurityalertpolicies.NewWorkspaceManagedSqlServerSecurityAlertPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerSecurityAlertPoliciesClient.WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdate

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

payload := workspacemanagedsqlserversecurityalertpolicies.ServerSecurityAlertPolicy{
	// ...
}


if err := client.WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: WorkspaceManagedSqlServerSecurityAlertPoliciesClient.WorkspaceManagedSqlServerSecurityAlertPolicyGet

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

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

Example Usage: WorkspaceManagedSqlServerSecurityAlertPoliciesClient.WorkspaceManagedSqlServerSecurityAlertPolicyList

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

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

func PossibleValuesForSecurityAlertPolicyState() []string

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 SecurityAlertPolicyState

type SecurityAlertPolicyState string
const (
	SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
	SecurityAlertPolicyStateEnabled  SecurityAlertPolicyState = "Enabled"
	SecurityAlertPolicyStateNew      SecurityAlertPolicyState = "New"
)

func (*SecurityAlertPolicyState) UnmarshalJSON

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

type ServerSecurityAlertPolicy

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

type ServerSecurityAlertPolicyOperationPredicate

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

func (ServerSecurityAlertPolicyOperationPredicate) Matches

type ServerSecurityAlertPolicyProperties

type ServerSecurityAlertPolicyProperties struct {
	CreationTime            *string                  `json:"creationTime,omitempty"`
	DisabledAlerts          *[]string                `json:"disabledAlerts,omitempty"`
	EmailAccountAdmins      *bool                    `json:"emailAccountAdmins,omitempty"`
	EmailAddresses          *[]string                `json:"emailAddresses,omitempty"`
	RetentionDays           *int64                   `json:"retentionDays,omitempty"`
	State                   SecurityAlertPolicyState `json:"state"`
	StorageAccountAccessKey *string                  `json:"storageAccountAccessKey,omitempty"`
	StorageEndpoint         *string                  `json:"storageEndpoint,omitempty"`
}

func (*ServerSecurityAlertPolicyProperties) GetCreationTimeAsTime

func (o *ServerSecurityAlertPolicyProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*ServerSecurityAlertPolicyProperties) SetCreationTimeAsTime

func (o *ServerSecurityAlertPolicyProperties) SetCreationTimeAsTime(input time.Time)

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 WorkspaceManagedSqlServerSecurityAlertPoliciesClient

type WorkspaceManagedSqlServerSecurityAlertPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerSecurityAlertPoliciesClientWithBaseURI

func NewWorkspaceManagedSqlServerSecurityAlertPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerSecurityAlertPoliciesClient, error)

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdate

WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdate ...

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateThenPoll

func (c WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceId, input ServerSecurityAlertPolicy) error

WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateThenPoll performs WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdate then polls until it's completed

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyGet

WorkspaceManagedSqlServerSecurityAlertPolicyGet ...

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyList

WorkspaceManagedSqlServerSecurityAlertPolicyList ...

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyListComplete

WorkspaceManagedSqlServerSecurityAlertPolicyListComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate ServerSecurityAlertPolicyOperationPredicate) (result WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteResult, err error)

WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOperationResponse

type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerSecurityAlertPolicy
}

type WorkspaceManagedSqlServerSecurityAlertPolicyGetOperationResponse

type WorkspaceManagedSqlServerSecurityAlertPolicyGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerSecurityAlertPolicy
}

type WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteResult

type WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ServerSecurityAlertPolicy
}

type WorkspaceManagedSqlServerSecurityAlertPolicyListOperationResponse

type WorkspaceManagedSqlServerSecurityAlertPolicyListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerSecurityAlertPolicy
}

Jump to

Keyboard shortcuts

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