Documentation ¶
Index ¶
- func PossibleValuesForBackupType() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateBackupsV2ID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- type BackupType
- type BackupsV2Client
- func (c BackupsV2Client) LongRunningBackupCreate(ctx context.Context, id BackupsV2Id, input ServerBackupV2) (result LongRunningBackupCreateOperationResponse, err error)
- func (c BackupsV2Client) LongRunningBackupCreateThenPoll(ctx context.Context, id BackupsV2Id, input ServerBackupV2) error
- func (c BackupsV2Client) LongRunningBackupsGet(ctx context.Context, id BackupsV2Id) (result LongRunningBackupsGetOperationResponse, err error)
- func (c BackupsV2Client) LongRunningBackupsList(ctx context.Context, id FlexibleServerId) (result LongRunningBackupsListOperationResponse, err error)
- func (c BackupsV2Client) LongRunningBackupsListComplete(ctx context.Context, id FlexibleServerId) (LongRunningBackupsListCompleteResult, error)
- func (c BackupsV2Client) LongRunningBackupsListCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, ...) (result LongRunningBackupsListCompleteResult, err error)
- type BackupsV2Id
- type FlexibleServerId
- type LongRunningBackupCreateOperationResponse
- type LongRunningBackupsGetOperationResponse
- type LongRunningBackupsListCompleteResult
- type LongRunningBackupsListOperationResponse
- type ProvisioningState
- type ServerBackupPropertiesV2
- type ServerBackupV2
- type ServerBackupV2OperationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBackupType ¶
func PossibleValuesForBackupType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateBackupsV2ID ¶
ValidateBackupsV2ID checks that 'input' can be parsed as a Backups V 2 ID
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
Types ¶
type BackupType ¶
type BackupType string
const (
BackupTypeFULL BackupType = "FULL"
)
func (*BackupType) UnmarshalJSON ¶
func (s *BackupType) UnmarshalJSON(bytes []byte) error
type BackupsV2Client ¶
type BackupsV2Client struct {
Client *resourcemanager.Client
}
func NewBackupsV2ClientWithBaseURI ¶
func NewBackupsV2ClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupsV2Client, error)
func (BackupsV2Client) LongRunningBackupCreate ¶
func (c BackupsV2Client) LongRunningBackupCreate(ctx context.Context, id BackupsV2Id, input ServerBackupV2) (result LongRunningBackupCreateOperationResponse, err error)
LongRunningBackupCreate ...
func (BackupsV2Client) LongRunningBackupCreateThenPoll ¶
func (c BackupsV2Client) LongRunningBackupCreateThenPoll(ctx context.Context, id BackupsV2Id, input ServerBackupV2) error
LongRunningBackupCreateThenPoll performs LongRunningBackupCreate then polls until it's completed
func (BackupsV2Client) LongRunningBackupsGet ¶
func (c BackupsV2Client) LongRunningBackupsGet(ctx context.Context, id BackupsV2Id) (result LongRunningBackupsGetOperationResponse, err error)
LongRunningBackupsGet ...
func (BackupsV2Client) LongRunningBackupsList ¶
func (c BackupsV2Client) LongRunningBackupsList(ctx context.Context, id FlexibleServerId) (result LongRunningBackupsListOperationResponse, err error)
LongRunningBackupsList ...
func (BackupsV2Client) LongRunningBackupsListComplete ¶
func (c BackupsV2Client) LongRunningBackupsListComplete(ctx context.Context, id FlexibleServerId) (LongRunningBackupsListCompleteResult, error)
LongRunningBackupsListComplete retrieves all the results into a single object
func (BackupsV2Client) LongRunningBackupsListCompleteMatchingPredicate ¶
func (c BackupsV2Client) LongRunningBackupsListCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ServerBackupV2OperationPredicate) (result LongRunningBackupsListCompleteResult, err error)
LongRunningBackupsListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type BackupsV2Id ¶
type BackupsV2Id struct { SubscriptionId string ResourceGroupName string FlexibleServerName string BackupsV2Name string }
BackupsV2Id is a struct representing the Resource ID for a Backups V 2
func NewBackupsV2ID ¶
func NewBackupsV2ID(subscriptionId string, resourceGroupName string, flexibleServerName string, backupsV2Name string) BackupsV2Id
NewBackupsV2ID returns a new BackupsV2Id struct
func ParseBackupsV2ID ¶
func ParseBackupsV2ID(input string) (*BackupsV2Id, error)
ParseBackupsV2ID parses 'input' into a BackupsV2Id
func ParseBackupsV2IDInsensitively ¶
func ParseBackupsV2IDInsensitively(input string) (*BackupsV2Id, error)
ParseBackupsV2IDInsensitively parses 'input' case-insensitively into a BackupsV2Id note: this method should only be used for API response data and not user input
func (*BackupsV2Id) FromParseResult ¶
func (id *BackupsV2Id) FromParseResult(input resourceids.ParseResult) error
func (BackupsV2Id) Segments ¶
func (id BackupsV2Id) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Backups V 2 ID
func (BackupsV2Id) String ¶
func (id BackupsV2Id) String() string
String returns a human-readable description of this Backups V 2 ID
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 LongRunningBackupsGetOperationResponse ¶
type LongRunningBackupsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ServerBackupV2 }
type LongRunningBackupsListCompleteResult ¶
type LongRunningBackupsListCompleteResult struct { LatestHttpResponse *http.Response Items []ServerBackupV2 }
type LongRunningBackupsListOperationResponse ¶
type LongRunningBackupsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ServerBackupV2 }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type ServerBackupPropertiesV2 ¶
type ServerBackupPropertiesV2 struct { BackupNameV2 *string `json:"backupNameV2,omitempty"` BackupType *BackupType `json:"backupType,omitempty"` CompletedTime *string `json:"completedTime,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Source *string `json:"source,omitempty"` }
func (*ServerBackupPropertiesV2) GetCompletedTimeAsTime ¶
func (o *ServerBackupPropertiesV2) GetCompletedTimeAsTime() (*time.Time, error)
func (*ServerBackupPropertiesV2) SetCompletedTimeAsTime ¶
func (o *ServerBackupPropertiesV2) SetCompletedTimeAsTime(input time.Time)
type ServerBackupV2 ¶
type ServerBackupV2 struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ServerBackupPropertiesV2 `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ServerBackupV2OperationPredicate ¶
func (ServerBackupV2OperationPredicate) Matches ¶
func (p ServerBackupV2OperationPredicate) Matches(input ServerBackupV2) bool