Documentation ¶
Index ¶
- func PossibleValuesForReplicationLinkType() []string
- func PossibleValuesForReplicationRole() []string
- func PossibleValuesForReplicationState() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationLinkID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- type DatabaseId
- 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 DatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c ReplicationLinksClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
- func (c ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- func (c ReplicationLinksClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error)
- func (c ReplicationLinksClient) ListByServerComplete(ctx context.Context, id ServerId) (ListByServerCompleteResult, error)
- func (c ReplicationLinksClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate ReplicationLinkOperationPredicate) (result ListByServerCompleteResult, err error)
- type ReplicationRole
- type ReplicationState
- type ServerId
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 ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
func ValidateReplicationLinkID ¶
ValidateReplicationLinkID checks that 'input' can be parsed as a Replication Link ID
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
Types ¶
type DatabaseId ¶
type DatabaseId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string }
DatabaseId is a struct representing the Resource ID for a Database
func NewDatabaseID ¶
func NewDatabaseID(subscriptionId string, resourceGroupName string, serverName string, databaseName string) DatabaseId
NewDatabaseID returns a new DatabaseId struct
func ParseDatabaseID ¶
func ParseDatabaseID(input string) (*DatabaseId, error)
ParseDatabaseID parses 'input' into a DatabaseId
func ParseDatabaseIDInsensitively ¶
func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)
ParseDatabaseIDInsensitively parses 'input' case-insensitively into a DatabaseId note: this method should only be used for API response data and not user input
func (DatabaseId) Segments ¶
func (id DatabaseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database ID
func (DatabaseId) String ¶
func (id DatabaseId) String() string
String returns a human-readable description of this Database ID
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 DatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (ReplicationLinksClient) ListByDatabaseComplete ¶
func (c ReplicationLinksClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c ReplicationLinksClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, 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 ServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (ReplicationLinksClient) ListByServerComplete ¶
func (c ReplicationLinksClient) ListByServerComplete(ctx context.Context, id ServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (ReplicationLinksClient) ListByServerCompleteMatchingPredicate ¶
func (c ReplicationLinksClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, 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
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
ParseServerIDInsensitively parses 'input' case-insensitively into a ServerId note: this method should only be used for API response data and not user input
func (ServerId) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID