Documentation ¶
Index ¶
- func PossibleValuesForCatalogCollationType() []string
- func PossibleValuesForManagedDatabaseCreateMode() []string
- func PossibleValuesForManagedDatabaseStatus() []string
- func ValidateManagedInstanceDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateManagedInstanceID(input interface{}, key string) (warnings []string, errors []error)
- type CatalogCollationType
- type CompleteDatabaseRestoreDefinition
- type CompleteRestoreOperationResponse
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByInstanceCompleteResult
- type ListByInstanceOperationResponse
- type ManagedDatabase
- type ManagedDatabaseCreateMode
- type ManagedDatabaseOperationPredicate
- type ManagedDatabaseProperties
- func (o *ManagedDatabaseProperties) GetCreationDateAsTime() (*time.Time, error)
- func (o *ManagedDatabaseProperties) GetEarliestRestorePointAsTime() (*time.Time, error)
- func (o *ManagedDatabaseProperties) GetRestorePointInTimeAsTime() (*time.Time, error)
- func (o *ManagedDatabaseProperties) SetCreationDateAsTime(input time.Time)
- func (o *ManagedDatabaseProperties) SetEarliestRestorePointAsTime(input time.Time)
- func (o *ManagedDatabaseProperties) SetRestorePointInTimeAsTime(input time.Time)
- type ManagedDatabaseStatus
- type ManagedDatabaseUpdate
- type ManagedDatabasesClient
- func (c ManagedDatabasesClient) CompleteRestore(ctx context.Context, id ManagedInstanceDatabaseId, ...) (result CompleteRestoreOperationResponse, err error)
- func (c ManagedDatabasesClient) CompleteRestoreThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, ...) error
- func (c ManagedDatabasesClient) CreateOrUpdate(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabase) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagedDatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabase) error
- func (c ManagedDatabasesClient) Delete(ctx context.Context, id ManagedInstanceDatabaseId) (result DeleteOperationResponse, err error)
- func (c ManagedDatabasesClient) DeleteThenPoll(ctx context.Context, id ManagedInstanceDatabaseId) error
- func (c ManagedDatabasesClient) Get(ctx context.Context, id ManagedInstanceDatabaseId) (result GetOperationResponse, err error)
- func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id ManagedInstanceId) (result ListByInstanceOperationResponse, err error)
- func (c ManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, id ManagedInstanceId) (ListByInstanceCompleteResult, error)
- func (c ManagedDatabasesClient) ListByInstanceCompleteMatchingPredicate(ctx context.Context, id ManagedInstanceId, ...) (result ListByInstanceCompleteResult, err error)
- func (c ManagedDatabasesClient) Update(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabaseUpdate) (result UpdateOperationResponse, err error)
- func (c ManagedDatabasesClient) UpdateThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabaseUpdate) error
- type ManagedInstanceDatabaseId
- func NewManagedInstanceDatabaseID(subscriptionId string, resourceGroupName string, managedInstanceName string, ...) ManagedInstanceDatabaseId
- func ParseManagedInstanceDatabaseID(input string) (*ManagedInstanceDatabaseId, error)
- func ParseManagedInstanceDatabaseIDInsensitively(input string) (*ManagedInstanceDatabaseId, error)
- type ManagedInstanceId
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCatalogCollationType ¶
func PossibleValuesForCatalogCollationType() []string
func PossibleValuesForManagedDatabaseCreateMode ¶
func PossibleValuesForManagedDatabaseCreateMode() []string
func PossibleValuesForManagedDatabaseStatus ¶
func PossibleValuesForManagedDatabaseStatus() []string
func ValidateManagedInstanceDatabaseID ¶
func ValidateManagedInstanceDatabaseID(input interface{}, key string) (warnings []string, errors []error)
ValidateManagedInstanceDatabaseID checks that 'input' can be parsed as a Managed Instance Database ID
func ValidateManagedInstanceID ¶
ValidateManagedInstanceID checks that 'input' can be parsed as a Managed Instance ID
Types ¶
type CatalogCollationType ¶
type CatalogCollationType string
const ( CatalogCollationTypeDATABASEDEFAULT CatalogCollationType = "DATABASE_DEFAULT" CatalogCollationTypeSQLLatinOneGeneralCPOneCIAS CatalogCollationType = "SQL_Latin1_General_CP1_CI_AS" )
func (*CatalogCollationType) UnmarshalJSON ¶
func (s *CatalogCollationType) UnmarshalJSON(bytes []byte) error
type CompleteDatabaseRestoreDefinition ¶
type CompleteDatabaseRestoreDefinition struct {
LastBackupName string `json:"lastBackupName"`
}
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ManagedDatabase }
type ListByInstanceCompleteResult ¶
type ListByInstanceCompleteResult struct {
Items []ManagedDatabase
}
type ListByInstanceOperationResponse ¶
type ListByInstanceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ManagedDatabase }
type ManagedDatabase ¶
type ManagedDatabaseCreateMode ¶
type ManagedDatabaseCreateMode string
const ( ManagedDatabaseCreateModeDefault ManagedDatabaseCreateMode = "Default" ManagedDatabaseCreateModePointInTimeRestore ManagedDatabaseCreateMode = "PointInTimeRestore" ManagedDatabaseCreateModeRecovery ManagedDatabaseCreateMode = "Recovery" ManagedDatabaseCreateModeRestoreExternalBackup ManagedDatabaseCreateMode = "RestoreExternalBackup" ManagedDatabaseCreateModeRestoreLongTermRetentionBackup ManagedDatabaseCreateMode = "RestoreLongTermRetentionBackup" )
func (*ManagedDatabaseCreateMode) UnmarshalJSON ¶
func (s *ManagedDatabaseCreateMode) UnmarshalJSON(bytes []byte) error
type ManagedDatabaseOperationPredicate ¶
type ManagedDatabaseOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (ManagedDatabaseOperationPredicate) Matches ¶
func (p ManagedDatabaseOperationPredicate) Matches(input ManagedDatabase) bool
type ManagedDatabaseProperties ¶
type ManagedDatabaseProperties struct { CatalogCollation *CatalogCollationType `json:"catalogCollation,omitempty"` Collation *string `json:"collation,omitempty"` CreateMode *ManagedDatabaseCreateMode `json:"createMode,omitempty"` CreationDate *string `json:"creationDate,omitempty"` DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"` EarliestRestorePoint *string `json:"earliestRestorePoint,omitempty"` FailoverGroupId *string `json:"failoverGroupId,omitempty"` LongTermRetentionBackupResourceId *string `json:"longTermRetentionBackupResourceId,omitempty"` RecoverableDatabaseId *string `json:"recoverableDatabaseId,omitempty"` RestorableDroppedDatabaseId *string `json:"restorableDroppedDatabaseId,omitempty"` RestorePointInTime *string `json:"restorePointInTime,omitempty"` SourceDatabaseId *string `json:"sourceDatabaseId,omitempty"` Status *ManagedDatabaseStatus `json:"status,omitempty"` StorageContainerSasToken *string `json:"storageContainerSasToken,omitempty"` StorageContainerUri *string `json:"storageContainerUri,omitempty"` }
func (*ManagedDatabaseProperties) GetCreationDateAsTime ¶
func (o *ManagedDatabaseProperties) GetCreationDateAsTime() (*time.Time, error)
func (*ManagedDatabaseProperties) GetEarliestRestorePointAsTime ¶
func (o *ManagedDatabaseProperties) GetEarliestRestorePointAsTime() (*time.Time, error)
func (*ManagedDatabaseProperties) GetRestorePointInTimeAsTime ¶
func (o *ManagedDatabaseProperties) GetRestorePointInTimeAsTime() (*time.Time, error)
func (*ManagedDatabaseProperties) SetCreationDateAsTime ¶
func (o *ManagedDatabaseProperties) SetCreationDateAsTime(input time.Time)
func (*ManagedDatabaseProperties) SetEarliestRestorePointAsTime ¶
func (o *ManagedDatabaseProperties) SetEarliestRestorePointAsTime(input time.Time)
func (*ManagedDatabaseProperties) SetRestorePointInTimeAsTime ¶
func (o *ManagedDatabaseProperties) SetRestorePointInTimeAsTime(input time.Time)
type ManagedDatabaseStatus ¶
type ManagedDatabaseStatus string
const ( ManagedDatabaseStatusCreating ManagedDatabaseStatus = "Creating" ManagedDatabaseStatusInaccessible ManagedDatabaseStatus = "Inaccessible" ManagedDatabaseStatusOffline ManagedDatabaseStatus = "Offline" ManagedDatabaseStatusOnline ManagedDatabaseStatus = "Online" ManagedDatabaseStatusRestoring ManagedDatabaseStatus = "Restoring" ManagedDatabaseStatusShutdown ManagedDatabaseStatus = "Shutdown" ManagedDatabaseStatusUpdating ManagedDatabaseStatus = "Updating" )
func (*ManagedDatabaseStatus) UnmarshalJSON ¶
func (s *ManagedDatabaseStatus) UnmarshalJSON(bytes []byte) error
type ManagedDatabaseUpdate ¶
type ManagedDatabaseUpdate struct { Properties *ManagedDatabaseProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ManagedDatabasesClient ¶
type ManagedDatabasesClient struct {
Client *resourcemanager.Client
}
func NewManagedDatabasesClientWithBaseURI ¶
func NewManagedDatabasesClientWithBaseURI(api environments.Api) (*ManagedDatabasesClient, error)
func (ManagedDatabasesClient) CompleteRestore ¶
func (c ManagedDatabasesClient) CompleteRestore(ctx context.Context, id ManagedInstanceDatabaseId, input CompleteDatabaseRestoreDefinition) (result CompleteRestoreOperationResponse, err error)
CompleteRestore ...
func (ManagedDatabasesClient) CompleteRestoreThenPoll ¶
func (c ManagedDatabasesClient) CompleteRestoreThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, input CompleteDatabaseRestoreDefinition) error
CompleteRestoreThenPoll performs CompleteRestore then polls until it's completed
func (ManagedDatabasesClient) CreateOrUpdate ¶
func (c ManagedDatabasesClient) CreateOrUpdate(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabase) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagedDatabasesClient) CreateOrUpdateThenPoll ¶
func (c ManagedDatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabase) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ManagedDatabasesClient) Delete ¶
func (c ManagedDatabasesClient) Delete(ctx context.Context, id ManagedInstanceDatabaseId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagedDatabasesClient) DeleteThenPoll ¶
func (c ManagedDatabasesClient) DeleteThenPoll(ctx context.Context, id ManagedInstanceDatabaseId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ManagedDatabasesClient) Get ¶
func (c ManagedDatabasesClient) Get(ctx context.Context, id ManagedInstanceDatabaseId) (result GetOperationResponse, err error)
Get ...
func (ManagedDatabasesClient) ListByInstance ¶
func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id ManagedInstanceId) (result ListByInstanceOperationResponse, err error)
ListByInstance ...
func (ManagedDatabasesClient) ListByInstanceComplete ¶
func (c ManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, id ManagedInstanceId) (ListByInstanceCompleteResult, error)
ListByInstanceComplete retrieves all the results into a single object
func (ManagedDatabasesClient) ListByInstanceCompleteMatchingPredicate ¶
func (c ManagedDatabasesClient) ListByInstanceCompleteMatchingPredicate(ctx context.Context, id ManagedInstanceId, predicate ManagedDatabaseOperationPredicate) (result ListByInstanceCompleteResult, err error)
ListByInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ManagedDatabasesClient) Update ¶
func (c ManagedDatabasesClient) Update(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabaseUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ManagedDatabasesClient) UpdateThenPoll ¶
func (c ManagedDatabasesClient) UpdateThenPoll(ctx context.Context, id ManagedInstanceDatabaseId, input ManagedDatabaseUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type ManagedInstanceDatabaseId ¶
type ManagedInstanceDatabaseId struct { SubscriptionId string ResourceGroupName string ManagedInstanceName string DatabaseName string }
ManagedInstanceDatabaseId is a struct representing the Resource ID for a Managed Instance Database
func NewManagedInstanceDatabaseID ¶
func NewManagedInstanceDatabaseID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string) ManagedInstanceDatabaseId
NewManagedInstanceDatabaseID returns a new ManagedInstanceDatabaseId struct
func ParseManagedInstanceDatabaseID ¶
func ParseManagedInstanceDatabaseID(input string) (*ManagedInstanceDatabaseId, error)
ParseManagedInstanceDatabaseID parses 'input' into a ManagedInstanceDatabaseId
func ParseManagedInstanceDatabaseIDInsensitively ¶
func ParseManagedInstanceDatabaseIDInsensitively(input string) (*ManagedInstanceDatabaseId, error)
ParseManagedInstanceDatabaseIDInsensitively parses 'input' case-insensitively into a ManagedInstanceDatabaseId note: this method should only be used for API response data and not user input
func (ManagedInstanceDatabaseId) ID ¶
func (id ManagedInstanceDatabaseId) ID() string
ID returns the formatted Managed Instance Database ID
func (ManagedInstanceDatabaseId) Segments ¶
func (id ManagedInstanceDatabaseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Managed Instance Database ID
func (ManagedInstanceDatabaseId) String ¶
func (id ManagedInstanceDatabaseId) String() string
String returns a human-readable description of this Managed Instance Database ID
type ManagedInstanceId ¶
type ManagedInstanceId struct { SubscriptionId string ResourceGroupName string ManagedInstanceName string }
ManagedInstanceId is a struct representing the Resource ID for a Managed Instance
func NewManagedInstanceID ¶
func NewManagedInstanceID(subscriptionId string, resourceGroupName string, managedInstanceName string) ManagedInstanceId
NewManagedInstanceID returns a new ManagedInstanceId struct
func ParseManagedInstanceID ¶
func ParseManagedInstanceID(input string) (*ManagedInstanceId, error)
ParseManagedInstanceID parses 'input' into a ManagedInstanceId
func ParseManagedInstanceIDInsensitively ¶
func ParseManagedInstanceIDInsensitively(input string) (*ManagedInstanceId, error)
ParseManagedInstanceIDInsensitively parses 'input' case-insensitively into a ManagedInstanceId note: this method should only be used for API response data and not user input
func (ManagedInstanceId) ID ¶
func (id ManagedInstanceId) ID() string
ID returns the formatted Managed Instance ID
func (ManagedInstanceId) Segments ¶
func (id ManagedInstanceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Managed Instance ID
func (ManagedInstanceId) String ¶
func (id ManagedInstanceId) String() string
String returns a human-readable description of this Managed Instance ID
Source Files ¶
- client.go
- constants.go
- id_managedinstance.go
- id_managedinstancedatabase.go
- method_completerestore.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyinstance.go
- method_update.go
- model_completedatabaserestoredefinition.go
- model_manageddatabase.go
- model_manageddatabaseproperties.go
- model_manageddatabaseupdate.go
- predicates.go
- version.go