Documentation ¶
Index ¶
- func PossibleValuesForCancelEnum() []string
- func PossibleValuesForLogicalReplicationOnSourceDbEnum() []string
- func PossibleValuesForMigrationListFilter() []string
- func PossibleValuesForMigrationMode() []string
- func PossibleValuesForMigrationState() []string
- func PossibleValuesForMigrationSubState() []string
- func PossibleValuesForOverwriteDbsInTargetEnum() []string
- func PossibleValuesForSkuTier() []string
- func PossibleValuesForStartDataMigrationEnum() []string
- func PossibleValuesForTriggerCutoverEnum() []string
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateMigrationID(input interface{}, key string) (warnings []string, errors []error)
- type AdminCredentials
- type CancelEnum
- type CreateOperationResponse
- type DbServerMetadata
- type DeleteOperationResponse
- type FlexibleServerId
- type GetOperationResponse
- type ListByTargetServerCompleteResult
- type ListByTargetServerOperationOptions
- type ListByTargetServerOperationResponse
- type LogicalReplicationOnSourceDbEnum
- type MigrationId
- type MigrationListFilter
- type MigrationMode
- type MigrationResource
- type MigrationResourceForPatch
- type MigrationResourceOperationPredicate
- type MigrationResourceProperties
- func (o *MigrationResourceProperties) GetMigrationWindowEndTimeInUtcAsTime() (*time.Time, error)
- func (o *MigrationResourceProperties) GetMigrationWindowStartTimeInUtcAsTime() (*time.Time, error)
- func (o *MigrationResourceProperties) SetMigrationWindowEndTimeInUtcAsTime(input time.Time)
- func (o *MigrationResourceProperties) SetMigrationWindowStartTimeInUtcAsTime(input time.Time)
- type MigrationResourcePropertiesForPatch
- type MigrationSecretParameters
- type MigrationState
- type MigrationStatus
- type MigrationSubState
- type MigrationSubStateDetails
- type MigrationsClient
- func (c MigrationsClient) Create(ctx context.Context, id MigrationId, input MigrationResource) (result CreateOperationResponse, err error)
- func (c MigrationsClient) Delete(ctx context.Context, id MigrationId) (result DeleteOperationResponse, err error)
- func (c MigrationsClient) Get(ctx context.Context, id MigrationId) (result GetOperationResponse, err error)
- func (c MigrationsClient) ListByTargetServer(ctx context.Context, id FlexibleServerId, ...) (resp ListByTargetServerOperationResponse, err error)
- func (c MigrationsClient) ListByTargetServerComplete(ctx context.Context, id FlexibleServerId, ...) (ListByTargetServerCompleteResult, error)
- func (c MigrationsClient) ListByTargetServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, ...) (resp ListByTargetServerCompleteResult, err error)
- func (c MigrationsClient) Update(ctx context.Context, id MigrationId, input MigrationResourceForPatch) (result UpdateOperationResponse, err error)
- type OverwriteDbsInTargetEnum
- type ServerSku
- type SkuTier
- type StartDataMigrationEnum
- type TriggerCutoverEnum
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCancelEnum ¶
func PossibleValuesForCancelEnum() []string
func PossibleValuesForLogicalReplicationOnSourceDbEnum ¶
func PossibleValuesForLogicalReplicationOnSourceDbEnum() []string
func PossibleValuesForMigrationListFilter ¶
func PossibleValuesForMigrationListFilter() []string
func PossibleValuesForMigrationMode ¶
func PossibleValuesForMigrationMode() []string
func PossibleValuesForMigrationState ¶
func PossibleValuesForMigrationState() []string
func PossibleValuesForMigrationSubState ¶
func PossibleValuesForMigrationSubState() []string
func PossibleValuesForOverwriteDbsInTargetEnum ¶
func PossibleValuesForOverwriteDbsInTargetEnum() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func PossibleValuesForStartDataMigrationEnum ¶
func PossibleValuesForStartDataMigrationEnum() []string
func PossibleValuesForTriggerCutoverEnum ¶
func PossibleValuesForTriggerCutoverEnum() []string
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
func ValidateMigrationID ¶
ValidateMigrationID checks that 'input' can be parsed as a Migration ID
Types ¶
type AdminCredentials ¶
type CancelEnum ¶
type CancelEnum string
const ( CancelEnumFalse CancelEnum = "False" CancelEnumTrue CancelEnum = "True" )
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response Model *MigrationResource }
type DbServerMetadata ¶
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) 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 Model *MigrationResource }
type ListByTargetServerCompleteResult ¶
type ListByTargetServerCompleteResult struct {
Items []MigrationResource
}
type ListByTargetServerOperationOptions ¶
type ListByTargetServerOperationOptions struct {
MigrationListFilter *MigrationListFilter
}
func DefaultListByTargetServerOperationOptions ¶
func DefaultListByTargetServerOperationOptions() ListByTargetServerOperationOptions
type ListByTargetServerOperationResponse ¶
type ListByTargetServerOperationResponse struct { HttpResponse *http.Response Model *[]MigrationResource // contains filtered or unexported fields }
func (ListByTargetServerOperationResponse) HasMore ¶
func (r ListByTargetServerOperationResponse) HasMore() bool
func (ListByTargetServerOperationResponse) LoadMore ¶
func (r ListByTargetServerOperationResponse) LoadMore(ctx context.Context) (resp ListByTargetServerOperationResponse, err error)
type LogicalReplicationOnSourceDbEnum ¶
type LogicalReplicationOnSourceDbEnum string
const ( LogicalReplicationOnSourceDbEnumFalse LogicalReplicationOnSourceDbEnum = "False" LogicalReplicationOnSourceDbEnumTrue LogicalReplicationOnSourceDbEnum = "True" )
type MigrationId ¶
type MigrationId struct { SubscriptionId string ResourceGroupName string FlexibleServerName string MigrationName string }
MigrationId is a struct representing the Resource ID for a Migration
func NewMigrationID ¶
func NewMigrationID(subscriptionId string, resourceGroupName string, flexibleServerName string, migrationName string) MigrationId
NewMigrationID returns a new MigrationId struct
func ParseMigrationID ¶
func ParseMigrationID(input string) (*MigrationId, error)
ParseMigrationID parses 'input' into a MigrationId
func ParseMigrationIDInsensitively ¶
func ParseMigrationIDInsensitively(input string) (*MigrationId, error)
ParseMigrationIDInsensitively parses 'input' case-insensitively into a MigrationId note: this method should only be used for API response data and not user input
func (MigrationId) Segments ¶
func (id MigrationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Migration ID
func (MigrationId) String ¶
func (id MigrationId) String() string
String returns a human-readable description of this Migration ID
type MigrationListFilter ¶
type MigrationListFilter string
const ( MigrationListFilterActive MigrationListFilter = "Active" MigrationListFilterAll MigrationListFilter = "All" )
type MigrationMode ¶
type MigrationMode string
const ( MigrationModeOffline MigrationMode = "Offline" MigrationModeOnline MigrationMode = "Online" )
type MigrationResource ¶
type MigrationResource struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *MigrationResourceProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type MigrationResourceForPatch ¶
type MigrationResourceForPatch struct { Properties *MigrationResourcePropertiesForPatch `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type MigrationResourceOperationPredicate ¶
type MigrationResourceOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (MigrationResourceOperationPredicate) Matches ¶
func (p MigrationResourceOperationPredicate) Matches(input MigrationResource) bool
type MigrationResourceProperties ¶
type MigrationResourceProperties struct { Cancel *CancelEnum `json:"cancel,omitempty"` CurrentStatus *MigrationStatus `json:"currentStatus,omitempty"` DbsToCancelMigrationOn *[]string `json:"dbsToCancelMigrationOn,omitempty"` DbsToMigrate *[]string `json:"dbsToMigrate,omitempty"` DbsToTriggerCutoverOn *[]string `json:"dbsToTriggerCutoverOn,omitempty"` MigrationId *string `json:"migrationId,omitempty"` MigrationMode *MigrationMode `json:"migrationMode,omitempty"` MigrationWindowEndTimeInUtc *string `json:"migrationWindowEndTimeInUtc,omitempty"` MigrationWindowStartTimeInUtc *string `json:"migrationWindowStartTimeInUtc,omitempty"` OverwriteDbsInTarget *OverwriteDbsInTargetEnum `json:"overwriteDbsInTarget,omitempty"` SecretParameters *MigrationSecretParameters `json:"secretParameters,omitempty"` SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum `json:"setupLogicalReplicationOnSourceDbIfNeeded,omitempty"` SourceDbServerFullyQualifiedDomainName *string `json:"sourceDbServerFullyQualifiedDomainName,omitempty"` SourceDbServerMetadata *DbServerMetadata `json:"sourceDbServerMetadata,omitempty"` SourceDbServerResourceId *string `json:"sourceDbServerResourceId,omitempty"` StartDataMigration *StartDataMigrationEnum `json:"startDataMigration,omitempty"` TargetDbServerFullyQualifiedDomainName *string `json:"targetDbServerFullyQualifiedDomainName,omitempty"` TargetDbServerMetadata *DbServerMetadata `json:"targetDbServerMetadata,omitempty"` TargetDbServerResourceId *string `json:"targetDbServerResourceId,omitempty"` TriggerCutover *TriggerCutoverEnum `json:"triggerCutover,omitempty"` }
func (*MigrationResourceProperties) GetMigrationWindowEndTimeInUtcAsTime ¶
func (o *MigrationResourceProperties) GetMigrationWindowEndTimeInUtcAsTime() (*time.Time, error)
func (*MigrationResourceProperties) GetMigrationWindowStartTimeInUtcAsTime ¶
func (o *MigrationResourceProperties) GetMigrationWindowStartTimeInUtcAsTime() (*time.Time, error)
func (*MigrationResourceProperties) SetMigrationWindowEndTimeInUtcAsTime ¶
func (o *MigrationResourceProperties) SetMigrationWindowEndTimeInUtcAsTime(input time.Time)
func (*MigrationResourceProperties) SetMigrationWindowStartTimeInUtcAsTime ¶
func (o *MigrationResourceProperties) SetMigrationWindowStartTimeInUtcAsTime(input time.Time)
type MigrationResourcePropertiesForPatch ¶
type MigrationResourcePropertiesForPatch struct { Cancel *CancelEnum `json:"cancel,omitempty"` DbsToCancelMigrationOn *[]string `json:"dbsToCancelMigrationOn,omitempty"` DbsToMigrate *[]string `json:"dbsToMigrate,omitempty"` DbsToTriggerCutoverOn *[]string `json:"dbsToTriggerCutoverOn,omitempty"` MigrationMode *MigrationMode `json:"migrationMode,omitempty"` MigrationWindowStartTimeInUtc *string `json:"migrationWindowStartTimeInUtc,omitempty"` OverwriteDbsInTarget *OverwriteDbsInTargetEnum `json:"overwriteDbsInTarget,omitempty"` SecretParameters *MigrationSecretParameters `json:"secretParameters,omitempty"` SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum `json:"setupLogicalReplicationOnSourceDbIfNeeded,omitempty"` SourceDbServerFullyQualifiedDomainName *string `json:"sourceDbServerFullyQualifiedDomainName,omitempty"` SourceDbServerResourceId *string `json:"sourceDbServerResourceId,omitempty"` StartDataMigration *StartDataMigrationEnum `json:"startDataMigration,omitempty"` TargetDbServerFullyQualifiedDomainName *string `json:"targetDbServerFullyQualifiedDomainName,omitempty"` TriggerCutover *TriggerCutoverEnum `json:"triggerCutover,omitempty"` }
func (*MigrationResourcePropertiesForPatch) GetMigrationWindowStartTimeInUtcAsTime ¶
func (o *MigrationResourcePropertiesForPatch) GetMigrationWindowStartTimeInUtcAsTime() (*time.Time, error)
func (*MigrationResourcePropertiesForPatch) SetMigrationWindowStartTimeInUtcAsTime ¶
func (o *MigrationResourcePropertiesForPatch) SetMigrationWindowStartTimeInUtcAsTime(input time.Time)
type MigrationSecretParameters ¶
type MigrationSecretParameters struct { AdminCredentials AdminCredentials `json:"adminCredentials"` SourceServerUsername *string `json:"sourceServerUsername,omitempty"` TargetServerUsername *string `json:"targetServerUsername,omitempty"` }
type MigrationState ¶
type MigrationState string
const ( MigrationStateCanceled MigrationState = "Canceled" MigrationStateFailed MigrationState = "Failed" MigrationStateInProgress MigrationState = "InProgress" MigrationStateSucceeded MigrationState = "Succeeded" MigrationStateWaitingForUserAction MigrationState = "WaitingForUserAction" )
type MigrationStatus ¶
type MigrationStatus struct { CurrentSubStateDetails *MigrationSubStateDetails `json:"currentSubStateDetails,omitempty"` Error *string `json:"error,omitempty"` State *MigrationState `json:"state,omitempty"` }
type MigrationSubState ¶
type MigrationSubState string
const ( MigrationSubStateCompleted MigrationSubState = "Completed" MigrationSubStateCompletingMigration MigrationSubState = "CompletingMigration" MigrationSubStateMigratingData MigrationSubState = "MigratingData" MigrationSubStatePerformingPreRequisiteSteps MigrationSubState = "PerformingPreRequisiteSteps" MigrationSubStateWaitingForCutoverTrigger MigrationSubState = "WaitingForCutoverTrigger" MigrationSubStateWaitingForDBsToMigrateSpecification MigrationSubState = "WaitingForDBsToMigrateSpecification" MigrationSubStateWaitingForDataMigrationScheduling MigrationSubState = "WaitingForDataMigrationScheduling" MigrationSubStateWaitingForDataMigrationWindow MigrationSubState = "WaitingForDataMigrationWindow" MigrationSubStateWaitingForLogicalReplicationSetupRequestOnSourceDB MigrationSubState = "WaitingForLogicalReplicationSetupRequestOnSourceDB" MigrationSubStateWaitingForTargetDBOverwriteConfirmation MigrationSubState = "WaitingForTargetDBOverwriteConfirmation" )
type MigrationSubStateDetails ¶
type MigrationSubStateDetails struct {
CurrentSubState *MigrationSubState `json:"currentSubState,omitempty"`
}
type MigrationsClient ¶
func NewMigrationsClientWithBaseURI ¶
func NewMigrationsClientWithBaseURI(endpoint string) MigrationsClient
func (MigrationsClient) Create ¶
func (c MigrationsClient) Create(ctx context.Context, id MigrationId, input MigrationResource) (result CreateOperationResponse, err error)
Create ...
func (MigrationsClient) Delete ¶
func (c MigrationsClient) Delete(ctx context.Context, id MigrationId) (result DeleteOperationResponse, err error)
Delete ...
func (MigrationsClient) Get ¶
func (c MigrationsClient) Get(ctx context.Context, id MigrationId) (result GetOperationResponse, err error)
Get ...
func (MigrationsClient) ListByTargetServer ¶
func (c MigrationsClient) ListByTargetServer(ctx context.Context, id FlexibleServerId, options ListByTargetServerOperationOptions) (resp ListByTargetServerOperationResponse, err error)
ListByTargetServer ...
func (MigrationsClient) ListByTargetServerComplete ¶
func (c MigrationsClient) ListByTargetServerComplete(ctx context.Context, id FlexibleServerId, options ListByTargetServerOperationOptions) (ListByTargetServerCompleteResult, error)
ListByTargetServerComplete retrieves all of the results into a single object
func (MigrationsClient) ListByTargetServerCompleteMatchingPredicate ¶
func (c MigrationsClient) ListByTargetServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, options ListByTargetServerOperationOptions, predicate MigrationResourceOperationPredicate) (resp ListByTargetServerCompleteResult, err error)
ListByTargetServerCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (MigrationsClient) Update ¶
func (c MigrationsClient) Update(ctx context.Context, id MigrationId, input MigrationResourceForPatch) (result UpdateOperationResponse, err error)
Update ...
type OverwriteDbsInTargetEnum ¶
type OverwriteDbsInTargetEnum string
const ( OverwriteDbsInTargetEnumFalse OverwriteDbsInTargetEnum = "False" OverwriteDbsInTargetEnumTrue OverwriteDbsInTargetEnum = "True" )
type StartDataMigrationEnum ¶
type StartDataMigrationEnum string
const ( StartDataMigrationEnumFalse StartDataMigrationEnum = "False" StartDataMigrationEnumTrue StartDataMigrationEnum = "True" )
type TriggerCutoverEnum ¶
type TriggerCutoverEnum string
const ( TriggerCutoverEnumFalse TriggerCutoverEnum = "False" TriggerCutoverEnumTrue TriggerCutoverEnum = "True" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *MigrationResource }
Source Files ¶
- client.go
- constants.go
- id_flexibleserver.go
- id_migration.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbytargetserver_autorest.go
- method_update_autorest.go
- model_admincredentials.go
- model_dbservermetadata.go
- model_migrationresource.go
- model_migrationresourceforpatch.go
- model_migrationresourceproperties.go
- model_migrationresourcepropertiesforpatch.go
- model_migrationsecretparameters.go
- model_migrationstatus.go
- model_migrationsubstatedetails.go
- model_serversku.go
- predicates.go
- version.go