workspacemanagedsqlserverblobauditing

package
v0.20240521.1091020 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

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

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

Client Initialization

client := workspacemanagedsqlserverblobauditing.NewWorkspaceManagedSqlServerBlobAuditingClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdate

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

payload := workspacemanagedsqlserverblobauditing.ServerBlobAuditingPolicy{
	// ...
}


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

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerBlobAuditingPoliciesGet

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

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

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace

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

// alternatively `client.WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace(ctx, id)` can be used to do batched pagination
items, err := client.WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdate

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

payload := workspacemanagedsqlserverblobauditing.ExtendedServerBlobAuditingPolicy{
	// ...
}


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

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGet

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

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

Example Usage: WorkspaceManagedSqlServerBlobAuditingClient.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace

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

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

func PossibleValuesForBlobAuditingPolicyState() []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 BlobAuditingPolicyState

type BlobAuditingPolicyState string
const (
	BlobAuditingPolicyStateDisabled BlobAuditingPolicyState = "Disabled"
	BlobAuditingPolicyStateEnabled  BlobAuditingPolicyState = "Enabled"
)

func (*BlobAuditingPolicyState) UnmarshalJSON

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

type ExtendedServerBlobAuditingPolicy

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

type ExtendedServerBlobAuditingPolicyOperationPredicate

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

func (ExtendedServerBlobAuditingPolicyOperationPredicate) Matches

type ExtendedServerBlobAuditingPolicyProperties

type ExtendedServerBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,omitempty"`
	IsDevopsAuditEnabled         *bool                   `json:"isDevopsAuditEnabled,omitempty"`
	IsStorageSecondaryKeyInUse   *bool                   `json:"isStorageSecondaryKeyInUse,omitempty"`
	PredicateExpression          *string                 `json:"predicateExpression,omitempty"`
	QueueDelayMs                 *int64                  `json:"queueDelayMs,omitempty"`
	RetentionDays                *int64                  `json:"retentionDays,omitempty"`
	State                        BlobAuditingPolicyState `json:"state"`
	StorageAccountAccessKey      *string                 `json:"storageAccountAccessKey,omitempty"`
	StorageAccountSubscriptionId *string                 `json:"storageAccountSubscriptionId,omitempty"`
	StorageEndpoint              *string                 `json:"storageEndpoint,omitempty"`
}

type ServerBlobAuditingPolicy

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

type ServerBlobAuditingPolicyOperationPredicate

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

func (ServerBlobAuditingPolicyOperationPredicate) Matches

type ServerBlobAuditingPolicyProperties

type ServerBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,omitempty"`
	IsDevopsAuditEnabled         *bool                   `json:"isDevopsAuditEnabled,omitempty"`
	IsStorageSecondaryKeyInUse   *bool                   `json:"isStorageSecondaryKeyInUse,omitempty"`
	QueueDelayMs                 *int64                  `json:"queueDelayMs,omitempty"`
	RetentionDays                *int64                  `json:"retentionDays,omitempty"`
	State                        BlobAuditingPolicyState `json:"state"`
	StorageAccountAccessKey      *string                 `json:"storageAccountAccessKey,omitempty"`
	StorageAccountSubscriptionId *string                 `json:"storageAccountSubscriptionId,omitempty"`
	StorageEndpoint              *string                 `json:"storageEndpoint,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 WorkspaceManagedSqlServerBlobAuditingClient

type WorkspaceManagedSqlServerBlobAuditingClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerBlobAuditingClientWithBaseURI

func NewWorkspaceManagedSqlServerBlobAuditingClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerBlobAuditingClient, error)

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdate

WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdate ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateThenPoll

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceId, input ServerBlobAuditingPolicy) error

WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateThenPoll performs WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdate then polls until it's completed

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesGet

WorkspaceManagedSqlServerBlobAuditingPoliciesGet ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOperationResponse, err error)

WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceComplete

WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate ServerBlobAuditingPolicyOperationPredicate) (result WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteResult, err error)

WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdate

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdate ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateThenPoll

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceId, input ExtendedServerBlobAuditingPolicy) error

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateThenPoll performs WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdate then polls until it's completed

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGet

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGet ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOperationResponse, err error)

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace ...

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceComplete

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceComplete(ctx context.Context, id WorkspaceId) (WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteResult, error)

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate ExtendedServerBlobAuditingPolicyOperationPredicate) (result WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteResult, err error)

WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOperationResponse

type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerBlobAuditingPoliciesGetOperationResponse

type WorkspaceManagedSqlServerBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteResult

type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOperationResponse

type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOperationResponse

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOperationResponse

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteResult

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExtendedServerBlobAuditingPolicy
}

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOperationResponse

type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtendedServerBlobAuditingPolicy
}

Jump to

Keyboard shortcuts

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