...

Package storagesync

import "github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2019-06-01/storagesync"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagesync/armstoragesync(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagesync/armstoragesync). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package storagesync implements the Azure ARM Storagesync service API version 2019-06-01.

Microsoft Storage Sync Service API

Index ▾

Constants
func UserAgent() string
func Version() string
type APIError
type AzureEntityResource
    func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
type BackupRequest
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type ChangeDetectionMode
    func PossibleChangeDetectionModeValues() []ChangeDetectionMode
type CheckNameAvailabilityParameters
type CheckNameAvailabilityResult
    func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error)
type CloudEndpoint
    func (ce CloudEndpoint) MarshalJSON() ([]byte, error)
    func (ce *CloudEndpoint) UnmarshalJSON(body []byte) error
type CloudEndpointArray
type CloudEndpointCreateParameters
    func (cecp CloudEndpointCreateParameters) MarshalJSON() ([]byte, error)
    func (cecp *CloudEndpointCreateParameters) UnmarshalJSON(body []byte) error
type CloudEndpointCreateParametersProperties
type CloudEndpointProperties
    func (cep CloudEndpointProperties) MarshalJSON() ([]byte, error)
type CloudEndpointsClient
    func NewCloudEndpointsClient(subscriptionID string) CloudEndpointsClient
    func NewCloudEndpointsClientWithBaseURI(baseURI string, subscriptionID string) CloudEndpointsClient
    func (client CloudEndpointsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters CloudEndpointCreateParameters) (result CloudEndpointsCreateFuture, err error)
    func (client CloudEndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters CloudEndpointCreateParameters) (*http.Request, error)
    func (client CloudEndpointsClient) CreateResponder(resp *http.Response) (result CloudEndpoint, err error)
    func (client CloudEndpointsClient) CreateSender(req *http.Request) (future CloudEndpointsCreateFuture, err error)
    func (client CloudEndpointsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result CloudEndpointsDeleteFuture, err error)
    func (client CloudEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)
    func (client CloudEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) DeleteSender(req *http.Request) (future CloudEndpointsDeleteFuture, err error)
    func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result CloudEndpoint, err error)
    func (client CloudEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)
    func (client CloudEndpointsClient) GetResponder(resp *http.Response) (result CloudEndpoint, err error)
    func (client CloudEndpointsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result CloudEndpointArray, err error)
    func (client CloudEndpointsClient) ListBySyncGroupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)
    func (client CloudEndpointsClient) ListBySyncGroupResponder(resp *http.Response) (result CloudEndpointArray, err error)
    func (client CloudEndpointsClient) ListBySyncGroupSender(req *http.Request) (*http.Response, error)
    func (client CloudEndpointsClient) PostBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsPostBackupFuture, err error)
    func (client CloudEndpointsClient) PostBackupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (*http.Request, error)
    func (client CloudEndpointsClient) PostBackupResponder(resp *http.Response) (result PostBackupResponse, err error)
    func (client CloudEndpointsClient) PostBackupSender(req *http.Request) (future CloudEndpointsPostBackupFuture, err error)
    func (client CloudEndpointsClient) PostRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PostRestoreRequest) (result CloudEndpointsPostRestoreFuture, err error)
    func (client CloudEndpointsClient) PostRestorePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PostRestoreRequest) (*http.Request, error)
    func (client CloudEndpointsClient) PostRestoreResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) PostRestoreSender(req *http.Request) (future CloudEndpointsPostRestoreFuture, err error)
    func (client CloudEndpointsClient) PreBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsPreBackupFuture, err error)
    func (client CloudEndpointsClient) PreBackupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (*http.Request, error)
    func (client CloudEndpointsClient) PreBackupResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) PreBackupSender(req *http.Request) (future CloudEndpointsPreBackupFuture, err error)
    func (client CloudEndpointsClient) PreRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PreRestoreRequest) (result CloudEndpointsPreRestoreFuture, err error)
    func (client CloudEndpointsClient) PreRestorePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PreRestoreRequest) (*http.Request, error)
    func (client CloudEndpointsClient) PreRestoreResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) PreRestoreSender(req *http.Request) (future CloudEndpointsPreRestoreFuture, err error)
    func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result autorest.Response, err error)
    func (client CloudEndpointsClient) RestoreheartbeatPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)
    func (client CloudEndpointsClient) RestoreheartbeatResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) RestoreheartbeatSender(req *http.Request) (*http.Response, error)
    func (client CloudEndpointsClient) TriggerChangeDetection(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters TriggerChangeDetectionParameters) (result CloudEndpointsTriggerChangeDetectionFuture, err error)
    func (client CloudEndpointsClient) TriggerChangeDetectionPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters TriggerChangeDetectionParameters) (*http.Request, error)
    func (client CloudEndpointsClient) TriggerChangeDetectionResponder(resp *http.Response) (result autorest.Response, err error)
    func (client CloudEndpointsClient) TriggerChangeDetectionSender(req *http.Request) (future CloudEndpointsTriggerChangeDetectionFuture, err error)
type CloudEndpointsCreateFuture
    func (future *CloudEndpointsCreateFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsDeleteFuture
    func (future *CloudEndpointsDeleteFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsPostBackupFuture
    func (future *CloudEndpointsPostBackupFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsPostRestoreFuture
    func (future *CloudEndpointsPostRestoreFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsPreBackupFuture
    func (future *CloudEndpointsPreBackupFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsPreRestoreFuture
    func (future *CloudEndpointsPreRestoreFuture) UnmarshalJSON(body []byte) error
type CloudEndpointsTriggerChangeDetectionFuture
    func (future *CloudEndpointsTriggerChangeDetectionFuture) UnmarshalJSON(body []byte) error
type CloudTiering
    func PossibleCloudTieringValues() []CloudTiering
type CloudTiering1
    func PossibleCloudTiering1Values() []CloudTiering1
type CloudTiering2
    func PossibleCloudTiering2Values() []CloudTiering2
type CombinedHealth
    func PossibleCombinedHealthValues() []CombinedHealth
type DownloadHealth
    func PossibleDownloadHealthValues() []DownloadHealth
type Error
type ErrorDetails
type Health
    func PossibleHealthValues() []Health
type NameAvailabilityReason
    func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason
type OfflineDataTransfer
    func PossibleOfflineDataTransferValues() []OfflineDataTransfer
type OfflineDataTransfer1
    func PossibleOfflineDataTransfer1Values() []OfflineDataTransfer1
type OfflineDataTransfer2
    func PossibleOfflineDataTransfer2Values() []OfflineDataTransfer2
type OfflineDataTransferStatus
    func PossibleOfflineDataTransferStatusValues() []OfflineDataTransferStatus
type Operation
    func PossibleOperationValues() []Operation
type OperationDisplayInfo
type OperationDisplayResource
type OperationEntity
type OperationEntityListResult
    func (oelr OperationEntityListResult) IsEmpty() bool
type OperationEntityListResultIterator
    func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator
    func (iter *OperationEntityListResultIterator) Next() error
    func (iter *OperationEntityListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter OperationEntityListResultIterator) NotDone() bool
    func (iter OperationEntityListResultIterator) Response() OperationEntityListResult
    func (iter OperationEntityListResultIterator) Value() OperationEntity
type OperationEntityListResultPage
    func NewOperationEntityListResultPage(cur OperationEntityListResult, getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage
    func (page *OperationEntityListResultPage) Next() error
    func (page *OperationEntityListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page OperationEntityListResultPage) NotDone() bool
    func (page OperationEntityListResultPage) Response() OperationEntityListResult
    func (page OperationEntityListResultPage) Values() []OperationEntity
type OperationStatus
    func (osVar OperationStatus) MarshalJSON() ([]byte, error)
type OperationStatusClient
    func NewOperationStatusClient(subscriptionID string) OperationStatusClient
    func NewOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusClient
    func (client OperationStatusClient) Get(ctx context.Context, resourceGroupName string, locationName string, workflowID string, operationID string) (result OperationStatus, err error)
    func (client OperationStatusClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, workflowID string, operationID string) (*http.Request, error)
    func (client OperationStatusClient) GetResponder(resp *http.Response) (result OperationStatus, err error)
    func (client OperationStatusClient) GetSender(req *http.Request) (*http.Response, error)
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationEntityListResultPage, err error)
    func (client OperationsClient) ListComplete(ctx context.Context) (result OperationEntityListResultIterator, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationEntityListResult, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type PostBackupResponse
    func (pbr PostBackupResponse) MarshalJSON() ([]byte, error)
    func (pbr *PostBackupResponse) UnmarshalJSON(body []byte) error
type PostBackupResponseProperties
    func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error)
type PostRestoreRequest
type PreRestoreRequest
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type Reason
    func PossibleReasonValues() []Reason
type RecallActionParameters
type RegisteredServer
    func (rs RegisteredServer) MarshalJSON() ([]byte, error)
    func (rs *RegisteredServer) UnmarshalJSON(body []byte) error
type RegisteredServerArray
type RegisteredServerCreateParameters
    func (rscp RegisteredServerCreateParameters) MarshalJSON() ([]byte, error)
    func (rscp *RegisteredServerCreateParameters) UnmarshalJSON(body []byte) error
type RegisteredServerCreateParametersProperties
type RegisteredServerProperties
type RegisteredServersClient
    func NewRegisteredServersClient(subscriptionID string) RegisteredServersClient
    func NewRegisteredServersClientWithBaseURI(baseURI string, subscriptionID string) RegisteredServersClient
    func (client RegisteredServersClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters RegisteredServerCreateParameters) (result RegisteredServersCreateFuture, err error)
    func (client RegisteredServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters RegisteredServerCreateParameters) (*http.Request, error)
    func (client RegisteredServersClient) CreateResponder(resp *http.Response) (result RegisteredServer, err error)
    func (client RegisteredServersClient) CreateSender(req *http.Request) (future RegisteredServersCreateFuture, err error)
    func (client RegisteredServersClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (result RegisteredServersDeleteFuture, err error)
    func (client RegisteredServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (*http.Request, error)
    func (client RegisteredServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegisteredServersClient) DeleteSender(req *http.Request) (future RegisteredServersDeleteFuture, err error)
    func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (result RegisteredServer, err error)
    func (client RegisteredServersClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (*http.Request, error)
    func (client RegisteredServersClient) GetResponder(resp *http.Response) (result RegisteredServer, err error)
    func (client RegisteredServersClient) GetSender(req *http.Request) (*http.Response, error)
    func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result RegisteredServerArray, err error)
    func (client RegisteredServersClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)
    func (client RegisteredServersClient) ListByStorageSyncServiceResponder(resp *http.Response) (result RegisteredServerArray, err error)
    func (client RegisteredServersClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)
    func (client RegisteredServersClient) TriggerRollover(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters TriggerRolloverRequest) (result RegisteredServersTriggerRolloverFuture, err error)
    func (client RegisteredServersClient) TriggerRolloverPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters TriggerRolloverRequest) (*http.Request, error)
    func (client RegisteredServersClient) TriggerRolloverResponder(resp *http.Response) (result autorest.Response, err error)
    func (client RegisteredServersClient) TriggerRolloverSender(req *http.Request) (future RegisteredServersTriggerRolloverFuture, err error)
type RegisteredServersCreateFuture
    func (future *RegisteredServersCreateFuture) UnmarshalJSON(body []byte) error
type RegisteredServersDeleteFuture
    func (future *RegisteredServersDeleteFuture) UnmarshalJSON(body []byte) error
type RegisteredServersTriggerRolloverFuture
    func (future *RegisteredServersTriggerRolloverFuture) UnmarshalJSON(body []byte) error
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type ResourcesMoveInfo
type RestoreFileSpec
type ServerEndpoint
    func (se ServerEndpoint) MarshalJSON() ([]byte, error)
    func (se *ServerEndpoint) UnmarshalJSON(body []byte) error
type ServerEndpointArray
type ServerEndpointCloudTieringStatus
    func (sects ServerEndpointCloudTieringStatus) MarshalJSON() ([]byte, error)
type ServerEndpointCreateParameters
    func (secp ServerEndpointCreateParameters) MarshalJSON() ([]byte, error)
    func (secp *ServerEndpointCreateParameters) UnmarshalJSON(body []byte) error
type ServerEndpointCreateParametersProperties
type ServerEndpointFilesNotSyncingError
    func (sefnse ServerEndpointFilesNotSyncingError) MarshalJSON() ([]byte, error)
type ServerEndpointProperties
    func (sep ServerEndpointProperties) MarshalJSON() ([]byte, error)
type ServerEndpointRecallError
    func (sere ServerEndpointRecallError) MarshalJSON() ([]byte, error)
type ServerEndpointRecallStatus
    func (sers ServerEndpointRecallStatus) MarshalJSON() ([]byte, error)
type ServerEndpointSyncActivityStatus
    func (sesas ServerEndpointSyncActivityStatus) MarshalJSON() ([]byte, error)
type ServerEndpointSyncSessionStatus
    func (sesss ServerEndpointSyncSessionStatus) MarshalJSON() ([]byte, error)
type ServerEndpointSyncStatus
    func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error)
type ServerEndpointUpdateParameters
    func (seup ServerEndpointUpdateParameters) MarshalJSON() ([]byte, error)
    func (seup *ServerEndpointUpdateParameters) UnmarshalJSON(body []byte) error
type ServerEndpointUpdateProperties
type ServerEndpointsClient
    func NewServerEndpointsClient(subscriptionID string) ServerEndpointsClient
    func NewServerEndpointsClientWithBaseURI(baseURI string, subscriptionID string) ServerEndpointsClient
    func (client ServerEndpointsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters ServerEndpointCreateParameters) (result ServerEndpointsCreateFuture, err error)
    func (client ServerEndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters ServerEndpointCreateParameters) (*http.Request, error)
    func (client ServerEndpointsClient) CreateResponder(resp *http.Response) (result ServerEndpoint, err error)
    func (client ServerEndpointsClient) CreateSender(req *http.Request) (future ServerEndpointsCreateFuture, err error)
    func (client ServerEndpointsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (result ServerEndpointsDeleteFuture, err error)
    func (client ServerEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (*http.Request, error)
    func (client ServerEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServerEndpointsClient) DeleteSender(req *http.Request) (future ServerEndpointsDeleteFuture, err error)
    func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (result ServerEndpoint, err error)
    func (client ServerEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (*http.Request, error)
    func (client ServerEndpointsClient) GetResponder(resp *http.Response) (result ServerEndpoint, err error)
    func (client ServerEndpointsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result ServerEndpointArray, err error)
    func (client ServerEndpointsClient) ListBySyncGroupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)
    func (client ServerEndpointsClient) ListBySyncGroupResponder(resp *http.Response) (result ServerEndpointArray, err error)
    func (client ServerEndpointsClient) ListBySyncGroupSender(req *http.Request) (*http.Response, error)
    func (client ServerEndpointsClient) RecallAction(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters RecallActionParameters) (result ServerEndpointsRecallActionFuture, err error)
    func (client ServerEndpointsClient) RecallActionPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters RecallActionParameters) (*http.Request, error)
    func (client ServerEndpointsClient) RecallActionResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServerEndpointsClient) RecallActionSender(req *http.Request) (future ServerEndpointsRecallActionFuture, err error)
    func (client ServerEndpointsClient) Update(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters *ServerEndpointUpdateParameters) (result ServerEndpointsUpdateFuture, err error)
    func (client ServerEndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters *ServerEndpointUpdateParameters) (*http.Request, error)
    func (client ServerEndpointsClient) UpdateResponder(resp *http.Response) (result ServerEndpoint, err error)
    func (client ServerEndpointsClient) UpdateSender(req *http.Request) (future ServerEndpointsUpdateFuture, err error)
type ServerEndpointsCreateFuture
    func (future *ServerEndpointsCreateFuture) UnmarshalJSON(body []byte) error
type ServerEndpointsDeleteFuture
    func (future *ServerEndpointsDeleteFuture) UnmarshalJSON(body []byte) error
type ServerEndpointsRecallActionFuture
    func (future *ServerEndpointsRecallActionFuture) UnmarshalJSON(body []byte) error
type ServerEndpointsUpdateFuture
    func (future *ServerEndpointsUpdateFuture) UnmarshalJSON(body []byte) error
type Service
    func (s Service) MarshalJSON() ([]byte, error)
    func (s *Service) UnmarshalJSON(body []byte) error
type ServiceArray
type ServiceCreateParameters
    func (scp ServiceCreateParameters) MarshalJSON() ([]byte, error)
type ServiceProperties
    func (sp ServiceProperties) MarshalJSON() ([]byte, error)
type ServiceUpdateParameters
    func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error)
type ServicesClient
    func NewServicesClient(subscriptionID string) ServicesClient
    func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient
    func (client ServicesClient) CheckNameAvailability(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)
    func (client ServicesClient) CheckNameAvailabilityPreparer(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (*http.Request, error)
    func (client ServicesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)
    func (client ServicesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters ServiceCreateParameters) (result Service, err error)
    func (client ServicesClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters ServiceCreateParameters) (*http.Request, error)
    func (client ServicesClient) CreateResponder(resp *http.Response) (result Service, err error)
    func (client ServicesClient) CreateSender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result autorest.Response, err error)
    func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)
    func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result Service, err error)
    func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)
    func (client ServicesClient) GetResponder(resp *http.Response) (result Service, err error)
    func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceArray, err error)
    func (client ServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
    func (client ServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceArray, err error)
    func (client ServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) ListBySubscription(ctx context.Context) (result ServiceArray, err error)
    func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
    func (client ServicesClient) ListBySubscriptionResponder(resp *http.Response) (result ServiceArray, err error)
    func (client ServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
    func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters *ServiceUpdateParameters) (result Service, err error)
    func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters *ServiceUpdateParameters) (*http.Request, error)
    func (client ServicesClient) UpdateResponder(resp *http.Response) (result Service, err error)
    func (client ServicesClient) UpdateSender(req *http.Request) (*http.Response, error)
type Status
    func PossibleStatusValues() []Status
type SubscriptionState
    func (ss SubscriptionState) MarshalJSON() ([]byte, error)
type SyncActivity
    func PossibleSyncActivityValues() []SyncActivity
type SyncGroup
    func (sg SyncGroup) MarshalJSON() ([]byte, error)
    func (sg *SyncGroup) UnmarshalJSON(body []byte) error
type SyncGroupArray
type SyncGroupCreateParameters
    func (sgcp SyncGroupCreateParameters) MarshalJSON() ([]byte, error)
type SyncGroupProperties
    func (sgp SyncGroupProperties) MarshalJSON() ([]byte, error)
type SyncGroupsClient
    func NewSyncGroupsClient(subscriptionID string) SyncGroupsClient
    func NewSyncGroupsClientWithBaseURI(baseURI string, subscriptionID string) SyncGroupsClient
    func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, parameters SyncGroupCreateParameters) (result SyncGroup, err error)
    func (client SyncGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, parameters SyncGroupCreateParameters) (*http.Request, error)
    func (client SyncGroupsClient) CreateResponder(resp *http.Response) (result SyncGroup, err error)
    func (client SyncGroupsClient) CreateSender(req *http.Request) (*http.Response, error)
    func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result autorest.Response, err error)
    func (client SyncGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)
    func (client SyncGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client SyncGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result SyncGroup, err error)
    func (client SyncGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)
    func (client SyncGroupsClient) GetResponder(resp *http.Response) (result SyncGroup, err error)
    func (client SyncGroupsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result SyncGroupArray, err error)
    func (client SyncGroupsClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)
    func (client SyncGroupsClient) ListByStorageSyncServiceResponder(resp *http.Response) (result SyncGroupArray, err error)
    func (client SyncGroupsClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)
type TriggerChangeDetectionParameters
type TriggerRolloverRequest
type UploadHealth
    func PossibleUploadHealthValues() []UploadHealth
type Workflow
    func (w Workflow) MarshalJSON() ([]byte, error)
    func (w *Workflow) UnmarshalJSON(body []byte) error
type WorkflowArray
type WorkflowProperties
type WorkflowsClient
    func NewWorkflowsClient(subscriptionID string) WorkflowsClient
    func NewWorkflowsClientWithBaseURI(baseURI string, subscriptionID string) WorkflowsClient
    func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (result autorest.Response, err error)
    func (client WorkflowsClient) AbortPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (*http.Request, error)
    func (client WorkflowsClient) AbortResponder(resp *http.Response) (result autorest.Response, err error)
    func (client WorkflowsClient) AbortSender(req *http.Request) (*http.Response, error)
    func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (result Workflow, err error)
    func (client WorkflowsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (*http.Request, error)
    func (client WorkflowsClient) GetResponder(resp *http.Response) (result Workflow, err error)
    func (client WorkflowsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result WorkflowArray, err error)
    func (client WorkflowsClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)
    func (client WorkflowsClient) ListByStorageSyncServiceResponder(resp *http.Response) (result WorkflowArray, err error)
    func (client WorkflowsClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)

Package files

client.go cloudendpoints.go enums.go models.go operations.go operationstatus.go registeredservers.go serverendpoints.go services.go syncgroups.go version.go workflows.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Storagesync
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type APIError

APIError error type

type APIError struct {
    // Code - Error code of the given entry.
    Code *string `json:"code,omitempty"`
    // Message - Error message of the given entry.
    Message *string `json:"message,omitempty"`
    // Target - Target of the given error entry.
    Target *string `json:"target,omitempty"`
    // Details - Error details of the given entry.
    Details *ErrorDetails `json:"details,omitempty"`
}

type AzureEntityResource

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type BackupRequest

BackupRequest backup request

type BackupRequest struct {
    // AzureFileShare - Azure File Share.
    AzureFileShare *string `json:"azureFileShare,omitempty"`
}

type BaseClient

BaseClient is the base client for Storagesync.

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type ChangeDetectionMode

ChangeDetectionMode enumerates the values for change detection mode.

type ChangeDetectionMode string
const (
    // Default ...
    Default ChangeDetectionMode = "Default"
    // Recursive ...
    Recursive ChangeDetectionMode = "Recursive"
)

func PossibleChangeDetectionModeValues

func PossibleChangeDetectionModeValues() []ChangeDetectionMode

PossibleChangeDetectionModeValues returns an array of possible values for the ChangeDetectionMode const type.

type CheckNameAvailabilityParameters

CheckNameAvailabilityParameters parameters for a check name availability request.

type CheckNameAvailabilityParameters struct {
    // Name - The name to check for availability
    Name *string `json:"name,omitempty"`
    // Type - The resource type. Must be set to Microsoft.StorageSync/storageSyncServices
    Type *string `json:"type,omitempty"`
}

type CheckNameAvailabilityResult

CheckNameAvailabilityResult the CheckNameAvailability operation response.

type CheckNameAvailabilityResult struct {
    autorest.Response `json:"-"`
    // NameAvailable - READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - READ-ONLY; Gets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists'
    Reason NameAvailabilityReason `json:"reason,omitempty"`
    // Message - READ-ONLY; Gets an error message explaining the Reason value in more detail.
    Message *string `json:"message,omitempty"`
}

func (CheckNameAvailabilityResult) MarshalJSON

func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckNameAvailabilityResult.

type CloudEndpoint

CloudEndpoint cloud Endpoint object.

type CloudEndpoint struct {
    autorest.Response `json:"-"`
    // CloudEndpointProperties - Cloud Endpoint properties.
    *CloudEndpointProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (CloudEndpoint) MarshalJSON

func (ce CloudEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudEndpoint.

func (*CloudEndpoint) UnmarshalJSON

func (ce *CloudEndpoint) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CloudEndpoint struct.

type CloudEndpointArray

CloudEndpointArray array of CloudEndpoint

type CloudEndpointArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of CloudEndpoint.
    Value *[]CloudEndpoint `json:"value,omitempty"`
}

type CloudEndpointCreateParameters

CloudEndpointCreateParameters the parameters used when creating a cloud endpoint.

type CloudEndpointCreateParameters struct {
    // CloudEndpointCreateParametersProperties - The parameters used to create the cloud endpoint.
    *CloudEndpointCreateParametersProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (CloudEndpointCreateParameters) MarshalJSON

func (cecp CloudEndpointCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudEndpointCreateParameters.

func (*CloudEndpointCreateParameters) UnmarshalJSON

func (cecp *CloudEndpointCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CloudEndpointCreateParameters struct.

type CloudEndpointCreateParametersProperties

CloudEndpointCreateParametersProperties cloudEndpoint Properties object.

type CloudEndpointCreateParametersProperties struct {
    // StorageAccountResourceID - Storage Account Resource Id
    StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"`
    // AzureFileShareName - Azure file share name
    AzureFileShareName *string `json:"azureFileShareName,omitempty"`
    // StorageAccountTenantID - Storage Account Tenant Id
    StorageAccountTenantID *string `json:"storageAccountTenantId,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
}

type CloudEndpointProperties

CloudEndpointProperties cloudEndpoint Properties object.

type CloudEndpointProperties struct {
    // StorageAccountResourceID - Storage Account Resource Id
    StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"`
    // AzureFileShareName - Azure file share name
    AzureFileShareName *string `json:"azureFileShareName,omitempty"`
    // StorageAccountTenantID - Storage Account Tenant Id
    StorageAccountTenantID *string `json:"storageAccountTenantId,omitempty"`
    // PartnershipID - Partnership Id
    PartnershipID *string `json:"partnershipId,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
    // BackupEnabled - READ-ONLY; Backup Enabled
    BackupEnabled *string `json:"backupEnabled,omitempty"`
    // ProvisioningState - CloudEndpoint Provisioning State
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // LastWorkflowID - CloudEndpoint lastWorkflowId
    LastWorkflowID *string `json:"lastWorkflowId,omitempty"`
    // LastOperationName - Resource Last Operation Name
    LastOperationName *string `json:"lastOperationName,omitempty"`
}

func (CloudEndpointProperties) MarshalJSON

func (cep CloudEndpointProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudEndpointProperties.

type CloudEndpointsClient

CloudEndpointsClient is the microsoft Storage Sync Service API

type CloudEndpointsClient struct {
    BaseClient
}

func NewCloudEndpointsClient

func NewCloudEndpointsClient(subscriptionID string) CloudEndpointsClient

NewCloudEndpointsClient creates an instance of the CloudEndpointsClient client.

func NewCloudEndpointsClientWithBaseURI

func NewCloudEndpointsClientWithBaseURI(baseURI string, subscriptionID string) CloudEndpointsClient

NewCloudEndpointsClientWithBaseURI creates an instance of the CloudEndpointsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CloudEndpointsClient) Create

func (client CloudEndpointsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters CloudEndpointCreateParameters) (result CloudEndpointsCreateFuture, err error)

Create create a new CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - body of Cloud Endpoint resource.

func (CloudEndpointsClient) CreatePreparer

func (client CloudEndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters CloudEndpointCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CloudEndpointsClient) CreateResponder

func (client CloudEndpointsClient) CreateResponder(resp *http.Response) (result CloudEndpoint, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (CloudEndpointsClient) CreateSender

func (client CloudEndpointsClient) CreateSender(req *http.Request) (future CloudEndpointsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) Delete

func (client CloudEndpointsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result CloudEndpointsDeleteFuture, err error)

Delete delete a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object.

func (CloudEndpointsClient) DeletePreparer

func (client CloudEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CloudEndpointsClient) DeleteResponder

func (client CloudEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (CloudEndpointsClient) DeleteSender

func (client CloudEndpointsClient) DeleteSender(req *http.Request) (future CloudEndpointsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) Get

func (client CloudEndpointsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result CloudEndpoint, err error)

Get get a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object.

func (CloudEndpointsClient) GetPreparer

func (client CloudEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CloudEndpointsClient) GetResponder

func (client CloudEndpointsClient) GetResponder(resp *http.Response) (result CloudEndpoint, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CloudEndpointsClient) GetSender

func (client CloudEndpointsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) ListBySyncGroup

func (client CloudEndpointsClient) ListBySyncGroup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result CloudEndpointArray, err error)

ListBySyncGroup get a CloudEndpoint List. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource.

func (CloudEndpointsClient) ListBySyncGroupPreparer

func (client CloudEndpointsClient) ListBySyncGroupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)

ListBySyncGroupPreparer prepares the ListBySyncGroup request.

func (CloudEndpointsClient) ListBySyncGroupResponder

func (client CloudEndpointsClient) ListBySyncGroupResponder(resp *http.Response) (result CloudEndpointArray, err error)

ListBySyncGroupResponder handles the response to the ListBySyncGroup request. The method always closes the http.Response Body.

func (CloudEndpointsClient) ListBySyncGroupSender

func (client CloudEndpointsClient) ListBySyncGroupSender(req *http.Request) (*http.Response, error)

ListBySyncGroupSender sends the ListBySyncGroup request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) PostBackup

func (client CloudEndpointsClient) PostBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsPostBackupFuture, err error)

PostBackup post Backup a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - body of Backup request.

func (CloudEndpointsClient) PostBackupPreparer

func (client CloudEndpointsClient) PostBackupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (*http.Request, error)

PostBackupPreparer prepares the PostBackup request.

func (CloudEndpointsClient) PostBackupResponder

func (client CloudEndpointsClient) PostBackupResponder(resp *http.Response) (result PostBackupResponse, err error)

PostBackupResponder handles the response to the PostBackup request. The method always closes the http.Response Body.

func (CloudEndpointsClient) PostBackupSender

func (client CloudEndpointsClient) PostBackupSender(req *http.Request) (future CloudEndpointsPostBackupFuture, err error)

PostBackupSender sends the PostBackup request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) PostRestore

func (client CloudEndpointsClient) PostRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PostRestoreRequest) (result CloudEndpointsPostRestoreFuture, err error)

PostRestore post Restore a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - body of Cloud Endpoint object.

func (CloudEndpointsClient) PostRestorePreparer

func (client CloudEndpointsClient) PostRestorePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PostRestoreRequest) (*http.Request, error)

PostRestorePreparer prepares the PostRestore request.

func (CloudEndpointsClient) PostRestoreResponder

func (client CloudEndpointsClient) PostRestoreResponder(resp *http.Response) (result autorest.Response, err error)

PostRestoreResponder handles the response to the PostRestore request. The method always closes the http.Response Body.

func (CloudEndpointsClient) PostRestoreSender

func (client CloudEndpointsClient) PostRestoreSender(req *http.Request) (future CloudEndpointsPostRestoreFuture, err error)

PostRestoreSender sends the PostRestore request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) PreBackup

func (client CloudEndpointsClient) PreBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsPreBackupFuture, err error)

PreBackup pre Backup a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - body of Backup request.

func (CloudEndpointsClient) PreBackupPreparer

func (client CloudEndpointsClient) PreBackupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (*http.Request, error)

PreBackupPreparer prepares the PreBackup request.

func (CloudEndpointsClient) PreBackupResponder

func (client CloudEndpointsClient) PreBackupResponder(resp *http.Response) (result autorest.Response, err error)

PreBackupResponder handles the response to the PreBackup request. The method always closes the http.Response Body.

func (CloudEndpointsClient) PreBackupSender

func (client CloudEndpointsClient) PreBackupSender(req *http.Request) (future CloudEndpointsPreBackupFuture, err error)

PreBackupSender sends the PreBackup request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) PreRestore

func (client CloudEndpointsClient) PreRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PreRestoreRequest) (result CloudEndpointsPreRestoreFuture, err error)

PreRestore pre Restore a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - body of Cloud Endpoint object.

func (CloudEndpointsClient) PreRestorePreparer

func (client CloudEndpointsClient) PreRestorePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PreRestoreRequest) (*http.Request, error)

PreRestorePreparer prepares the PreRestore request.

func (CloudEndpointsClient) PreRestoreResponder

func (client CloudEndpointsClient) PreRestoreResponder(resp *http.Response) (result autorest.Response, err error)

PreRestoreResponder handles the response to the PreRestore request. The method always closes the http.Response Body.

func (CloudEndpointsClient) PreRestoreSender

func (client CloudEndpointsClient) PreRestoreSender(req *http.Request) (future CloudEndpointsPreRestoreFuture, err error)

PreRestoreSender sends the PreRestore request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) Restoreheartbeat

func (client CloudEndpointsClient) Restoreheartbeat(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result autorest.Response, err error)

Restoreheartbeat restore Heartbeat a given CloudEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object.

func (CloudEndpointsClient) RestoreheartbeatPreparer

func (client CloudEndpointsClient) RestoreheartbeatPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (*http.Request, error)

RestoreheartbeatPreparer prepares the Restoreheartbeat request.

func (CloudEndpointsClient) RestoreheartbeatResponder

func (client CloudEndpointsClient) RestoreheartbeatResponder(resp *http.Response) (result autorest.Response, err error)

RestoreheartbeatResponder handles the response to the Restoreheartbeat request. The method always closes the http.Response Body.

func (CloudEndpointsClient) RestoreheartbeatSender

func (client CloudEndpointsClient) RestoreheartbeatSender(req *http.Request) (*http.Response, error)

RestoreheartbeatSender sends the Restoreheartbeat request. The method will close the http.Response Body if it receives an error.

func (CloudEndpointsClient) TriggerChangeDetection

func (client CloudEndpointsClient) TriggerChangeDetection(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters TriggerChangeDetectionParameters) (result CloudEndpointsTriggerChangeDetectionFuture, err error)

TriggerChangeDetection triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud Endpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. cloudEndpointName - name of Cloud Endpoint object. parameters - trigger Change Detection Action parameters.

func (CloudEndpointsClient) TriggerChangeDetectionPreparer

func (client CloudEndpointsClient) TriggerChangeDetectionPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters TriggerChangeDetectionParameters) (*http.Request, error)

TriggerChangeDetectionPreparer prepares the TriggerChangeDetection request.

func (CloudEndpointsClient) TriggerChangeDetectionResponder

func (client CloudEndpointsClient) TriggerChangeDetectionResponder(resp *http.Response) (result autorest.Response, err error)

TriggerChangeDetectionResponder handles the response to the TriggerChangeDetection request. The method always closes the http.Response Body.

func (CloudEndpointsClient) TriggerChangeDetectionSender

func (client CloudEndpointsClient) TriggerChangeDetectionSender(req *http.Request) (future CloudEndpointsTriggerChangeDetectionFuture, err error)

TriggerChangeDetectionSender sends the TriggerChangeDetection request. The method will close the http.Response Body if it receives an error.

type CloudEndpointsCreateFuture

CloudEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (CloudEndpoint, error)
}

func (*CloudEndpointsCreateFuture) UnmarshalJSON

func (future *CloudEndpointsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsDeleteFuture

CloudEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (autorest.Response, error)
}

func (*CloudEndpointsDeleteFuture) UnmarshalJSON

func (future *CloudEndpointsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsPostBackupFuture

CloudEndpointsPostBackupFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsPostBackupFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (PostBackupResponse, error)
}

func (*CloudEndpointsPostBackupFuture) UnmarshalJSON

func (future *CloudEndpointsPostBackupFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsPostRestoreFuture

CloudEndpointsPostRestoreFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsPostRestoreFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (autorest.Response, error)
}

func (*CloudEndpointsPostRestoreFuture) UnmarshalJSON

func (future *CloudEndpointsPostRestoreFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsPreBackupFuture

CloudEndpointsPreBackupFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsPreBackupFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (autorest.Response, error)
}

func (*CloudEndpointsPreBackupFuture) UnmarshalJSON

func (future *CloudEndpointsPreBackupFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsPreRestoreFuture

CloudEndpointsPreRestoreFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsPreRestoreFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (autorest.Response, error)
}

func (*CloudEndpointsPreRestoreFuture) UnmarshalJSON

func (future *CloudEndpointsPreRestoreFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudEndpointsTriggerChangeDetectionFuture

CloudEndpointsTriggerChangeDetectionFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type CloudEndpointsTriggerChangeDetectionFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(CloudEndpointsClient) (autorest.Response, error)
}

func (*CloudEndpointsTriggerChangeDetectionFuture) UnmarshalJSON

func (future *CloudEndpointsTriggerChangeDetectionFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CloudTiering

CloudTiering enumerates the values for cloud tiering.

type CloudTiering string
const (
    // Off ...
    Off CloudTiering = "off"
    // On ...
    On CloudTiering = "on"
)

func PossibleCloudTieringValues

func PossibleCloudTieringValues() []CloudTiering

PossibleCloudTieringValues returns an array of possible values for the CloudTiering const type.

type CloudTiering1

CloudTiering1 enumerates the values for cloud tiering 1.

type CloudTiering1 string
const (
    // CloudTiering1Off ...
    CloudTiering1Off CloudTiering1 = "off"
    // CloudTiering1On ...
    CloudTiering1On CloudTiering1 = "on"
)

func PossibleCloudTiering1Values

func PossibleCloudTiering1Values() []CloudTiering1

PossibleCloudTiering1Values returns an array of possible values for the CloudTiering1 const type.

type CloudTiering2

CloudTiering2 enumerates the values for cloud tiering 2.

type CloudTiering2 string
const (
    // CloudTiering2Off ...
    CloudTiering2Off CloudTiering2 = "off"
    // CloudTiering2On ...
    CloudTiering2On CloudTiering2 = "on"
)

func PossibleCloudTiering2Values

func PossibleCloudTiering2Values() []CloudTiering2

PossibleCloudTiering2Values returns an array of possible values for the CloudTiering2 const type.

type CombinedHealth

CombinedHealth enumerates the values for combined health.

type CombinedHealth string
const (
    // CombinedHealthError ...
    CombinedHealthError CombinedHealth = "Error"
    // CombinedHealthHealthy ...
    CombinedHealthHealthy CombinedHealth = "Healthy"
    // CombinedHealthNoActivity ...
    CombinedHealthNoActivity CombinedHealth = "NoActivity"
    // CombinedHealthSyncBlockedForChangeDetectionPostRestore ...
    CombinedHealthSyncBlockedForChangeDetectionPostRestore CombinedHealth = "SyncBlockedForChangeDetectionPostRestore"
    // CombinedHealthSyncBlockedForRestore ...
    CombinedHealthSyncBlockedForRestore CombinedHealth = "SyncBlockedForRestore"
)

func PossibleCombinedHealthValues

func PossibleCombinedHealthValues() []CombinedHealth

PossibleCombinedHealthValues returns an array of possible values for the CombinedHealth const type.

type DownloadHealth

DownloadHealth enumerates the values for download health.

type DownloadHealth string
const (
    // DownloadHealthError ...
    DownloadHealthError DownloadHealth = "Error"
    // DownloadHealthHealthy ...
    DownloadHealthHealthy DownloadHealth = "Healthy"
    // DownloadHealthNoActivity ...
    DownloadHealthNoActivity DownloadHealth = "NoActivity"
    // DownloadHealthSyncBlockedForChangeDetectionPostRestore ...
    DownloadHealthSyncBlockedForChangeDetectionPostRestore DownloadHealth = "SyncBlockedForChangeDetectionPostRestore"
    // DownloadHealthSyncBlockedForRestore ...
    DownloadHealthSyncBlockedForRestore DownloadHealth = "SyncBlockedForRestore"
)

func PossibleDownloadHealthValues

func PossibleDownloadHealthValues() []DownloadHealth

PossibleDownloadHealthValues returns an array of possible values for the DownloadHealth const type.

type Error

Error error type

type Error struct {
    // Error - Error details of the given entry.
    Error *APIError `json:"error,omitempty"`
    // Innererror - Error details of the given entry.
    Innererror *APIError `json:"innererror,omitempty"`
}

type ErrorDetails

ErrorDetails error Details object.

type ErrorDetails struct {
    // Code - Error code of the given entry.
    Code *string `json:"code,omitempty"`
    // Message - Error message of the given entry.
    Message *string `json:"message,omitempty"`
    // Target - Target of the given entry.
    Target *string `json:"target,omitempty"`
}

type Health

Health enumerates the values for health.

type Health string
const (
    // HealthError ...
    HealthError Health = "Error"
    // HealthHealthy ...
    HealthHealthy Health = "Healthy"
)

func PossibleHealthValues

func PossibleHealthValues() []Health

PossibleHealthValues returns an array of possible values for the Health const type.

type NameAvailabilityReason

NameAvailabilityReason enumerates the values for name availability reason.

type NameAvailabilityReason string
const (
    // AlreadyExists ...
    AlreadyExists NameAvailabilityReason = "AlreadyExists"
    // Invalid ...
    Invalid NameAvailabilityReason = "Invalid"
)

func PossibleNameAvailabilityReasonValues

func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason

PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.

type OfflineDataTransfer

OfflineDataTransfer enumerates the values for offline data transfer.

type OfflineDataTransfer string
const (
    // OfflineDataTransferOff ...
    OfflineDataTransferOff OfflineDataTransfer = "off"
    // OfflineDataTransferOn ...
    OfflineDataTransferOn OfflineDataTransfer = "on"
)

func PossibleOfflineDataTransferValues

func PossibleOfflineDataTransferValues() []OfflineDataTransfer

PossibleOfflineDataTransferValues returns an array of possible values for the OfflineDataTransfer const type.

type OfflineDataTransfer1

OfflineDataTransfer1 enumerates the values for offline data transfer 1.

type OfflineDataTransfer1 string
const (
    // OfflineDataTransfer1Off ...
    OfflineDataTransfer1Off OfflineDataTransfer1 = "off"
    // OfflineDataTransfer1On ...
    OfflineDataTransfer1On OfflineDataTransfer1 = "on"
)

func PossibleOfflineDataTransfer1Values

func PossibleOfflineDataTransfer1Values() []OfflineDataTransfer1

PossibleOfflineDataTransfer1Values returns an array of possible values for the OfflineDataTransfer1 const type.

type OfflineDataTransfer2

OfflineDataTransfer2 enumerates the values for offline data transfer 2.

type OfflineDataTransfer2 string
const (
    // OfflineDataTransfer2Off ...
    OfflineDataTransfer2Off OfflineDataTransfer2 = "off"
    // OfflineDataTransfer2On ...
    OfflineDataTransfer2On OfflineDataTransfer2 = "on"
)

func PossibleOfflineDataTransfer2Values

func PossibleOfflineDataTransfer2Values() []OfflineDataTransfer2

PossibleOfflineDataTransfer2Values returns an array of possible values for the OfflineDataTransfer2 const type.

type OfflineDataTransferStatus

OfflineDataTransferStatus enumerates the values for offline data transfer status.

type OfflineDataTransferStatus string
const (
    // Complete ...
    Complete OfflineDataTransferStatus = "Complete"
    // InProgress ...
    InProgress OfflineDataTransferStatus = "InProgress"
    // NotRunning ...
    NotRunning OfflineDataTransferStatus = "NotRunning"
    // Stopping ...
    Stopping OfflineDataTransferStatus = "Stopping"
)

func PossibleOfflineDataTransferStatusValues

func PossibleOfflineDataTransferStatusValues() []OfflineDataTransferStatus

PossibleOfflineDataTransferStatusValues returns an array of possible values for the OfflineDataTransferStatus const type.

type Operation

Operation enumerates the values for operation.

type Operation string
const (
    // Cancel ...
    Cancel Operation = "cancel"
    // Do ...
    Do Operation = "do"
    // Undo ...
    Undo Operation = "undo"
)

func PossibleOperationValues

func PossibleOperationValues() []Operation

PossibleOperationValues returns an array of possible values for the Operation const type.

type OperationDisplayInfo

OperationDisplayInfo the operation supported by storage sync.

type OperationDisplayInfo struct {
    // Description - The description of the operation.
    Description *string `json:"description,omitempty"`
    // Operation - The action that users can perform, based on their permission level.
    Operation *string `json:"operation,omitempty"`
    // Provider - Service provider: Microsoft StorageSync.
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
}

type OperationDisplayResource

OperationDisplayResource operation Display Resource object.

type OperationDisplayResource struct {
    // Provider - Operation Display Resource Provider.
    Provider *string `json:"provider,omitempty"`
    // Resource - Operation Display Resource.
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation Display Resource Operation.
    Operation *string `json:"operation,omitempty"`
    // Description - Operation Display Resource Description.
    Description *string `json:"description,omitempty"`
}

type OperationEntity

OperationEntity the operation supported by storage sync.

type OperationEntity struct {
    // Name - Operation name: {provider}/{resource}/{operation}.
    Name *string `json:"name,omitempty"`
    // Display - The operation supported by storage sync.
    Display *OperationDisplayInfo `json:"display,omitempty"`
    // Origin - The origin.
    Origin *string `json:"origin,omitempty"`
}

type OperationEntityListResult

OperationEntityListResult the list of storage sync operations.

type OperationEntityListResult struct {
    autorest.Response `json:"-"`
    // NextLink - The link used to get the next page of operations.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - The list of operations.
    Value *[]OperationEntity `json:"value,omitempty"`
}

func (OperationEntityListResult) IsEmpty

func (oelr OperationEntityListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationEntityListResultIterator

OperationEntityListResultIterator provides access to a complete listing of OperationEntity values.

type OperationEntityListResultIterator struct {
    // contains filtered or unexported fields
}

func NewOperationEntityListResultIterator

func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator

Creates a new instance of the OperationEntityListResultIterator type.

func (*OperationEntityListResultIterator) Next

func (iter *OperationEntityListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationEntityListResultIterator) NextWithContext

func (iter *OperationEntityListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationEntityListResultIterator) NotDone

func (iter OperationEntityListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationEntityListResultIterator) Response

func (iter OperationEntityListResultIterator) Response() OperationEntityListResult

Response returns the raw server response from the last page request.

func (OperationEntityListResultIterator) Value

func (iter OperationEntityListResultIterator) Value() OperationEntity

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationEntityListResultPage

OperationEntityListResultPage contains a page of OperationEntity values.

type OperationEntityListResultPage struct {
    // contains filtered or unexported fields
}

func NewOperationEntityListResultPage

func NewOperationEntityListResultPage(cur OperationEntityListResult, getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage

Creates a new instance of the OperationEntityListResultPage type.

func (*OperationEntityListResultPage) Next

func (page *OperationEntityListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationEntityListResultPage) NextWithContext

func (page *OperationEntityListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationEntityListResultPage) NotDone

func (page OperationEntityListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationEntityListResultPage) Response

func (page OperationEntityListResultPage) Response() OperationEntityListResult

Response returns the raw server response from the last page request.

func (OperationEntityListResultPage) Values

func (page OperationEntityListResultPage) Values() []OperationEntity

Values returns the slice of values for the current page or nil if there are no values.

type OperationStatus

OperationStatus operation status object

type OperationStatus struct {
    autorest.Response `json:"-"`
    // Name - READ-ONLY; Operation Id
    Name *string `json:"name,omitempty"`
    // Status - READ-ONLY; Operation status
    Status *string `json:"status,omitempty"`
    // StartTime - READ-ONLY; Start time of the operation
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; End time of the operation
    EndTime *date.Time `json:"endTime,omitempty"`
    // Error - READ-ONLY; Error details.
    Error *APIError `json:"error,omitempty"`
}

func (OperationStatus) MarshalJSON

func (osVar OperationStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatus.

type OperationStatusClient

OperationStatusClient is the microsoft Storage Sync Service API

type OperationStatusClient struct {
    BaseClient
}

func NewOperationStatusClient

func NewOperationStatusClient(subscriptionID string) OperationStatusClient

NewOperationStatusClient creates an instance of the OperationStatusClient client.

func NewOperationStatusClientWithBaseURI

func NewOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusClient

NewOperationStatusClientWithBaseURI creates an instance of the OperationStatusClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationStatusClient) Get

func (client OperationStatusClient) Get(ctx context.Context, resourceGroupName string, locationName string, workflowID string, operationID string) (result OperationStatus, err error)

Get get Operation status Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. locationName - the desired region to obtain information from. workflowID - workflow Id operationID - operation Id

func (OperationStatusClient) GetPreparer

func (client OperationStatusClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, workflowID string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationStatusClient) GetResponder

func (client OperationStatusClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationStatusClient) GetSender

func (client OperationStatusClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type OperationsClient

OperationsClient is the microsoft Storage Sync Service API

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationEntityListResultPage, err error)

List lists all of the available Storage Sync Rest API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationEntityListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationEntityListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PostBackupResponse

PostBackupResponse post Backup Response

type PostBackupResponse struct {
    autorest.Response `json:"-"`
    // PostBackupResponseProperties - Post Backup Response Properties
    *PostBackupResponseProperties `json:"backupMetadata,omitempty"`
}

func (PostBackupResponse) MarshalJSON

func (pbr PostBackupResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PostBackupResponse.

func (*PostBackupResponse) UnmarshalJSON

func (pbr *PostBackupResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PostBackupResponse struct.

type PostBackupResponseProperties

PostBackupResponseProperties post Backup Response Properties object.

type PostBackupResponseProperties struct {
    // CloudEndpointName - READ-ONLY; cloud endpoint Name.
    CloudEndpointName *string `json:"cloudEndpointName,omitempty"`
}

func (PostBackupResponseProperties) MarshalJSON

func (pbrp PostBackupResponseProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PostBackupResponseProperties.

type PostRestoreRequest

PostRestoreRequest post Restore Request

type PostRestoreRequest struct {
    // Partition - Post Restore partition.
    Partition *string `json:"partition,omitempty"`
    // ReplicaGroup - Post Restore replica group.
    ReplicaGroup *string `json:"replicaGroup,omitempty"`
    // RequestID - Post Restore request id.
    RequestID *string `json:"requestId,omitempty"`
    // AzureFileShareURI - Post Restore Azure file share uri.
    AzureFileShareURI *string `json:"azureFileShareUri,omitempty"`
    // Status - Post Restore Azure status.
    Status *string `json:"status,omitempty"`
    // SourceAzureFileShareURI - Post Restore Azure source azure file share uri.
    SourceAzureFileShareURI *string `json:"sourceAzureFileShareUri,omitempty"`
    // FailedFileList - Post Restore Azure failed file list.
    FailedFileList *string `json:"failedFileList,omitempty"`
    // RestoreFileSpec - Post Restore restore file spec array.
    RestoreFileSpec *[]RestoreFileSpec `json:"restoreFileSpec,omitempty"`
}

type PreRestoreRequest

PreRestoreRequest pre Restore request object.

type PreRestoreRequest struct {
    // Partition - Pre Restore partition.
    Partition *string `json:"partition,omitempty"`
    // ReplicaGroup - Pre Restore replica group.
    ReplicaGroup *string `json:"replicaGroup,omitempty"`
    // RequestID - Pre Restore request id.
    RequestID *string `json:"requestId,omitempty"`
    // AzureFileShareURI - Pre Restore Azure file share uri.
    AzureFileShareURI *string `json:"azureFileShareUri,omitempty"`
    // Status - Pre Restore Azure status.
    Status *string `json:"status,omitempty"`
    // SourceAzureFileShareURI - Pre Restore Azure source azure file share uri.
    SourceAzureFileShareURI *string `json:"sourceAzureFileShareUri,omitempty"`
    // BackupMetadataPropertyBag - Pre Restore backup metadata property bag.
    BackupMetadataPropertyBag *string `json:"backupMetadataPropertyBag,omitempty"`
    // RestoreFileSpec - Pre Restore restore file spec array.
    RestoreFileSpec *[]RestoreFileSpec `json:"restoreFileSpec,omitempty"`
    // PauseWaitForSyncDrainTimePeriodInSeconds - Pre Restore pause wait for sync drain time period in seconds.
    PauseWaitForSyncDrainTimePeriodInSeconds *int32 `json:"pauseWaitForSyncDrainTimePeriodInSeconds,omitempty"`
}

type ProxyResource

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Reason

Reason enumerates the values for reason.

type Reason string
const (
    // Deleted ...
    Deleted Reason = "Deleted"
    // Registered ...
    Registered Reason = "Registered"
    // Suspended ...
    Suspended Reason = "Suspended"
    // Unregistered ...
    Unregistered Reason = "Unregistered"
    // Warned ...
    Warned Reason = "Warned"
)

func PossibleReasonValues

func PossibleReasonValues() []Reason

PossibleReasonValues returns an array of possible values for the Reason const type.

type RecallActionParameters

RecallActionParameters the parameters used when calling recall action on server endpoint.

type RecallActionParameters struct {
    // Pattern - Pattern of the files.
    Pattern *string `json:"pattern,omitempty"`
    // RecallPath - Recall path.
    RecallPath *string `json:"recallPath,omitempty"`
}

type RegisteredServer

RegisteredServer registered Server resource.

type RegisteredServer struct {
    autorest.Response `json:"-"`
    // RegisteredServerProperties - RegisteredServer properties.
    *RegisteredServerProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (RegisteredServer) MarshalJSON

func (rs RegisteredServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegisteredServer.

func (*RegisteredServer) UnmarshalJSON

func (rs *RegisteredServer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RegisteredServer struct.

type RegisteredServerArray

RegisteredServerArray array of RegisteredServer

type RegisteredServerArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of Registered Server.
    Value *[]RegisteredServer `json:"value,omitempty"`
}

type RegisteredServerCreateParameters

RegisteredServerCreateParameters the parameters used when creating a registered server.

type RegisteredServerCreateParameters struct {
    // RegisteredServerCreateParametersProperties - The parameters used to create the registered server.
    *RegisteredServerCreateParametersProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (RegisteredServerCreateParameters) MarshalJSON

func (rscp RegisteredServerCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RegisteredServerCreateParameters.

func (*RegisteredServerCreateParameters) UnmarshalJSON

func (rscp *RegisteredServerCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RegisteredServerCreateParameters struct.

type RegisteredServerCreateParametersProperties

RegisteredServerCreateParametersProperties ...

type RegisteredServerCreateParametersProperties struct {
    // ServerCertificate - Registered Server Certificate
    ServerCertificate *string `json:"serverCertificate,omitempty"`
    // AgentVersion - Registered Server Agent Version
    AgentVersion *string `json:"agentVersion,omitempty"`
    // ServerOSVersion - Registered Server OS Version
    ServerOSVersion *string `json:"serverOSVersion,omitempty"`
    // LastHeartBeat - Registered Server last heart beat
    LastHeartBeat *string `json:"lastHeartBeat,omitempty"`
    // ServerRole - Registered Server serverRole
    ServerRole *string `json:"serverRole,omitempty"`
    // ClusterID - Registered Server clusterId
    ClusterID *string `json:"clusterId,omitempty"`
    // ClusterName - Registered Server clusterName
    ClusterName *string `json:"clusterName,omitempty"`
    // ServerID - Registered Server serverId
    ServerID *string `json:"serverId,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
}

type RegisteredServerProperties

RegisteredServerProperties registeredServer Properties object.

type RegisteredServerProperties struct {
    // ServerCertificate - Registered Server Certificate
    ServerCertificate *string `json:"serverCertificate,omitempty"`
    // AgentVersion - Registered Server Agent Version
    AgentVersion *string `json:"agentVersion,omitempty"`
    // ServerOSVersion - Registered Server OS Version
    ServerOSVersion *string `json:"serverOSVersion,omitempty"`
    // ServerManagementErrorCode - Registered Server Management Error Code
    ServerManagementErrorCode *int32 `json:"serverManagementErrorCode,omitempty"`
    // LastHeartBeat - Registered Server last heart beat
    LastHeartBeat *string `json:"lastHeartBeat,omitempty"`
    // ProvisioningState - Registered Server Provisioning State
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // ServerRole - Registered Server serverRole
    ServerRole *string `json:"serverRole,omitempty"`
    // ClusterID - Registered Server clusterId
    ClusterID *string `json:"clusterId,omitempty"`
    // ClusterName - Registered Server clusterName
    ClusterName *string `json:"clusterName,omitempty"`
    // ServerID - Registered Server serverId
    ServerID *string `json:"serverId,omitempty"`
    // StorageSyncServiceUID - Registered Server storageSyncServiceUid
    StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"`
    // LastWorkflowID - Registered Server lastWorkflowId
    LastWorkflowID *string `json:"lastWorkflowId,omitempty"`
    // LastOperationName - Resource Last Operation Name
    LastOperationName *string `json:"lastOperationName,omitempty"`
    // DiscoveryEndpointURI - Resource discoveryEndpointUri
    DiscoveryEndpointURI *string `json:"discoveryEndpointUri,omitempty"`
    // ResourceLocation - Resource Location
    ResourceLocation *string `json:"resourceLocation,omitempty"`
    // ServiceLocation - Service Location
    ServiceLocation *string `json:"serviceLocation,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
    // ManagementEndpointURI - Management Endpoint Uri
    ManagementEndpointURI *string `json:"managementEndpointUri,omitempty"`
    // MonitoringConfiguration - Monitoring Configuration
    MonitoringConfiguration *string `json:"monitoringConfiguration,omitempty"`
}

type RegisteredServersClient

RegisteredServersClient is the microsoft Storage Sync Service API

type RegisteredServersClient struct {
    BaseClient
}

func NewRegisteredServersClient

func NewRegisteredServersClient(subscriptionID string) RegisteredServersClient

NewRegisteredServersClient creates an instance of the RegisteredServersClient client.

func NewRegisteredServersClientWithBaseURI

func NewRegisteredServersClientWithBaseURI(baseURI string, subscriptionID string) RegisteredServersClient

NewRegisteredServersClientWithBaseURI creates an instance of the RegisteredServersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RegisteredServersClient) Create

func (client RegisteredServersClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters RegisteredServerCreateParameters) (result RegisteredServersCreateFuture, err error)

Create add a new registered server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. serverID - GUID identifying the on-premises server. parameters - body of Registered Server object.

func (RegisteredServersClient) CreatePreparer

func (client RegisteredServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters RegisteredServerCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RegisteredServersClient) CreateResponder

func (client RegisteredServersClient) CreateResponder(resp *http.Response) (result RegisteredServer, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RegisteredServersClient) CreateSender

func (client RegisteredServersClient) CreateSender(req *http.Request) (future RegisteredServersCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (RegisteredServersClient) Delete

func (client RegisteredServersClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (result RegisteredServersDeleteFuture, err error)

Delete delete the given registered server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. serverID - GUID identifying the on-premises server.

func (RegisteredServersClient) DeletePreparer

func (client RegisteredServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RegisteredServersClient) DeleteResponder

func (client RegisteredServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RegisteredServersClient) DeleteSender

func (client RegisteredServersClient) DeleteSender(req *http.Request) (future RegisteredServersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RegisteredServersClient) Get

func (client RegisteredServersClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (result RegisteredServer, err error)

Get get a given registered server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. serverID - GUID identifying the on-premises server.

func (RegisteredServersClient) GetPreparer

func (client RegisteredServersClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RegisteredServersClient) GetResponder

func (client RegisteredServersClient) GetResponder(resp *http.Response) (result RegisteredServer, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RegisteredServersClient) GetSender

func (client RegisteredServersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RegisteredServersClient) ListByStorageSyncService

func (client RegisteredServersClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result RegisteredServerArray, err error)

ListByStorageSyncService get a given registered server list. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource.

func (RegisteredServersClient) ListByStorageSyncServicePreparer

func (client RegisteredServersClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)

ListByStorageSyncServicePreparer prepares the ListByStorageSyncService request.

func (RegisteredServersClient) ListByStorageSyncServiceResponder

func (client RegisteredServersClient) ListByStorageSyncServiceResponder(resp *http.Response) (result RegisteredServerArray, err error)

ListByStorageSyncServiceResponder handles the response to the ListByStorageSyncService request. The method always closes the http.Response Body.

func (RegisteredServersClient) ListByStorageSyncServiceSender

func (client RegisteredServersClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)

ListByStorageSyncServiceSender sends the ListByStorageSyncService request. The method will close the http.Response Body if it receives an error.

func (RegisteredServersClient) TriggerRollover

func (client RegisteredServersClient) TriggerRollover(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters TriggerRolloverRequest) (result RegisteredServersTriggerRolloverFuture, err error)

TriggerRollover triggers Server certificate rollover. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. serverID - server Id parameters - body of Trigger Rollover request.

func (RegisteredServersClient) TriggerRolloverPreparer

func (client RegisteredServersClient) TriggerRolloverPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters TriggerRolloverRequest) (*http.Request, error)

TriggerRolloverPreparer prepares the TriggerRollover request.

func (RegisteredServersClient) TriggerRolloverResponder

func (client RegisteredServersClient) TriggerRolloverResponder(resp *http.Response) (result autorest.Response, err error)

TriggerRolloverResponder handles the response to the TriggerRollover request. The method always closes the http.Response Body.

func (RegisteredServersClient) TriggerRolloverSender

func (client RegisteredServersClient) TriggerRolloverSender(req *http.Request) (future RegisteredServersTriggerRolloverFuture, err error)

TriggerRolloverSender sends the TriggerRollover request. The method will close the http.Response Body if it receives an error.

type RegisteredServersCreateFuture

RegisteredServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegisteredServersCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegisteredServersClient) (RegisteredServer, error)
}

func (*RegisteredServersCreateFuture) UnmarshalJSON

func (future *RegisteredServersCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegisteredServersDeleteFuture

RegisteredServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegisteredServersDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegisteredServersClient) (autorest.Response, error)
}

func (*RegisteredServersDeleteFuture) UnmarshalJSON

func (future *RegisteredServersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type RegisteredServersTriggerRolloverFuture

RegisteredServersTriggerRolloverFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type RegisteredServersTriggerRolloverFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(RegisteredServersClient) (autorest.Response, error)
}

func (*RegisteredServersTriggerRolloverFuture) UnmarshalJSON

func (future *RegisteredServersTriggerRolloverFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Resource

Resource common fields that are returned in the response for all Azure Resource Manager resources

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourcesMoveInfo

ResourcesMoveInfo resource Move Info.

type ResourcesMoveInfo struct {
    // TargetResourceGroup - Target resource group.
    TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
    // Resources - Collection of Resources.
    Resources *[]string `json:"resources,omitempty"`
}

type RestoreFileSpec

RestoreFileSpec restore file spec.

type RestoreFileSpec struct {
    // Path - Restore file spec path
    Path *string `json:"path,omitempty"`
    // Isdir - Restore file spec isdir
    Isdir *bool `json:"isdir,omitempty"`
}

type ServerEndpoint

ServerEndpoint server Endpoint object.

type ServerEndpoint struct {
    autorest.Response `json:"-"`
    // ServerEndpointProperties - Server Endpoint properties.
    *ServerEndpointProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ServerEndpoint) MarshalJSON

func (se ServerEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpoint.

func (*ServerEndpoint) UnmarshalJSON

func (se *ServerEndpoint) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerEndpoint struct.

type ServerEndpointArray

ServerEndpointArray array of ServerEndpoint

type ServerEndpointArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of ServerEndpoint.
    Value *[]ServerEndpoint `json:"value,omitempty"`
}

type ServerEndpointCloudTieringStatus

ServerEndpointCloudTieringStatus server endpoint cloud tiering status object.

type ServerEndpointCloudTieringStatus struct {
    // Health - READ-ONLY; Cloud tiering health state. Possible values include: 'HealthHealthy', 'HealthError'
    Health Health `json:"health,omitempty"`
    // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp
    LastUpdatedTimestamp *date.Time `json:"lastUpdatedTimestamp,omitempty"`
    // LastCloudTieringResult - READ-ONLY; Last cloud tiering result (HResult)
    LastCloudTieringResult *int32 `json:"lastCloudTieringResult,omitempty"`
    // LastSuccessTimestamp - READ-ONLY; Last cloud tiering success timestamp
    LastSuccessTimestamp *date.Time `json:"lastSuccessTimestamp,omitempty"`
}

func (ServerEndpointCloudTieringStatus) MarshalJSON

func (sects ServerEndpointCloudTieringStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointCloudTieringStatus.

type ServerEndpointCreateParameters

ServerEndpointCreateParameters the parameters used when creating a server endpoint.

type ServerEndpointCreateParameters struct {
    // ServerEndpointCreateParametersProperties - The parameters used to create the server endpoint.
    *ServerEndpointCreateParametersProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ServerEndpointCreateParameters) MarshalJSON

func (secp ServerEndpointCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointCreateParameters.

func (*ServerEndpointCreateParameters) UnmarshalJSON

func (secp *ServerEndpointCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerEndpointCreateParameters struct.

type ServerEndpointCreateParametersProperties

ServerEndpointCreateParametersProperties serverEndpoint Properties object.

type ServerEndpointCreateParametersProperties struct {
    // ServerLocalPath - Server Local path.
    ServerLocalPath *string `json:"serverLocalPath,omitempty"`
    // CloudTiering - Cloud Tiering. Possible values include: 'On', 'Off'
    CloudTiering CloudTiering `json:"cloudTiering,omitempty"`
    // VolumeFreeSpacePercent - Level of free space to be maintained by Cloud Tiering if it is enabled.
    VolumeFreeSpacePercent *int32 `json:"volumeFreeSpacePercent,omitempty"`
    // TierFilesOlderThanDays - Tier files older than days.
    TierFilesOlderThanDays *int32 `json:"tierFilesOlderThanDays,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
    // ServerResourceID - Server Resource Id.
    ServerResourceID *string `json:"serverResourceId,omitempty"`
    // OfflineDataTransfer - Offline data transfer. Possible values include: 'OfflineDataTransferOn', 'OfflineDataTransferOff'
    OfflineDataTransfer OfflineDataTransfer `json:"offlineDataTransfer,omitempty"`
    // OfflineDataTransferShareName - Offline data transfer share name
    OfflineDataTransferShareName *string `json:"offlineDataTransferShareName,omitempty"`
}

type ServerEndpointFilesNotSyncingError

ServerEndpointFilesNotSyncingError files not syncing error object

type ServerEndpointFilesNotSyncingError struct {
    // ErrorCode - READ-ONLY; Error code (HResult)
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // PersistentCount - READ-ONLY; Count of persistent files not syncing with the specified error code
    PersistentCount *int64 `json:"persistentCount,omitempty"`
    // TransientCount - READ-ONLY; Count of transient files not syncing with the specified error code
    TransientCount *int64 `json:"transientCount,omitempty"`
}

func (ServerEndpointFilesNotSyncingError) MarshalJSON

func (sefnse ServerEndpointFilesNotSyncingError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointFilesNotSyncingError.

type ServerEndpointProperties

ServerEndpointProperties serverEndpoint Properties object.

type ServerEndpointProperties struct {
    // ServerLocalPath - Server Local path.
    ServerLocalPath *string `json:"serverLocalPath,omitempty"`
    // CloudTiering - Cloud Tiering. Possible values include: 'CloudTiering2On', 'CloudTiering2Off'
    CloudTiering CloudTiering2 `json:"cloudTiering,omitempty"`
    // VolumeFreeSpacePercent - Level of free space to be maintained by Cloud Tiering if it is enabled.
    VolumeFreeSpacePercent *int32 `json:"volumeFreeSpacePercent,omitempty"`
    // TierFilesOlderThanDays - Tier files older than days.
    TierFilesOlderThanDays *int32 `json:"tierFilesOlderThanDays,omitempty"`
    // FriendlyName - Friendly Name
    FriendlyName *string `json:"friendlyName,omitempty"`
    // ServerResourceID - Server Resource Id.
    ServerResourceID *string `json:"serverResourceId,omitempty"`
    // ProvisioningState - READ-ONLY; ServerEndpoint Provisioning State
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // LastWorkflowID - READ-ONLY; ServerEndpoint lastWorkflowId
    LastWorkflowID *string `json:"lastWorkflowId,omitempty"`
    // LastOperationName - READ-ONLY; Resource Last Operation Name
    LastOperationName *string `json:"lastOperationName,omitempty"`
    // SyncStatus - READ-ONLY; Server Endpoint sync status
    SyncStatus *ServerEndpointSyncStatus `json:"syncStatus,omitempty"`
    // OfflineDataTransfer - Offline data transfer. Possible values include: 'OfflineDataTransfer2On', 'OfflineDataTransfer2Off'
    OfflineDataTransfer OfflineDataTransfer2 `json:"offlineDataTransfer,omitempty"`
    // OfflineDataTransferStorageAccountResourceID - READ-ONLY; Offline data transfer storage account resource ID
    OfflineDataTransferStorageAccountResourceID *string `json:"offlineDataTransferStorageAccountResourceId,omitempty"`
    // OfflineDataTransferStorageAccountTenantID - READ-ONLY; Offline data transfer storage account tenant ID
    OfflineDataTransferStorageAccountTenantID *string `json:"offlineDataTransferStorageAccountTenantId,omitempty"`
    // OfflineDataTransferShareName - Offline data transfer share name
    OfflineDataTransferShareName *string `json:"offlineDataTransferShareName,omitempty"`
    // CloudTieringStatus - READ-ONLY; Cloud tiering status. Only populated if cloud tiering is enabled.
    CloudTieringStatus *ServerEndpointCloudTieringStatus `json:"cloudTieringStatus,omitempty"`
    // RecallStatus - READ-ONLY; Recall status. Only populated if cloud tiering is enabled.
    RecallStatus *ServerEndpointRecallStatus `json:"recallStatus,omitempty"`
}

func (ServerEndpointProperties) MarshalJSON

func (sep ServerEndpointProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointProperties.

type ServerEndpointRecallError

ServerEndpointRecallError server endpoint recall error object

type ServerEndpointRecallError struct {
    // ErrorCode - READ-ONLY; Error code (HResult)
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // Count - READ-ONLY; Count of occurences of the error
    Count *int64 `json:"count,omitempty"`
}

func (ServerEndpointRecallError) MarshalJSON

func (sere ServerEndpointRecallError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointRecallError.

type ServerEndpointRecallStatus

ServerEndpointRecallStatus server endpoint recall status object.

type ServerEndpointRecallStatus struct {
    // LastUpdatedTimestamp - READ-ONLY; Last updated timestamp
    LastUpdatedTimestamp *date.Time `json:"lastUpdatedTimestamp,omitempty"`
    // TotalRecallErrorsCount - READ-ONLY; Total count of recall errors.
    TotalRecallErrorsCount *int64 `json:"totalRecallErrorsCount,omitempty"`
    // RecallErrors - READ-ONLY; Array of recall errors
    RecallErrors *[]ServerEndpointRecallError `json:"recallErrors,omitempty"`
}

func (ServerEndpointRecallStatus) MarshalJSON

func (sers ServerEndpointRecallStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointRecallStatus.

type ServerEndpointSyncActivityStatus

ServerEndpointSyncActivityStatus sync Session status object.

type ServerEndpointSyncActivityStatus struct {
    // Timestamp - READ-ONLY; Timestamp when properties were updated
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // PerItemErrorCount - READ-ONLY; Per item error count
    PerItemErrorCount *int64 `json:"perItemErrorCount,omitempty"`
    // AppliedItemCount - READ-ONLY; Applied item count.
    AppliedItemCount *int64 `json:"appliedItemCount,omitempty"`
    // TotalItemCount - READ-ONLY; Total item count (if available)
    TotalItemCount *int64 `json:"totalItemCount,omitempty"`
    // AppliedBytes - READ-ONLY; Applied bytes
    AppliedBytes *int64 `json:"appliedBytes,omitempty"`
    // TotalBytes - READ-ONLY; Total bytes (if available)
    TotalBytes *int64 `json:"totalBytes,omitempty"`
}

func (ServerEndpointSyncActivityStatus) MarshalJSON

func (sesas ServerEndpointSyncActivityStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointSyncActivityStatus.

type ServerEndpointSyncSessionStatus

ServerEndpointSyncSessionStatus sync Session status object.

type ServerEndpointSyncSessionStatus struct {
    // LastSyncResult - READ-ONLY; Last sync result (HResult)
    LastSyncResult *int32 `json:"lastSyncResult,omitempty"`
    // LastSyncTimestamp - READ-ONLY; Last sync timestamp
    LastSyncTimestamp *date.Time `json:"lastSyncTimestamp,omitempty"`
    // LastSyncSuccessTimestamp - READ-ONLY; Last sync success timestamp
    LastSyncSuccessTimestamp *date.Time `json:"lastSyncSuccessTimestamp,omitempty"`
    // LastSyncPerItemErrorCount - READ-ONLY; Last sync per item error count.
    LastSyncPerItemErrorCount *int64 `json:"lastSyncPerItemErrorCount,omitempty"`
    // PersistentFilesNotSyncingCount - READ-ONLY; Count of persistent files not syncing.
    PersistentFilesNotSyncingCount *int64 `json:"persistentFilesNotSyncingCount,omitempty"`
    // TransientFilesNotSyncingCount - READ-ONLY; Count of transient files not syncing.
    TransientFilesNotSyncingCount *int64 `json:"transientFilesNotSyncingCount,omitempty"`
    // FilesNotSyncingErrors - READ-ONLY; Array of per-item errors coming from the last sync session.
    FilesNotSyncingErrors *[]ServerEndpointFilesNotSyncingError `json:"filesNotSyncingErrors,omitempty"`
}

func (ServerEndpointSyncSessionStatus) MarshalJSON

func (sesss ServerEndpointSyncSessionStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointSyncSessionStatus.

type ServerEndpointSyncStatus

ServerEndpointSyncStatus server Endpoint sync status

type ServerEndpointSyncStatus struct {
    // DownloadHealth - READ-ONLY; Download Health Status. Possible values include: 'DownloadHealthHealthy', 'DownloadHealthError', 'DownloadHealthSyncBlockedForRestore', 'DownloadHealthSyncBlockedForChangeDetectionPostRestore', 'DownloadHealthNoActivity'
    DownloadHealth DownloadHealth `json:"downloadHealth,omitempty"`
    // UploadHealth - READ-ONLY; Upload Health Status. Possible values include: 'UploadHealthHealthy', 'UploadHealthError', 'UploadHealthSyncBlockedForRestore', 'UploadHealthSyncBlockedForChangeDetectionPostRestore', 'UploadHealthNoActivity'
    UploadHealth UploadHealth `json:"uploadHealth,omitempty"`
    // CombinedHealth - READ-ONLY; Combined Health Status. Possible values include: 'CombinedHealthHealthy', 'CombinedHealthError', 'CombinedHealthSyncBlockedForRestore', 'CombinedHealthSyncBlockedForChangeDetectionPostRestore', 'CombinedHealthNoActivity'
    CombinedHealth CombinedHealth `json:"combinedHealth,omitempty"`
    // SyncActivity - READ-ONLY; Sync activity. Possible values include: 'Upload', 'Download', 'UploadAndDownload'
    SyncActivity SyncActivity `json:"syncActivity,omitempty"`
    // TotalPersistentFilesNotSyncingCount - READ-ONLY; Total count of persistent files not syncing (combined upload + download).
    TotalPersistentFilesNotSyncingCount *int64 `json:"totalPersistentFilesNotSyncingCount,omitempty"`
    // LastUpdatedTimestamp - READ-ONLY; Last Updated Timestamp
    LastUpdatedTimestamp *date.Time `json:"lastUpdatedTimestamp,omitempty"`
    // UploadStatus - READ-ONLY; Upload Status
    UploadStatus *ServerEndpointSyncSessionStatus `json:"uploadStatus,omitempty"`
    // DownloadStatus - READ-ONLY; Download Status
    DownloadStatus *ServerEndpointSyncSessionStatus `json:"downloadStatus,omitempty"`
    // UploadActivity - READ-ONLY; Upload sync activity
    UploadActivity *ServerEndpointSyncActivityStatus `json:"uploadActivity,omitempty"`
    // DownloadActivity - READ-ONLY; Download sync activity
    DownloadActivity *ServerEndpointSyncActivityStatus `json:"downloadActivity,omitempty"`
    // OfflineDataTransferStatus - READ-ONLY; Offline Data Transfer State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete'
    OfflineDataTransferStatus OfflineDataTransferStatus `json:"offlineDataTransferStatus,omitempty"`
}

func (ServerEndpointSyncStatus) MarshalJSON

func (sess ServerEndpointSyncStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointSyncStatus.

type ServerEndpointUpdateParameters

ServerEndpointUpdateParameters parameters for updating an Server Endpoint.

type ServerEndpointUpdateParameters struct {
    // ServerEndpointUpdateProperties - The properties of the server endpoint.
    *ServerEndpointUpdateProperties `json:"properties,omitempty"`
}

func (ServerEndpointUpdateParameters) MarshalJSON

func (seup ServerEndpointUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerEndpointUpdateParameters.

func (*ServerEndpointUpdateParameters) UnmarshalJSON

func (seup *ServerEndpointUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerEndpointUpdateParameters struct.

type ServerEndpointUpdateProperties

ServerEndpointUpdateProperties serverEndpoint Update Properties object.

type ServerEndpointUpdateProperties struct {
    // CloudTiering - Cloud Tiering. Possible values include: 'CloudTiering1On', 'CloudTiering1Off'
    CloudTiering CloudTiering1 `json:"cloudTiering,omitempty"`
    // VolumeFreeSpacePercent - Level of free space to be maintained by Cloud Tiering if it is enabled.
    VolumeFreeSpacePercent *int32 `json:"volumeFreeSpacePercent,omitempty"`
    // TierFilesOlderThanDays - Tier files older than days.
    TierFilesOlderThanDays *int32 `json:"tierFilesOlderThanDays,omitempty"`
    // OfflineDataTransfer - Offline data transfer. Possible values include: 'OfflineDataTransfer1On', 'OfflineDataTransfer1Off'
    OfflineDataTransfer OfflineDataTransfer1 `json:"offlineDataTransfer,omitempty"`
    // OfflineDataTransferShareName - Offline data transfer share name
    OfflineDataTransferShareName *string `json:"offlineDataTransferShareName,omitempty"`
}

type ServerEndpointsClient

ServerEndpointsClient is the microsoft Storage Sync Service API

type ServerEndpointsClient struct {
    BaseClient
}

func NewServerEndpointsClient

func NewServerEndpointsClient(subscriptionID string) ServerEndpointsClient

NewServerEndpointsClient creates an instance of the ServerEndpointsClient client.

func NewServerEndpointsClientWithBaseURI

func NewServerEndpointsClientWithBaseURI(baseURI string, subscriptionID string) ServerEndpointsClient

NewServerEndpointsClientWithBaseURI creates an instance of the ServerEndpointsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServerEndpointsClient) Create

func (client ServerEndpointsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters ServerEndpointCreateParameters) (result ServerEndpointsCreateFuture, err error)

Create create a new ServerEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. serverEndpointName - name of Server Endpoint object. parameters - body of Server Endpoint object.

func (ServerEndpointsClient) CreatePreparer

func (client ServerEndpointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters ServerEndpointCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ServerEndpointsClient) CreateResponder

func (client ServerEndpointsClient) CreateResponder(resp *http.Response) (result ServerEndpoint, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ServerEndpointsClient) CreateSender

func (client ServerEndpointsClient) CreateSender(req *http.Request) (future ServerEndpointsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ServerEndpointsClient) Delete

func (client ServerEndpointsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (result ServerEndpointsDeleteFuture, err error)

Delete delete a given ServerEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. serverEndpointName - name of Server Endpoint object.

func (ServerEndpointsClient) DeletePreparer

func (client ServerEndpointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerEndpointsClient) DeleteResponder

func (client ServerEndpointsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServerEndpointsClient) DeleteSender

func (client ServerEndpointsClient) DeleteSender(req *http.Request) (future ServerEndpointsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServerEndpointsClient) Get

func (client ServerEndpointsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (result ServerEndpoint, err error)

Get get a ServerEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. serverEndpointName - name of Server Endpoint object.

func (ServerEndpointsClient) GetPreparer

func (client ServerEndpointsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerEndpointsClient) GetResponder

func (client ServerEndpointsClient) GetResponder(resp *http.Response) (result ServerEndpoint, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerEndpointsClient) GetSender

func (client ServerEndpointsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServerEndpointsClient) ListBySyncGroup

func (client ServerEndpointsClient) ListBySyncGroup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result ServerEndpointArray, err error)

ListBySyncGroup get a ServerEndpoint list. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource.

func (ServerEndpointsClient) ListBySyncGroupPreparer

func (client ServerEndpointsClient) ListBySyncGroupPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)

ListBySyncGroupPreparer prepares the ListBySyncGroup request.

func (ServerEndpointsClient) ListBySyncGroupResponder

func (client ServerEndpointsClient) ListBySyncGroupResponder(resp *http.Response) (result ServerEndpointArray, err error)

ListBySyncGroupResponder handles the response to the ListBySyncGroup request. The method always closes the http.Response Body.

func (ServerEndpointsClient) ListBySyncGroupSender

func (client ServerEndpointsClient) ListBySyncGroupSender(req *http.Request) (*http.Response, error)

ListBySyncGroupSender sends the ListBySyncGroup request. The method will close the http.Response Body if it receives an error.

func (ServerEndpointsClient) RecallAction

func (client ServerEndpointsClient) RecallAction(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters RecallActionParameters) (result ServerEndpointsRecallActionFuture, err error)

RecallAction recall a server endpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. serverEndpointName - name of Server Endpoint object. parameters - body of Recall Action object.

func (ServerEndpointsClient) RecallActionPreparer

func (client ServerEndpointsClient) RecallActionPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters RecallActionParameters) (*http.Request, error)

RecallActionPreparer prepares the RecallAction request.

func (ServerEndpointsClient) RecallActionResponder

func (client ServerEndpointsClient) RecallActionResponder(resp *http.Response) (result autorest.Response, err error)

RecallActionResponder handles the response to the RecallAction request. The method always closes the http.Response Body.

func (ServerEndpointsClient) RecallActionSender

func (client ServerEndpointsClient) RecallActionSender(req *http.Request) (future ServerEndpointsRecallActionFuture, err error)

RecallActionSender sends the RecallAction request. The method will close the http.Response Body if it receives an error.

func (ServerEndpointsClient) Update

func (client ServerEndpointsClient) Update(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters *ServerEndpointUpdateParameters) (result ServerEndpointsUpdateFuture, err error)

Update patch a given ServerEndpoint. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. serverEndpointName - name of Server Endpoint object. parameters - any of the properties applicable in PUT request.

func (ServerEndpointsClient) UpdatePreparer

func (client ServerEndpointsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters *ServerEndpointUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServerEndpointsClient) UpdateResponder

func (client ServerEndpointsClient) UpdateResponder(resp *http.Response) (result ServerEndpoint, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServerEndpointsClient) UpdateSender

func (client ServerEndpointsClient) UpdateSender(req *http.Request) (future ServerEndpointsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ServerEndpointsCreateFuture

ServerEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServerEndpointsCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServerEndpointsClient) (ServerEndpoint, error)
}

func (*ServerEndpointsCreateFuture) UnmarshalJSON

func (future *ServerEndpointsCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServerEndpointsDeleteFuture

ServerEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServerEndpointsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServerEndpointsClient) (autorest.Response, error)
}

func (*ServerEndpointsDeleteFuture) UnmarshalJSON

func (future *ServerEndpointsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServerEndpointsRecallActionFuture

ServerEndpointsRecallActionFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServerEndpointsRecallActionFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServerEndpointsClient) (autorest.Response, error)
}

func (*ServerEndpointsRecallActionFuture) UnmarshalJSON

func (future *ServerEndpointsRecallActionFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ServerEndpointsUpdateFuture

ServerEndpointsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServerEndpointsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServerEndpointsClient) (ServerEndpoint, error)
}

func (*ServerEndpointsUpdateFuture) UnmarshalJSON

func (future *ServerEndpointsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Service

Service storage Sync Service object.

type Service struct {
    autorest.Response `json:"-"`
    // ServiceProperties - Storage Sync Service properties.
    *ServiceProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Service) MarshalJSON

func (s Service) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Service.

func (*Service) UnmarshalJSON

func (s *Service) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Service struct.

type ServiceArray

ServiceArray array of StorageSyncServices

type ServiceArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of StorageSyncServices.
    Value *[]Service `json:"value,omitempty"`
}

type ServiceCreateParameters

ServiceCreateParameters the parameters used when creating a storage sync service.

type ServiceCreateParameters struct {
    // Location - Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
    Location *string `json:"location,omitempty"`
    // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
    Tags       map[string]*string `json:"tags"`
    Properties interface{}        `json:"properties,omitempty"`
}

func (ServiceCreateParameters) MarshalJSON

func (scp ServiceCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceCreateParameters.

type ServiceProperties

ServiceProperties storage Sync Service Properties object.

type ServiceProperties struct {
    // StorageSyncServiceStatus - READ-ONLY; Storage Sync service status.
    StorageSyncServiceStatus *int32 `json:"storageSyncServiceStatus,omitempty"`
    // StorageSyncServiceUID - READ-ONLY; Storage Sync service Uid
    StorageSyncServiceUID *string `json:"storageSyncServiceUid,omitempty"`
}

func (ServiceProperties) MarshalJSON

func (sp ServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceProperties.

type ServiceUpdateParameters

ServiceUpdateParameters parameters for updating an Storage sync service.

type ServiceUpdateParameters struct {
    // Tags - The user-specified tags associated with the storage sync service.
    Tags map[string]*string `json:"tags"`
    // Properties - The properties of the storage sync service.
    Properties interface{} `json:"properties,omitempty"`
}

func (ServiceUpdateParameters) MarshalJSON

func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceUpdateParameters.

type ServicesClient

ServicesClient is the microsoft Storage Sync Service API

type ServicesClient struct {
    BaseClient
}

func NewServicesClient

func NewServicesClient(subscriptionID string) ServicesClient

NewServicesClient creates an instance of the ServicesClient client.

func NewServicesClientWithBaseURI

func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient

NewServicesClientWithBaseURI creates an instance of the ServicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServicesClient) CheckNameAvailability

func (client ServicesClient) CheckNameAvailability(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability check the give namespace name availability. Parameters: locationName - the desired region for the name check. parameters - parameters to check availability of the given namespace name

func (ServicesClient) CheckNameAvailabilityPreparer

func (client ServicesClient) CheckNameAvailabilityPreparer(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServicesClient) CheckNameAvailabilityResponder

func (client ServicesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ServicesClient) CheckNameAvailabilitySender

func (client ServicesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Create

func (client ServicesClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters ServiceCreateParameters) (result Service, err error)

Create create a new StorageSyncService. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. parameters - storage Sync Service resource name.

func (ServicesClient) CreatePreparer

func (client ServicesClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters ServiceCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ServicesClient) CreateResponder

func (client ServicesClient) CreateResponder(resp *http.Response) (result Service, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ServicesClient) CreateSender

func (client ServicesClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Delete

func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result autorest.Response, err error)

Delete delete a given StorageSyncService. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource.

func (ServicesClient) DeletePreparer

func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServicesClient) DeleteResponder

func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicesClient) DeleteSender

func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Get

func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result Service, err error)

Get get a given StorageSyncService. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource.

func (ServicesClient) GetPreparer

func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServicesClient) GetResponder

func (client ServicesClient) GetResponder(resp *http.Response) (result Service, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServicesClient) GetSender

func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) ListByResourceGroup

func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceArray, err error)

ListByResourceGroup get a StorageSyncService list by Resource group name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (ServicesClient) ListByResourceGroupPreparer

func (client ServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServicesClient) ListByResourceGroupResponder

func (client ServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceArray, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ServicesClient) ListByResourceGroupSender

func (client ServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) ListBySubscription

func (client ServicesClient) ListBySubscription(ctx context.Context) (result ServiceArray, err error)

ListBySubscription get a StorageSyncService list by subscription.

func (ServicesClient) ListBySubscriptionPreparer

func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ServicesClient) ListBySubscriptionResponder

func (client ServicesClient) ListBySubscriptionResponder(resp *http.Response) (result ServiceArray, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ServicesClient) ListBySubscriptionSender

func (client ServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Update

func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters *ServiceUpdateParameters) (result Service, err error)

Update patch a given StorageSyncService. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. parameters - storage Sync Service resource.

func (ServicesClient) UpdatePreparer

func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, parameters *ServiceUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServicesClient) UpdateResponder

func (client ServicesClient) UpdateResponder(resp *http.Response) (result Service, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServicesClient) UpdateSender

func (client ServicesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type Status

Status enumerates the values for status.

type Status string
const (
    // Aborted ...
    Aborted Status = "aborted"
    // Active ...
    Active Status = "active"
    // Expired ...
    Expired Status = "expired"
    // Failed ...
    Failed Status = "failed"
    // Succeeded ...
    Succeeded Status = "succeeded"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type SubscriptionState

SubscriptionState subscription State object.

type SubscriptionState struct {
    // State - State of Azure Subscription. Possible values include: 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted'
    State Reason `json:"state,omitempty"`
    // Istransitioning - READ-ONLY; Is Transitioning
    Istransitioning *bool `json:"istransitioning,omitempty"`
    // Properties - Subscription state properties.
    Properties interface{} `json:"properties,omitempty"`
}

func (SubscriptionState) MarshalJSON

func (ss SubscriptionState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionState.

type SyncActivity

SyncActivity enumerates the values for sync activity.

type SyncActivity string
const (
    // Download ...
    Download SyncActivity = "Download"
    // Upload ...
    Upload SyncActivity = "Upload"
    // UploadAndDownload ...
    UploadAndDownload SyncActivity = "UploadAndDownload"
)

func PossibleSyncActivityValues

func PossibleSyncActivityValues() []SyncActivity

PossibleSyncActivityValues returns an array of possible values for the SyncActivity const type.

type SyncGroup

SyncGroup sync Group object.

type SyncGroup struct {
    autorest.Response `json:"-"`
    // SyncGroupProperties - SyncGroup properties.
    *SyncGroupProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (SyncGroup) MarshalJSON

func (sg SyncGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncGroup.

func (*SyncGroup) UnmarshalJSON

func (sg *SyncGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SyncGroup struct.

type SyncGroupArray

SyncGroupArray array of SyncGroup

type SyncGroupArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of SyncGroup.
    Value *[]SyncGroup `json:"value,omitempty"`
}

type SyncGroupCreateParameters

SyncGroupCreateParameters the parameters used when creating a sync group.

type SyncGroupCreateParameters struct {
    // Properties - The parameters used to create the sync group
    Properties interface{} `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (SyncGroupCreateParameters) MarshalJSON

func (sgcp SyncGroupCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncGroupCreateParameters.

type SyncGroupProperties

SyncGroupProperties syncGroup Properties object.

type SyncGroupProperties struct {
    // UniqueID - READ-ONLY; Unique Id
    UniqueID *string `json:"uniqueId,omitempty"`
    // SyncGroupStatus - READ-ONLY; Sync group status
    SyncGroupStatus *string `json:"syncGroupStatus,omitempty"`
}

func (SyncGroupProperties) MarshalJSON

func (sgp SyncGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncGroupProperties.

type SyncGroupsClient

SyncGroupsClient is the microsoft Storage Sync Service API

type SyncGroupsClient struct {
    BaseClient
}

func NewSyncGroupsClient

func NewSyncGroupsClient(subscriptionID string) SyncGroupsClient

NewSyncGroupsClient creates an instance of the SyncGroupsClient client.

func NewSyncGroupsClientWithBaseURI

func NewSyncGroupsClientWithBaseURI(baseURI string, subscriptionID string) SyncGroupsClient

NewSyncGroupsClientWithBaseURI creates an instance of the SyncGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SyncGroupsClient) Create

func (client SyncGroupsClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, parameters SyncGroupCreateParameters) (result SyncGroup, err error)

Create create a new SyncGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource. parameters - sync Group Body

func (SyncGroupsClient) CreatePreparer

func (client SyncGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, parameters SyncGroupCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (SyncGroupsClient) CreateResponder

func (client SyncGroupsClient) CreateResponder(resp *http.Response) (result SyncGroup, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (SyncGroupsClient) CreateSender

func (client SyncGroupsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) Delete

func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result autorest.Response, err error)

Delete delete a given SyncGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource.

func (SyncGroupsClient) DeletePreparer

func (client SyncGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SyncGroupsClient) DeleteResponder

func (client SyncGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SyncGroupsClient) DeleteSender

func (client SyncGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) Get

func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (result SyncGroup, err error)

Get get a given SyncGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. syncGroupName - name of Sync Group resource.

func (SyncGroupsClient) GetPreparer

func (client SyncGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SyncGroupsClient) GetResponder

func (client SyncGroupsClient) GetResponder(resp *http.Response) (result SyncGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SyncGroupsClient) GetSender

func (client SyncGroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) ListByStorageSyncService

func (client SyncGroupsClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result SyncGroupArray, err error)

ListByStorageSyncService get a SyncGroup List. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource.

func (SyncGroupsClient) ListByStorageSyncServicePreparer

func (client SyncGroupsClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)

ListByStorageSyncServicePreparer prepares the ListByStorageSyncService request.

func (SyncGroupsClient) ListByStorageSyncServiceResponder

func (client SyncGroupsClient) ListByStorageSyncServiceResponder(resp *http.Response) (result SyncGroupArray, err error)

ListByStorageSyncServiceResponder handles the response to the ListByStorageSyncService request. The method always closes the http.Response Body.

func (SyncGroupsClient) ListByStorageSyncServiceSender

func (client SyncGroupsClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)

ListByStorageSyncServiceSender sends the ListByStorageSyncService request. The method will close the http.Response Body if it receives an error.

type TrackedResource

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type TriggerChangeDetectionParameters

TriggerChangeDetectionParameters the parameters used when calling trigger change detection action on cloud endpoint.

type TriggerChangeDetectionParameters struct {
    // DirectoryPath - Relative path to a directory Azure File share for which change detection is to be performed.
    DirectoryPath *string `json:"directoryPath,omitempty"`
    // ChangeDetectionMode - Change Detection Mode. Applies to a directory specified in directoryPath parameter. Possible values include: 'Default', 'Recursive'
    ChangeDetectionMode ChangeDetectionMode `json:"changeDetectionMode,omitempty"`
    // Paths - Array of relative paths on the Azure File share to be included in the change detection. Can be files and directories.
    Paths *[]string `json:"paths,omitempty"`
}

type TriggerRolloverRequest

TriggerRolloverRequest trigger Rollover Request.

type TriggerRolloverRequest struct {
    // ServerCertificate - Certificate Data
    ServerCertificate *string `json:"serverCertificate,omitempty"`
}

type UploadHealth

UploadHealth enumerates the values for upload health.

type UploadHealth string
const (
    // UploadHealthError ...
    UploadHealthError UploadHealth = "Error"
    // UploadHealthHealthy ...
    UploadHealthHealthy UploadHealth = "Healthy"
    // UploadHealthNoActivity ...
    UploadHealthNoActivity UploadHealth = "NoActivity"
    // UploadHealthSyncBlockedForChangeDetectionPostRestore ...
    UploadHealthSyncBlockedForChangeDetectionPostRestore UploadHealth = "SyncBlockedForChangeDetectionPostRestore"
    // UploadHealthSyncBlockedForRestore ...
    UploadHealthSyncBlockedForRestore UploadHealth = "SyncBlockedForRestore"
)

func PossibleUploadHealthValues

func PossibleUploadHealthValues() []UploadHealth

PossibleUploadHealthValues returns an array of possible values for the UploadHealth const type.

type Workflow

Workflow workflow resource.

type Workflow struct {
    autorest.Response `json:"-"`
    // WorkflowProperties - Workflow properties.
    *WorkflowProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Workflow) MarshalJSON

func (w Workflow) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Workflow.

func (*Workflow) UnmarshalJSON

func (w *Workflow) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Workflow struct.

type WorkflowArray

WorkflowArray array of Workflow

type WorkflowArray struct {
    autorest.Response `json:"-"`
    // Value - Collection of workflow items.
    Value *[]Workflow `json:"value,omitempty"`
}

type WorkflowProperties

WorkflowProperties workflow Properties object.

type WorkflowProperties struct {
    // LastStepName - last step name
    LastStepName *string `json:"lastStepName,omitempty"`
    // Status - workflow status. Possible values include: 'Active', 'Expired', 'Succeeded', 'Aborted', 'Failed'
    Status Status `json:"status,omitempty"`
    // Operation - operation direction. Possible values include: 'Do', 'Undo', 'Cancel'
    Operation Operation `json:"operation,omitempty"`
    // Steps - workflow steps
    Steps *string `json:"steps,omitempty"`
    // LastOperationID - workflow last operation identifier.
    LastOperationID *string `json:"lastOperationId,omitempty"`
}

type WorkflowsClient

WorkflowsClient is the microsoft Storage Sync Service API

type WorkflowsClient struct {
    BaseClient
}

func NewWorkflowsClient

func NewWorkflowsClient(subscriptionID string) WorkflowsClient

NewWorkflowsClient creates an instance of the WorkflowsClient client.

func NewWorkflowsClientWithBaseURI

func NewWorkflowsClientWithBaseURI(baseURI string, subscriptionID string) WorkflowsClient

NewWorkflowsClientWithBaseURI creates an instance of the WorkflowsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WorkflowsClient) Abort

func (client WorkflowsClient) Abort(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (result autorest.Response, err error)

Abort abort the given workflow. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. workflowID - workflow Id

func (WorkflowsClient) AbortPreparer

func (client WorkflowsClient) AbortPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (*http.Request, error)

AbortPreparer prepares the Abort request.

func (WorkflowsClient) AbortResponder

func (client WorkflowsClient) AbortResponder(resp *http.Response) (result autorest.Response, err error)

AbortResponder handles the response to the Abort request. The method always closes the http.Response Body.

func (WorkflowsClient) AbortSender

func (client WorkflowsClient) AbortSender(req *http.Request) (*http.Response, error)

AbortSender sends the Abort request. The method will close the http.Response Body if it receives an error.

func (WorkflowsClient) Get

func (client WorkflowsClient) Get(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (result Workflow, err error)

Get get Workflows resource Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource. workflowID - workflow Id

func (WorkflowsClient) GetPreparer

func (client WorkflowsClient) GetPreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string, workflowID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WorkflowsClient) GetResponder

func (client WorkflowsClient) GetResponder(resp *http.Response) (result Workflow, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WorkflowsClient) GetSender

func (client WorkflowsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WorkflowsClient) ListByStorageSyncService

func (client WorkflowsClient) ListByStorageSyncService(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (result WorkflowArray, err error)

ListByStorageSyncService get a Workflow List Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. storageSyncServiceName - name of Storage Sync Service resource.

func (WorkflowsClient) ListByStorageSyncServicePreparer

func (client WorkflowsClient) ListByStorageSyncServicePreparer(ctx context.Context, resourceGroupName string, storageSyncServiceName string) (*http.Request, error)

ListByStorageSyncServicePreparer prepares the ListByStorageSyncService request.

func (WorkflowsClient) ListByStorageSyncServiceResponder

func (client WorkflowsClient) ListByStorageSyncServiceResponder(resp *http.Response) (result WorkflowArray, err error)

ListByStorageSyncServiceResponder handles the response to the ListByStorageSyncService request. The method always closes the http.Response Body.

func (WorkflowsClient) ListByStorageSyncServiceSender

func (client WorkflowsClient) ListByStorageSyncServiceSender(req *http.Request) (*http.Response, error)

ListByStorageSyncServiceSender sends the ListByStorageSyncService request. The method will close the http.Response Body if it receives an error.

Subdirectories

Name Synopsis
..
storagesyncapi Deprecated: Please note, this package has been deprecated.