syncgroups

package
v0.20241023.1122425 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/syncgroups Documentation

The syncgroups SDK allows for interaction with Azure Resource Manager sql (API Version 2023-08-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/syncgroups"

Client Initialization

client := syncgroups.NewSyncGroupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SyncGroupsClient.CancelSync

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

read, err := client.CancelSync(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SyncGroupsClient.CreateOrUpdate

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

payload := syncgroups.SyncGroup{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SyncGroupsClient.Delete

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SyncGroupsClient.Get

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SyncGroupsClient.ListByDatabase

ctx := context.TODO()
id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName")

// alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination
items, err := client.ListByDatabaseComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SyncGroupsClient.ListHubSchemas

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

// alternatively `client.ListHubSchemas(ctx, id)` can be used to do batched pagination
items, err := client.ListHubSchemasComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SyncGroupsClient.ListLogs

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

// alternatively `client.ListLogs(ctx, id, syncgroups.DefaultListLogsOperationOptions())` can be used to do batched pagination
items, err := client.ListLogsComplete(ctx, id, syncgroups.DefaultListLogsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SyncGroupsClient.ListSyncDatabaseIds

ctx := context.TODO()
id := syncgroups.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName")

// alternatively `client.ListSyncDatabaseIds(ctx, id)` can be used to do batched pagination
items, err := client.ListSyncDatabaseIdsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SyncGroupsClient.RefreshHubSchema

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

if err := client.RefreshHubSchemaThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SyncGroupsClient.TriggerSync

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

read, err := client.TriggerSync(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SyncGroupsClient.Update

ctx := context.TODO()
id := syncgroups.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "syncGroupName")

payload := syncgroups.SyncGroup{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSyncConflictResolutionPolicy

func PossibleValuesForSyncConflictResolutionPolicy() []string

func PossibleValuesForSyncGroupLogType

func PossibleValuesForSyncGroupLogType() []string

func PossibleValuesForSyncGroupState

func PossibleValuesForSyncGroupState() []string

func PossibleValuesForSyncGroupsType

func PossibleValuesForSyncGroupsType() []string

func ValidateLocationID

func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateSyncGroupID

func ValidateSyncGroupID(input interface{}, key string) (warnings []string, errors []error)

ValidateSyncGroupID checks that 'input' can be parsed as a Sync Group ID

Types

type CancelSyncOperationResponse

type CancelSyncOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SyncGroup
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SyncGroup
}

type ListByDatabaseCompleteResult

type ListByDatabaseCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SyncGroup
}

type ListByDatabaseCustomPager

type ListByDatabaseCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link

type ListByDatabaseOperationResponse

type ListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SyncGroup
}

type ListHubSchemasCompleteResult

type ListHubSchemasCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SyncFullSchemaProperties
}

type ListHubSchemasCustomPager

type ListHubSchemasCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListHubSchemasCustomPager) NextPageLink() *odata.Link

type ListHubSchemasOperationResponse

type ListHubSchemasOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SyncFullSchemaProperties
}

type ListLogsCompleteResult

type ListLogsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SyncGroupLogProperties
}

type ListLogsCustomPager

type ListLogsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListLogsCustomPager) NextPageLink() *odata.Link

type ListLogsOperationOptions

type ListLogsOperationOptions struct {
	ContinuationToken *string
	EndTime           *string
	StartTime         *string
	Type              *SyncGroupsType
}

func DefaultListLogsOperationOptions

func DefaultListLogsOperationOptions() ListLogsOperationOptions

func (ListLogsOperationOptions) ToHeaders

func (o ListLogsOperationOptions) ToHeaders() *client.Headers

func (ListLogsOperationOptions) ToOData

func (o ListLogsOperationOptions) ToOData() *odata.Query

func (ListLogsOperationOptions) ToQuery

type ListLogsOperationResponse

type ListLogsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SyncGroupLogProperties
}

type ListSyncDatabaseIdsCompleteResult

type ListSyncDatabaseIdsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SyncDatabaseIdProperties
}

type ListSyncDatabaseIdsCustomPager

type ListSyncDatabaseIdsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListSyncDatabaseIdsCustomPager) NextPageLink() *odata.Link

type ListSyncDatabaseIdsOperationResponse

type ListSyncDatabaseIdsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SyncDatabaseIdProperties
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (*LocationId) FromParseResult

func (id *LocationId) FromParseResult(input resourceids.ParseResult) error

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

func (id LocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type RefreshHubSchemaOperationResponse

type RefreshHubSchemaOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type Sku

type Sku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Family   *string `json:"family,omitempty"`
	Name     string  `json:"name"`
	Size     *string `json:"size,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

type SyncConflictResolutionPolicy

type SyncConflictResolutionPolicy string
const (
	SyncConflictResolutionPolicyHubWin    SyncConflictResolutionPolicy = "HubWin"
	SyncConflictResolutionPolicyMemberWin SyncConflictResolutionPolicy = "MemberWin"
)

func (*SyncConflictResolutionPolicy) UnmarshalJSON

func (s *SyncConflictResolutionPolicy) UnmarshalJSON(bytes []byte) error

type SyncDatabaseIdProperties

type SyncDatabaseIdProperties struct {
	Id *string `json:"id,omitempty"`
}

type SyncDatabaseIdPropertiesOperationPredicate

type SyncDatabaseIdPropertiesOperationPredicate struct {
	Id *string
}

func (SyncDatabaseIdPropertiesOperationPredicate) Matches

type SyncFullSchemaProperties

type SyncFullSchemaProperties struct {
	LastUpdateTime *string                `json:"lastUpdateTime,omitempty"`
	Tables         *[]SyncFullSchemaTable `json:"tables,omitempty"`
}

func (*SyncFullSchemaProperties) GetLastUpdateTimeAsTime

func (o *SyncFullSchemaProperties) GetLastUpdateTimeAsTime() (*time.Time, error)

func (*SyncFullSchemaProperties) SetLastUpdateTimeAsTime

func (o *SyncFullSchemaProperties) SetLastUpdateTimeAsTime(input time.Time)

type SyncFullSchemaPropertiesOperationPredicate

type SyncFullSchemaPropertiesOperationPredicate struct {
	LastUpdateTime *string
}

func (SyncFullSchemaPropertiesOperationPredicate) Matches

type SyncFullSchemaTable

type SyncFullSchemaTable struct {
	Columns    *[]SyncFullSchemaTableColumn `json:"columns,omitempty"`
	ErrorId    *string                      `json:"errorId,omitempty"`
	HasError   *bool                        `json:"hasError,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	QuotedName *string                      `json:"quotedName,omitempty"`
}

type SyncFullSchemaTableColumn

type SyncFullSchemaTableColumn struct {
	DataSize     *string `json:"dataSize,omitempty"`
	DataType     *string `json:"dataType,omitempty"`
	ErrorId      *string `json:"errorId,omitempty"`
	HasError     *bool   `json:"hasError,omitempty"`
	IsPrimaryKey *bool   `json:"isPrimaryKey,omitempty"`
	Name         *string `json:"name,omitempty"`
	QuotedName   *string `json:"quotedName,omitempty"`
}

type SyncGroup

type SyncGroup struct {
	Id         *string              `json:"id,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties *SyncGroupProperties `json:"properties,omitempty"`
	Sku        *Sku                 `json:"sku,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type SyncGroupId

type SyncGroupId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
	SyncGroupName     string
}

SyncGroupId is a struct representing the Resource ID for a Sync Group

func NewSyncGroupID

func NewSyncGroupID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, syncGroupName string) SyncGroupId

NewSyncGroupID returns a new SyncGroupId struct

func ParseSyncGroupID

func ParseSyncGroupID(input string) (*SyncGroupId, error)

ParseSyncGroupID parses 'input' into a SyncGroupId

func ParseSyncGroupIDInsensitively

func ParseSyncGroupIDInsensitively(input string) (*SyncGroupId, error)

ParseSyncGroupIDInsensitively parses 'input' case-insensitively into a SyncGroupId note: this method should only be used for API response data and not user input

func (*SyncGroupId) FromParseResult

func (id *SyncGroupId) FromParseResult(input resourceids.ParseResult) error

func (SyncGroupId) ID

func (id SyncGroupId) ID() string

ID returns the formatted Sync Group ID

func (SyncGroupId) Segments

func (id SyncGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Sync Group ID

func (SyncGroupId) String

func (id SyncGroupId) String() string

String returns a human-readable description of this Sync Group ID

type SyncGroupLogProperties

type SyncGroupLogProperties struct {
	Details         *string           `json:"details,omitempty"`
	OperationStatus *string           `json:"operationStatus,omitempty"`
	Source          *string           `json:"source,omitempty"`
	Timestamp       *string           `json:"timestamp,omitempty"`
	TracingId       *string           `json:"tracingId,omitempty"`
	Type            *SyncGroupLogType `json:"type,omitempty"`
}

func (*SyncGroupLogProperties) GetTimestampAsTime

func (o *SyncGroupLogProperties) GetTimestampAsTime() (*time.Time, error)

func (*SyncGroupLogProperties) SetTimestampAsTime

func (o *SyncGroupLogProperties) SetTimestampAsTime(input time.Time)

type SyncGroupLogPropertiesOperationPredicate

type SyncGroupLogPropertiesOperationPredicate struct {
	Details         *string
	OperationStatus *string
	Source          *string
	Timestamp       *string
	TracingId       *string
}

func (SyncGroupLogPropertiesOperationPredicate) Matches

type SyncGroupLogType

type SyncGroupLogType string
const (
	SyncGroupLogTypeAll     SyncGroupLogType = "All"
	SyncGroupLogTypeError   SyncGroupLogType = "Error"
	SyncGroupLogTypeSuccess SyncGroupLogType = "Success"
	SyncGroupLogTypeWarning SyncGroupLogType = "Warning"
)

func (*SyncGroupLogType) UnmarshalJSON

func (s *SyncGroupLogType) UnmarshalJSON(bytes []byte) error

type SyncGroupOperationPredicate

type SyncGroupOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SyncGroupOperationPredicate) Matches

func (p SyncGroupOperationPredicate) Matches(input SyncGroup) bool

type SyncGroupProperties

type SyncGroupProperties struct {
	ConflictLoggingRetentionInDays *int64                        `json:"conflictLoggingRetentionInDays,omitempty"`
	ConflictResolutionPolicy       *SyncConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"`
	EnableConflictLogging          *bool                         `json:"enableConflictLogging,omitempty"`
	HubDatabasePassword            *string                       `json:"hubDatabasePassword,omitempty"`
	HubDatabaseUserName            *string                       `json:"hubDatabaseUserName,omitempty"`
	Interval                       *int64                        `json:"interval,omitempty"`
	LastSyncTime                   *string                       `json:"lastSyncTime,omitempty"`
	PrivateEndpointName            *string                       `json:"privateEndpointName,omitempty"`
	Schema                         *SyncGroupSchema              `json:"schema,omitempty"`
	SyncDatabaseId                 *string                       `json:"syncDatabaseId,omitempty"`
	SyncState                      *SyncGroupState               `json:"syncState,omitempty"`
	UsePrivateLinkConnection       *bool                         `json:"usePrivateLinkConnection,omitempty"`
}

func (*SyncGroupProperties) GetLastSyncTimeAsTime

func (o *SyncGroupProperties) GetLastSyncTimeAsTime() (*time.Time, error)

func (*SyncGroupProperties) SetLastSyncTimeAsTime

func (o *SyncGroupProperties) SetLastSyncTimeAsTime(input time.Time)

type SyncGroupSchema

type SyncGroupSchema struct {
	MasterSyncMemberName *string                 `json:"masterSyncMemberName,omitempty"`
	Tables               *[]SyncGroupSchemaTable `json:"tables,omitempty"`
}

type SyncGroupSchemaTable

type SyncGroupSchemaTable struct {
	Columns    *[]SyncGroupSchemaTableColumn `json:"columns,omitempty"`
	QuotedName *string                       `json:"quotedName,omitempty"`
}

type SyncGroupSchemaTableColumn

type SyncGroupSchemaTableColumn struct {
	DataSize   *string `json:"dataSize,omitempty"`
	DataType   *string `json:"dataType,omitempty"`
	QuotedName *string `json:"quotedName,omitempty"`
}

type SyncGroupState

type SyncGroupState string
const (
	SyncGroupStateError       SyncGroupState = "Error"
	SyncGroupStateGood        SyncGroupState = "Good"
	SyncGroupStateNotReady    SyncGroupState = "NotReady"
	SyncGroupStateProgressing SyncGroupState = "Progressing"
	SyncGroupStateWarning     SyncGroupState = "Warning"
)

func (*SyncGroupState) UnmarshalJSON

func (s *SyncGroupState) UnmarshalJSON(bytes []byte) error

type SyncGroupsClient

type SyncGroupsClient struct {
	Client *resourcemanager.Client
}

func NewSyncGroupsClientWithBaseURI

func NewSyncGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*SyncGroupsClient, error)

func (SyncGroupsClient) CancelSync

func (c SyncGroupsClient) CancelSync(ctx context.Context, id SyncGroupId) (result CancelSyncOperationResponse, err error)

CancelSync ...

func (SyncGroupsClient) CreateOrUpdate

func (c SyncGroupsClient) CreateOrUpdate(ctx context.Context, id SyncGroupId, input SyncGroup) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (SyncGroupsClient) CreateOrUpdateThenPoll

func (c SyncGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id SyncGroupId, input SyncGroup) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (SyncGroupsClient) Delete

func (c SyncGroupsClient) Delete(ctx context.Context, id SyncGroupId) (result DeleteOperationResponse, err error)

Delete ...

func (SyncGroupsClient) DeleteThenPoll

func (c SyncGroupsClient) DeleteThenPoll(ctx context.Context, id SyncGroupId) error

DeleteThenPoll performs Delete then polls until it's completed

func (SyncGroupsClient) Get

Get ...

func (SyncGroupsClient) ListByDatabase

ListByDatabase ...

func (SyncGroupsClient) ListByDatabaseComplete

ListByDatabaseComplete retrieves all the results into a single object

func (SyncGroupsClient) ListByDatabaseCompleteMatchingPredicate

func (c SyncGroupsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, predicate SyncGroupOperationPredicate) (result ListByDatabaseCompleteResult, err error)

ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncGroupsClient) ListHubSchemas

func (c SyncGroupsClient) ListHubSchemas(ctx context.Context, id SyncGroupId) (result ListHubSchemasOperationResponse, err error)

ListHubSchemas ...

func (SyncGroupsClient) ListHubSchemasComplete

func (c SyncGroupsClient) ListHubSchemasComplete(ctx context.Context, id SyncGroupId) (ListHubSchemasCompleteResult, error)

ListHubSchemasComplete retrieves all the results into a single object

func (SyncGroupsClient) ListHubSchemasCompleteMatchingPredicate

func (c SyncGroupsClient) ListHubSchemasCompleteMatchingPredicate(ctx context.Context, id SyncGroupId, predicate SyncFullSchemaPropertiesOperationPredicate) (result ListHubSchemasCompleteResult, err error)

ListHubSchemasCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncGroupsClient) ListLogs

ListLogs ...

func (SyncGroupsClient) ListLogsComplete

ListLogsComplete retrieves all the results into a single object

func (SyncGroupsClient) ListLogsCompleteMatchingPredicate

func (c SyncGroupsClient) ListLogsCompleteMatchingPredicate(ctx context.Context, id SyncGroupId, options ListLogsOperationOptions, predicate SyncGroupLogPropertiesOperationPredicate) (result ListLogsCompleteResult, err error)

ListLogsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncGroupsClient) ListSyncDatabaseIds

func (c SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, id LocationId) (result ListSyncDatabaseIdsOperationResponse, err error)

ListSyncDatabaseIds ...

func (SyncGroupsClient) ListSyncDatabaseIdsComplete

func (c SyncGroupsClient) ListSyncDatabaseIdsComplete(ctx context.Context, id LocationId) (ListSyncDatabaseIdsCompleteResult, error)

ListSyncDatabaseIdsComplete retrieves all the results into a single object

func (SyncGroupsClient) ListSyncDatabaseIdsCompleteMatchingPredicate

func (c SyncGroupsClient) ListSyncDatabaseIdsCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate SyncDatabaseIdPropertiesOperationPredicate) (result ListSyncDatabaseIdsCompleteResult, err error)

ListSyncDatabaseIdsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncGroupsClient) RefreshHubSchema

func (c SyncGroupsClient) RefreshHubSchema(ctx context.Context, id SyncGroupId) (result RefreshHubSchemaOperationResponse, err error)

RefreshHubSchema ...

func (SyncGroupsClient) RefreshHubSchemaThenPoll

func (c SyncGroupsClient) RefreshHubSchemaThenPoll(ctx context.Context, id SyncGroupId) error

RefreshHubSchemaThenPoll performs RefreshHubSchema then polls until it's completed

func (SyncGroupsClient) TriggerSync

func (c SyncGroupsClient) TriggerSync(ctx context.Context, id SyncGroupId) (result TriggerSyncOperationResponse, err error)

TriggerSync ...

func (SyncGroupsClient) Update

func (c SyncGroupsClient) Update(ctx context.Context, id SyncGroupId, input SyncGroup) (result UpdateOperationResponse, err error)

Update ...

func (SyncGroupsClient) UpdateThenPoll

func (c SyncGroupsClient) UpdateThenPoll(ctx context.Context, id SyncGroupId, input SyncGroup) error

UpdateThenPoll performs Update then polls until it's completed

type SyncGroupsType

type SyncGroupsType string
const (
	SyncGroupsTypeAll     SyncGroupsType = "All"
	SyncGroupsTypeError   SyncGroupsType = "Error"
	SyncGroupsTypeSuccess SyncGroupsType = "Success"
	SyncGroupsTypeWarning SyncGroupsType = "Warning"
)

func (*SyncGroupsType) UnmarshalJSON

func (s *SyncGroupsType) UnmarshalJSON(bytes []byte) error

type TriggerSyncOperationResponse

type TriggerSyncOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SyncGroup
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL