advancedthreatprotectionsettings

package
v0.20240627.1143641 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings Documentation

The advancedthreatprotectionsettings SDK allows for interaction with the Azure Resource Manager Service mysql (API Version 2023-12-30).

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/mysql/2023-12-30/advancedthreatprotectionsettings"

Client Initialization

client := advancedthreatprotectionsettings.NewAdvancedThreatProtectionSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AdvancedThreatProtectionSettingsClient.Get

ctx := context.TODO()
id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue")

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

Example Usage: AdvancedThreatProtectionSettingsClient.List

ctx := context.TODO()
id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue")

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

Example Usage: AdvancedThreatProtectionSettingsClient.Update

ctx := context.TODO()
id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue")

payload := advancedthreatprotectionsettings.AdvancedThreatProtectionForUpdate{
	// ...
}


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

Example Usage: AdvancedThreatProtectionSettingsClient.UpdatePut

ctx := context.TODO()
id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue")

payload := advancedthreatprotectionsettings.AdvancedThreatProtection{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAdvancedThreatProtectionProvisioningState

func PossibleValuesForAdvancedThreatProtectionProvisioningState() []string

func PossibleValuesForAdvancedThreatProtectionState

func PossibleValuesForAdvancedThreatProtectionState() []string

func ValidateFlexibleServerID

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

ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID

Types

type AdvancedThreatProtection

type AdvancedThreatProtection struct {
	Id         *string                             `json:"id,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *AdvancedThreatProtectionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData              `json:"systemData,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type AdvancedThreatProtectionForUpdate

type AdvancedThreatProtectionForUpdate struct {
	Properties *AdvancedThreatProtectionUpdateProperties `json:"properties,omitempty"`
}

type AdvancedThreatProtectionOperationPredicate

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

func (AdvancedThreatProtectionOperationPredicate) Matches

type AdvancedThreatProtectionProperties

type AdvancedThreatProtectionProperties struct {
	CreationTime      *string                                    `json:"creationTime,omitempty"`
	ProvisioningState *AdvancedThreatProtectionProvisioningState `json:"provisioningState,omitempty"`
	State             *AdvancedThreatProtectionState             `json:"state,omitempty"`
}

func (*AdvancedThreatProtectionProperties) GetCreationTimeAsTime

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

func (*AdvancedThreatProtectionProperties) SetCreationTimeAsTime

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

type AdvancedThreatProtectionProvisioningState

type AdvancedThreatProtectionProvisioningState string
const (
	AdvancedThreatProtectionProvisioningStateCanceled  AdvancedThreatProtectionProvisioningState = "Canceled"
	AdvancedThreatProtectionProvisioningStateFailed    AdvancedThreatProtectionProvisioningState = "Failed"
	AdvancedThreatProtectionProvisioningStateSucceeded AdvancedThreatProtectionProvisioningState = "Succeeded"
	AdvancedThreatProtectionProvisioningStateUpdating  AdvancedThreatProtectionProvisioningState = "Updating"
)

func (*AdvancedThreatProtectionProvisioningState) UnmarshalJSON

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

type AdvancedThreatProtectionSettingsClient

type AdvancedThreatProtectionSettingsClient struct {
	Client *resourcemanager.Client
}

func NewAdvancedThreatProtectionSettingsClientWithBaseURI

func NewAdvancedThreatProtectionSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdvancedThreatProtectionSettingsClient, error)

func (AdvancedThreatProtectionSettingsClient) Get

Get ...

func (AdvancedThreatProtectionSettingsClient) List

List ...

func (AdvancedThreatProtectionSettingsClient) ListComplete

ListComplete retrieves all the results into a single object

func (AdvancedThreatProtectionSettingsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AdvancedThreatProtectionSettingsClient) Update

Update ...

func (AdvancedThreatProtectionSettingsClient) UpdatePut

UpdatePut ...

func (AdvancedThreatProtectionSettingsClient) UpdatePutThenPoll

UpdatePutThenPoll performs UpdatePut then polls until it's completed

func (AdvancedThreatProtectionSettingsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type AdvancedThreatProtectionState

type AdvancedThreatProtectionState string
const (
	AdvancedThreatProtectionStateDisabled AdvancedThreatProtectionState = "Disabled"
	AdvancedThreatProtectionStateEnabled  AdvancedThreatProtectionState = "Enabled"
)

func (*AdvancedThreatProtectionState) UnmarshalJSON

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

type AdvancedThreatProtectionUpdateProperties

type AdvancedThreatProtectionUpdateProperties struct {
	State AdvancedThreatProtectionState `json:"state"`
}

type FlexibleServerId

type FlexibleServerId struct {
	SubscriptionId     string
	ResourceGroupName  string
	FlexibleServerName string
}

FlexibleServerId is a struct representing the Resource ID for a Flexible Server

func NewFlexibleServerID

func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId

NewFlexibleServerID returns a new FlexibleServerId struct

func ParseFlexibleServerID

func ParseFlexibleServerID(input string) (*FlexibleServerId, error)

ParseFlexibleServerID parses 'input' into a FlexibleServerId

func ParseFlexibleServerIDInsensitively

func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error)

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

func (*FlexibleServerId) FromParseResult

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

func (FlexibleServerId) ID

func (id FlexibleServerId) ID() string

ID returns the formatted Flexible Server ID

func (FlexibleServerId) Segments

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

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

func (FlexibleServerId) String

func (id FlexibleServerId) String() string

String returns a human-readable description of this Flexible Server ID

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AdvancedThreatProtection
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AdvancedThreatProtection
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AdvancedThreatProtection
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AdvancedThreatProtection
}

type UpdatePutOperationResponse

type UpdatePutOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AdvancedThreatProtection
}

Jump to

Keyboard shortcuts

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