storagesync

package
v21.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package storagesync implements the Azure ARM Storagesync service API version 2018-04-02.

Microsoft Storage Sync Service API

Index

Constants

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

Variables

This section is empty.

Functions

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.

Types

type APIError

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"`
}

APIError error type

type AzureEntityResource

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

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

type BackupRequest

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

BackupRequest backup request

type BaseClient

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

BaseClient is the base client for Storagesync.

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.

type CheckNameAvailabilityParameters

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"`
}

CheckNameAvailabilityParameters parameters for a check name availability request.

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	autorest.Response `json:"-"`
	// NameAvailable - 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 - 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 - Gets an error message explaining the Reason value in more detail.
	Message *string `json:"message,omitempty"`
}

CheckNameAvailabilityResult the CheckNameAvailability operation response.

type CloudEndpoint

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

CloudEndpoint cloud Endpoint object.

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

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

CloudEndpointArray array of CloudEndpoint

type CloudEndpointCreateParameters

type CloudEndpointCreateParameters 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"`
	// CloudEndpointCreateParametersProperties - The parameters used to create the storage sync service.
	*CloudEndpointCreateParametersProperties `json:"properties,omitempty"`
}

CloudEndpointCreateParameters the parameters used when creating a storage sync service.

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

type CloudEndpointCreateParametersProperties struct {
	// StorageAccountResourceID - Storage Account Resource Id
	StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"`
	// StorageAccountShareName - Storage Account Share name
	StorageAccountShareName *string `json:"storageAccountShareName,omitempty"`
	// StorageAccountTenantID - Storage Account Tenant Id
	StorageAccountTenantID *string `json:"storageAccountTenantId,omitempty"`
}

CloudEndpointCreateParametersProperties cloudEndpoint Properties object.

type CloudEndpointProperties

type CloudEndpointProperties struct {
	// StorageAccountResourceID - Storage Account Resource Id
	StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"`
	// StorageAccountShareName - Storage Account Share name
	StorageAccountShareName *string `json:"storageAccountShareName,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 - Backup Enabled
	BackupEnabled *bool `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"`
}

CloudEndpointProperties cloudEndpoint Properties object.

type CloudEndpointsGroupClient

type CloudEndpointsGroupClient struct {
	BaseClient
}

CloudEndpointsGroupClient is the microsoft Storage Sync Service API

func NewCloudEndpointsGroupClient

func NewCloudEndpointsGroupClient(subscriptionID string) CloudEndpointsGroupClient

NewCloudEndpointsGroupClient creates an instance of the CloudEndpointsGroupClient client.

func NewCloudEndpointsGroupClientWithBaseURI

func NewCloudEndpointsGroupClientWithBaseURI(baseURI string, subscriptionID string) CloudEndpointsGroupClient

NewCloudEndpointsGroupClientWithBaseURI creates an instance of the CloudEndpointsGroupClient client.

func (CloudEndpointsGroupClient) Create

func (client CloudEndpointsGroupClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters CloudEndpointCreateParameters) (result CloudEndpointsGroupCreateFuture, 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 (CloudEndpointsGroupClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (CloudEndpointsGroupClient) CreateResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) CreateSender

func (client CloudEndpointsGroupClient) CreateSender(req *http.Request) (future CloudEndpointsGroupCreateFuture, err error)

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

func (CloudEndpointsGroupClient) Delete

func (client CloudEndpointsGroupClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string) (result CloudEndpointsGroupDeleteFuture, 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 (CloudEndpointsGroupClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (CloudEndpointsGroupClient) DeleteResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) DeleteSender

func (client CloudEndpointsGroupClient) DeleteSender(req *http.Request) (future CloudEndpointsGroupDeleteFuture, err error)

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

func (CloudEndpointsGroupClient) Get

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (CloudEndpointsGroupClient) GetResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) GetSender

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) ListBySyncGroup

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) ListBySyncGroupPreparer

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

ListBySyncGroupPreparer prepares the ListBySyncGroup request.

func (CloudEndpointsGroupClient) ListBySyncGroupResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) ListBySyncGroupSender

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) PostBackup

func (client CloudEndpointsGroupClient) PostBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsGroupPostBackupFuture, 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 (CloudEndpointsGroupClient) PostBackupPreparer

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

PostBackupPreparer prepares the PostBackup request.

func (CloudEndpointsGroupClient) PostBackupResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) PostBackupSender

func (client CloudEndpointsGroupClient) PostBackupSender(req *http.Request) (future CloudEndpointsGroupPostBackupFuture, err error)

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

func (CloudEndpointsGroupClient) PostRestore

func (client CloudEndpointsGroupClient) PostRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PostRestoreRequest) (result CloudEndpointsGroupPostRestoreFuture, 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 (CloudEndpointsGroupClient) PostRestorePreparer

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

PostRestorePreparer prepares the PostRestore request.

func (CloudEndpointsGroupClient) PostRestoreResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) PostRestoreSender

func (client CloudEndpointsGroupClient) PostRestoreSender(req *http.Request) (future CloudEndpointsGroupPostRestoreFuture, err error)

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

func (CloudEndpointsGroupClient) PreBackup

func (client CloudEndpointsGroupClient) PreBackup(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters BackupRequest) (result CloudEndpointsGroupPreBackupFuture, 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 (CloudEndpointsGroupClient) PreBackupPreparer

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

PreBackupPreparer prepares the PreBackup request.

func (CloudEndpointsGroupClient) PreBackupResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) PreBackupSender

func (client CloudEndpointsGroupClient) PreBackupSender(req *http.Request) (future CloudEndpointsGroupPreBackupFuture, err error)

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

func (CloudEndpointsGroupClient) PreRestore

func (client CloudEndpointsGroupClient) PreRestore(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, cloudEndpointName string, parameters PreRestoreRequest) (result CloudEndpointsGroupPreRestoreFuture, 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 (CloudEndpointsGroupClient) PreRestorePreparer

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

PreRestorePreparer prepares the PreRestore request.

func (CloudEndpointsGroupClient) PreRestoreResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) PreRestoreSender

func (client CloudEndpointsGroupClient) PreRestoreSender(req *http.Request) (future CloudEndpointsGroupPreRestoreFuture, err error)

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

func (CloudEndpointsGroupClient) Restoreheartbeat

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) RestoreheartbeatPreparer

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

RestoreheartbeatPreparer prepares the Restoreheartbeat request.

func (CloudEndpointsGroupClient) RestoreheartbeatResponder

func (client CloudEndpointsGroupClient) 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 (CloudEndpointsGroupClient) RestoreheartbeatSender

func (client CloudEndpointsGroupClient) 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.

type CloudEndpointsGroupCreateFuture

type CloudEndpointsGroupCreateFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupCreateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudEndpointsGroupDeleteFuture

type CloudEndpointsGroupDeleteFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudEndpointsGroupPostBackupFuture

type CloudEndpointsGroupPostBackupFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupPostBackupFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudEndpointsGroupPostRestoreFuture

type CloudEndpointsGroupPostRestoreFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupPostRestoreFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudEndpointsGroupPreBackupFuture

type CloudEndpointsGroupPreBackupFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupPreBackupFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudEndpointsGroupPreRestoreFuture

type CloudEndpointsGroupPreRestoreFuture struct {
	azure.Future
}

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

func (*CloudEndpointsGroupPreRestoreFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CloudTiering

type CloudTiering string

CloudTiering enumerates the values for cloud tiering.

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

type CloudTiering1 string

CloudTiering1 enumerates the values for cloud tiering 1.

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

type CloudTiering2 string

CloudTiering2 enumerates the values for cloud tiering 2.

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 Error

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"`
}

Error error type

type ErrorDetails

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"`
}

ErrorDetails error Details object.

type NameAvailabilityReason

type NameAvailabilityReason string

NameAvailabilityReason enumerates the values for name availability reason.

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 Operation

type Operation string

Operation enumerates the values for operation.

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

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"`
}

OperationDisplayInfo the operation supported by storage sync.

type OperationDisplayResource

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"`
}

OperationDisplayResource operation Display Resource object.

type OperationEntity

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"`
}

OperationEntity the operation supported by storage sync.

type OperationEntityListResult

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"`
}

OperationEntityListResult the list of storage sync operations.

func (OperationEntityListResult) IsEmpty

func (oelr OperationEntityListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationEntityListResultIterator

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

OperationEntityListResultIterator provides access to a complete listing of OperationEntity values.

func (*OperationEntityListResultIterator) Next

Next 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

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

func (OperationEntityListResultIterator) Value

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

type OperationEntityListResultPage

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

OperationEntityListResultPage contains a page of OperationEntity values.

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.

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

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

func (OperationEntityListResultPage) Values

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

type OperationsGroupClient

type OperationsGroupClient struct {
	BaseClient
}

OperationsGroupClient is the microsoft Storage Sync Service API

func NewOperationsGroupClient

func NewOperationsGroupClient(subscriptionID string) OperationsGroupClient

NewOperationsGroupClient creates an instance of the OperationsGroupClient client.

func NewOperationsGroupClientWithBaseURI

func NewOperationsGroupClientWithBaseURI(baseURI string, subscriptionID string) OperationsGroupClient

NewOperationsGroupClientWithBaseURI creates an instance of the OperationsGroupClient client.

func (OperationsGroupClient) List

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

func (OperationsGroupClient) ListComplete

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

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

func (OperationsGroupClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsGroupClient) ListResponder

func (client OperationsGroupClient) 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 (OperationsGroupClient) ListSender

func (client OperationsGroupClient) 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

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

PostBackupResponse post Backup Response

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

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

PostBackupResponseProperties post Backup Response Properties object.

type PostRestoreRequest

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"`
}

PostRestoreRequest post Restore Request

type PreRestoreRequest

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"`
}

PreRestoreRequest pre Restore request object.

type ProxyResource

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

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type Reason

type Reason string

Reason enumerates the values for reason.

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

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

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

type RegisteredServer

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

RegisteredServer registered Server resource.

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

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

RegisteredServerArray array of RegisteredServer

type RegisteredServerCreateParameters

type RegisteredServerCreateParameters 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"`
	// RegisteredServerCreateParametersProperties - The parameters used to create the storage sync service.
	*RegisteredServerCreateParametersProperties `json:"properties,omitempty"`
}

RegisteredServerCreateParameters the parameters used when creating a storage sync service.

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

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"`
}

RegisteredServerCreateParametersProperties registeredServer Properties object.

type RegisteredServerProperties

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"`
	// ServerManagementtErrorCode - Registered Server Management Error Code
	ServerManagementtErrorCode *int32 `json:"serverManagementtErrorCode,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"`
}

RegisteredServerProperties registeredServer Properties object.

type RegisteredServersGroupClient

type RegisteredServersGroupClient struct {
	BaseClient
}

RegisteredServersGroupClient is the microsoft Storage Sync Service API

func NewRegisteredServersGroupClient

func NewRegisteredServersGroupClient(subscriptionID string) RegisteredServersGroupClient

NewRegisteredServersGroupClient creates an instance of the RegisteredServersGroupClient client.

func NewRegisteredServersGroupClientWithBaseURI

func NewRegisteredServersGroupClientWithBaseURI(baseURI string, subscriptionID string) RegisteredServersGroupClient

NewRegisteredServersGroupClientWithBaseURI creates an instance of the RegisteredServersGroupClient client.

func (RegisteredServersGroupClient) Create

func (client RegisteredServersGroupClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string, parameters RegisteredServerCreateParameters) (result RegisteredServersGroupCreateFuture, 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 (RegisteredServersGroupClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (RegisteredServersGroupClient) CreateResponder

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) CreateSender

func (client RegisteredServersGroupClient) CreateSender(req *http.Request) (future RegisteredServersGroupCreateFuture, err error)

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

func (RegisteredServersGroupClient) Delete

func (client RegisteredServersGroupClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, serverID string) (result RegisteredServersGroupDeleteFuture, 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 (RegisteredServersGroupClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (RegisteredServersGroupClient) DeleteResponder

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) DeleteSender

func (client RegisteredServersGroupClient) DeleteSender(req *http.Request) (future RegisteredServersGroupDeleteFuture, err error)

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

func (RegisteredServersGroupClient) Get

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RegisteredServersGroupClient) GetResponder

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) GetSender

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) ListByStorageSyncService

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) ListByStorageSyncServicePreparer

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

ListByStorageSyncServicePreparer prepares the ListByStorageSyncService request.

func (RegisteredServersGroupClient) ListByStorageSyncServiceResponder

func (client RegisteredServersGroupClient) 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 (RegisteredServersGroupClient) ListByStorageSyncServiceSender

func (client RegisteredServersGroupClient) 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 RegisteredServersGroupCreateFuture

type RegisteredServersGroupCreateFuture struct {
	azure.Future
}

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

func (*RegisteredServersGroupCreateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type RegisteredServersGroupDeleteFuture

type RegisteredServersGroupDeleteFuture struct {
	azure.Future
}

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

func (*RegisteredServersGroupDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Resource

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

Resource ...

type ResourcesMoveInfo

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

ResourcesMoveInfo resource Move Info.

type RestoreFileSpec

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

RestoreFileSpec restore file spec.

type ServerEndpoint

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

ServerEndpoint server Endpoint object.

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

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

ServerEndpointArray array of ServerEndpoint

type ServerEndpointCreateParameters

type ServerEndpointCreateParameters 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"`
	// ServerEndpointCreateParametersProperties - The parameters used to create the storage sync service.
	*ServerEndpointCreateParametersProperties `json:"properties,omitempty"`
}

ServerEndpointCreateParameters the parameters used when creating a storage sync service.

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

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"`
	// FriendlyName - Friendly Name
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ServerResourceID - Server Resource Id.
	ServerResourceID *string `json:"serverResourceId,omitempty"`
}

ServerEndpointCreateParametersProperties serverEndpoint Properties object.

type ServerEndpointProperties

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"`
	// FriendlyName - Friendly Name
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ServerResourceID - Server Resource Id.
	ServerResourceID *string `json:"serverResourceId,omitempty"`
	// ProvisioningState - ServerEndpoint Provisioning State
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// LastWorkflowID - ServerEndpoint lastWorkflowId
	LastWorkflowID *string `json:"lastWorkflowId,omitempty"`
	// LastOperationName - Resource Last Operation Name
	LastOperationName *string `json:"lastOperationName,omitempty"`
	// SyncStatus - Sync Health Status
	SyncStatus interface{} `json:"syncStatus,omitempty"`
}

ServerEndpointProperties serverEndpoint Properties object.

type ServerEndpointUpdateParameters

type ServerEndpointUpdateParameters struct {
	// Tags - The user-specified tags associated with the server endpoint.
	Tags map[string]*string `json:"tags"`
	// ServerEndpointUpdateProperties - The properties of the serverendpoint.
	*ServerEndpointUpdateProperties `json:"properties,omitempty"`
}

ServerEndpointUpdateParameters parameters for updating an Server Endpoint.

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

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"`
}

ServerEndpointUpdateProperties serverEndpoint Update Properties object.

type ServerEndpointsGroupClient

type ServerEndpointsGroupClient struct {
	BaseClient
}

ServerEndpointsGroupClient is the microsoft Storage Sync Service API

func NewServerEndpointsGroupClient

func NewServerEndpointsGroupClient(subscriptionID string) ServerEndpointsGroupClient

NewServerEndpointsGroupClient creates an instance of the ServerEndpointsGroupClient client.

func NewServerEndpointsGroupClientWithBaseURI

func NewServerEndpointsGroupClientWithBaseURI(baseURI string, subscriptionID string) ServerEndpointsGroupClient

NewServerEndpointsGroupClientWithBaseURI creates an instance of the ServerEndpointsGroupClient client.

func (ServerEndpointsGroupClient) Create

func (client ServerEndpointsGroupClient) Create(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters ServerEndpointCreateParameters) (result ServerEndpointsGroupCreateFuture, 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 (ServerEndpointsGroupClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (ServerEndpointsGroupClient) CreateResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) CreateSender

func (client ServerEndpointsGroupClient) CreateSender(req *http.Request) (future ServerEndpointsGroupCreateFuture, err error)

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

func (ServerEndpointsGroupClient) Delete

func (client ServerEndpointsGroupClient) Delete(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string) (result ServerEndpointsGroupDeleteFuture, 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 (ServerEndpointsGroupClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ServerEndpointsGroupClient) DeleteResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) DeleteSender

func (client ServerEndpointsGroupClient) DeleteSender(req *http.Request) (future ServerEndpointsGroupDeleteFuture, err error)

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

func (ServerEndpointsGroupClient) Get

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServerEndpointsGroupClient) GetResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) GetSender

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) ListBySyncGroup

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) ListBySyncGroupPreparer

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

ListBySyncGroupPreparer prepares the ListBySyncGroup request.

func (ServerEndpointsGroupClient) ListBySyncGroupResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) ListBySyncGroupSender

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) RecallAction

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

RecallAction recall 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. parameters - body of Recall Action object.

func (ServerEndpointsGroupClient) RecallActionPreparer

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

RecallActionPreparer prepares the RecallAction request.

func (ServerEndpointsGroupClient) RecallActionResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) RecallActionSender

func (client ServerEndpointsGroupClient) RecallActionSender(req *http.Request) (future ServerEndpointsGroupRecallActionFuture, err error)

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

func (ServerEndpointsGroupClient) Update

func (client ServerEndpointsGroupClient) Update(ctx context.Context, resourceGroupName string, storageSyncServiceName string, syncGroupName string, serverEndpointName string, parameters *ServerEndpointUpdateParameters) (result ServerEndpointsGroupUpdateFuture, 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 (ServerEndpointsGroupClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ServerEndpointsGroupClient) UpdateResponder

func (client ServerEndpointsGroupClient) 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 (ServerEndpointsGroupClient) UpdateSender

func (client ServerEndpointsGroupClient) UpdateSender(req *http.Request) (future ServerEndpointsGroupUpdateFuture, err error)

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

type ServerEndpointsGroupCreateFuture

type ServerEndpointsGroupCreateFuture struct {
	azure.Future
}

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

func (*ServerEndpointsGroupCreateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerEndpointsGroupDeleteFuture

type ServerEndpointsGroupDeleteFuture struct {
	azure.Future
}

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

func (*ServerEndpointsGroupDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerEndpointsGroupRecallActionFuture

type ServerEndpointsGroupRecallActionFuture struct {
	azure.Future
}

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

func (*ServerEndpointsGroupRecallActionFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerEndpointsGroupUpdateFuture

type ServerEndpointsGroupUpdateFuture struct {
	azure.Future
}

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

func (*ServerEndpointsGroupUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Service

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 - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Service storage Sync Service object.

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

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

ServiceArray array of StorageSyncServices

type ServiceCreateParameters

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"`
}

ServiceCreateParameters the parameters used when creating a storage sync service.

func (ServiceCreateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for ServiceCreateParameters.

type ServiceProperties

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

ServiceProperties storage Sync Service Properties object.

type ServiceUpdateParameters

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"`
}

ServiceUpdateParameters parameters for updating an Storage sync service.

func (ServiceUpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for ServiceUpdateParameters.

type ServicesGroupClient

type ServicesGroupClient struct {
	BaseClient
}

ServicesGroupClient is the microsoft Storage Sync Service API

func NewServicesGroupClient

func NewServicesGroupClient(subscriptionID string) ServicesGroupClient

NewServicesGroupClient creates an instance of the ServicesGroupClient client.

func NewServicesGroupClientWithBaseURI

func NewServicesGroupClientWithBaseURI(baseURI string, subscriptionID string) ServicesGroupClient

NewServicesGroupClientWithBaseURI creates an instance of the ServicesGroupClient client.

func (ServicesGroupClient) CheckNameAvailability

func (client ServicesGroupClient) 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 (ServicesGroupClient) CheckNameAvailabilityPreparer

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServicesGroupClient) CheckNameAvailabilityResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) CheckNameAvailabilitySender

func (client ServicesGroupClient) 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 (ServicesGroupClient) Create

func (client ServicesGroupClient) 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 (ServicesGroupClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (ServicesGroupClient) CreateResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) CreateSender

func (client ServicesGroupClient) 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 (ServicesGroupClient) Delete

func (client ServicesGroupClient) 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 (ServicesGroupClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ServicesGroupClient) DeleteResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) DeleteSender

func (client ServicesGroupClient) 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 (ServicesGroupClient) Get

func (client ServicesGroupClient) 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 (ServicesGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServicesGroupClient) GetResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) GetSender

func (client ServicesGroupClient) 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 (ServicesGroupClient) ListByResourceGroup

func (client ServicesGroupClient) 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 (ServicesGroupClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServicesGroupClient) ListByResourceGroupResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) ListByResourceGroupSender

func (client ServicesGroupClient) 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 (ServicesGroupClient) ListBySubscription

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

ListBySubscription get a StorageSyncService list by subscription.

func (ServicesGroupClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ServicesGroupClient) ListBySubscriptionResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) ListBySubscriptionSender

func (client ServicesGroupClient) 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 (ServicesGroupClient) Update

func (client ServicesGroupClient) 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 (ServicesGroupClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ServicesGroupClient) UpdateResponder

func (client ServicesGroupClient) 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 (ServicesGroupClient) UpdateSender

func (client ServicesGroupClient) 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

type Status string

Status enumerates the values for status.

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

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

SubscriptionState subscription State object.

type SyncGroup

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

SyncGroup sync Group object.

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

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

SyncGroupArray array of SyncGroup

type SyncGroupCreateParameters

type SyncGroupCreateParameters 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 - The parameters used to create the sync group
	Properties interface{} `json:"properties,omitempty"`
}

SyncGroupCreateParameters the parameters used when creating a sync group.

func (SyncGroupCreateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for SyncGroupCreateParameters.

type SyncGroupProperties

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

SyncGroupProperties syncGroup Properties object.

type SyncGroupsGroupClient

type SyncGroupsGroupClient struct {
	BaseClient
}

SyncGroupsGroupClient is the microsoft Storage Sync Service API

func NewSyncGroupsGroupClient

func NewSyncGroupsGroupClient(subscriptionID string) SyncGroupsGroupClient

NewSyncGroupsGroupClient creates an instance of the SyncGroupsGroupClient client.

func NewSyncGroupsGroupClientWithBaseURI

func NewSyncGroupsGroupClientWithBaseURI(baseURI string, subscriptionID string) SyncGroupsGroupClient

NewSyncGroupsGroupClientWithBaseURI creates an instance of the SyncGroupsGroupClient client.

func (SyncGroupsGroupClient) Create

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (SyncGroupsGroupClient) CreateResponder

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) CreateSender

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) Delete

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (SyncGroupsGroupClient) DeleteResponder

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) DeleteSender

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) Get

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SyncGroupsGroupClient) GetResponder

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) GetSender

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) ListByStorageSyncService

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) ListByStorageSyncServicePreparer

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

ListByStorageSyncServicePreparer prepares the ListByStorageSyncService request.

func (SyncGroupsGroupClient) ListByStorageSyncServiceResponder

func (client SyncGroupsGroupClient) 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 (SyncGroupsGroupClient) ListByStorageSyncServiceSender

func (client SyncGroupsGroupClient) 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

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 - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

type Workflow

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

Workflow workflow resource.

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

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

WorkflowArray array of Workflow

type WorkflowProperties

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"`
}

WorkflowProperties workflow Properties object.

type WorkflowsGroupClient

type WorkflowsGroupClient struct {
	BaseClient
}

WorkflowsGroupClient is the microsoft Storage Sync Service API

func NewWorkflowsGroupClient

func NewWorkflowsGroupClient(subscriptionID string) WorkflowsGroupClient

NewWorkflowsGroupClient creates an instance of the WorkflowsGroupClient client.

func NewWorkflowsGroupClientWithBaseURI

func NewWorkflowsGroupClientWithBaseURI(baseURI string, subscriptionID string) WorkflowsGroupClient

NewWorkflowsGroupClientWithBaseURI creates an instance of the WorkflowsGroupClient client.

func (WorkflowsGroupClient) Abort

func (client WorkflowsGroupClient) 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 (WorkflowsGroupClient) AbortPreparer

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

AbortPreparer prepares the Abort request.

func (WorkflowsGroupClient) AbortResponder

func (client WorkflowsGroupClient) 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 (WorkflowsGroupClient) AbortSender

func (client WorkflowsGroupClient) 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 (WorkflowsGroupClient) Get

func (client WorkflowsGroupClient) 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 (WorkflowsGroupClient) GetPreparer

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

GetPreparer prepares the Get request.

func (WorkflowsGroupClient) GetResponder

func (client WorkflowsGroupClient) 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 (WorkflowsGroupClient) GetSender

func (client WorkflowsGroupClient) 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.

Jump to

Keyboard shortcuts

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