Documentation ¶
Index ¶
- func PossibleValuesForSyncAgentState() []string
- func PossibleValuesForSyncMemberDbType() []string
- func ValidateSyncAgentID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GenerateKeyOperationResponse
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationResponse
- type ListLinkedDatabasesCompleteResult
- type ListLinkedDatabasesOperationResponse
- type SyncAgent
- type SyncAgentId
- type SyncAgentKeyProperties
- type SyncAgentLinkedDatabase
- type SyncAgentLinkedDatabaseOperationPredicate
- type SyncAgentLinkedDatabaseProperties
- type SyncAgentOperationPredicate
- type SyncAgentProperties
- type SyncAgentState
- type SyncAgentsClient
- func (c SyncAgentsClient) CreateOrUpdate(ctx context.Context, id SyncAgentId, input SyncAgent) (result CreateOrUpdateOperationResponse, err error)
- func (c SyncAgentsClient) CreateOrUpdateThenPoll(ctx context.Context, id SyncAgentId, input SyncAgent) error
- func (c SyncAgentsClient) Delete(ctx context.Context, id SyncAgentId) (result DeleteOperationResponse, err error)
- func (c SyncAgentsClient) DeleteThenPoll(ctx context.Context, id SyncAgentId) error
- func (c SyncAgentsClient) GenerateKey(ctx context.Context, id SyncAgentId) (result GenerateKeyOperationResponse, err error)
- func (c SyncAgentsClient) Get(ctx context.Context, id SyncAgentId) (result GetOperationResponse, err error)
- func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
- func (c SyncAgentsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
- func (c SyncAgentsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, ...) (result ListByServerCompleteResult, err error)
- func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentId) (result ListLinkedDatabasesOperationResponse, err error)
- func (c SyncAgentsClient) ListLinkedDatabasesComplete(ctx context.Context, id SyncAgentId) (ListLinkedDatabasesCompleteResult, error)
- func (c SyncAgentsClient) ListLinkedDatabasesCompleteMatchingPredicate(ctx context.Context, id SyncAgentId, ...) (result ListLinkedDatabasesCompleteResult, err error)
- type SyncMemberDbType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForSyncAgentState ¶
func PossibleValuesForSyncAgentState() []string
func PossibleValuesForSyncMemberDbType ¶
func PossibleValuesForSyncMemberDbType() []string
func ValidateSyncAgentID ¶
ValidateSyncAgentID checks that 'input' can be parsed as a Sync Agent ID
Types ¶
type DeleteOperationResponse ¶
type GenerateKeyOperationResponse ¶
type GenerateKeyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SyncAgentKeyProperties }
type GetOperationResponse ¶
type ListLinkedDatabasesCompleteResult ¶
type ListLinkedDatabasesCompleteResult struct { LatestHttpResponse *http.Response Items []SyncAgentLinkedDatabase }
type ListLinkedDatabasesOperationResponse ¶
type ListLinkedDatabasesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SyncAgentLinkedDatabase }
type SyncAgent ¶
type SyncAgent struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SyncAgentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SyncAgentId ¶
type SyncAgentId struct { SubscriptionId string ResourceGroupName string ServerName string SyncAgentName string }
SyncAgentId is a struct representing the Resource ID for a Sync Agent
func NewSyncAgentID ¶
func NewSyncAgentID(subscriptionId string, resourceGroupName string, serverName string, syncAgentName string) SyncAgentId
NewSyncAgentID returns a new SyncAgentId struct
func ParseSyncAgentID ¶
func ParseSyncAgentID(input string) (*SyncAgentId, error)
ParseSyncAgentID parses 'input' into a SyncAgentId
func ParseSyncAgentIDInsensitively ¶
func ParseSyncAgentIDInsensitively(input string) (*SyncAgentId, error)
ParseSyncAgentIDInsensitively parses 'input' case-insensitively into a SyncAgentId note: this method should only be used for API response data and not user input
func (*SyncAgentId) FromParseResult ¶
func (id *SyncAgentId) FromParseResult(input resourceids.ParseResult) error
func (SyncAgentId) Segments ¶
func (id SyncAgentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Sync Agent ID
func (SyncAgentId) String ¶
func (id SyncAgentId) String() string
String returns a human-readable description of this Sync Agent ID
type SyncAgentKeyProperties ¶
type SyncAgentKeyProperties struct {
SyncAgentKey *string `json:"syncAgentKey,omitempty"`
}
type SyncAgentLinkedDatabase ¶
type SyncAgentLinkedDatabase struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SyncAgentLinkedDatabaseProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SyncAgentLinkedDatabaseOperationPredicate ¶
func (SyncAgentLinkedDatabaseOperationPredicate) Matches ¶
func (p SyncAgentLinkedDatabaseOperationPredicate) Matches(input SyncAgentLinkedDatabase) bool
type SyncAgentLinkedDatabaseProperties ¶
type SyncAgentLinkedDatabaseProperties struct { DatabaseId *string `json:"databaseId,omitempty"` DatabaseName *string `json:"databaseName,omitempty"` DatabaseType *SyncMemberDbType `json:"databaseType,omitempty"` Description *string `json:"description,omitempty"` ServerName *string `json:"serverName,omitempty"` UserName *string `json:"userName,omitempty"` }
type SyncAgentOperationPredicate ¶
func (SyncAgentOperationPredicate) Matches ¶
func (p SyncAgentOperationPredicate) Matches(input SyncAgent) bool
type SyncAgentProperties ¶
type SyncAgentProperties struct { ExpiryTime *string `json:"expiryTime,omitempty"` IsUpToDate *bool `json:"isUpToDate,omitempty"` LastAliveTime *string `json:"lastAliveTime,omitempty"` Name *string `json:"name,omitempty"` State *SyncAgentState `json:"state,omitempty"` SyncDatabaseId *string `json:"syncDatabaseId,omitempty"` Version *string `json:"version,omitempty"` }
func (*SyncAgentProperties) GetExpiryTimeAsTime ¶
func (o *SyncAgentProperties) GetExpiryTimeAsTime() (*time.Time, error)
func (*SyncAgentProperties) GetLastAliveTimeAsTime ¶
func (o *SyncAgentProperties) GetLastAliveTimeAsTime() (*time.Time, error)
type SyncAgentState ¶
type SyncAgentState string
const ( SyncAgentStateNeverConnected SyncAgentState = "NeverConnected" SyncAgentStateOffline SyncAgentState = "Offline" SyncAgentStateOnline SyncAgentState = "Online" )
func (*SyncAgentState) UnmarshalJSON ¶
func (s *SyncAgentState) UnmarshalJSON(bytes []byte) error
type SyncAgentsClient ¶
type SyncAgentsClient struct {
Client *resourcemanager.Client
}
func NewSyncAgentsClientWithBaseURI ¶
func NewSyncAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*SyncAgentsClient, error)
func (SyncAgentsClient) CreateOrUpdate ¶
func (c SyncAgentsClient) CreateOrUpdate(ctx context.Context, id SyncAgentId, input SyncAgent) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SyncAgentsClient) CreateOrUpdateThenPoll ¶
func (c SyncAgentsClient) CreateOrUpdateThenPoll(ctx context.Context, id SyncAgentId, input SyncAgent) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (SyncAgentsClient) Delete ¶
func (c SyncAgentsClient) Delete(ctx context.Context, id SyncAgentId) (result DeleteOperationResponse, err error)
Delete ...
func (SyncAgentsClient) DeleteThenPoll ¶
func (c SyncAgentsClient) DeleteThenPoll(ctx context.Context, id SyncAgentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SyncAgentsClient) GenerateKey ¶
func (c SyncAgentsClient) GenerateKey(ctx context.Context, id SyncAgentId) (result GenerateKeyOperationResponse, err error)
GenerateKey ...
func (SyncAgentsClient) Get ¶
func (c SyncAgentsClient) Get(ctx context.Context, id SyncAgentId) (result GetOperationResponse, err error)
Get ...
func (SyncAgentsClient) ListByServer ¶
func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (SyncAgentsClient) ListByServerComplete ¶
func (c SyncAgentsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (SyncAgentsClient) ListByServerCompleteMatchingPredicate ¶
func (c SyncAgentsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, predicate SyncAgentOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SyncAgentsClient) ListLinkedDatabases ¶
func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentId) (result ListLinkedDatabasesOperationResponse, err error)
ListLinkedDatabases ...
func (SyncAgentsClient) ListLinkedDatabasesComplete ¶
func (c SyncAgentsClient) ListLinkedDatabasesComplete(ctx context.Context, id SyncAgentId) (ListLinkedDatabasesCompleteResult, error)
ListLinkedDatabasesComplete retrieves all the results into a single object
func (SyncAgentsClient) ListLinkedDatabasesCompleteMatchingPredicate ¶
func (c SyncAgentsClient) ListLinkedDatabasesCompleteMatchingPredicate(ctx context.Context, id SyncAgentId, predicate SyncAgentLinkedDatabaseOperationPredicate) (result ListLinkedDatabasesCompleteResult, err error)
ListLinkedDatabasesCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SyncMemberDbType ¶
type SyncMemberDbType string
const ( SyncMemberDbTypeAzureSqlDatabase SyncMemberDbType = "AzureSqlDatabase" SyncMemberDbTypeSqlServerDatabase SyncMemberDbType = "SqlServerDatabase" )
func (*SyncMemberDbType) UnmarshalJSON ¶
func (s *SyncMemberDbType) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_syncagent.go
- method_createorupdate.go
- method_delete.go
- method_generatekey.go
- method_get.go
- method_listbyserver.go
- method_listlinkeddatabases.go
- model_syncagent.go
- model_syncagentkeyproperties.go
- model_syncagentlinkeddatabase.go
- model_syncagentlinkeddatabaseproperties.go
- model_syncagentproperties.go
- predicates.go
- version.go