Documentation ¶
Index ¶
- func PossibleValuesForDiffBackupIntervalInHours() []int64
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- type BackupShortTermRetentionPoliciesClient
- func (c BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c BackupShortTermRetentionPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) error
- func (c BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
- func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
- func (c BackupShortTermRetentionPoliciesClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- func (c BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) (result UpdateOperationResponse, err error)
- func (c BackupShortTermRetentionPoliciesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) error
- type BackupShortTermRetentionPolicy
- type BackupShortTermRetentionPolicyOperationPredicate
- type BackupShortTermRetentionPolicyProperties
- type CreateOrUpdateOperationResponse
- type DatabaseId
- type DiffBackupIntervalInHours
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDiffBackupIntervalInHours ¶
func PossibleValuesForDiffBackupIntervalInHours() []int64
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
Types ¶
type BackupShortTermRetentionPoliciesClient ¶
type BackupShortTermRetentionPoliciesClient struct {
Client *resourcemanager.Client
}
func NewBackupShortTermRetentionPoliciesClientWithBaseURI ¶
func NewBackupShortTermRetentionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupShortTermRetentionPoliciesClient, error)
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate ¶
func (c BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateThenPoll ¶
func (c BackupShortTermRetentionPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (BackupShortTermRetentionPoliciesClient) Get ¶
func (c BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
Get ...
func (BackupShortTermRetentionPoliciesClient) ListByDatabase ¶
func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete ¶
func (c BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (BackupShortTermRetentionPoliciesClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c BackupShortTermRetentionPoliciesClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate BackupShortTermRetentionPolicyOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (BackupShortTermRetentionPoliciesClient) Update ¶
func (c BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) (result UpdateOperationResponse, err error)
Update ...
func (BackupShortTermRetentionPoliciesClient) UpdateThenPoll ¶
func (c BackupShortTermRetentionPoliciesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input BackupShortTermRetentionPolicy) error
UpdateThenPoll performs Update then polls until it's completed
type BackupShortTermRetentionPolicy ¶
type BackupShortTermRetentionPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BackupShortTermRetentionPolicyProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BackupShortTermRetentionPolicyOperationPredicate ¶
type BackupShortTermRetentionPolicyOperationPredicate struct { Id *string Name *string Type *string }
func (BackupShortTermRetentionPolicyOperationPredicate) Matches ¶
func (p BackupShortTermRetentionPolicyOperationPredicate) Matches(input BackupShortTermRetentionPolicy) bool
type BackupShortTermRetentionPolicyProperties ¶
type BackupShortTermRetentionPolicyProperties struct { DiffBackupIntervalInHours *DiffBackupIntervalInHours `json:"diffBackupIntervalInHours,omitempty"` RetentionDays *int64 `json:"retentionDays,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) 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 DiffBackupIntervalInHours ¶
type DiffBackupIntervalInHours int64
const ( DiffBackupIntervalInHoursOneTwo DiffBackupIntervalInHours = 12 DiffBackupIntervalInHoursTwoFour DiffBackupIntervalInHours = 24 )
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BackupShortTermRetentionPolicy }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct {
Items []BackupShortTermRetentionPolicy
}
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]BackupShortTermRetentionPolicy }