serverendpointresource

package
v0.20230607.1075732 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource Documentation

The serverendpointresource SDK allows for interaction with the Azure Resource Manager Service storagesync (API Version 2020-03-01).

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-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource"

Client Initialization

client := serverendpointresource.NewServerEndpointResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerEndpointResourceClient.ServerEndpointsCreate

ctx := context.TODO()
id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue")

payload := serverendpointresource.ServerEndpointCreateParameters{
	// ...
}


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

Example Usage: ServerEndpointResourceClient.ServerEndpointsDelete

ctx := context.TODO()
id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue")

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

Example Usage: ServerEndpointResourceClient.ServerEndpointsGet

ctx := context.TODO()
id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue")

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

Example Usage: ServerEndpointResourceClient.ServerEndpointsListBySyncGroup

ctx := context.TODO()
id := serverendpointresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue")

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

Example Usage: ServerEndpointResourceClient.ServerEndpointsUpdate

ctx := context.TODO()
id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue")

payload := serverendpointresource.ServerEndpointUpdateParameters{
	// ...
}


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

Example Usage: ServerEndpointResourceClient.ServerEndpointsrecallAction

ctx := context.TODO()
id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue")

payload := serverendpointresource.RecallActionParameters{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFeatureStatus

func PossibleValuesForFeatureStatus() []string

func PossibleValuesForInitialDownloadPolicy

func PossibleValuesForInitialDownloadPolicy() []string

func PossibleValuesForLocalCacheMode

func PossibleValuesForLocalCacheMode() []string

func PossibleValuesForServerEndpointCloudTieringHealthState

func PossibleValuesForServerEndpointCloudTieringHealthState() []string

func PossibleValuesForServerEndpointOfflineDataTransferState

func PossibleValuesForServerEndpointOfflineDataTransferState() []string

func PossibleValuesForServerEndpointSyncActivityState

func PossibleValuesForServerEndpointSyncActivityState() []string

func PossibleValuesForServerEndpointSyncHealthState

func PossibleValuesForServerEndpointSyncHealthState() []string

func PossibleValuesForServerEndpointSyncMode

func PossibleValuesForServerEndpointSyncMode() []string

func ValidateServerEndpointID

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

ValidateServerEndpointID checks that 'input' can be parsed as a Server Endpoint 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 CloudTieringCachePerformance

type CloudTieringCachePerformance struct {
	CacheHitBytes        *int64  `json:"cacheHitBytes,omitempty"`
	CacheHitBytesPercent *int64  `json:"cacheHitBytesPercent,omitempty"`
	CacheMissBytes       *int64  `json:"cacheMissBytes,omitempty"`
	LastUpdatedTimestamp *string `json:"lastUpdatedTimestamp,omitempty"`
}

func (*CloudTieringCachePerformance) GetLastUpdatedTimestampAsTime

func (o *CloudTieringCachePerformance) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*CloudTieringCachePerformance) SetLastUpdatedTimestampAsTime

func (o *CloudTieringCachePerformance) SetLastUpdatedTimestampAsTime(input time.Time)

type CloudTieringDatePolicyStatus

type CloudTieringDatePolicyStatus struct {
	LastUpdatedTimestamp                 *string `json:"lastUpdatedTimestamp,omitempty"`
	TieredFilesMostRecentAccessTimestamp *string `json:"tieredFilesMostRecentAccessTimestamp,omitempty"`
}

func (*CloudTieringDatePolicyStatus) GetLastUpdatedTimestampAsTime

func (o *CloudTieringDatePolicyStatus) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*CloudTieringDatePolicyStatus) GetTieredFilesMostRecentAccessTimestampAsTime

func (o *CloudTieringDatePolicyStatus) GetTieredFilesMostRecentAccessTimestampAsTime() (*time.Time, error)

func (*CloudTieringDatePolicyStatus) SetLastUpdatedTimestampAsTime

func (o *CloudTieringDatePolicyStatus) SetLastUpdatedTimestampAsTime(input time.Time)

func (*CloudTieringDatePolicyStatus) SetTieredFilesMostRecentAccessTimestampAsTime

func (o *CloudTieringDatePolicyStatus) SetTieredFilesMostRecentAccessTimestampAsTime(input time.Time)

type CloudTieringFilesNotTiering

type CloudTieringFilesNotTiering struct {
	Errors               *[]FilesNotTieringError `json:"errors,omitempty"`
	LastUpdatedTimestamp *string                 `json:"lastUpdatedTimestamp,omitempty"`
	TotalFileCount       *int64                  `json:"totalFileCount,omitempty"`
}

func (*CloudTieringFilesNotTiering) GetLastUpdatedTimestampAsTime

func (o *CloudTieringFilesNotTiering) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*CloudTieringFilesNotTiering) SetLastUpdatedTimestampAsTime

func (o *CloudTieringFilesNotTiering) SetLastUpdatedTimestampAsTime(input time.Time)

type CloudTieringSpaceSavings

type CloudTieringSpaceSavings struct {
	CachedSizeBytes      *int64  `json:"cachedSizeBytes,omitempty"`
	LastUpdatedTimestamp *string `json:"lastUpdatedTimestamp,omitempty"`
	SpaceSavingsBytes    *int64  `json:"spaceSavingsBytes,omitempty"`
	SpaceSavingsPercent  *int64  `json:"spaceSavingsPercent,omitempty"`
	TotalSizeCloudBytes  *int64  `json:"totalSizeCloudBytes,omitempty"`
	VolumeSizeBytes      *int64  `json:"volumeSizeBytes,omitempty"`
}

func (*CloudTieringSpaceSavings) GetLastUpdatedTimestampAsTime

func (o *CloudTieringSpaceSavings) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*CloudTieringSpaceSavings) SetLastUpdatedTimestampAsTime

func (o *CloudTieringSpaceSavings) SetLastUpdatedTimestampAsTime(input time.Time)

type CloudTieringVolumeFreeSpacePolicyStatus

type CloudTieringVolumeFreeSpacePolicyStatus struct {
	CurrentVolumeFreeSpacePercent  *int64  `json:"currentVolumeFreeSpacePercent,omitempty"`
	EffectiveVolumeFreeSpacePolicy *int64  `json:"effectiveVolumeFreeSpacePolicy,omitempty"`
	LastUpdatedTimestamp           *string `json:"lastUpdatedTimestamp,omitempty"`
}

func (*CloudTieringVolumeFreeSpacePolicyStatus) GetLastUpdatedTimestampAsTime

func (o *CloudTieringVolumeFreeSpacePolicyStatus) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*CloudTieringVolumeFreeSpacePolicyStatus) SetLastUpdatedTimestampAsTime

func (o *CloudTieringVolumeFreeSpacePolicyStatus) SetLastUpdatedTimestampAsTime(input time.Time)

type FeatureStatus

type FeatureStatus string
const (
	FeatureStatusOff FeatureStatus = "off"
	FeatureStatusOn  FeatureStatus = "on"
)

func (*FeatureStatus) UnmarshalJSON added in v0.20230516.1215417

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

type FilesNotTieringError

type FilesNotTieringError struct {
	ErrorCode *int64 `json:"errorCode,omitempty"`
	FileCount *int64 `json:"fileCount,omitempty"`
}

type InitialDownloadPolicy

type InitialDownloadPolicy string
const (
	InitialDownloadPolicyAvoidTieredFiles           InitialDownloadPolicy = "AvoidTieredFiles"
	InitialDownloadPolicyNamespaceOnly              InitialDownloadPolicy = "NamespaceOnly"
	InitialDownloadPolicyNamespaceThenModifiedFiles InitialDownloadPolicy = "NamespaceThenModifiedFiles"
)

func (*InitialDownloadPolicy) UnmarshalJSON added in v0.20230516.1215417

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

type LocalCacheMode

type LocalCacheMode string
const (
	LocalCacheModeDownloadNewAndModifiedFiles LocalCacheMode = "DownloadNewAndModifiedFiles"
	LocalCacheModeUpdateLocallyCachedFiles    LocalCacheMode = "UpdateLocallyCachedFiles"
)

func (*LocalCacheMode) UnmarshalJSON added in v0.20230516.1215417

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

type RecallActionParameters

type RecallActionParameters struct {
	Pattern    *string `json:"pattern,omitempty"`
	RecallPath *string `json:"recallPath,omitempty"`
}

type ServerEndpoint

type ServerEndpoint struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *ServerEndpointProperties `json:"properties,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type ServerEndpointArray

type ServerEndpointArray struct {
	Value *[]ServerEndpoint `json:"value,omitempty"`
}

type ServerEndpointCloudTieringHealthState

type ServerEndpointCloudTieringHealthState string
const (
	ServerEndpointCloudTieringHealthStateError   ServerEndpointCloudTieringHealthState = "Error"
	ServerEndpointCloudTieringHealthStateHealthy ServerEndpointCloudTieringHealthState = "Healthy"
)

func (*ServerEndpointCloudTieringHealthState) UnmarshalJSON added in v0.20230516.1215417

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

type ServerEndpointCloudTieringStatus

type ServerEndpointCloudTieringStatus struct {
	CachePerformance            *CloudTieringCachePerformance            `json:"cachePerformance,omitempty"`
	DatePolicyStatus            *CloudTieringDatePolicyStatus            `json:"datePolicyStatus,omitempty"`
	FilesNotTiering             *CloudTieringFilesNotTiering             `json:"filesNotTiering,omitempty"`
	Health                      *ServerEndpointCloudTieringHealthState   `json:"health,omitempty"`
	HealthLastUpdatedTimestamp  *string                                  `json:"healthLastUpdatedTimestamp,omitempty"`
	LastCloudTieringResult      *int64                                   `json:"lastCloudTieringResult,omitempty"`
	LastSuccessTimestamp        *string                                  `json:"lastSuccessTimestamp,omitempty"`
	LastUpdatedTimestamp        *string                                  `json:"lastUpdatedTimestamp,omitempty"`
	SpaceSavings                *CloudTieringSpaceSavings                `json:"spaceSavings,omitempty"`
	VolumeFreeSpacePolicyStatus *CloudTieringVolumeFreeSpacePolicyStatus `json:"volumeFreeSpacePolicyStatus,omitempty"`
}

func (*ServerEndpointCloudTieringStatus) GetHealthLastUpdatedTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) GetHealthLastUpdatedTimestampAsTime() (*time.Time, error)

func (*ServerEndpointCloudTieringStatus) GetLastSuccessTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) GetLastSuccessTimestampAsTime() (*time.Time, error)

func (*ServerEndpointCloudTieringStatus) GetLastUpdatedTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*ServerEndpointCloudTieringStatus) SetHealthLastUpdatedTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) SetHealthLastUpdatedTimestampAsTime(input time.Time)

func (*ServerEndpointCloudTieringStatus) SetLastSuccessTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) SetLastSuccessTimestampAsTime(input time.Time)

func (*ServerEndpointCloudTieringStatus) SetLastUpdatedTimestampAsTime

func (o *ServerEndpointCloudTieringStatus) SetLastUpdatedTimestampAsTime(input time.Time)

type ServerEndpointCreateParameters

type ServerEndpointCreateParameters struct {
	Id         *string                                   `json:"id,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties *ServerEndpointCreateParametersProperties `json:"properties,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type ServerEndpointCreateParametersProperties

type ServerEndpointCreateParametersProperties struct {
	CloudTiering                 *FeatureStatus         `json:"cloudTiering,omitempty"`
	FriendlyName                 *string                `json:"friendlyName,omitempty"`
	InitialDownloadPolicy        *InitialDownloadPolicy `json:"initialDownloadPolicy,omitempty"`
	LocalCacheMode               *LocalCacheMode        `json:"localCacheMode,omitempty"`
	OfflineDataTransfer          *FeatureStatus         `json:"offlineDataTransfer,omitempty"`
	OfflineDataTransferShareName *string                `json:"offlineDataTransferShareName,omitempty"`
	ServerLocalPath              *string                `json:"serverLocalPath,omitempty"`
	ServerResourceId             *string                `json:"serverResourceId,omitempty"`
	TierFilesOlderThanDays       *int64                 `json:"tierFilesOlderThanDays,omitempty"`
	VolumeFreeSpacePercent       *int64                 `json:"volumeFreeSpacePercent,omitempty"`
}

type ServerEndpointFilesNotSyncingError

type ServerEndpointFilesNotSyncingError struct {
	ErrorCode       *int64 `json:"errorCode,omitempty"`
	PersistentCount *int64 `json:"persistentCount,omitempty"`
	TransientCount  *int64 `json:"transientCount,omitempty"`
}

type ServerEndpointId

type ServerEndpointId struct {
	SubscriptionId         string
	ResourceGroupName      string
	StorageSyncServiceName string
	SyncGroupName          string
	ServerEndpointName     string
}

ServerEndpointId is a struct representing the Resource ID for a Server Endpoint

func NewServerEndpointID

func NewServerEndpointID(subscriptionId string, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) ServerEndpointId

NewServerEndpointID returns a new ServerEndpointId struct

func ParseServerEndpointID

func ParseServerEndpointID(input string) (*ServerEndpointId, error)

ParseServerEndpointID parses 'input' into a ServerEndpointId

func ParseServerEndpointIDInsensitively

func ParseServerEndpointIDInsensitively(input string) (*ServerEndpointId, error)

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

func (ServerEndpointId) ID

func (id ServerEndpointId) ID() string

ID returns the formatted Server Endpoint ID

func (ServerEndpointId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Server Endpoint ID

func (ServerEndpointId) String

func (id ServerEndpointId) String() string

String returns a human-readable description of this Server Endpoint ID

type ServerEndpointOfflineDataTransferState

type ServerEndpointOfflineDataTransferState string
const (
	ServerEndpointOfflineDataTransferStateComplete   ServerEndpointOfflineDataTransferState = "Complete"
	ServerEndpointOfflineDataTransferStateInProgress ServerEndpointOfflineDataTransferState = "InProgress"
	ServerEndpointOfflineDataTransferStateNotRunning ServerEndpointOfflineDataTransferState = "NotRunning"
	ServerEndpointOfflineDataTransferStateStopping   ServerEndpointOfflineDataTransferState = "Stopping"
)

func (*ServerEndpointOfflineDataTransferState) UnmarshalJSON added in v0.20230516.1215417

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

type ServerEndpointProperties

type ServerEndpointProperties struct {
	CloudTiering                                *FeatureStatus                    `json:"cloudTiering,omitempty"`
	CloudTieringStatus                          *ServerEndpointCloudTieringStatus `json:"cloudTieringStatus,omitempty"`
	FriendlyName                                *string                           `json:"friendlyName,omitempty"`
	InitialDownloadPolicy                       *InitialDownloadPolicy            `json:"initialDownloadPolicy,omitempty"`
	LastOperationName                           *string                           `json:"lastOperationName,omitempty"`
	LastWorkflowId                              *string                           `json:"lastWorkflowId,omitempty"`
	LocalCacheMode                              *LocalCacheMode                   `json:"localCacheMode,omitempty"`
	OfflineDataTransfer                         *FeatureStatus                    `json:"offlineDataTransfer,omitempty"`
	OfflineDataTransferShareName                *string                           `json:"offlineDataTransferShareName,omitempty"`
	OfflineDataTransferStorageAccountResourceId *string                           `json:"offlineDataTransferStorageAccountResourceId,omitempty"`
	OfflineDataTransferStorageAccountTenantId   *string                           `json:"offlineDataTransferStorageAccountTenantId,omitempty"`
	ProvisioningState                           *string                           `json:"provisioningState,omitempty"`
	RecallStatus                                *ServerEndpointRecallStatus       `json:"recallStatus,omitempty"`
	ServerLocalPath                             *string                           `json:"serverLocalPath,omitempty"`
	ServerResourceId                            *string                           `json:"serverResourceId,omitempty"`
	SyncStatus                                  *ServerEndpointSyncStatus         `json:"syncStatus,omitempty"`
	TierFilesOlderThanDays                      *int64                            `json:"tierFilesOlderThanDays,omitempty"`
	VolumeFreeSpacePercent                      *int64                            `json:"volumeFreeSpacePercent,omitempty"`
}

type ServerEndpointRecallError

type ServerEndpointRecallError struct {
	Count     *int64 `json:"count,omitempty"`
	ErrorCode *int64 `json:"errorCode,omitempty"`
}

type ServerEndpointRecallStatus

type ServerEndpointRecallStatus struct {
	LastUpdatedTimestamp   *string                      `json:"lastUpdatedTimestamp,omitempty"`
	RecallErrors           *[]ServerEndpointRecallError `json:"recallErrors,omitempty"`
	TotalRecallErrorsCount *int64                       `json:"totalRecallErrorsCount,omitempty"`
}

func (*ServerEndpointRecallStatus) GetLastUpdatedTimestampAsTime

func (o *ServerEndpointRecallStatus) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*ServerEndpointRecallStatus) SetLastUpdatedTimestampAsTime

func (o *ServerEndpointRecallStatus) SetLastUpdatedTimestampAsTime(input time.Time)

type ServerEndpointResourceClient

type ServerEndpointResourceClient struct {
	Client *resourcemanager.Client
}

func NewServerEndpointResourceClientWithBaseURI

func NewServerEndpointResourceClientWithBaseURI(api environments.Api) (*ServerEndpointResourceClient, error)

func (ServerEndpointResourceClient) ServerEndpointsCreate

ServerEndpointsCreate ...

func (ServerEndpointResourceClient) ServerEndpointsCreateThenPoll

func (c ServerEndpointResourceClient) ServerEndpointsCreateThenPoll(ctx context.Context, id ServerEndpointId, input ServerEndpointCreateParameters) error

ServerEndpointsCreateThenPoll performs ServerEndpointsCreate then polls until it's completed

func (ServerEndpointResourceClient) ServerEndpointsDelete

ServerEndpointsDelete ...

func (ServerEndpointResourceClient) ServerEndpointsDeleteThenPoll

func (c ServerEndpointResourceClient) ServerEndpointsDeleteThenPoll(ctx context.Context, id ServerEndpointId) error

ServerEndpointsDeleteThenPoll performs ServerEndpointsDelete then polls until it's completed

func (ServerEndpointResourceClient) ServerEndpointsGet

ServerEndpointsGet ...

func (ServerEndpointResourceClient) ServerEndpointsListBySyncGroup

func (c ServerEndpointResourceClient) ServerEndpointsListBySyncGroup(ctx context.Context, id SyncGroupId) (result ServerEndpointsListBySyncGroupOperationResponse, err error)

ServerEndpointsListBySyncGroup ...

func (ServerEndpointResourceClient) ServerEndpointsUpdate

ServerEndpointsUpdate ...

func (ServerEndpointResourceClient) ServerEndpointsUpdateThenPoll

func (c ServerEndpointResourceClient) ServerEndpointsUpdateThenPoll(ctx context.Context, id ServerEndpointId, input ServerEndpointUpdateParameters) error

ServerEndpointsUpdateThenPoll performs ServerEndpointsUpdate then polls until it's completed

func (ServerEndpointResourceClient) ServerEndpointsrecallAction

ServerEndpointsrecallAction ...

func (ServerEndpointResourceClient) ServerEndpointsrecallActionThenPoll

func (c ServerEndpointResourceClient) ServerEndpointsrecallActionThenPoll(ctx context.Context, id ServerEndpointId, input RecallActionParameters) error

ServerEndpointsrecallActionThenPoll performs ServerEndpointsrecallAction then polls until it's completed

type ServerEndpointSyncActivityState

type ServerEndpointSyncActivityState string
const (
	ServerEndpointSyncActivityStateDownload          ServerEndpointSyncActivityState = "Download"
	ServerEndpointSyncActivityStateUpload            ServerEndpointSyncActivityState = "Upload"
	ServerEndpointSyncActivityStateUploadAndDownload ServerEndpointSyncActivityState = "UploadAndDownload"
)

func (*ServerEndpointSyncActivityState) UnmarshalJSON added in v0.20230516.1215417

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

type ServerEndpointSyncActivityStatus

type ServerEndpointSyncActivityStatus struct {
	AppliedBytes      *int64                  `json:"appliedBytes,omitempty"`
	AppliedItemCount  *int64                  `json:"appliedItemCount,omitempty"`
	PerItemErrorCount *int64                  `json:"perItemErrorCount,omitempty"`
	SyncMode          *ServerEndpointSyncMode `json:"syncMode,omitempty"`
	Timestamp         *string                 `json:"timestamp,omitempty"`
	TotalBytes        *int64                  `json:"totalBytes,omitempty"`
	TotalItemCount    *int64                  `json:"totalItemCount,omitempty"`
}

func (*ServerEndpointSyncActivityStatus) GetTimestampAsTime

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

func (*ServerEndpointSyncActivityStatus) SetTimestampAsTime

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

type ServerEndpointSyncHealthState

type ServerEndpointSyncHealthState string
const (
	ServerEndpointSyncHealthStateError                                    ServerEndpointSyncHealthState = "Error"
	ServerEndpointSyncHealthStateHealthy                                  ServerEndpointSyncHealthState = "Healthy"
	ServerEndpointSyncHealthStateNoActivity                               ServerEndpointSyncHealthState = "NoActivity"
	ServerEndpointSyncHealthStateSyncBlockedForChangeDetectionPostRestore ServerEndpointSyncHealthState = "SyncBlockedForChangeDetectionPostRestore"
	ServerEndpointSyncHealthStateSyncBlockedForRestore                    ServerEndpointSyncHealthState = "SyncBlockedForRestore"
)

func (*ServerEndpointSyncHealthState) UnmarshalJSON added in v0.20230516.1215417

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

type ServerEndpointSyncMode

type ServerEndpointSyncMode string
const (
	ServerEndpointSyncModeInitialFullDownload ServerEndpointSyncMode = "InitialFullDownload"
	ServerEndpointSyncModeInitialUpload       ServerEndpointSyncMode = "InitialUpload"
	ServerEndpointSyncModeNamespaceDownload   ServerEndpointSyncMode = "NamespaceDownload"
	ServerEndpointSyncModeRegular             ServerEndpointSyncMode = "Regular"
	ServerEndpointSyncModeSnapshotUpload      ServerEndpointSyncMode = "SnapshotUpload"
)

func (*ServerEndpointSyncMode) UnmarshalJSON added in v0.20230516.1215417

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

type ServerEndpointSyncSessionStatus

type ServerEndpointSyncSessionStatus struct {
	FilesNotSyncingErrors          *[]ServerEndpointFilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"`
	LastSyncMode                   *ServerEndpointSyncMode               `json:"lastSyncMode,omitempty"`
	LastSyncPerItemErrorCount      *int64                                `json:"lastSyncPerItemErrorCount,omitempty"`
	LastSyncResult                 *int64                                `json:"lastSyncResult,omitempty"`
	LastSyncSuccessTimestamp       *string                               `json:"lastSyncSuccessTimestamp,omitempty"`
	LastSyncTimestamp              *string                               `json:"lastSyncTimestamp,omitempty"`
	PersistentFilesNotSyncingCount *int64                                `json:"persistentFilesNotSyncingCount,omitempty"`
	TransientFilesNotSyncingCount  *int64                                `json:"transientFilesNotSyncingCount,omitempty"`
}

func (*ServerEndpointSyncSessionStatus) GetLastSyncSuccessTimestampAsTime

func (o *ServerEndpointSyncSessionStatus) GetLastSyncSuccessTimestampAsTime() (*time.Time, error)

func (*ServerEndpointSyncSessionStatus) GetLastSyncTimestampAsTime

func (o *ServerEndpointSyncSessionStatus) GetLastSyncTimestampAsTime() (*time.Time, error)

func (*ServerEndpointSyncSessionStatus) SetLastSyncSuccessTimestampAsTime

func (o *ServerEndpointSyncSessionStatus) SetLastSyncSuccessTimestampAsTime(input time.Time)

func (*ServerEndpointSyncSessionStatus) SetLastSyncTimestampAsTime

func (o *ServerEndpointSyncSessionStatus) SetLastSyncTimestampAsTime(input time.Time)

type ServerEndpointSyncStatus

type ServerEndpointSyncStatus struct {
	CombinedHealth                      *ServerEndpointSyncHealthState          `json:"combinedHealth,omitempty"`
	DownloadActivity                    *ServerEndpointSyncActivityStatus       `json:"downloadActivity,omitempty"`
	DownloadHealth                      *ServerEndpointSyncHealthState          `json:"downloadHealth,omitempty"`
	DownloadStatus                      *ServerEndpointSyncSessionStatus        `json:"downloadStatus,omitempty"`
	LastUpdatedTimestamp                *string                                 `json:"lastUpdatedTimestamp,omitempty"`
	OfflineDataTransferStatus           *ServerEndpointOfflineDataTransferState `json:"offlineDataTransferStatus,omitempty"`
	SyncActivity                        *ServerEndpointSyncActivityState        `json:"syncActivity,omitempty"`
	TotalPersistentFilesNotSyncingCount *int64                                  `json:"totalPersistentFilesNotSyncingCount,omitempty"`
	UploadActivity                      *ServerEndpointSyncActivityStatus       `json:"uploadActivity,omitempty"`
	UploadHealth                        *ServerEndpointSyncHealthState          `json:"uploadHealth,omitempty"`
	UploadStatus                        *ServerEndpointSyncSessionStatus        `json:"uploadStatus,omitempty"`
}

func (*ServerEndpointSyncStatus) GetLastUpdatedTimestampAsTime

func (o *ServerEndpointSyncStatus) GetLastUpdatedTimestampAsTime() (*time.Time, error)

func (*ServerEndpointSyncStatus) SetLastUpdatedTimestampAsTime

func (o *ServerEndpointSyncStatus) SetLastUpdatedTimestampAsTime(input time.Time)

type ServerEndpointUpdateParameters

type ServerEndpointUpdateParameters struct {
	Properties *ServerEndpointUpdateProperties `json:"properties,omitempty"`
}

type ServerEndpointUpdateProperties

type ServerEndpointUpdateProperties struct {
	CloudTiering                 *FeatureStatus  `json:"cloudTiering,omitempty"`
	LocalCacheMode               *LocalCacheMode `json:"localCacheMode,omitempty"`
	OfflineDataTransfer          *FeatureStatus  `json:"offlineDataTransfer,omitempty"`
	OfflineDataTransferShareName *string         `json:"offlineDataTransferShareName,omitempty"`
	TierFilesOlderThanDays       *int64          `json:"tierFilesOlderThanDays,omitempty"`
	VolumeFreeSpacePercent       *int64          `json:"volumeFreeSpacePercent,omitempty"`
}

type ServerEndpointsCreateOperationResponse

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

type ServerEndpointsDeleteOperationResponse

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

type ServerEndpointsGetOperationResponse

type ServerEndpointsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerEndpoint
}

type ServerEndpointsListBySyncGroupOperationResponse

type ServerEndpointsListBySyncGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerEndpointArray
}

type ServerEndpointsUpdateOperationResponse

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

type ServerEndpointsrecallActionOperationResponse

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

type SyncGroupId

type SyncGroupId struct {
	SubscriptionId         string
	ResourceGroupName      string
	StorageSyncServiceName string
	SyncGroupName          string
}

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

func NewSyncGroupID

func NewSyncGroupID(subscriptionId string, resourceGroupName string, storageSyncServiceName 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) 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

Jump to

Keyboard shortcuts

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