serverendpointresource

package
v0.20240320.1000025 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2022-09-01/serverendpointresource Documentation

The serverendpointresource SDK allows for interaction with the Azure Resource Manager Service storagesync (API Version 2022-09-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/2022-09-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 PossibleValuesForCloudTieringLowDiskModeState

func PossibleValuesForCloudTieringLowDiskModeState() []string

func PossibleValuesForFeatureStatus

func PossibleValuesForFeatureStatus() []string

func PossibleValuesForInitialDownloadPolicy

func PossibleValuesForInitialDownloadPolicy() []string

func PossibleValuesForInitialUploadPolicy

func PossibleValuesForInitialUploadPolicy() []string

func PossibleValuesForLocalCacheMode

func PossibleValuesForLocalCacheMode() []string

func PossibleValuesForServerEndpointHealthState

func PossibleValuesForServerEndpointHealthState() []string

func PossibleValuesForServerEndpointOfflineDataTransferState

func PossibleValuesForServerEndpointOfflineDataTransferState() []string

func PossibleValuesForServerEndpointSyncActivityState

func PossibleValuesForServerEndpointSyncActivityState() []string

func PossibleValuesForServerEndpointSyncMode

func PossibleValuesForServerEndpointSyncMode() []string

func PossibleValuesForServerProvisioningStatus

func PossibleValuesForServerProvisioningStatus() []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 CloudTieringLowDiskMode

type CloudTieringLowDiskMode struct {
	LastUpdatedTimestamp *string                       `json:"lastUpdatedTimestamp,omitempty"`
	State                *CloudTieringLowDiskModeState `json:"state,omitempty"`
}

func (*CloudTieringLowDiskMode) GetLastUpdatedTimestampAsTime

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

func (*CloudTieringLowDiskMode) SetLastUpdatedTimestampAsTime

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

type CloudTieringLowDiskModeState

type CloudTieringLowDiskModeState string
const (
	CloudTieringLowDiskModeStateDisabled CloudTieringLowDiskModeState = "Disabled"
	CloudTieringLowDiskModeStateEnabled  CloudTieringLowDiskModeState = "Enabled"
)

func (*CloudTieringLowDiskModeState) UnmarshalJSON

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

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

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

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

type InitialUploadPolicy

type InitialUploadPolicy string
const (
	InitialUploadPolicyMerge               InitialUploadPolicy = "Merge"
	InitialUploadPolicyServerAuthoritative InitialUploadPolicy = "ServerAuthoritative"
)

func (*InitialUploadPolicy) UnmarshalJSON

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

type LocalCacheMode

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

func (*LocalCacheMode) UnmarshalJSON

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"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type ServerEndpointArray

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

type ServerEndpointBackgroundDataDownloadActivity

type ServerEndpointBackgroundDataDownloadActivity struct {
	DownloadedBytes  *int64  `json:"downloadedBytes,omitempty"`
	PercentProgress  *int64  `json:"percentProgress,omitempty"`
	StartedTimestamp *string `json:"startedTimestamp,omitempty"`
	Timestamp        *string `json:"timestamp,omitempty"`
}

func (*ServerEndpointBackgroundDataDownloadActivity) GetStartedTimestampAsTime

func (o *ServerEndpointBackgroundDataDownloadActivity) GetStartedTimestampAsTime() (*time.Time, error)

func (*ServerEndpointBackgroundDataDownloadActivity) GetTimestampAsTime

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

func (*ServerEndpointBackgroundDataDownloadActivity) SetStartedTimestampAsTime

func (o *ServerEndpointBackgroundDataDownloadActivity) SetStartedTimestampAsTime(input time.Time)

func (*ServerEndpointBackgroundDataDownloadActivity) SetTimestampAsTime

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

type ServerEndpointCloudTieringStatus

type ServerEndpointCloudTieringStatus struct {
	CachePerformance            *CloudTieringCachePerformance            `json:"cachePerformance,omitempty"`
	DatePolicyStatus            *CloudTieringDatePolicyStatus            `json:"datePolicyStatus,omitempty"`
	FilesNotTiering             *CloudTieringFilesNotTiering             `json:"filesNotTiering,omitempty"`
	Health                      *ServerEndpointHealthState               `json:"health,omitempty"`
	HealthLastUpdatedTimestamp  *string                                  `json:"healthLastUpdatedTimestamp,omitempty"`
	LastCloudTieringResult      *int64                                   `json:"lastCloudTieringResult,omitempty"`
	LastSuccessTimestamp        *string                                  `json:"lastSuccessTimestamp,omitempty"`
	LastUpdatedTimestamp        *string                                  `json:"lastUpdatedTimestamp,omitempty"`
	LowDiskMode                 *CloudTieringLowDiskMode                 `json:"lowDiskMode,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"`
	SystemData *systemdata.SystemData                    `json:"systemData,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"`
	InitialUploadPolicy          *InitialUploadPolicy   `json:"initialUploadPolicy,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 ServerEndpointHealthState

type ServerEndpointHealthState string
const (
	ServerEndpointHealthStateError       ServerEndpointHealthState = "Error"
	ServerEndpointHealthStateHealthy     ServerEndpointHealthState = "Healthy"
	ServerEndpointHealthStateUnavailable ServerEndpointHealthState = "Unavailable"
)

func (*ServerEndpointHealthState) UnmarshalJSON

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

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) FromParseResult

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

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

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"`
	InitialUploadPolicy                         *InitialUploadPolicy              `json:"initialUploadPolicy,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"`
	ServerEndpointProvisioningStatus            *ServerEndpointProvisioningStatus `json:"serverEndpointProvisioningStatus,omitempty"`
	ServerLocalPath                             *string                           `json:"serverLocalPath,omitempty"`
	ServerName                                  *string                           `json:"serverName,omitempty"`
	ServerResourceId                            *string                           `json:"serverResourceId,omitempty"`
	SyncStatus                                  *ServerEndpointSyncStatus         `json:"syncStatus,omitempty"`
	TierFilesOlderThanDays                      *int64                            `json:"tierFilesOlderThanDays,omitempty"`
	VolumeFreeSpacePercent                      *int64                            `json:"volumeFreeSpacePercent,omitempty"`
}

type ServerEndpointProvisioningStatus

type ServerEndpointProvisioningStatus struct {
	ProvisioningStatus       *ServerProvisioningStatus               `json:"provisioningStatus,omitempty"`
	ProvisioningStepStatuses *[]ServerEndpointProvisioningStepStatus `json:"provisioningStepStatuses,omitempty"`
	ProvisioningType         *string                                 `json:"provisioningType,omitempty"`
}

type ServerEndpointProvisioningStepStatus

type ServerEndpointProvisioningStepStatus struct {
	AdditionalInformation *map[string]string `json:"additionalInformation,omitempty"`
	EndTime               *string            `json:"endTime,omitempty"`
	ErrorCode             *int64             `json:"errorCode,omitempty"`
	MinutesLeft           *int64             `json:"minutesLeft,omitempty"`
	Name                  *string            `json:"name,omitempty"`
	ProgressPercentage    *int64             `json:"progressPercentage,omitempty"`
	StartTime             *string            `json:"startTime,omitempty"`
	Status                *string            `json:"status,omitempty"`
}

func (*ServerEndpointProvisioningStepStatus) GetEndTimeAsTime

func (o *ServerEndpointProvisioningStepStatus) GetEndTimeAsTime() (*time.Time, error)

func (*ServerEndpointProvisioningStepStatus) GetStartTimeAsTime

func (o *ServerEndpointProvisioningStepStatus) GetStartTimeAsTime() (*time.Time, error)

func (*ServerEndpointProvisioningStepStatus) SetEndTimeAsTime

func (o *ServerEndpointProvisioningStepStatus) SetEndTimeAsTime(input time.Time)

func (*ServerEndpointProvisioningStepStatus) SetStartTimeAsTime

func (o *ServerEndpointProvisioningStepStatus) SetStartTimeAsTime(input time.Time)

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(sdkApi sdkEnv.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

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"`
	SessionMinutesRemaining *int64                  `json:"sessionMinutesRemaining,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 ServerEndpointSyncMode

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

func (*ServerEndpointSyncMode) UnmarshalJSON

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 {
	BackgroundDataDownloadActivity      *ServerEndpointBackgroundDataDownloadActivity `json:"backgroundDataDownloadActivity,omitempty"`
	CombinedHealth                      *ServerEndpointHealthState                    `json:"combinedHealth,omitempty"`
	DownloadActivity                    *ServerEndpointSyncActivityStatus             `json:"downloadActivity,omitempty"`
	DownloadHealth                      *ServerEndpointHealthState                    `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                        *ServerEndpointHealthState                    `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
	Model        *ServerEndpoint
}

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
	Model        *ServerEndpoint
}

type ServerEndpointsrecallActionOperationResponse

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

type ServerProvisioningStatus

type ServerProvisioningStatus string
const (
	ServerProvisioningStatusError                  ServerProvisioningStatus = "Error"
	ServerProvisioningStatusInProgress             ServerProvisioningStatus = "InProgress"
	ServerProvisioningStatusNotStarted             ServerProvisioningStatus = "NotStarted"
	ServerProvisioningStatusReadySyncFunctional    ServerProvisioningStatus = "Ready_SyncFunctional"
	ServerProvisioningStatusReadySyncNotFunctional ServerProvisioningStatus = "Ready_SyncNotFunctional"
)

func (*ServerProvisioningStatus) UnmarshalJSON

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

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) 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

Jump to

Keyboard shortcuts

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