blobauditing

package
v0.20230810.1112551 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2022-11-01-preview/blobauditing Documentation

The blobauditing SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2022-11-01-preview).

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/sql/2022-11-01-preview/blobauditing"

Client Initialization

client := blobauditing.NewBlobAuditingClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BlobAuditingClient.DatabaseBlobAuditingPoliciesCreateOrUpdate

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := blobauditing.DatabaseBlobAuditingPolicy{
	// ...
}


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

Example Usage: BlobAuditingClient.DatabaseBlobAuditingPoliciesGet

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: BlobAuditingClient.DatabaseBlobAuditingPoliciesListByDatabase

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: BlobAuditingClient.ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdate

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := blobauditing.ExtendedDatabaseBlobAuditingPolicy{
	// ...
}


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

Example Usage: BlobAuditingClient.ExtendedDatabaseBlobAuditingPoliciesGet

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: BlobAuditingClient.ExtendedDatabaseBlobAuditingPoliciesListByDatabase

ctx := context.TODO()
id := blobauditing.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: BlobAuditingClient.ExtendedServerBlobAuditingPoliciesCreateOrUpdate

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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


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

Example Usage: BlobAuditingClient.ExtendedServerBlobAuditingPoliciesGet

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

Example Usage: BlobAuditingClient.ExtendedServerBlobAuditingPoliciesListByServer

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

Example Usage: BlobAuditingClient.ServerBlobAuditingPoliciesCreateOrUpdate

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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


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

Example Usage: BlobAuditingClient.ServerBlobAuditingPoliciesGet

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

Example Usage: BlobAuditingClient.ServerBlobAuditingPoliciesListByServer

ctx := context.TODO()
id := blobauditing.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

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

ValidateDatabaseID checks that 'input' can be parsed as a Database ID

func ValidateServerID

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

ValidateServerID checks that 'input' can be parsed as a Server ID

Types

type BlobAuditingClient

type BlobAuditingClient struct {
	Client *resourcemanager.Client
}

func NewBlobAuditingClientWithBaseURI

func NewBlobAuditingClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobAuditingClient, error)

func (BlobAuditingClient) DatabaseBlobAuditingPoliciesCreateOrUpdate

func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesCreateOrUpdate(ctx context.Context, id DatabaseId, input DatabaseBlobAuditingPolicy) (result DatabaseBlobAuditingPoliciesCreateOrUpdateOperationResponse, err error)

DatabaseBlobAuditingPoliciesCreateOrUpdate ...

func (BlobAuditingClient) DatabaseBlobAuditingPoliciesGet

func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesGet(ctx context.Context, id DatabaseId) (result DatabaseBlobAuditingPoliciesGetOperationResponse, err error)

DatabaseBlobAuditingPoliciesGet ...

func (BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase

func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id DatabaseId) (result DatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error)

DatabaseBlobAuditingPoliciesListByDatabase ...

func (BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabaseComplete

func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx context.Context, id DatabaseId) (DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult, error)

DatabaseBlobAuditingPoliciesListByDatabaseComplete retrieves all the results into a single object

func (BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate

func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate DatabaseBlobAuditingPolicyOperationPredicate) (result DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult, err error)

DatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdate

ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdate ...

func (BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesGet

func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesGet(ctx context.Context, id DatabaseId) (result ExtendedDatabaseBlobAuditingPoliciesGetOperationResponse, err error)

ExtendedDatabaseBlobAuditingPoliciesGet ...

func (BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase

func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id DatabaseId) (result ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error)

ExtendedDatabaseBlobAuditingPoliciesListByDatabase ...

func (BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete

func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx context.Context, id DatabaseId) (ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult, error)

ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete retrieves all the results into a single object

func (BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate

func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate ExtendedDatabaseBlobAuditingPolicyOperationPredicate) (result ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult, err error)

ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesCreateOrUpdate

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesCreateOrUpdate(ctx context.Context, id ServerId, input ExtendedServerBlobAuditingPolicy) (result ExtendedServerBlobAuditingPoliciesCreateOrUpdateOperationResponse, err error)

ExtendedServerBlobAuditingPoliciesCreateOrUpdate ...

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx context.Context, id ServerId, input ExtendedServerBlobAuditingPolicy) error

ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll performs ExtendedServerBlobAuditingPoliciesCreateOrUpdate then polls until it's completed

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesGet

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesGet(ctx context.Context, id ServerId) (result ExtendedServerBlobAuditingPoliciesGetOperationResponse, err error)

ExtendedServerBlobAuditingPoliciesGet ...

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer(ctx context.Context, id ServerId) (result ExtendedServerBlobAuditingPoliciesListByServerOperationResponse, err error)

ExtendedServerBlobAuditingPoliciesListByServer ...

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServerComplete

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServerComplete(ctx context.Context, id ServerId) (ExtendedServerBlobAuditingPoliciesListByServerCompleteResult, error)

ExtendedServerBlobAuditingPoliciesListByServerComplete retrieves all the results into a single object

func (BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate

func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate ExtendedServerBlobAuditingPolicyOperationPredicate) (result ExtendedServerBlobAuditingPoliciesListByServerCompleteResult, err error)

ExtendedServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BlobAuditingClient) ServerBlobAuditingPoliciesCreateOrUpdate

func (c BlobAuditingClient) ServerBlobAuditingPoliciesCreateOrUpdate(ctx context.Context, id ServerId, input ServerBlobAuditingPolicy) (result ServerBlobAuditingPoliciesCreateOrUpdateOperationResponse, err error)

ServerBlobAuditingPoliciesCreateOrUpdate ...

func (BlobAuditingClient) ServerBlobAuditingPoliciesCreateOrUpdateThenPoll

func (c BlobAuditingClient) ServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx context.Context, id ServerId, input ServerBlobAuditingPolicy) error

ServerBlobAuditingPoliciesCreateOrUpdateThenPoll performs ServerBlobAuditingPoliciesCreateOrUpdate then polls until it's completed

func (BlobAuditingClient) ServerBlobAuditingPoliciesGet

func (c BlobAuditingClient) ServerBlobAuditingPoliciesGet(ctx context.Context, id ServerId) (result ServerBlobAuditingPoliciesGetOperationResponse, err error)

ServerBlobAuditingPoliciesGet ...

func (BlobAuditingClient) ServerBlobAuditingPoliciesListByServer

func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServer(ctx context.Context, id ServerId) (result ServerBlobAuditingPoliciesListByServerOperationResponse, err error)

ServerBlobAuditingPoliciesListByServer ...

func (BlobAuditingClient) ServerBlobAuditingPoliciesListByServerComplete

func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServerComplete(ctx context.Context, id ServerId) (ServerBlobAuditingPoliciesListByServerCompleteResult, error)

ServerBlobAuditingPoliciesListByServerComplete retrieves all the results into a single object

func (BlobAuditingClient) ServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate

func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate ServerBlobAuditingPolicyOperationPredicate) (result ServerBlobAuditingPoliciesListByServerCompleteResult, err error)

ServerBlobAuditingPoliciesListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

type BlobAuditingPolicyState

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

func (*BlobAuditingPolicyState) UnmarshalJSON

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

type DatabaseBlobAuditingPoliciesCreateOrUpdateOperationResponse

type DatabaseBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DatabaseBlobAuditingPolicy
}

type DatabaseBlobAuditingPoliciesGetOperationResponse

type DatabaseBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DatabaseBlobAuditingPolicy
}

type DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult

type DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct {
	Items []DatabaseBlobAuditingPolicy
}

type DatabaseBlobAuditingPoliciesListByDatabaseOperationResponse

type DatabaseBlobAuditingPoliciesListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DatabaseBlobAuditingPolicy
}

type DatabaseBlobAuditingPolicy

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

type DatabaseBlobAuditingPolicyOperationPredicate

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

func (DatabaseBlobAuditingPolicyOperationPredicate) Matches

type DatabaseBlobAuditingPolicyProperties

type DatabaseBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,omitempty"`
	IsManagedIdentityInUse       *bool                   `json:"isManagedIdentityInUse,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 DatabaseId

type DatabaseId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
}

DatabaseId is a struct representing the Resource ID for a Database

func NewDatabaseID

func NewDatabaseID(subscriptionId string, resourceGroupName string, serverName string, databaseName string) DatabaseId

NewDatabaseID returns a new DatabaseId struct

func ParseDatabaseID

func ParseDatabaseID(input string) (*DatabaseId, error)

ParseDatabaseID parses 'input' into a DatabaseId

func ParseDatabaseIDInsensitively

func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)

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

func (DatabaseId) ID

func (id DatabaseId) ID() string

ID returns the formatted Database ID

func (DatabaseId) Segments

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

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

func (DatabaseId) String

func (id DatabaseId) String() string

String returns a human-readable description of this Database ID

type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOperationResponse

type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedDatabaseBlobAuditingPolicy
}

type ExtendedDatabaseBlobAuditingPoliciesGetOperationResponse

type ExtendedDatabaseBlobAuditingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExtendedDatabaseBlobAuditingPolicy
}

type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult

type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct {
	Items []ExtendedDatabaseBlobAuditingPolicy
}

type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOperationResponse

type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExtendedDatabaseBlobAuditingPolicy
}

type ExtendedDatabaseBlobAuditingPolicy

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

type ExtendedDatabaseBlobAuditingPolicyOperationPredicate

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

func (ExtendedDatabaseBlobAuditingPolicyOperationPredicate) Matches

type ExtendedDatabaseBlobAuditingPolicyProperties

type ExtendedDatabaseBlobAuditingPolicyProperties struct {
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	IsAzureMonitorTargetEnabled  *bool                   `json:"isAzureMonitorTargetEnabled,omitempty"`
	IsManagedIdentityInUse       *bool                   `json:"isManagedIdentityInUse,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 ExtendedServerBlobAuditingPoliciesCreateOrUpdateOperationResponse

type ExtendedServerBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ExtendedServerBlobAuditingPoliciesGetOperationResponse

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

type ExtendedServerBlobAuditingPoliciesListByServerCompleteResult

type ExtendedServerBlobAuditingPoliciesListByServerCompleteResult struct {
	Items []ExtendedServerBlobAuditingPolicy
}

type ExtendedServerBlobAuditingPoliciesListByServerOperationResponse

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

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"`
	IsManagedIdentityInUse       *bool                   `json:"isManagedIdentityInUse,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 ServerBlobAuditingPoliciesCreateOrUpdateOperationResponse

type ServerBlobAuditingPoliciesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ServerBlobAuditingPoliciesGetOperationResponse

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

type ServerBlobAuditingPoliciesListByServerCompleteResult

type ServerBlobAuditingPoliciesListByServerCompleteResult struct {
	Items []ServerBlobAuditingPolicy
}

type ServerBlobAuditingPoliciesListByServerOperationResponse

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

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"`
	IsManagedIdentityInUse       *bool                   `json:"isManagedIdentityInUse,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 ServerId

type ServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
}

ServerId is a struct representing the Resource ID for a Server

func NewServerID

func NewServerID(subscriptionId string, resourceGroupName string, serverName string) ServerId

NewServerID returns a new ServerId struct

func ParseServerID

func ParseServerID(input string) (*ServerId, error)

ParseServerID parses 'input' into a ServerId

func ParseServerIDInsensitively

func ParseServerIDInsensitively(input string) (*ServerId, error)

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

func (ServerId) ID

func (id ServerId) ID() string

ID returns the formatted Server ID

func (ServerId) Segments

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

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

func (ServerId) String

func (id ServerId) String() string

String returns a human-readable description of this Server ID

Jump to

Keyboard shortcuts

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