Documentation ¶
Index ¶
- func PossibleValuesForRestorePointType() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRestorePointID(input interface{}, key string) (warnings []string, errors []error)
- type CreateDatabaseRestorePointDefinition
- type CreateOperationResponse
- type DatabaseId
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
- type RestorePoint
- type RestorePointId
- type RestorePointOperationPredicate
- type RestorePointProperties
- func (o *RestorePointProperties) GetEarliestRestoreDateAsTime() (*time.Time, error)
- func (o *RestorePointProperties) GetRestorePointCreationDateAsTime() (*time.Time, error)
- func (o *RestorePointProperties) SetEarliestRestoreDateAsTime(input time.Time)
- func (o *RestorePointProperties) SetRestorePointCreationDateAsTime(input time.Time)
- type RestorePointType
- type RestorePointsClient
- func (c RestorePointsClient) Create(ctx context.Context, id DatabaseId, input CreateDatabaseRestorePointDefinition) (result CreateOperationResponse, err error)
- func (c RestorePointsClient) CreateThenPoll(ctx context.Context, id DatabaseId, input CreateDatabaseRestorePointDefinition) error
- func (c RestorePointsClient) Delete(ctx context.Context, id RestorePointId) (result DeleteOperationResponse, err error)
- func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId) (result GetOperationResponse, err error)
- func (c RestorePointsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c RestorePointsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
- func (c RestorePointsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate RestorePointOperationPredicate) (result ListByDatabaseCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRestorePointType ¶
func PossibleValuesForRestorePointType() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
func ValidateRestorePointID ¶
ValidateRestorePointID checks that 'input' can be parsed as a Restore Point ID
Types ¶
type CreateDatabaseRestorePointDefinition ¶
type CreateDatabaseRestorePointDefinition struct {
RestorePointLabel string `json:"restorePointLabel"`
}
type CreateOperationResponse ¶
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 DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RestorePoint }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct {
Items []RestorePoint
}
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RestorePoint }
type RestorePoint ¶
type RestorePoint struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *RestorePointProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type RestorePointId ¶
type RestorePointId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string RestorePointName string }
RestorePointId is a struct representing the Resource ID for a Restore Point
func NewRestorePointID ¶
func NewRestorePointID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, restorePointName string) RestorePointId
NewRestorePointID returns a new RestorePointId struct
func ParseRestorePointID ¶
func ParseRestorePointID(input string) (*RestorePointId, error)
ParseRestorePointID parses 'input' into a RestorePointId
func ParseRestorePointIDInsensitively ¶
func ParseRestorePointIDInsensitively(input string) (*RestorePointId, error)
ParseRestorePointIDInsensitively parses 'input' case-insensitively into a RestorePointId note: this method should only be used for API response data and not user input
func (RestorePointId) ID ¶
func (id RestorePointId) ID() string
ID returns the formatted Restore Point ID
func (RestorePointId) Segments ¶
func (id RestorePointId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Restore Point ID
func (RestorePointId) String ¶
func (id RestorePointId) String() string
String returns a human-readable description of this Restore Point ID
type RestorePointOperationPredicate ¶
type RestorePointOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (RestorePointOperationPredicate) Matches ¶
func (p RestorePointOperationPredicate) Matches(input RestorePoint) bool
type RestorePointProperties ¶
type RestorePointProperties struct { EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` RestorePointCreationDate *string `json:"restorePointCreationDate,omitempty"` RestorePointLabel *string `json:"restorePointLabel,omitempty"` RestorePointType *RestorePointType `json:"restorePointType,omitempty"` }
func (*RestorePointProperties) GetEarliestRestoreDateAsTime ¶
func (o *RestorePointProperties) GetEarliestRestoreDateAsTime() (*time.Time, error)
func (*RestorePointProperties) GetRestorePointCreationDateAsTime ¶
func (o *RestorePointProperties) GetRestorePointCreationDateAsTime() (*time.Time, error)
func (*RestorePointProperties) SetEarliestRestoreDateAsTime ¶
func (o *RestorePointProperties) SetEarliestRestoreDateAsTime(input time.Time)
func (*RestorePointProperties) SetRestorePointCreationDateAsTime ¶
func (o *RestorePointProperties) SetRestorePointCreationDateAsTime(input time.Time)
type RestorePointType ¶
type RestorePointType string
const ( RestorePointTypeCONTINUOUS RestorePointType = "CONTINUOUS" RestorePointTypeDISCRETE RestorePointType = "DISCRETE" )
func (*RestorePointType) UnmarshalJSON ¶
func (s *RestorePointType) UnmarshalJSON(bytes []byte) error
type RestorePointsClient ¶
type RestorePointsClient struct {
Client *resourcemanager.Client
}
func NewRestorePointsClientWithBaseURI ¶
func NewRestorePointsClientWithBaseURI(api environments.Api) (*RestorePointsClient, error)
func (RestorePointsClient) Create ¶
func (c RestorePointsClient) Create(ctx context.Context, id DatabaseId, input CreateDatabaseRestorePointDefinition) (result CreateOperationResponse, err error)
Create ...
func (RestorePointsClient) CreateThenPoll ¶
func (c RestorePointsClient) CreateThenPoll(ctx context.Context, id DatabaseId, input CreateDatabaseRestorePointDefinition) error
CreateThenPoll performs Create then polls until it's completed
func (RestorePointsClient) Delete ¶
func (c RestorePointsClient) Delete(ctx context.Context, id RestorePointId) (result DeleteOperationResponse, err error)
Delete ...
func (RestorePointsClient) Get ¶
func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId) (result GetOperationResponse, err error)
Get ...
func (RestorePointsClient) ListByDatabase ¶
func (c RestorePointsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (RestorePointsClient) ListByDatabaseComplete ¶
func (c RestorePointsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (RestorePointsClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c RestorePointsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate RestorePointOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate