Documentation ¶
Index ¶
- func PossibleValuesForAdvancedThreatProtectionState() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- type AdvancedThreatProtectionProperties
- type AdvancedThreatProtectionState
- type CreateOrUpdateOperationResponse
- type DatabaseAdvancedThreatProtection
- type DatabaseAdvancedThreatProtectionOperationPredicate
- type DatabaseAdvancedThreatProtectionSettingsClient
- func (c DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input DatabaseAdvancedThreatProtection) (result CreateOrUpdateOperationResponse, err error)
- func (c DatabaseAdvancedThreatProtectionSettingsClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
- func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
- func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- type DatabaseId
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAdvancedThreatProtectionState ¶
func PossibleValuesForAdvancedThreatProtectionState() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
Types ¶
type AdvancedThreatProtectionProperties ¶
type AdvancedThreatProtectionProperties struct { CreationTime *string `json:"creationTime,omitempty"` State AdvancedThreatProtectionState `json:"state"` }
func (*AdvancedThreatProtectionProperties) GetCreationTimeAsTime ¶
func (o *AdvancedThreatProtectionProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*AdvancedThreatProtectionProperties) SetCreationTimeAsTime ¶
func (o *AdvancedThreatProtectionProperties) SetCreationTimeAsTime(input time.Time)
type AdvancedThreatProtectionState ¶
type AdvancedThreatProtectionState string
const ( AdvancedThreatProtectionStateDisabled AdvancedThreatProtectionState = "Disabled" AdvancedThreatProtectionStateEnabled AdvancedThreatProtectionState = "Enabled" AdvancedThreatProtectionStateNew AdvancedThreatProtectionState = "New" )
func (*AdvancedThreatProtectionState) UnmarshalJSON ¶
func (s *AdvancedThreatProtectionState) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabaseAdvancedThreatProtection }
type DatabaseAdvancedThreatProtection ¶
type DatabaseAdvancedThreatProtection 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 DatabaseAdvancedThreatProtectionOperationPredicate ¶
type DatabaseAdvancedThreatProtectionOperationPredicate struct { Id *string Name *string Type *string }
func (DatabaseAdvancedThreatProtectionOperationPredicate) Matches ¶
func (p DatabaseAdvancedThreatProtectionOperationPredicate) Matches(input DatabaseAdvancedThreatProtection) bool
type DatabaseAdvancedThreatProtectionSettingsClient ¶
type DatabaseAdvancedThreatProtectionSettingsClient struct {
Client *resourcemanager.Client
}
func NewDatabaseAdvancedThreatProtectionSettingsClientWithBaseURI ¶
func NewDatabaseAdvancedThreatProtectionSettingsClientWithBaseURI(api environments.Api) (*DatabaseAdvancedThreatProtectionSettingsClient, error)
func (DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdate ¶
func (c DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input DatabaseAdvancedThreatProtection) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DatabaseAdvancedThreatProtectionSettingsClient) Get ¶
func (c DatabaseAdvancedThreatProtectionSettingsClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
Get ...
func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase ¶
func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseComplete ¶
func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate DatabaseAdvancedThreatProtectionOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
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) 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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabaseAdvancedThreatProtection }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct {
Items []DatabaseAdvancedThreatProtection
}
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatabaseAdvancedThreatProtection }