Documentation ¶
Index ¶
- func PossibleValuesForExecutionStatus() []string
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLtrBackupOperationID(input interface{}, key string) (warnings []string, errors []error)
- type BackupRequestBase
- type BackupSettings
- type BackupStoreDetails
- type ExecutionStatus
- type FlexibleServerId
- type FlexibleServerStartLtrBackupOperationResponse
- type FlexibleServerTriggerLtrPreBackupOperationResponse
- type LongTermRetentionBackupClient
- func (c LongTermRetentionBackupClient) FlexibleServerStartLtrBackup(ctx context.Context, id FlexibleServerId, input LtrBackupRequest) (result FlexibleServerStartLtrBackupOperationResponse, err error)
- func (c LongTermRetentionBackupClient) FlexibleServerStartLtrBackupThenPoll(ctx context.Context, id FlexibleServerId, input LtrBackupRequest) error
- func (c LongTermRetentionBackupClient) FlexibleServerTriggerLtrPreBackup(ctx context.Context, id FlexibleServerId, input BackupRequestBase) (result FlexibleServerTriggerLtrPreBackupOperationResponse, err error)
- func (c LongTermRetentionBackupClient) LtrBackupOperationsGet(ctx context.Context, id LtrBackupOperationId) (result LtrBackupOperationsGetOperationResponse, err error)
- func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServer(ctx context.Context, id FlexibleServerId) (result LtrBackupOperationsListByServerOperationResponse, err error)
- func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServerComplete(ctx context.Context, id FlexibleServerId) (LtrBackupOperationsListByServerCompleteResult, error)
- func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, ...) (result LtrBackupOperationsListByServerCompleteResult, err error)
- type LtrBackupOperationId
- type LtrBackupOperationResponseProperties
- func (o *LtrBackupOperationResponseProperties) GetEndTimeAsTime() (*time.Time, error)
- func (o *LtrBackupOperationResponseProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *LtrBackupOperationResponseProperties) SetEndTimeAsTime(input time.Time)
- func (o *LtrBackupOperationResponseProperties) SetStartTimeAsTime(input time.Time)
- type LtrBackupOperationsGetOperationResponse
- type LtrBackupOperationsListByServerCompleteResult
- type LtrBackupOperationsListByServerCustomPager
- type LtrBackupOperationsListByServerOperationResponse
- type LtrBackupRequest
- type LtrBackupResponse
- type LtrPreBackupResponse
- type LtrPreBackupResponseProperties
- type LtrServerBackupOperation
- type LtrServerBackupOperationOperationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForExecutionStatus ¶
func PossibleValuesForExecutionStatus() []string
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
func ValidateLtrBackupOperationID ¶
func ValidateLtrBackupOperationID(input interface{}, key string) (warnings []string, errors []error)
ValidateLtrBackupOperationID checks that 'input' can be parsed as a Ltr Backup Operation ID
Types ¶
type BackupRequestBase ¶
type BackupRequestBase struct {
BackupSettings BackupSettings `json:"backupSettings"`
}
type BackupSettings ¶
type BackupSettings struct {
BackupName string `json:"backupName"`
}
type BackupStoreDetails ¶
type BackupStoreDetails struct {
SasUriList []string `json:"sasUriList"`
}
type ExecutionStatus ¶
type ExecutionStatus string
const ( ExecutionStatusCancelled ExecutionStatus = "Cancelled" ExecutionStatusFailed ExecutionStatus = "Failed" ExecutionStatusRunning ExecutionStatus = "Running" ExecutionStatusSucceeded ExecutionStatus = "Succeeded" )
func (*ExecutionStatus) UnmarshalJSON ¶
func (s *ExecutionStatus) UnmarshalJSON(bytes []byte) error
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 FlexibleServerTriggerLtrPreBackupOperationResponse ¶
type FlexibleServerTriggerLtrPreBackupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LtrPreBackupResponse }
type LongTermRetentionBackupClient ¶
type LongTermRetentionBackupClient struct {
Client *resourcemanager.Client
}
func NewLongTermRetentionBackupClientWithBaseURI ¶
func NewLongTermRetentionBackupClientWithBaseURI(sdkApi sdkEnv.Api) (*LongTermRetentionBackupClient, error)
func (LongTermRetentionBackupClient) FlexibleServerStartLtrBackup ¶
func (c LongTermRetentionBackupClient) FlexibleServerStartLtrBackup(ctx context.Context, id FlexibleServerId, input LtrBackupRequest) (result FlexibleServerStartLtrBackupOperationResponse, err error)
FlexibleServerStartLtrBackup ...
func (LongTermRetentionBackupClient) FlexibleServerStartLtrBackupThenPoll ¶
func (c LongTermRetentionBackupClient) FlexibleServerStartLtrBackupThenPoll(ctx context.Context, id FlexibleServerId, input LtrBackupRequest) error
FlexibleServerStartLtrBackupThenPoll performs FlexibleServerStartLtrBackup then polls until it's completed
func (LongTermRetentionBackupClient) FlexibleServerTriggerLtrPreBackup ¶
func (c LongTermRetentionBackupClient) FlexibleServerTriggerLtrPreBackup(ctx context.Context, id FlexibleServerId, input BackupRequestBase) (result FlexibleServerTriggerLtrPreBackupOperationResponse, err error)
FlexibleServerTriggerLtrPreBackup ...
func (LongTermRetentionBackupClient) LtrBackupOperationsGet ¶
func (c LongTermRetentionBackupClient) LtrBackupOperationsGet(ctx context.Context, id LtrBackupOperationId) (result LtrBackupOperationsGetOperationResponse, err error)
LtrBackupOperationsGet ...
func (LongTermRetentionBackupClient) LtrBackupOperationsListByServer ¶
func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServer(ctx context.Context, id FlexibleServerId) (result LtrBackupOperationsListByServerOperationResponse, err error)
LtrBackupOperationsListByServer ...
func (LongTermRetentionBackupClient) LtrBackupOperationsListByServerComplete ¶
func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServerComplete(ctx context.Context, id FlexibleServerId) (LtrBackupOperationsListByServerCompleteResult, error)
LtrBackupOperationsListByServerComplete retrieves all the results into a single object
func (LongTermRetentionBackupClient) LtrBackupOperationsListByServerCompleteMatchingPredicate ¶
func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate LtrServerBackupOperationOperationPredicate) (result LtrBackupOperationsListByServerCompleteResult, err error)
LtrBackupOperationsListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
type LtrBackupOperationId ¶
type LtrBackupOperationId struct { SubscriptionId string ResourceGroupName string FlexibleServerName string LtrBackupOperationName string }
LtrBackupOperationId is a struct representing the Resource ID for a Ltr Backup Operation
func NewLtrBackupOperationID ¶
func NewLtrBackupOperationID(subscriptionId string, resourceGroupName string, flexibleServerName string, ltrBackupOperationName string) LtrBackupOperationId
NewLtrBackupOperationID returns a new LtrBackupOperationId struct
func ParseLtrBackupOperationID ¶
func ParseLtrBackupOperationID(input string) (*LtrBackupOperationId, error)
ParseLtrBackupOperationID parses 'input' into a LtrBackupOperationId
func ParseLtrBackupOperationIDInsensitively ¶
func ParseLtrBackupOperationIDInsensitively(input string) (*LtrBackupOperationId, error)
ParseLtrBackupOperationIDInsensitively parses 'input' case-insensitively into a LtrBackupOperationId note: this method should only be used for API response data and not user input
func (*LtrBackupOperationId) FromParseResult ¶
func (id *LtrBackupOperationId) FromParseResult(input resourceids.ParseResult) error
func (LtrBackupOperationId) ID ¶
func (id LtrBackupOperationId) ID() string
ID returns the formatted Ltr Backup Operation ID
func (LtrBackupOperationId) Segments ¶
func (id LtrBackupOperationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Ltr Backup Operation ID
func (LtrBackupOperationId) String ¶
func (id LtrBackupOperationId) String() string
String returns a human-readable description of this Ltr Backup Operation ID
type LtrBackupOperationResponseProperties ¶
type LtrBackupOperationResponseProperties struct { BackupMetadata *string `json:"backupMetadata,omitempty"` BackupName *string `json:"backupName,omitempty"` DataTransferredInBytes *int64 `json:"dataTransferredInBytes,omitempty"` DatasourceSizeInBytes *int64 `json:"datasourceSizeInBytes,omitempty"` EndTime *string `json:"endTime,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` PercentComplete *float64 `json:"percentComplete,omitempty"` StartTime string `json:"startTime"` Status ExecutionStatus `json:"status"` }
func (*LtrBackupOperationResponseProperties) GetEndTimeAsTime ¶
func (o *LtrBackupOperationResponseProperties) GetEndTimeAsTime() (*time.Time, error)
func (*LtrBackupOperationResponseProperties) GetStartTimeAsTime ¶
func (o *LtrBackupOperationResponseProperties) GetStartTimeAsTime() (*time.Time, error)
func (*LtrBackupOperationResponseProperties) SetEndTimeAsTime ¶
func (o *LtrBackupOperationResponseProperties) SetEndTimeAsTime(input time.Time)
func (*LtrBackupOperationResponseProperties) SetStartTimeAsTime ¶
func (o *LtrBackupOperationResponseProperties) SetStartTimeAsTime(input time.Time)
type LtrBackupOperationsGetOperationResponse ¶
type LtrBackupOperationsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LtrServerBackupOperation }
type LtrBackupOperationsListByServerCompleteResult ¶
type LtrBackupOperationsListByServerCompleteResult struct { LatestHttpResponse *http.Response Items []LtrServerBackupOperation }
type LtrBackupOperationsListByServerCustomPager ¶ added in v0.20240628.1153531
func (*LtrBackupOperationsListByServerCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *LtrBackupOperationsListByServerCustomPager) NextPageLink() *odata.Link
type LtrBackupOperationsListByServerOperationResponse ¶
type LtrBackupOperationsListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LtrServerBackupOperation }
type LtrBackupRequest ¶
type LtrBackupRequest struct { BackupSettings BackupSettings `json:"backupSettings"` TargetDetails BackupStoreDetails `json:"targetDetails"` }
type LtrBackupResponse ¶
type LtrBackupResponse struct {
Properties *LtrBackupOperationResponseProperties `json:"properties,omitempty"`
}
type LtrPreBackupResponse ¶
type LtrPreBackupResponse struct {
Properties LtrPreBackupResponseProperties `json:"properties"`
}
type LtrPreBackupResponseProperties ¶
type LtrPreBackupResponseProperties struct {
NumberOfContainers int64 `json:"numberOfContainers"`
}
type LtrServerBackupOperation ¶
type LtrServerBackupOperation struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *LtrBackupOperationResponseProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type LtrServerBackupOperationOperationPredicate ¶
func (LtrServerBackupOperationOperationPredicate) Matches ¶
func (p LtrServerBackupOperationOperationPredicate) Matches(input LtrServerBackupOperation) bool
Source Files ¶
- client.go
- constants.go
- id_flexibleserver.go
- id_ltrbackupoperation.go
- method_flexibleserverstartltrbackup.go
- method_flexibleservertriggerltrprebackup.go
- method_ltrbackupoperationsget.go
- method_ltrbackupoperationslistbyserver.go
- model_backuprequestbase.go
- model_backupsettings.go
- model_backupstoredetails.go
- model_ltrbackupoperationresponseproperties.go
- model_ltrbackuprequest.go
- model_ltrbackupresponse.go
- model_ltrprebackupresponse.go
- model_ltrprebackupresponseproperties.go
- model_ltrserverbackupoperation.go
- predicates.go
- version.go