sqlpoolsblobauditing

package
v0.20241206.1180327 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

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

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

Client Initialization

client := sqlpoolsblobauditing.NewSqlPoolsBlobAuditingClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsBlobAuditingClient.ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdate

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

payload := sqlpoolsblobauditing.ExtendedSqlPoolBlobAuditingPolicy{
	// ...
}


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

Example Usage: SqlPoolsBlobAuditingClient.ExtendedSqlPoolBlobAuditingPoliciesGet

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

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

Example Usage: SqlPoolsBlobAuditingClient.ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool

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

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

Example Usage: SqlPoolsBlobAuditingClient.SqlPoolBlobAuditingPoliciesCreateOrUpdate

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

payload := sqlpoolsblobauditing.SqlPoolBlobAuditingPolicy{
	// ...
}


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

Example Usage: SqlPoolsBlobAuditingClient.SqlPoolBlobAuditingPoliciesGet

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

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

Example Usage: SqlPoolsBlobAuditingClient.SqlPoolBlobAuditingPoliciesListBySqlPool

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

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

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

func (*BlobAuditingPolicyState) UnmarshalJSON

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

type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOperationResponse added in v0.20241009.1142232

type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedSqlPoolBlobAuditingPolicy
}

type ExtendedSqlPoolBlobAuditingPoliciesGetOperationResponse added in v0.20241009.1142232

type ExtendedSqlPoolBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedSqlPoolBlobAuditingPolicy
}

type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult

type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExtendedSqlPoolBlobAuditingPolicy
}

type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCustomPager added in v0.20240628.1153531

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

type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse

type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtendedSqlPoolBlobAuditingPolicy
}

type ExtendedSqlPoolBlobAuditingPolicy

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

type ExtendedSqlPoolBlobAuditingPolicyOperationPredicate

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

func (ExtendedSqlPoolBlobAuditingPolicyOperationPredicate) Matches

type ExtendedSqlPoolBlobAuditingPolicyProperties

type ExtendedSqlPoolBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,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 SqlPoolBlobAuditingPoliciesCreateOrUpdateOperationResponse added in v0.20241009.1142232

type SqlPoolBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlPoolBlobAuditingPolicy
}

type SqlPoolBlobAuditingPoliciesGetOperationResponse added in v0.20241009.1142232

type SqlPoolBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlPoolBlobAuditingPolicy
}

type SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult added in v0.20241009.1142232

type SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlPoolBlobAuditingPolicy
}

type SqlPoolBlobAuditingPoliciesListBySqlPoolCustomPager added in v0.20241009.1142232

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

type SqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse added in v0.20241009.1142232

type SqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlPoolBlobAuditingPolicy
}

type SqlPoolBlobAuditingPolicy added in v0.20241009.1142232

type SqlPoolBlobAuditingPolicy struct {
	Id         *string                              `json:"id,omitempty"`
	Kind       *string                              `json:"kind,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *SqlPoolBlobAuditingPolicyProperties `json:"properties,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type SqlPoolBlobAuditingPolicyOperationPredicate added in v0.20241009.1142232

type SqlPoolBlobAuditingPolicyOperationPredicate struct {
	Id   *string
	Kind *string
	Name *string
	Type *string
}

func (SqlPoolBlobAuditingPolicyOperationPredicate) Matches added in v0.20241009.1142232

type SqlPoolBlobAuditingPolicyProperties added in v0.20241009.1142232

type SqlPoolBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,omitempty"`
	IsStorageSecondaryKeyInUse   *bool                   `json:"isStorageSecondaryKeyInUse,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 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 SqlPoolsBlobAuditingClient

type SqlPoolsBlobAuditingClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsBlobAuditingClientWithBaseURI

func NewSqlPoolsBlobAuditingClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsBlobAuditingClient, error)

func (SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdate added in v0.20241009.1142232

ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdate ...

func (SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesGet added in v0.20241009.1142232

func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesGet(ctx context.Context, id SqlPoolId) (result ExtendedSqlPoolBlobAuditingPoliciesGetOperationResponse, err error)

ExtendedSqlPoolBlobAuditingPoliciesGet ...

func (SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool

func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool(ctx context.Context, id SqlPoolId) (result ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse, err error)

ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool ...

func (SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolComplete

func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolComplete(ctx context.Context, id SqlPoolId) (ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult, error)

ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolComplete retrieves all the results into a single object

func (SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate

func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate ExtendedSqlPoolBlobAuditingPolicyOperationPredicate) (result ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult, err error)

ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesCreateOrUpdate added in v0.20241009.1142232

SqlPoolBlobAuditingPoliciesCreateOrUpdate ...

func (SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesGet added in v0.20241009.1142232

func (c SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesGet(ctx context.Context, id SqlPoolId) (result SqlPoolBlobAuditingPoliciesGetOperationResponse, err error)

SqlPoolBlobAuditingPoliciesGet ...

func (SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPool added in v0.20241009.1142232

func (c SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPool(ctx context.Context, id SqlPoolId) (result SqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse, err error)

SqlPoolBlobAuditingPoliciesListBySqlPool ...

func (SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPoolComplete added in v0.20241009.1142232

func (c SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPoolComplete(ctx context.Context, id SqlPoolId) (SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult, error)

SqlPoolBlobAuditingPoliciesListBySqlPoolComplete retrieves all the results into a single object

func (SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate added in v0.20241009.1142232

func (c SqlPoolsBlobAuditingClient) SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate SqlPoolBlobAuditingPolicyOperationPredicate) (result SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult, err error)

SqlPoolBlobAuditingPoliciesListBySqlPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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