Documentation ¶
Index ¶
- func PossibleValuesForOrigin() []string
- func ValidateBackupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- type BackupId
- type BackupsClient
- func (c BackupsClient) Create(ctx context.Context, id BackupId) (result CreateOperationResponse, err error)
- func (c BackupsClient) CreateThenPoll(ctx context.Context, id BackupId) error
- func (c BackupsClient) Delete(ctx context.Context, id BackupId) (result DeleteOperationResponse, err error)
- func (c BackupsClient) DeleteThenPoll(ctx context.Context, id BackupId) error
- func (c BackupsClient) Get(ctx context.Context, id BackupId) (result GetOperationResponse, err error)
- func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error)
- func (c BackupsClient) ListByServerComplete(ctx context.Context, id FlexibleServerId) (ListByServerCompleteResult, error)
- func (c BackupsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, ...) (result ListByServerCompleteResult, err error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type FlexibleServerId
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerCustomPager
- type ListByServerOperationResponse
- type Origin
- type ServerBackup
- type ServerBackupOperationPredicate
- type ServerBackupProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForOrigin ¶
func PossibleValuesForOrigin() []string
func ValidateBackupID ¶
ValidateBackupID checks that 'input' can be parsed as a Backup ID
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
Types ¶
type BackupId ¶
type BackupId struct { SubscriptionId string ResourceGroupName string FlexibleServerName string BackupName string }
BackupId is a struct representing the Resource ID for a Backup
func NewBackupID ¶
func NewBackupID(subscriptionId string, resourceGroupName string, flexibleServerName string, backupName string) BackupId
NewBackupID returns a new BackupId struct
func ParseBackupID ¶
ParseBackupID parses 'input' into a BackupId
func ParseBackupIDInsensitively ¶
ParseBackupIDInsensitively parses 'input' case-insensitively into a BackupId note: this method should only be used for API response data and not user input
func (*BackupId) FromParseResult ¶
func (id *BackupId) FromParseResult(input resourceids.ParseResult) error
func (BackupId) Segments ¶
func (id BackupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Backup ID
type BackupsClient ¶
type BackupsClient struct {
Client *resourcemanager.Client
}
func NewBackupsClientWithBaseURI ¶
func NewBackupsClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupsClient, error)
func (BackupsClient) Create ¶
func (c BackupsClient) Create(ctx context.Context, id BackupId) (result CreateOperationResponse, err error)
Create ...
func (BackupsClient) CreateThenPoll ¶
func (c BackupsClient) CreateThenPoll(ctx context.Context, id BackupId) error
CreateThenPoll performs Create then polls until it's completed
func (BackupsClient) Delete ¶
func (c BackupsClient) Delete(ctx context.Context, id BackupId) (result DeleteOperationResponse, err error)
Delete ...
func (BackupsClient) DeleteThenPoll ¶
func (c BackupsClient) DeleteThenPoll(ctx context.Context, id BackupId) error
DeleteThenPoll performs Delete then polls until it's completed
func (BackupsClient) Get ¶
func (c BackupsClient) Get(ctx context.Context, id BackupId) (result GetOperationResponse, err error)
Get ...
func (BackupsClient) ListByServer ¶
func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (BackupsClient) ListByServerComplete ¶
func (c BackupsClient) ListByServerComplete(ctx context.Context, id FlexibleServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (BackupsClient) ListByServerCompleteMatchingPredicate ¶
func (c BackupsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ServerBackupOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ServerBackup }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct { LatestHttpResponse *http.Response Items []ServerBackup }
type ListByServerCustomPager ¶
func (*ListByServerCustomPager) NextPageLink ¶
func (p *ListByServerCustomPager) NextPageLink() *odata.Link
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ServerBackup }
type ServerBackup ¶
type ServerBackup struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ServerBackupProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ServerBackupOperationPredicate ¶
func (ServerBackupOperationPredicate) Matches ¶
func (p ServerBackupOperationPredicate) Matches(input ServerBackup) bool
type ServerBackupProperties ¶
type ServerBackupProperties struct { BackupType *Origin `json:"backupType,omitempty"` CompletedTime *string `json:"completedTime,omitempty"` Source *string `json:"source,omitempty"` }
func (*ServerBackupProperties) GetCompletedTimeAsTime ¶
func (o *ServerBackupProperties) GetCompletedTimeAsTime() (*time.Time, error)
func (*ServerBackupProperties) SetCompletedTimeAsTime ¶
func (o *ServerBackupProperties) SetCompletedTimeAsTime(input time.Time)