Documentation ¶
Index ¶
- func PossibleValuesForReplicationLinkType() []string
- func PossibleValuesForReplicationRole() []string
- func PossibleValuesForReplicationState() []string
- func ValidateReplicationLinkID(input interface{}, key string) (warnings []string, errors []error)
- type DeleteOperationResponse
- type FailoverAllowDataLossOperationResponse
- type FailoverOperationResponse
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationResponse
- type ReplicationLink
- type ReplicationLinkId
- type ReplicationLinkOperationPredicate
- type ReplicationLinkProperties
- type ReplicationLinkType
- type ReplicationLinksClient
- func (c ReplicationLinksClient) Delete(ctx context.Context, id ReplicationLinkId) (result DeleteOperationResponse, err error)
- func (c ReplicationLinksClient) DeleteThenPoll(ctx context.Context, id ReplicationLinkId) error
- func (c ReplicationLinksClient) Failover(ctx context.Context, id ReplicationLinkId) (result FailoverOperationResponse, err error)
- func (c ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, id ReplicationLinkId) (result FailoverAllowDataLossOperationResponse, err error)
- func (c ReplicationLinksClient) FailoverAllowDataLossThenPoll(ctx context.Context, id ReplicationLinkId) error
- func (c ReplicationLinksClient) FailoverThenPoll(ctx context.Context, id ReplicationLinkId) error
- func (c ReplicationLinksClient) Get(ctx context.Context, id ReplicationLinkId) (result GetOperationResponse, err error)
- func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c ReplicationLinksClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
- func (c ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
- func (c ReplicationLinksClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
- func (c ReplicationLinksClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, ...) (result ListByServerCompleteResult, err error)
- type ReplicationRole
- type ReplicationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForReplicationLinkType ¶
func PossibleValuesForReplicationLinkType() []string
func PossibleValuesForReplicationRole ¶
func PossibleValuesForReplicationRole() []string
func PossibleValuesForReplicationState ¶
func PossibleValuesForReplicationState() []string
func ValidateReplicationLinkID ¶
ValidateReplicationLinkID checks that 'input' can be parsed as a Replication Link ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ReplicationLink }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct {
Items []ReplicationLink
}
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReplicationLink }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct {
Items []ReplicationLink
}
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReplicationLink }
type ReplicationLink ¶
type ReplicationLink struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ReplicationLinkProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ReplicationLinkId ¶
type ReplicationLinkId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string LinkId string }
ReplicationLinkId is a struct representing the Resource ID for a Replication Link
func NewReplicationLinkID ¶
func NewReplicationLinkID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, linkId string) ReplicationLinkId
NewReplicationLinkID returns a new ReplicationLinkId struct
func ParseReplicationLinkID ¶
func ParseReplicationLinkID(input string) (*ReplicationLinkId, error)
ParseReplicationLinkID parses 'input' into a ReplicationLinkId
func ParseReplicationLinkIDInsensitively ¶
func ParseReplicationLinkIDInsensitively(input string) (*ReplicationLinkId, error)
ParseReplicationLinkIDInsensitively parses 'input' case-insensitively into a ReplicationLinkId note: this method should only be used for API response data and not user input
func (ReplicationLinkId) ID ¶
func (id ReplicationLinkId) ID() string
ID returns the formatted Replication Link ID
func (ReplicationLinkId) Segments ¶
func (id ReplicationLinkId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Link ID
func (ReplicationLinkId) String ¶
func (id ReplicationLinkId) String() string
String returns a human-readable description of this Replication Link ID
type ReplicationLinkOperationPredicate ¶
func (ReplicationLinkOperationPredicate) Matches ¶
func (p ReplicationLinkOperationPredicate) Matches(input ReplicationLink) bool
type ReplicationLinkProperties ¶
type ReplicationLinkProperties struct { IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"` LinkType *ReplicationLinkType `json:"linkType,omitempty"` PartnerDatabase *string `json:"partnerDatabase,omitempty"` PartnerDatabaseId *string `json:"partnerDatabaseId,omitempty"` PartnerLocation *string `json:"partnerLocation,omitempty"` PartnerRole *ReplicationRole `json:"partnerRole,omitempty"` PartnerServer *string `json:"partnerServer,omitempty"` PercentComplete *int64 `json:"percentComplete,omitempty"` ReplicationMode *string `json:"replicationMode,omitempty"` ReplicationState *ReplicationState `json:"replicationState,omitempty"` Role *ReplicationRole `json:"role,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (*ReplicationLinkProperties) GetStartTimeAsTime ¶
func (o *ReplicationLinkProperties) GetStartTimeAsTime() (*time.Time, error)
func (*ReplicationLinkProperties) SetStartTimeAsTime ¶
func (o *ReplicationLinkProperties) SetStartTimeAsTime(input time.Time)
type ReplicationLinkType ¶
type ReplicationLinkType string
const ( ReplicationLinkTypeGEO ReplicationLinkType = "GEO" ReplicationLinkTypeNAMED ReplicationLinkType = "NAMED" ReplicationLinkTypeSTANDBY ReplicationLinkType = "STANDBY" )
func (*ReplicationLinkType) UnmarshalJSON ¶
func (s *ReplicationLinkType) UnmarshalJSON(bytes []byte) error
type ReplicationLinksClient ¶
type ReplicationLinksClient struct {
Client *resourcemanager.Client
}
func NewReplicationLinksClientWithBaseURI ¶
func NewReplicationLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationLinksClient, error)
func (ReplicationLinksClient) Delete ¶
func (c ReplicationLinksClient) Delete(ctx context.Context, id ReplicationLinkId) (result DeleteOperationResponse, err error)
Delete ...
func (ReplicationLinksClient) DeleteThenPoll ¶
func (c ReplicationLinksClient) DeleteThenPoll(ctx context.Context, id ReplicationLinkId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ReplicationLinksClient) Failover ¶
func (c ReplicationLinksClient) Failover(ctx context.Context, id ReplicationLinkId) (result FailoverOperationResponse, err error)
Failover ...
func (ReplicationLinksClient) FailoverAllowDataLoss ¶
func (c ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, id ReplicationLinkId) (result FailoverAllowDataLossOperationResponse, err error)
FailoverAllowDataLoss ...
func (ReplicationLinksClient) FailoverAllowDataLossThenPoll ¶
func (c ReplicationLinksClient) FailoverAllowDataLossThenPoll(ctx context.Context, id ReplicationLinkId) error
FailoverAllowDataLossThenPoll performs FailoverAllowDataLoss then polls until it's completed
func (ReplicationLinksClient) FailoverThenPoll ¶
func (c ReplicationLinksClient) FailoverThenPoll(ctx context.Context, id ReplicationLinkId) error
FailoverThenPoll performs Failover then polls until it's completed
func (ReplicationLinksClient) Get ¶
func (c ReplicationLinksClient) Get(ctx context.Context, id ReplicationLinkId) (result GetOperationResponse, err error)
Get ...
func (ReplicationLinksClient) ListByDatabase ¶
func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (ReplicationLinksClient) ListByDatabaseComplete ¶
func (c ReplicationLinksClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, predicate ReplicationLinkOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReplicationLinksClient) ListByServer ¶
func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (ReplicationLinksClient) ListByServerComplete ¶
func (c ReplicationLinksClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (ReplicationLinksClient) ListByServerCompleteMatchingPredicate ¶
func (c ReplicationLinksClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, predicate ReplicationLinkOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ReplicationRole ¶
type ReplicationRole string
const ( ReplicationRoleCopy ReplicationRole = "Copy" ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary" ReplicationRolePrimary ReplicationRole = "Primary" ReplicationRoleSecondary ReplicationRole = "Secondary" ReplicationRoleSource ReplicationRole = "Source" )
func (*ReplicationRole) UnmarshalJSON ¶
func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error
type ReplicationState ¶
type ReplicationState string
const ( ReplicationStateCATCHUP ReplicationState = "CATCH_UP" ReplicationStatePENDING ReplicationState = "PENDING" ReplicationStateSEEDING ReplicationState = "SEEDING" ReplicationStateSUSPENDED ReplicationState = "SUSPENDED" )
func (*ReplicationState) UnmarshalJSON ¶
func (s *ReplicationState) UnmarshalJSON(bytes []byte) error