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 ListByDatabaseOperationResponse
- type RestorePoint
- type RestorePointId
- type RestorePointListResult
- 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)
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 ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RestorePointListResult }
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 RestorePointListResult ¶
type RestorePointListResult struct { NextLink *string `json:"nextLink,omitempty"` Value *[]RestorePoint `json:"value,omitempty"` }
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 ...