storsimple

package
Version: v58.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 10 Imported by: 209

Documentation

Overview

Package storsimple implements the Azure ARM Storsimple service API version 2016-10-01.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Storsimple
	DefaultBaseURI = "https://management.azure.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 AccessControlRecord

type AccessControlRecord struct {
	autorest.Response `json:"-"`
	// AccessControlRecordProperties - Properties of AccessControlRecord
	*AccessControlRecordProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

AccessControlRecord the access control record

func (AccessControlRecord) MarshalJSON

func (acr AccessControlRecord) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessControlRecord.

func (*AccessControlRecord) UnmarshalJSON

func (acr *AccessControlRecord) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessControlRecord struct.

type AccessControlRecordList

type AccessControlRecordList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]AccessControlRecord `json:"value,omitempty"`
}

AccessControlRecordList collection of AccessControlRecords

type AccessControlRecordProperties

type AccessControlRecordProperties struct {
	// InitiatorName - The Iscsi initiator name (IQN)
	InitiatorName *string `json:"initiatorName,omitempty"`
}

AccessControlRecordProperties properties of access control record

type AccessControlRecordsClient

type AccessControlRecordsClient struct {
	BaseClient
}

AccessControlRecordsClient is the client for the AccessControlRecords methods of the Storsimple service.

func NewAccessControlRecordsClient

func NewAccessControlRecordsClient(subscriptionID string) AccessControlRecordsClient

NewAccessControlRecordsClient creates an instance of the AccessControlRecordsClient client.

func NewAccessControlRecordsClientWithBaseURI

func NewAccessControlRecordsClientWithBaseURI(baseURI string, subscriptionID string) AccessControlRecordsClient

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

func (AccessControlRecordsClient) CreateOrUpdate

func (client AccessControlRecordsClient) CreateOrUpdate(ctx context.Context, accessControlRecordName string, accessControlRecord AccessControlRecord, resourceGroupName string, managerName string) (result AccessControlRecordsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or Updates an access control record. Parameters: accessControlRecordName - the name of the access control record. accessControlRecord - the access control record to be added or updated. resourceGroupName - the resource group name managerName - the manager name

func (AccessControlRecordsClient) CreateOrUpdatePreparer

func (client AccessControlRecordsClient) CreateOrUpdatePreparer(ctx context.Context, accessControlRecordName string, accessControlRecord AccessControlRecord, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccessControlRecordsClient) CreateOrUpdateResponder

func (client AccessControlRecordsClient) CreateOrUpdateResponder(resp *http.Response) (result AccessControlRecord, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AccessControlRecordsClient) CreateOrUpdateSender

func (client AccessControlRecordsClient) CreateOrUpdateSender(req *http.Request) (future AccessControlRecordsCreateOrUpdateFuture, err error)

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

func (AccessControlRecordsClient) Delete

func (client AccessControlRecordsClient) Delete(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (result AccessControlRecordsDeleteFuture, err error)

Delete deletes the access control record. Parameters: accessControlRecordName - the name of the access control record to delete. resourceGroupName - the resource group name managerName - the manager name

func (AccessControlRecordsClient) DeletePreparer

func (client AccessControlRecordsClient) DeletePreparer(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AccessControlRecordsClient) DeleteResponder

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

func (client AccessControlRecordsClient) DeleteSender(req *http.Request) (future AccessControlRecordsDeleteFuture, err error)

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

func (AccessControlRecordsClient) Get

func (client AccessControlRecordsClient) Get(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (result AccessControlRecord, err error)

Get returns the properties of the specified access control record name. Parameters: accessControlRecordName - name of access control record to be fetched. resourceGroupName - the resource group name managerName - the manager name

func (AccessControlRecordsClient) GetPreparer

func (client AccessControlRecordsClient) GetPreparer(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccessControlRecordsClient) GetResponder

func (client AccessControlRecordsClient) GetResponder(resp *http.Response) (result AccessControlRecord, err error)

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

func (AccessControlRecordsClient) GetSender

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

func (client AccessControlRecordsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string) (result AccessControlRecordList, err error)

ListByManager retrieves all the access control records in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (AccessControlRecordsClient) ListByManagerPreparer

func (client AccessControlRecordsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)

ListByManagerPreparer prepares the ListByManager request.

func (AccessControlRecordsClient) ListByManagerResponder

func (client AccessControlRecordsClient) ListByManagerResponder(resp *http.Response) (result AccessControlRecordList, err error)

ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.

func (AccessControlRecordsClient) ListByManagerSender

func (client AccessControlRecordsClient) ListByManagerSender(req *http.Request) (*http.Response, error)

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

type AccessControlRecordsCreateOrUpdateFuture

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

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

func (*AccessControlRecordsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AccessControlRecordsDeleteFuture

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

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

func (*AccessControlRecordsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Alert

type Alert struct {
	// AlertProperties - Properties of alert
	*AlertProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

Alert alert class

func (Alert) MarshalJSON

func (a Alert) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON

func (a *Alert) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertEmailNotificationStatus

type AlertEmailNotificationStatus string

AlertEmailNotificationStatus enumerates the values for alert email notification status.

const (
	// Disabled ...
	Disabled AlertEmailNotificationStatus = "Disabled"
	// Enabled ...
	Enabled AlertEmailNotificationStatus = "Enabled"
)

func PossibleAlertEmailNotificationStatusValues

func PossibleAlertEmailNotificationStatusValues() []AlertEmailNotificationStatus

PossibleAlertEmailNotificationStatusValues returns an array of possible values for the AlertEmailNotificationStatus const type.

type AlertErrorDetails

type AlertErrorDetails struct {
	// ErrorCode - Error code.
	ErrorCode *string `json:"errorCode,omitempty"`
	// ErrorMessage - Error Message
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// Occurences - Number of occurrences.
	Occurences *int32 `json:"occurences,omitempty"`
}

AlertErrorDetails error details for the alert

type AlertFilter

type AlertFilter struct {
	// Status - Status of the alert. Possible values include: 'Active', 'Cleared'
	Status AlertStatus `json:"status,omitempty"`
	// Severity - Severity of the alert. Possible values include: 'Informational', 'Warning', 'Critical'
	Severity AlertSeverity `json:"severity,omitempty"`
	// SourceType - Source of the alert. Possible values include: 'AlertSourceTypeResource', 'AlertSourceTypeDevice'
	SourceType AlertSourceType `json:"sourceType,omitempty"`
	// SourceName - Source name of the alert
	SourceName *string `json:"sourceName,omitempty"`
	// AppearedOnTime - UTC time on which the alert appeared
	AppearedOnTime *date.Time `json:"appearedOnTime,omitempty"`
}

AlertFilter filters that can be specified on the alert

type AlertList

type AlertList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]Alert `json:"value,omitempty"`
	// NextLink - Id of the next page of alerts
	NextLink *string `json:"nextLink,omitempty"`
}

AlertList collection of Alerts

func (AlertList) IsEmpty

func (al AlertList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListIterator

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

AlertListIterator provides access to a complete listing of Alert values.

func NewAlertListIterator

func NewAlertListIterator(page AlertListPage) AlertListIterator

Creates a new instance of the AlertListIterator type.

func (*AlertListIterator) Next deprecated

func (iter *AlertListIterator) Next() error

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

func (*AlertListIterator) NextWithContext

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

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

func (AlertListIterator) NotDone

func (iter AlertListIterator) NotDone() bool

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

func (AlertListIterator) Response

func (iter AlertListIterator) Response() AlertList

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

func (AlertListIterator) Value

func (iter AlertListIterator) Value() Alert

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

type AlertListPage

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

AlertListPage contains a page of Alert values.

func NewAlertListPage

func NewAlertListPage(cur AlertList, getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage

Creates a new instance of the AlertListPage type.

func (*AlertListPage) Next deprecated

func (page *AlertListPage) Next() error

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

func (*AlertListPage) NextWithContext

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

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

func (AlertListPage) NotDone

func (page AlertListPage) NotDone() bool

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

func (AlertListPage) Response

func (page AlertListPage) Response() AlertList

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

func (AlertListPage) Values

func (page AlertListPage) Values() []Alert

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

type AlertProperties

type AlertProperties struct {
	// Title - Title of the alert
	Title *string `json:"title,omitempty"`
	// Scope - Device or Resource alert. Possible values include: 'AlertScopeResource', 'AlertScopeDevice'
	Scope AlertScope `json:"scope,omitempty"`
	// AlertType - Type of the alert
	AlertType *string `json:"alertType,omitempty"`
	// AppearedAtTime - UTC time at which the alert appeared
	AppearedAtTime *date.Time `json:"appearedAtTime,omitempty"`
	// AppearedAtSourceTime - UTC time at which the alert appeared on the source
	AppearedAtSourceTime *date.Time `json:"appearedAtSourceTime,omitempty"`
	// ClearedAtTime - UTC time at which the alert got cleared
	ClearedAtTime *date.Time `json:"clearedAtTime,omitempty"`
	// ClearedAtSourceTime - UTC time at which the alert was cleared on the source
	ClearedAtSourceTime *date.Time `json:"clearedAtSourceTime,omitempty"`
	// Source - Source at which the alert was cleared
	Source *AlertSource `json:"source,omitempty"`
	// Recommendation - Recommendation for acting on the alert
	Recommendation *string `json:"recommendation,omitempty"`
	// ResolutionReason - Reason for resolving the alert
	ResolutionReason *string `json:"resolutionReason,omitempty"`
	// Severity - Severity of the alert. Possible values include: 'Informational', 'Warning', 'Critical'
	Severity AlertSeverity `json:"severity,omitempty"`
	// Status - Current status of the alert. Possible values include: 'Active', 'Cleared'
	Status AlertStatus `json:"status,omitempty"`
	// ErrorDetails - ErrorDetails of the alert
	ErrorDetails *AlertErrorDetails `json:"errorDetails,omitempty"`
	// DetailedInformation - Other information about the alert
	DetailedInformation map[string]*string `json:"detailedInformation"`
}

AlertProperties properties of alert

func (AlertProperties) MarshalJSON

func (ap AlertProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertProperties.

type AlertScope

type AlertScope string

AlertScope enumerates the values for alert scope.

const (
	// AlertScopeDevice ...
	AlertScopeDevice AlertScope = "Device"
	// AlertScopeResource ...
	AlertScopeResource AlertScope = "Resource"
)

func PossibleAlertScopeValues

func PossibleAlertScopeValues() []AlertScope

PossibleAlertScopeValues returns an array of possible values for the AlertScope const type.

type AlertSettings

type AlertSettings struct {
	autorest.Response `json:"-"`
	// AlertSettingsProperties - Properties of AlertSettings
	*AlertSettingsProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

AlertSettings alertSettings on the device which represents how alerts will be processed

func (AlertSettings) MarshalJSON

func (as AlertSettings) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertSettings.

func (*AlertSettings) UnmarshalJSON

func (as *AlertSettings) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertSettings struct.

type AlertSettingsProperties

type AlertSettingsProperties struct {
	// EmailNotification - Value indicating whether user/admins will receive emails when an alert condition occurs on the system. Possible values include: 'Enabled', 'Disabled'
	EmailNotification AlertEmailNotificationStatus `json:"emailNotification,omitempty"`
	// NotificationToServiceOwners - Value indicating whether service owners will receive emails when an alert condition occurs on the system. Applicable only if emailNotification flag is Enabled. Possible values include: 'ServiceOwnersAlertNotificationStatusEnabled', 'ServiceOwnersAlertNotificationStatusDisabled'
	NotificationToServiceOwners ServiceOwnersAlertNotificationStatus `json:"notificationToServiceOwners,omitempty"`
	// AlertNotificationCulture - Culture setting to be used while building alert emails. For eg: "en-US"
	AlertNotificationCulture *string `json:"alertNotificationCulture,omitempty"`
	// AdditionalRecipientEmailList - List of email addresses (apart from admin/co-admin of subscription) to whom the alert emails need to be sent
	AdditionalRecipientEmailList *[]string `json:"additionalRecipientEmailList,omitempty"`
}

AlertSettingsProperties class containing the properties of AlertSettings

type AlertSeverity

type AlertSeverity string

AlertSeverity enumerates the values for alert severity.

const (
	// Critical ...
	Critical AlertSeverity = "Critical"
	// Informational ...
	Informational AlertSeverity = "Informational"
	// Warning ...
	Warning AlertSeverity = "Warning"
)

func PossibleAlertSeverityValues

func PossibleAlertSeverityValues() []AlertSeverity

PossibleAlertSeverityValues returns an array of possible values for the AlertSeverity const type.

type AlertSource

type AlertSource struct {
	// Name - Name of the source.
	Name *string `json:"name,omitempty"`
	// TimeZone - The time zone.
	TimeZone *string `json:"timeZone,omitempty"`
	// AlertSourceType - Source type of the alert. Possible values include: 'AlertSourceTypeResource', 'AlertSourceTypeDevice'
	AlertSourceType AlertSourceType `json:"alertSourceType,omitempty"`
}

AlertSource source at which the alert can be raised

type AlertSourceType

type AlertSourceType string

AlertSourceType enumerates the values for alert source type.

const (
	// AlertSourceTypeDevice ...
	AlertSourceTypeDevice AlertSourceType = "Device"
	// AlertSourceTypeResource ...
	AlertSourceTypeResource AlertSourceType = "Resource"
)

func PossibleAlertSourceTypeValues

func PossibleAlertSourceTypeValues() []AlertSourceType

PossibleAlertSourceTypeValues returns an array of possible values for the AlertSourceType const type.

type AlertStatus

type AlertStatus string

AlertStatus enumerates the values for alert status.

const (
	// Active ...
	Active AlertStatus = "Active"
	// Cleared ...
	Cleared AlertStatus = "Cleared"
)

func PossibleAlertStatusValues

func PossibleAlertStatusValues() []AlertStatus

PossibleAlertStatusValues returns an array of possible values for the AlertStatus const type.

type AlertsClient

type AlertsClient struct {
	BaseClient
}

AlertsClient is the client for the Alerts methods of the Storsimple service.

func NewAlertsClient

func NewAlertsClient(subscriptionID string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient

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

func (AlertsClient) Clear

func (client AlertsClient) Clear(ctx context.Context, request ClearAlertRequest, resourceGroupName string, managerName string) (result autorest.Response, err error)

Clear clear the alerts. Parameters: request - the clear alert request. resourceGroupName - the resource group name managerName - the manager name

func (AlertsClient) ClearPreparer

func (client AlertsClient) ClearPreparer(ctx context.Context, request ClearAlertRequest, resourceGroupName string, managerName string) (*http.Request, error)

ClearPreparer prepares the Clear request.

func (AlertsClient) ClearResponder

func (client AlertsClient) ClearResponder(resp *http.Response) (result autorest.Response, err error)

ClearResponder handles the response to the Clear request. The method always closes the http.Response Body.

func (AlertsClient) ClearSender

func (client AlertsClient) ClearSender(req *http.Request) (*http.Response, error)

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

func (AlertsClient) ListByManager

func (client AlertsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string, filter string) (result AlertListPage, err error)

ListByManager retrieves all the alerts in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (AlertsClient) ListByManagerComplete

func (client AlertsClient) ListByManagerComplete(ctx context.Context, resourceGroupName string, managerName string, filter string) (result AlertListIterator, err error)

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

func (AlertsClient) ListByManagerPreparer

func (client AlertsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListByManagerPreparer prepares the ListByManager request.

func (AlertsClient) ListByManagerResponder

func (client AlertsClient) ListByManagerResponder(resp *http.Response) (result AlertList, err error)

ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.

func (AlertsClient) ListByManagerSender

func (client AlertsClient) ListByManagerSender(req *http.Request) (*http.Response, error)

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

func (AlertsClient) SendTestEmail

func (client AlertsClient) SendTestEmail(ctx context.Context, deviceName string, request SendTestAlertEmailRequest, resourceGroupName string, managerName string) (result autorest.Response, err error)

SendTestEmail sends a test alert email. Parameters: deviceName - the device name. request - the send test alert email request. resourceGroupName - the resource group name managerName - the manager name

func (AlertsClient) SendTestEmailPreparer

func (client AlertsClient) SendTestEmailPreparer(ctx context.Context, deviceName string, request SendTestAlertEmailRequest, resourceGroupName string, managerName string) (*http.Request, error)

SendTestEmailPreparer prepares the SendTestEmail request.

func (AlertsClient) SendTestEmailResponder

func (client AlertsClient) SendTestEmailResponder(resp *http.Response) (result autorest.Response, err error)

SendTestEmailResponder handles the response to the SendTestEmail request. The method always closes the http.Response Body.

func (AlertsClient) SendTestEmailSender

func (client AlertsClient) SendTestEmailSender(req *http.Request) (*http.Response, error)

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

type AsymmetricEncryptedSecret

type AsymmetricEncryptedSecret struct {
	// Value - The value of the secret itself. If the secret is in plaintext then EncryptionAlgorithm will be none and EncryptionCertThumbprint will be null.
	Value *string `json:"value,omitempty"`
	// EncryptionCertificateThumbprint - Thumbprint certificate that was used to encrypt "Value"
	EncryptionCertificateThumbprint *string `json:"encryptionCertificateThumbprint,omitempty"`
	// EncryptionAlgorithm - Algorithm used to encrypt "Value". Possible values include: 'EncryptionAlgorithmNone', 'EncryptionAlgorithmAES256', 'EncryptionAlgorithmRSAESPKCS1V15'
	EncryptionAlgorithm EncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"`
}

AsymmetricEncryptedSecret this class can be used as the Type for any secret entity represented as Password, CertThumbprint, Algorithm. This class is intended to be used when the secret is encrypted with an asymmetric key pair. The encryptionAlgorithm field is mainly for future usage to potentially allow different entities encrypted using different algorithms.

type AuthType

type AuthType string

AuthType enumerates the values for auth type.

const (
	// AccessControlService ...
	AccessControlService AuthType = "AccessControlService"
	// AzureActiveDirectory ...
	AzureActiveDirectory AuthType = "AzureActiveDirectory"
	// Invalid ...
	Invalid AuthType = "Invalid"
)

func PossibleAuthTypeValues

func PossibleAuthTypeValues() []AuthType

PossibleAuthTypeValues returns an array of possible values for the AuthType const type.

type AvailableProviderOperation

type AvailableProviderOperation struct {
	// Name - Gets or sets the name of the operation being performed on this particular object
	// Return value format: "{resourceProviderNamespace}/{resourceType}/{read|write|deletion|action}"
	// Eg: Microsoft.StorSimple/managers/devices/fileServers/read
	//     Microsoft.StorSimple/managers/devices/alerts/clearAlerts/action
	Name *string `json:"name,omitempty"`
	// Display - Gets or sets Display information
	// Contains the localized display information for this particular operation/action
	Display *AvailableProviderOperationDisplay `json:"display,omitempty"`
	// Origin - Gets or sets Origin
	// The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX.
	// Default value is “user,system”
	Origin *string `json:"origin,omitempty"`
	// Properties - Gets or sets Properties
	// Reserved for future use
	Properties interface{} `json:"properties,omitempty"`
}

AvailableProviderOperation class represents provider operation

type AvailableProviderOperationDisplay

type AvailableProviderOperationDisplay struct {
	// Provider - Gets or sets Provider
	// The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible.
	// It should use Title Casing and begin with “Microsoft” for 1st party services.
	Provider *string `json:"provider,omitempty"`
	// Resource - Gets or sets Resource
	// The localized friendly form of the resource type related to this action/operation – it should match the public documentation for the resource provider.
	// It should use Title Casing – for examples, please refer to the “name” section.
	Resource *string `json:"resource,omitempty"`
	// Operation - Gets or sets Operation
	// The localized friendly name for the operation, as it should be shown to the user.
	// It should be concise (to fit in drop downs) but clear (i.e. self-documenting). It should use Title Casing and include the entity/resource to which it applies.
	Operation *string `json:"operation,omitempty"`
	// Description - Gets or sets Description
	// The localized friendly description for the operation, as it should be shown to the user.
	// It should be thorough, yet concise – it will be used in tool tips and detailed views.
	Description *string `json:"description,omitempty"`
}

AvailableProviderOperationDisplay contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.

type AvailableProviderOperations

type AvailableProviderOperations struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]AvailableProviderOperation `json:"value,omitempty"`
	// NextLink - The NextLink.
	NextLink *string `json:"nextLink,omitempty"`
}

AvailableProviderOperations class for set of operations used for discovery of available provider operations.

func (AvailableProviderOperations) IsEmpty

func (apo AvailableProviderOperations) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AvailableProviderOperationsClient

type AvailableProviderOperationsClient struct {
	BaseClient
}

AvailableProviderOperationsClient is the client for the AvailableProviderOperations methods of the Storsimple service.

func NewAvailableProviderOperationsClient

func NewAvailableProviderOperationsClient(subscriptionID string) AvailableProviderOperationsClient

NewAvailableProviderOperationsClient creates an instance of the AvailableProviderOperationsClient client.

func NewAvailableProviderOperationsClientWithBaseURI

func NewAvailableProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableProviderOperationsClient

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

func (AvailableProviderOperationsClient) List

List list of AvailableProviderOperations

func (AvailableProviderOperationsClient) ListComplete

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

func (AvailableProviderOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AvailableProviderOperationsClient) ListResponder

func (client AvailableProviderOperationsClient) ListResponder(resp *http.Response) (result AvailableProviderOperations, err error)

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

func (AvailableProviderOperationsClient) ListSender

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

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

AvailableProviderOperationsIterator provides access to a complete listing of AvailableProviderOperation values.

func NewAvailableProviderOperationsIterator

func NewAvailableProviderOperationsIterator(page AvailableProviderOperationsPage) AvailableProviderOperationsIterator

Creates a new instance of the AvailableProviderOperationsIterator type.

func (*AvailableProviderOperationsIterator) Next deprecated

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

func (*AvailableProviderOperationsIterator) NextWithContext

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

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

func (AvailableProviderOperationsIterator) NotDone

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

func (AvailableProviderOperationsIterator) Response

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

func (AvailableProviderOperationsIterator) Value

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

type AvailableProviderOperationsPage

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

AvailableProviderOperationsPage contains a page of AvailableProviderOperation values.

func NewAvailableProviderOperationsPage

Creates a new instance of the AvailableProviderOperationsPage type.

func (*AvailableProviderOperationsPage) Next deprecated

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

func (*AvailableProviderOperationsPage) NextWithContext

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

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

func (AvailableProviderOperationsPage) NotDone

func (page AvailableProviderOperationsPage) NotDone() bool

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

func (AvailableProviderOperationsPage) Response

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

func (AvailableProviderOperationsPage) Values

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

type Backup

type Backup struct {
	// BackupProperties - Properties of backup
	*BackupProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

Backup the backup.

func (Backup) MarshalJSON

func (b Backup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Backup.

func (*Backup) UnmarshalJSON

func (b *Backup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Backup struct.

type BackupElement

type BackupElement struct {
	// BackupElementProperties - The Properties of backup element
	*BackupElementProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

BackupElement class represents BackupElement

func (BackupElement) MarshalJSON

func (be BackupElement) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupElement.

func (*BackupElement) UnmarshalJSON

func (be *BackupElement) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackupElement struct.

type BackupElementProperties

type BackupElementProperties struct {
	// SizeInBytes - The size in bytes.
	SizeInBytes *int64 `json:"sizeInBytes,omitempty"`
	// EndpointName - The name of the endpoint.
	EndpointName *string `json:"endpointName,omitempty"`
	// DataPolicy - The data policy of backed up endpoint. Possible values include: 'DataPolicyInvalid', 'DataPolicyLocal', 'DataPolicyTiered', 'DataPolicyCloud'
	DataPolicy DataPolicy `json:"dataPolicy,omitempty"`
}

BackupElementProperties the backup element properties

type BackupFilter

type BackupFilter struct {
	// InitiatedBy - Gets or sets InitiatedBy. Possible values include: 'Manual', 'Scheduled'
	InitiatedBy InitiatedBy `json:"initiatedBy,omitempty"`
	// CreatedTime - Gets or sets CreatedTime
	CreatedTime *date.Time `json:"createdTime,omitempty"`
}

BackupFilter backup OData filter class

type BackupList

type BackupList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]Backup `json:"value,omitempty"`
	// NextLink - The NextLink.
	NextLink *string `json:"nextLink,omitempty"`
}

BackupList collection of backups

func (BackupList) IsEmpty

func (bl BackupList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BackupListIterator

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

BackupListIterator provides access to a complete listing of Backup values.

func NewBackupListIterator

func NewBackupListIterator(page BackupListPage) BackupListIterator

Creates a new instance of the BackupListIterator type.

func (*BackupListIterator) Next deprecated

func (iter *BackupListIterator) Next() error

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

func (*BackupListIterator) NextWithContext

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

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

func (BackupListIterator) NotDone

func (iter BackupListIterator) NotDone() bool

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

func (BackupListIterator) Response

func (iter BackupListIterator) Response() BackupList

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

func (BackupListIterator) Value

func (iter BackupListIterator) Value() Backup

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

type BackupListPage

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

BackupListPage contains a page of Backup values.

func NewBackupListPage

func NewBackupListPage(cur BackupList, getNextPage func(context.Context, BackupList) (BackupList, error)) BackupListPage

Creates a new instance of the BackupListPage type.

func (*BackupListPage) Next deprecated

func (page *BackupListPage) Next() error

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

func (*BackupListPage) NextWithContext

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

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

func (BackupListPage) NotDone

func (page BackupListPage) NotDone() bool

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

func (BackupListPage) Response

func (page BackupListPage) Response() BackupList

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

func (BackupListPage) Values

func (page BackupListPage) Values() []Backup

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

type BackupProperties

type BackupProperties struct {
	// TargetID - The path id of the target FileServer or IscsiServer for which the backup was taken.
	TargetID *string `json:"targetId,omitempty"`
	// TargetType - Type of target, FileServer or IscsiServer
	TargetType *string `json:"targetType,omitempty"`
	// SizeInBytes - The backup size in bytes.
	SizeInBytes *int64 `json:"sizeInBytes,omitempty"`
	// CreatedTime - The time when the backup was created.
	CreatedTime *date.Time `json:"createdTime,omitempty"`
	// ExpirationTime - The time when the backup will expire.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// InitiatedBy - Indicates how the backup was initiated "Manual | Scheduled". Possible values include: 'Manual', 'Scheduled'
	InitiatedBy InitiatedBy `json:"initiatedBy,omitempty"`
	// DeviceID - The Device Identifier.
	DeviceID *string `json:"deviceId,omitempty"`
	// Elements - The backup elements.
	Elements *[]BackupElement `json:"elements,omitempty"`
}

BackupProperties class represents Backup properties

type BackupScheduleGroup

type BackupScheduleGroup struct {
	autorest.Response `json:"-"`
	// BackupScheduleGroupProperties - Properties of BackupScheduleGroup
	*BackupScheduleGroupProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

BackupScheduleGroup the Backup Schedule Group

func (BackupScheduleGroup) MarshalJSON

func (bsg BackupScheduleGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupScheduleGroup.

func (*BackupScheduleGroup) UnmarshalJSON

func (bsg *BackupScheduleGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackupScheduleGroup struct.

type BackupScheduleGroupList

type BackupScheduleGroupList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]BackupScheduleGroup `json:"value,omitempty"`
}

BackupScheduleGroupList the list response of backup schedule groups

type BackupScheduleGroupProperties

type BackupScheduleGroupProperties struct {
	// StartTime - The start time. When this field is specified we will generate Default GrandFather Father Son Backup Schedules.
	StartTime *Time `json:"startTime,omitempty"`
}

BackupScheduleGroupProperties the Backup Schedule Group Properties

type BackupScheduleGroupsClient

type BackupScheduleGroupsClient struct {
	BaseClient
}

BackupScheduleGroupsClient is the client for the BackupScheduleGroups methods of the Storsimple service.

func NewBackupScheduleGroupsClient

func NewBackupScheduleGroupsClient(subscriptionID string) BackupScheduleGroupsClient

NewBackupScheduleGroupsClient creates an instance of the BackupScheduleGroupsClient client.

func NewBackupScheduleGroupsClientWithBaseURI

func NewBackupScheduleGroupsClientWithBaseURI(baseURI string, subscriptionID string) BackupScheduleGroupsClient

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

func (BackupScheduleGroupsClient) CreateOrUpdate

func (client BackupScheduleGroupsClient) CreateOrUpdate(ctx context.Context, deviceName string, scheduleGroupName string, scheduleGroup BackupScheduleGroup, resourceGroupName string, managerName string) (result BackupScheduleGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or Updates the backup schedule Group. Parameters: deviceName - the name of the device. scheduleGroupName - the name of the schedule group. scheduleGroup - the schedule group to be created resourceGroupName - the resource group name managerName - the manager name

func (BackupScheduleGroupsClient) CreateOrUpdatePreparer

func (client BackupScheduleGroupsClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, scheduleGroupName string, scheduleGroup BackupScheduleGroup, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupScheduleGroupsClient) CreateOrUpdateResponder

func (client BackupScheduleGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result BackupScheduleGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (BackupScheduleGroupsClient) CreateOrUpdateSender

func (client BackupScheduleGroupsClient) CreateOrUpdateSender(req *http.Request) (future BackupScheduleGroupsCreateOrUpdateFuture, err error)

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

func (BackupScheduleGroupsClient) Delete

func (client BackupScheduleGroupsClient) Delete(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (result BackupScheduleGroupsDeleteFuture, err error)

Delete deletes the backup schedule group. Parameters: deviceName - the name of the device. scheduleGroupName - the name of the schedule group. resourceGroupName - the resource group name managerName - the manager name

func (BackupScheduleGroupsClient) DeletePreparer

func (client BackupScheduleGroupsClient) DeletePreparer(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BackupScheduleGroupsClient) DeleteResponder

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

func (client BackupScheduleGroupsClient) DeleteSender(req *http.Request) (future BackupScheduleGroupsDeleteFuture, err error)

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

func (BackupScheduleGroupsClient) Get

func (client BackupScheduleGroupsClient) Get(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (result BackupScheduleGroup, err error)

Get returns the properties of the specified backup schedule group name. Parameters: deviceName - the name of the device. scheduleGroupName - the name of the schedule group. resourceGroupName - the resource group name managerName - the manager name

func (BackupScheduleGroupsClient) GetPreparer

func (client BackupScheduleGroupsClient) GetPreparer(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BackupScheduleGroupsClient) GetResponder

func (client BackupScheduleGroupsClient) GetResponder(resp *http.Response) (result BackupScheduleGroup, err error)

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

func (BackupScheduleGroupsClient) GetSender

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

func (client BackupScheduleGroupsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result BackupScheduleGroupList, err error)

ListByDevice retrieves all the backup schedule groups in a device. Parameters: deviceName - the name of the device. resourceGroupName - the resource group name managerName - the manager name

func (BackupScheduleGroupsClient) ListByDevicePreparer

func (client BackupScheduleGroupsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (BackupScheduleGroupsClient) ListByDeviceResponder

func (client BackupScheduleGroupsClient) ListByDeviceResponder(resp *http.Response) (result BackupScheduleGroupList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (BackupScheduleGroupsClient) ListByDeviceSender

func (client BackupScheduleGroupsClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

type BackupScheduleGroupsCreateOrUpdateFuture

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

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

func (*BackupScheduleGroupsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupScheduleGroupsDeleteFuture

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

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

func (*BackupScheduleGroupsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupsClient

type BackupsClient struct {
	BaseClient
}

BackupsClient is the client for the Backups methods of the Storsimple service.

func NewBackupsClient

func NewBackupsClient(subscriptionID string) BackupsClient

NewBackupsClient creates an instance of the BackupsClient client.

func NewBackupsClientWithBaseURI

func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient

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

func (BackupsClient) Clone

func (client BackupsClient) Clone(ctx context.Context, deviceName string, backupName string, elementName string, cloneRequest CloneRequest, resourceGroupName string, managerName string) (result BackupsCloneFuture, err error)

Clone clones the given backup element to a new disk or share with given details. Parameters: deviceName - the device name. backupName - the backup name. elementName - the backup element name. cloneRequest - the clone request. resourceGroupName - the resource group name managerName - the manager name

func (BackupsClient) ClonePreparer

func (client BackupsClient) ClonePreparer(ctx context.Context, deviceName string, backupName string, elementName string, cloneRequest CloneRequest, resourceGroupName string, managerName string) (*http.Request, error)

ClonePreparer prepares the Clone request.

func (BackupsClient) CloneResponder

func (client BackupsClient) CloneResponder(resp *http.Response) (result autorest.Response, err error)

CloneResponder handles the response to the Clone request. The method always closes the http.Response Body.

func (BackupsClient) CloneSender

func (client BackupsClient) CloneSender(req *http.Request) (future BackupsCloneFuture, err error)

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

func (BackupsClient) Delete

func (client BackupsClient) Delete(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string) (result BackupsDeleteFuture, err error)

Delete deletes the backup. Parameters: deviceName - the device name. backupName - the backup name. resourceGroupName - the resource group name managerName - the manager name

func (BackupsClient) DeletePreparer

func (client BackupsClient) DeletePreparer(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (BackupsClient) DeleteResponder

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

func (client BackupsClient) DeleteSender(req *http.Request) (future BackupsDeleteFuture, err error)

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

func (BackupsClient) ListByDevice

func (client BackupsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string, forFailover *bool, filter string) (result BackupListPage, err error)

ListByDevice retrieves all the backups in a device. Can be used to get the backups for failover also. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name forFailover - set to true if you need backups which can be used for failover. filter - oData Filter options

func (BackupsClient) ListByDeviceComplete

func (client BackupsClient) ListByDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string, managerName string, forFailover *bool, filter string) (result BackupListIterator, err error)

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

func (BackupsClient) ListByDevicePreparer

func (client BackupsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, forFailover *bool, filter string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (BackupsClient) ListByDeviceResponder

func (client BackupsClient) ListByDeviceResponder(resp *http.Response) (result BackupList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (BackupsClient) ListByDeviceSender

func (client BackupsClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

func (BackupsClient) ListByManager

func (client BackupsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string, filter string) (result BackupListPage, err error)

ListByManager retrieves all the backups in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (BackupsClient) ListByManagerComplete

func (client BackupsClient) ListByManagerComplete(ctx context.Context, resourceGroupName string, managerName string, filter string) (result BackupListIterator, err error)

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

func (BackupsClient) ListByManagerPreparer

func (client BackupsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListByManagerPreparer prepares the ListByManager request.

func (BackupsClient) ListByManagerResponder

func (client BackupsClient) ListByManagerResponder(resp *http.Response) (result BackupList, err error)

ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.

func (BackupsClient) ListByManagerSender

func (client BackupsClient) ListByManagerSender(req *http.Request) (*http.Response, error)

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

type BackupsCloneFuture

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

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

func (*BackupsCloneFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupsDeleteFuture

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

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

func (*BackupsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BaseClient

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

BaseClient is the base client for Storsimple.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type BaseModel

type BaseModel struct {
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

BaseModel base class for models

func (BaseModel) MarshalJSON

func (bm BaseModel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BaseModel.

type ChapProperties

type ChapProperties struct {
	// Password - The chap password.
	Password *AsymmetricEncryptedSecret `json:"password,omitempty"`
}

ChapProperties chap properties

type ChapSettings

type ChapSettings struct {
	autorest.Response `json:"-"`
	// ChapProperties - Chap properties
	*ChapProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

ChapSettings challenge-Handshake Authentication Protocol (CHAP) setting

func (ChapSettings) MarshalJSON

func (cs ChapSettings) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ChapSettings.

func (*ChapSettings) UnmarshalJSON

func (cs *ChapSettings) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ChapSettings struct.

type ChapSettingsClient

type ChapSettingsClient struct {
	BaseClient
}

ChapSettingsClient is the client for the ChapSettings methods of the Storsimple service.

func NewChapSettingsClient

func NewChapSettingsClient(subscriptionID string) ChapSettingsClient

NewChapSettingsClient creates an instance of the ChapSettingsClient client.

func NewChapSettingsClientWithBaseURI

func NewChapSettingsClientWithBaseURI(baseURI string, subscriptionID string) ChapSettingsClient

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

func (ChapSettingsClient) CreateOrUpdate

func (client ChapSettingsClient) CreateOrUpdate(ctx context.Context, deviceName string, chapUserName string, chapSetting ChapSettings, resourceGroupName string, managerName string) (result ChapSettingsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates the chap setting. Parameters: deviceName - the device name. chapUserName - the chap user name. chapSetting - the chap setting to be added or updated. resourceGroupName - the resource group name managerName - the manager name

func (ChapSettingsClient) CreateOrUpdatePreparer

func (client ChapSettingsClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, chapUserName string, chapSetting ChapSettings, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ChapSettingsClient) CreateOrUpdateResponder

func (client ChapSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result ChapSettings, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ChapSettingsClient) CreateOrUpdateSender

func (client ChapSettingsClient) CreateOrUpdateSender(req *http.Request) (future ChapSettingsCreateOrUpdateFuture, err error)

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

func (ChapSettingsClient) Delete

func (client ChapSettingsClient) Delete(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (result ChapSettingsDeleteFuture, err error)

Delete deletes the chap setting. Parameters: deviceName - the device name. chapUserName - the chap user name. resourceGroupName - the resource group name managerName - the manager name

func (ChapSettingsClient) DeletePreparer

func (client ChapSettingsClient) DeletePreparer(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ChapSettingsClient) DeleteResponder

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

func (client ChapSettingsClient) DeleteSender(req *http.Request) (future ChapSettingsDeleteFuture, err error)

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

func (ChapSettingsClient) Get

func (client ChapSettingsClient) Get(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (result ChapSettings, err error)

Get returns the properties of the specified chap setting name. Parameters: deviceName - the device name. chapUserName - the user name of chap to be fetched. resourceGroupName - the resource group name managerName - the manager name

func (ChapSettingsClient) GetPreparer

func (client ChapSettingsClient) GetPreparer(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ChapSettingsClient) GetResponder

func (client ChapSettingsClient) GetResponder(resp *http.Response) (result ChapSettings, err error)

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

func (ChapSettingsClient) GetSender

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

func (client ChapSettingsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result ChapSettingsList, err error)

ListByDevice retrieves all the chap settings in a device. Parameters: deviceName - the name of the device. resourceGroupName - the resource group name managerName - the manager name

func (ChapSettingsClient) ListByDevicePreparer

func (client ChapSettingsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (ChapSettingsClient) ListByDeviceResponder

func (client ChapSettingsClient) ListByDeviceResponder(resp *http.Response) (result ChapSettingsList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (ChapSettingsClient) ListByDeviceSender

func (client ChapSettingsClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

type ChapSettingsCreateOrUpdateFuture

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

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

func (*ChapSettingsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ChapSettingsDeleteFuture

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

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

func (*ChapSettingsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ChapSettingsList

type ChapSettingsList struct {
	autorest.Response `json:"-"`
	// Value - The chap settings entity collection
	Value *[]ChapSettings `json:"value,omitempty"`
}

ChapSettingsList collection of Chap setting entities

type ClearAlertRequest

type ClearAlertRequest struct {
	// ResolutionMessage - Resolution message while clearing the request
	ResolutionMessage *string `json:"resolutionMessage,omitempty"`
	// Alerts - List of alert Ids to be cleared
	Alerts *[]string `json:"alerts,omitempty"`
}

ClearAlertRequest request for clearing the alert

type CloneRequest

type CloneRequest struct {
	// CloneRequestProperties - CloneJob Properties are encapsulated in this object.
	*CloneRequestProperties `json:"properties,omitempty"`
}

CloneRequest clone Job Request Model.

func (CloneRequest) MarshalJSON

func (cr CloneRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloneRequest.

func (*CloneRequest) UnmarshalJSON

func (cr *CloneRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CloneRequest struct.

type CloneRequestProperties

type CloneRequestProperties struct {
	// TargetDeviceID - DeviceId of the device which will act as the Clone target
	TargetDeviceID *string `json:"targetDeviceId,omitempty"`
	// TargetAccessPointID - Access point Id on which clone job will performed.
	TargetAccessPointID *string `json:"targetAccessPointId,omitempty"`
	// NewEndpointName - Name of new endpoint which will created as part of clone job.
	NewEndpointName *string `json:"newEndpointName,omitempty"`
	// Share - Share Object.
	Share *FileShare `json:"share,omitempty"`
	// Disk - Disk Object
	Disk *ISCSIDisk `json:"disk,omitempty"`
}

CloneRequestProperties properties of CloneRequest

type CloudType

type CloudType string

CloudType enumerates the values for cloud type.

const (
	// Azure ...
	Azure CloudType = "Azure"
	// HP ...
	HP CloudType = "HP"
	// OpenStack ...
	OpenStack CloudType = "OpenStack"
	// S3 ...
	S3 CloudType = "S3"
	// S3RRS ...
	S3RRS CloudType = "S3_RRS"
)

func PossibleCloudTypeValues

func PossibleCloudTypeValues() []CloudType

PossibleCloudTypeValues returns an array of possible values for the CloudType const type.

type ContractVersions

type ContractVersions string

ContractVersions enumerates the values for contract versions.

const (
	// InvalidVersion ...
	InvalidVersion ContractVersions = "InvalidVersion"
	// V201109 ...
	V201109 ContractVersions = "V2011_09"
	// V201202 ...
	V201202 ContractVersions = "V2012_02"
	// V201205 ...
	V201205 ContractVersions = "V2012_05"
	// V201212 ...
	V201212 ContractVersions = "V2012_12"
	// V201304 ...
	V201304 ContractVersions = "V2013_04"
	// V201310 ...
	V201310 ContractVersions = "V2013_10"
	// V201311 ...
	V201311 ContractVersions = "V2013_11"
	// V201404 ...
	V201404 ContractVersions = "V2014_04"
	// V201406 ...
	V201406 ContractVersions = "V2014_06"
	// V201407 ...
	V201407 ContractVersions = "V2014_07"
	// V201409 ...
	V201409 ContractVersions = "V2014_09"
	// V201410 ...
	V201410 ContractVersions = "V2014_10"
	// V201412 ...
	V201412 ContractVersions = "V2014_12"
	// V201501 ...
	V201501 ContractVersions = "V2015_01"
	// V201502 ...
	V201502 ContractVersions = "V2015_02"
	// V201504 ...
	V201504 ContractVersions = "V2015_04"
	// V201505 ...
	V201505 ContractVersions = "V2015_05"
	// V201506 ...
	V201506 ContractVersions = "V2015_06"
	// V201507 ...
	V201507 ContractVersions = "V2015_07"
	// V201508 ...
	V201508 ContractVersions = "V2015_08"
	// V201510 ...
	V201510 ContractVersions = "V2015_10"
	// V201512 ...
	V201512 ContractVersions = "V2015_12"
	// V201601 ...
	V201601 ContractVersions = "V2016_01"
	// V201602 ...
	V201602 ContractVersions = "V2016_02"
	// V201604 ...
	V201604 ContractVersions = "V2016_04"
	// V201605 ...
	V201605 ContractVersions = "V2016_05"
	// V201607 ...
	V201607 ContractVersions = "V2016_07"
	// V201608 ...
	V201608 ContractVersions = "V2016_08"
)

func PossibleContractVersionsValues

func PossibleContractVersionsValues() []ContractVersions

PossibleContractVersionsValues returns an array of possible values for the ContractVersions const type.

type DataPolicy

type DataPolicy string

DataPolicy enumerates the values for data policy.

const (
	// DataPolicyCloud ...
	DataPolicyCloud DataPolicy = "Cloud"
	// DataPolicyInvalid ...
	DataPolicyInvalid DataPolicy = "Invalid"
	// DataPolicyLocal ...
	DataPolicyLocal DataPolicy = "Local"
	// DataPolicyTiered ...
	DataPolicyTiered DataPolicy = "Tiered"
)

func PossibleDataPolicyValues

func PossibleDataPolicyValues() []DataPolicy

PossibleDataPolicyValues returns an array of possible values for the DataPolicy const type.

type Device

type Device struct {
	autorest.Response `json:"-"`
	// DeviceProperties - Collection of properties for the device
	*DeviceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

Device represents a StorSimple device object along with its properties

func (Device) MarshalJSON

func (d Device) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Device.

func (*Device) UnmarshalJSON

func (d *Device) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Device struct.

type DeviceConfigurationStatus

type DeviceConfigurationStatus string

DeviceConfigurationStatus enumerates the values for device configuration status.

const (
	// Complete ...
	Complete DeviceConfigurationStatus = "Complete"
	// Pending ...
	Pending DeviceConfigurationStatus = "Pending"
)

func PossibleDeviceConfigurationStatusValues

func PossibleDeviceConfigurationStatusValues() []DeviceConfigurationStatus

PossibleDeviceConfigurationStatusValues returns an array of possible values for the DeviceConfigurationStatus const type.

type DeviceDetails

type DeviceDetails struct {
	// EndpointCount - Total number of endpoints that are currently on the device ( i.e. number of shares on FileServer or number of volumes on IscsiServer)
	EndpointCount *int32 `json:"endpointCount,omitempty"`
	// TotalStorageInBytes - Total storage available on the device in bytes.
	TotalStorageInBytes *int64 `json:"totalStorageInBytes,omitempty"`
	// TotalLocalStorageInBytes - Total local storage capacity in device in bytes.
	TotalLocalStorageInBytes *int64 `json:"totalLocalStorageInBytes,omitempty"`
	// ProvisionedStorageInBytes - Storage in bytes that has been provisioned on the device including both local and cloud
	ProvisionedStorageInBytes *int64 `json:"provisionedStorageInBytes,omitempty"`
	// ProvisionedLocalStorageInBytes - Storage in bytes that has been provisioned locally on the device
	ProvisionedLocalStorageInBytes *int64 `json:"provisionedLocalStorageInBytes,omitempty"`
	// UsingStorageInBytes - Storage that is being currently used in bytes including both local and cloud
	UsingStorageInBytes *int64 `json:"usingStorageInBytes,omitempty"`
	// UsingLocalStorageInBytes - Local Storage that is being currently used in bytes
	UsingLocalStorageInBytes *int64 `json:"usingLocalStorageInBytes,omitempty"`
	// TotalBackupSizeInBytes - Total size taken up by backups in bytes
	TotalBackupSizeInBytes *int64 `json:"totalBackupSizeInBytes,omitempty"`
	// AvailableStorageInBytes - Total pending available storage on the device in bytes
	AvailableStorageInBytes *int64 `json:"availableStorageInBytes,omitempty"`
	// AvailableLocalStorageInBytes - Local pending storage available on the device in bytes
	AvailableLocalStorageInBytes *int64 `json:"availableLocalStorageInBytes,omitempty"`
}

DeviceDetails class containing more granular details about the device

type DeviceList

type DeviceList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]Device `json:"value,omitempty"`
}

DeviceList collection of Devices

type DeviceOperation

type DeviceOperation string

DeviceOperation enumerates the values for device operation.

const (
	// Browsable ...
	Browsable DeviceOperation = "Browsable"
	// Deactivate ...
	Deactivate DeviceOperation = "Deactivate"
	// Delete ...
	Delete DeviceOperation = "Delete"
	// DeleteWithWarning ...
	DeleteWithWarning DeviceOperation = "DeleteWithWarning"
	// DRSource ...
	DRSource DeviceOperation = "DRSource"
	// DRTarget ...
	DRTarget DeviceOperation = "DRTarget"
	// None ...
	None DeviceOperation = "None"
	// ReadOnlyForDR ...
	ReadOnlyForDR DeviceOperation = "ReadOnlyForDR"
)

func PossibleDeviceOperationValues

func PossibleDeviceOperationValues() []DeviceOperation

PossibleDeviceOperationValues returns an array of possible values for the DeviceOperation const type.

type DevicePatch

type DevicePatch struct {
	// DeviceDescription - Short description given for the device
	DeviceDescription *string `json:"deviceDescription,omitempty"`
}

DevicePatch class that represents the Input for the PATCH call on Device. Currently the only patchable property on device is "DeviceDescription"

type DeviceProperties

type DeviceProperties struct {
	// ActivationTime - The UTC time at which the device was activated
	ActivationTime *date.Time `json:"activationTime,omitempty"`
	// AllowedDeviceOperations - Operations that are allowed on the device based on its current state
	AllowedDeviceOperations *[]DeviceOperation `json:"allowedDeviceOperations,omitempty"`
	// Culture - Language culture setting on the device. For eg: "en-US"
	Culture *string `json:"culture,omitempty"`
	// DeviceCapabilities - Device can be configured either as FileServer or IscsiServer
	DeviceCapabilities *[]SupportedDeviceCapabilities `json:"deviceCapabilities,omitempty"`
	// DeviceDescription - Short description given for the device
	DeviceDescription *string `json:"deviceDescription,omitempty"`
	// DomainName - Fully qualified name of the domain to which the device is attached
	DomainName *string `json:"domainName,omitempty"`
	// DeviceSoftwareVersion - Version number of the software running on the device
	DeviceSoftwareVersion *string `json:"deviceSoftwareVersion,omitempty"`
	// FriendlySoftwareName - Friendly name for the software version
	FriendlySoftwareName *string `json:"friendlySoftwareName,omitempty"`
	// DeviceConfigurationStatus - "Complete" if the device has been successfully registered as File/IscsiServer and the creation of share/volume is complete, "Pending" if the device is only registered but the creation of share/volume is complete is still pending. Possible values include: 'Complete', 'Pending'
	DeviceConfigurationStatus DeviceConfigurationStatus `json:"deviceConfigurationStatus,omitempty"`
	// ModelDescription - Name of the device model
	ModelDescription *string `json:"modelDescription,omitempty"`
	// Status - Current status of the device. Possible values include: 'Unknown', 'Online', 'Offline', 'RequiresAttention', 'MaintenanceMode', 'Creating', 'Provisioning', 'Deleted', 'ReadyToSetup', 'Deactivated', 'Deactivating'
	Status DeviceStatus `json:"status,omitempty"`
	// Type - Type of the device. Possible values include: 'DeviceTypeInvalid', 'DeviceTypeAppliance', 'DeviceTypeVirtualAppliance', 'DeviceTypeSeries9000OnPremVirtualAppliance', 'DeviceTypeSeries9000VirtualAppliance', 'DeviceTypeSeries9000PhysicalAppliance'
	Type DeviceType `json:"type,omitempty"`
	// Details - subclass containing more storage-related information about the device. This field will be populated only if the get call is made with $expand = details.
	Details *DeviceDetails `json:"details,omitempty"`
}

DeviceProperties encases all the properties of the Device

type DeviceStatus

type DeviceStatus string

DeviceStatus enumerates the values for device status.

const (
	// Creating ...
	Creating DeviceStatus = "Creating"
	// Deactivated ...
	Deactivated DeviceStatus = "Deactivated"
	// Deactivating ...
	Deactivating DeviceStatus = "Deactivating"
	// Deleted ...
	Deleted DeviceStatus = "Deleted"
	// MaintenanceMode ...
	MaintenanceMode DeviceStatus = "MaintenanceMode"
	// Offline ...
	Offline DeviceStatus = "Offline"
	// Online ...
	Online DeviceStatus = "Online"
	// Provisioning ...
	Provisioning DeviceStatus = "Provisioning"
	// ReadyToSetup ...
	ReadyToSetup DeviceStatus = "ReadyToSetup"
	// RequiresAttention ...
	RequiresAttention DeviceStatus = "RequiresAttention"
	// Unknown ...
	Unknown DeviceStatus = "Unknown"
)

func PossibleDeviceStatusValues

func PossibleDeviceStatusValues() []DeviceStatus

PossibleDeviceStatusValues returns an array of possible values for the DeviceStatus const type.

type DeviceType

type DeviceType string

DeviceType enumerates the values for device type.

const (
	// DeviceTypeAppliance ...
	DeviceTypeAppliance DeviceType = "Appliance"
	// DeviceTypeInvalid ...
	DeviceTypeInvalid DeviceType = "Invalid"
	// DeviceTypeSeries9000OnPremVirtualAppliance ...
	DeviceTypeSeries9000OnPremVirtualAppliance DeviceType = "Series9000OnPremVirtualAppliance"
	// DeviceTypeSeries9000PhysicalAppliance ...
	DeviceTypeSeries9000PhysicalAppliance DeviceType = "Series9000PhysicalAppliance"
	// DeviceTypeSeries9000VirtualAppliance ...
	DeviceTypeSeries9000VirtualAppliance DeviceType = "Series9000VirtualAppliance"
	// DeviceTypeVirtualAppliance ...
	DeviceTypeVirtualAppliance DeviceType = "VirtualAppliance"
)

func PossibleDeviceTypeValues

func PossibleDeviceTypeValues() []DeviceType

PossibleDeviceTypeValues returns an array of possible values for the DeviceType const type.

type DevicesClient

type DevicesClient struct {
	BaseClient
}

DevicesClient is the client for the Devices methods of the Storsimple service.

func NewDevicesClient

func NewDevicesClient(subscriptionID string) DevicesClient

NewDevicesClient creates an instance of the DevicesClient client.

func NewDevicesClientWithBaseURI

func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient

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

func (DevicesClient) CreateOrUpdateAlertSettings

func (client DevicesClient) CreateOrUpdateAlertSettings(ctx context.Context, deviceName string, alertSettings AlertSettings, resourceGroupName string, managerName string) (result DevicesCreateOrUpdateAlertSettingsFuture, err error)

CreateOrUpdateAlertSettings creates or updates the alert settings Parameters: deviceName - the device name. alertSettings - the alert settings. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) CreateOrUpdateAlertSettingsPreparer

func (client DevicesClient) CreateOrUpdateAlertSettingsPreparer(ctx context.Context, deviceName string, alertSettings AlertSettings, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdateAlertSettingsPreparer prepares the CreateOrUpdateAlertSettings request.

func (DevicesClient) CreateOrUpdateAlertSettingsResponder

func (client DevicesClient) CreateOrUpdateAlertSettingsResponder(resp *http.Response) (result AlertSettings, err error)

CreateOrUpdateAlertSettingsResponder handles the response to the CreateOrUpdateAlertSettings request. The method always closes the http.Response Body.

func (DevicesClient) CreateOrUpdateAlertSettingsSender

func (client DevicesClient) CreateOrUpdateAlertSettingsSender(req *http.Request) (future DevicesCreateOrUpdateAlertSettingsFuture, err error)

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

func (DevicesClient) CreateOrUpdateSecuritySettings

func (client DevicesClient) CreateOrUpdateSecuritySettings(ctx context.Context, deviceName string, securitySettings SecuritySettings, resourceGroupName string, managerName string) (result DevicesCreateOrUpdateSecuritySettingsFuture, err error)

CreateOrUpdateSecuritySettings creates or updates the security settings. Parameters: deviceName - the device name. securitySettings - the security settings. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) CreateOrUpdateSecuritySettingsPreparer

func (client DevicesClient) CreateOrUpdateSecuritySettingsPreparer(ctx context.Context, deviceName string, securitySettings SecuritySettings, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdateSecuritySettingsPreparer prepares the CreateOrUpdateSecuritySettings request.

func (DevicesClient) CreateOrUpdateSecuritySettingsResponder

func (client DevicesClient) CreateOrUpdateSecuritySettingsResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateSecuritySettingsResponder handles the response to the CreateOrUpdateSecuritySettings request. The method always closes the http.Response Body.

func (DevicesClient) CreateOrUpdateSecuritySettingsSender

func (client DevicesClient) CreateOrUpdateSecuritySettingsSender(req *http.Request) (future DevicesCreateOrUpdateSecuritySettingsFuture, err error)

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

func (DevicesClient) Deactivate

func (client DevicesClient) Deactivate(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesDeactivateFuture, err error)

Deactivate deactivates the device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) DeactivatePreparer

func (client DevicesClient) DeactivatePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

DeactivatePreparer prepares the Deactivate request.

func (DevicesClient) DeactivateResponder

func (client DevicesClient) DeactivateResponder(resp *http.Response) (result autorest.Response, err error)

DeactivateResponder handles the response to the Deactivate request. The method always closes the http.Response Body.

func (DevicesClient) DeactivateSender

func (client DevicesClient) DeactivateSender(req *http.Request) (future DevicesDeactivateFuture, err error)

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

func (DevicesClient) Delete

func (client DevicesClient) Delete(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesDeleteFuture, err error)

Delete deletes the device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) DeletePreparer

func (client DevicesClient) DeletePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DevicesClient) DeleteResponder

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

func (client DevicesClient) DeleteSender(req *http.Request) (future DevicesDeleteFuture, err error)

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

func (DevicesClient) DownloadUpdates

func (client DevicesClient) DownloadUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesDownloadUpdatesFuture, err error)

DownloadUpdates downloads updates on the device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) DownloadUpdatesPreparer

func (client DevicesClient) DownloadUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

DownloadUpdatesPreparer prepares the DownloadUpdates request.

func (DevicesClient) DownloadUpdatesResponder

func (client DevicesClient) DownloadUpdatesResponder(resp *http.Response) (result autorest.Response, err error)

DownloadUpdatesResponder handles the response to the DownloadUpdates request. The method always closes the http.Response Body.

func (DevicesClient) DownloadUpdatesSender

func (client DevicesClient) DownloadUpdatesSender(req *http.Request) (future DevicesDownloadUpdatesFuture, err error)

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

func (DevicesClient) Failover

func (client DevicesClient) Failover(ctx context.Context, deviceName string, failoverRequest FailoverRequest, resourceGroupName string, managerName string) (result DevicesFailoverFuture, err error)

Failover fails over the device to another device. Parameters: deviceName - the device name. failoverRequest - the failover request. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) FailoverPreparer

func (client DevicesClient) FailoverPreparer(ctx context.Context, deviceName string, failoverRequest FailoverRequest, resourceGroupName string, managerName string) (*http.Request, error)

FailoverPreparer prepares the Failover request.

func (DevicesClient) FailoverResponder

func (client DevicesClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (DevicesClient) FailoverSender

func (client DevicesClient) FailoverSender(req *http.Request) (future DevicesFailoverFuture, err error)

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

func (DevicesClient) Get

func (client DevicesClient) Get(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (result Device, err error)

Get returns the properties of the specified device name. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name expand - specify $expand=details to populate additional fields related to the device.

func (DevicesClient) GetAlertSettings

func (client DevicesClient) GetAlertSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result AlertSettings, err error)

GetAlertSettings returns the alert settings of the specified device name. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) GetAlertSettingsPreparer

func (client DevicesClient) GetAlertSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

GetAlertSettingsPreparer prepares the GetAlertSettings request.

func (DevicesClient) GetAlertSettingsResponder

func (client DevicesClient) GetAlertSettingsResponder(resp *http.Response) (result AlertSettings, err error)

GetAlertSettingsResponder handles the response to the GetAlertSettings request. The method always closes the http.Response Body.

func (DevicesClient) GetAlertSettingsSender

func (client DevicesClient) GetAlertSettingsSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) GetNetworkSettings

func (client DevicesClient) GetNetworkSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result NetworkSettings, err error)

GetNetworkSettings returns the network settings of the specified device name. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) GetNetworkSettingsPreparer

func (client DevicesClient) GetNetworkSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

GetNetworkSettingsPreparer prepares the GetNetworkSettings request.

func (DevicesClient) GetNetworkSettingsResponder

func (client DevicesClient) GetNetworkSettingsResponder(resp *http.Response) (result NetworkSettings, err error)

GetNetworkSettingsResponder handles the response to the GetNetworkSettings request. The method always closes the http.Response Body.

func (DevicesClient) GetNetworkSettingsSender

func (client DevicesClient) GetNetworkSettingsSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) GetPreparer

func (client DevicesClient) GetPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DevicesClient) GetResponder

func (client DevicesClient) GetResponder(resp *http.Response) (result Device, err error)

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

func (DevicesClient) GetSender

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

func (client DevicesClient) GetTimeSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result TimeSettings, err error)

GetTimeSettings returns the time settings of the specified device name. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) GetTimeSettingsPreparer

func (client DevicesClient) GetTimeSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

GetTimeSettingsPreparer prepares the GetTimeSettings request.

func (DevicesClient) GetTimeSettingsResponder

func (client DevicesClient) GetTimeSettingsResponder(resp *http.Response) (result TimeSettings, err error)

GetTimeSettingsResponder handles the response to the GetTimeSettings request. The method always closes the http.Response Body.

func (DevicesClient) GetTimeSettingsSender

func (client DevicesClient) GetTimeSettingsSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) GetUpdateSummary

func (client DevicesClient) GetUpdateSummary(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result Updates, err error)

GetUpdateSummary returns the update summary of the specified device name. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) GetUpdateSummaryPreparer

func (client DevicesClient) GetUpdateSummaryPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

GetUpdateSummaryPreparer prepares the GetUpdateSummary request.

func (DevicesClient) GetUpdateSummaryResponder

func (client DevicesClient) GetUpdateSummaryResponder(resp *http.Response) (result Updates, err error)

GetUpdateSummaryResponder handles the response to the GetUpdateSummary request. The method always closes the http.Response Body.

func (DevicesClient) GetUpdateSummarySender

func (client DevicesClient) GetUpdateSummarySender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) InstallUpdates

func (client DevicesClient) InstallUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesInstallUpdatesFuture, err error)

InstallUpdates installs the updates on the device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) InstallUpdatesPreparer

func (client DevicesClient) InstallUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

InstallUpdatesPreparer prepares the InstallUpdates request.

func (DevicesClient) InstallUpdatesResponder

func (client DevicesClient) InstallUpdatesResponder(resp *http.Response) (result autorest.Response, err error)

InstallUpdatesResponder handles the response to the InstallUpdates request. The method always closes the http.Response Body.

func (DevicesClient) InstallUpdatesSender

func (client DevicesClient) InstallUpdatesSender(req *http.Request) (future DevicesInstallUpdatesFuture, err error)

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

func (DevicesClient) ListByManager

func (client DevicesClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string, expand string) (result DeviceList, err error)

ListByManager retrieves all the devices in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name expand - specify $expand=details to populate additional fields related to the device.

func (DevicesClient) ListByManagerPreparer

func (client DevicesClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, expand string) (*http.Request, error)

ListByManagerPreparer prepares the ListByManager request.

func (DevicesClient) ListByManagerResponder

func (client DevicesClient) ListByManagerResponder(resp *http.Response) (result DeviceList, err error)

ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.

func (DevicesClient) ListByManagerSender

func (client DevicesClient) ListByManagerSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) ListFailoverTarget

func (client DevicesClient) ListFailoverTarget(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (result DeviceList, err error)

ListFailoverTarget retrieves all the devices which can be used as failover targets for the given device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name expand - specify $expand=details to populate additional fields related to the device.

func (DevicesClient) ListFailoverTargetPreparer

func (client DevicesClient) ListFailoverTargetPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (*http.Request, error)

ListFailoverTargetPreparer prepares the ListFailoverTarget request.

func (DevicesClient) ListFailoverTargetResponder

func (client DevicesClient) ListFailoverTargetResponder(resp *http.Response) (result DeviceList, err error)

ListFailoverTargetResponder handles the response to the ListFailoverTarget request. The method always closes the http.Response Body.

func (DevicesClient) ListFailoverTargetSender

func (client DevicesClient) ListFailoverTargetSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) ListMetricDefinition

func (client DevicesClient) ListMetricDefinition(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)

ListMetricDefinition retrieves metric definition of all metrics aggregated at device. Parameters: deviceName - the name of the appliance. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) ListMetricDefinitionPreparer

func (client DevicesClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (DevicesClient) ListMetricDefinitionResponder

func (client DevicesClient) ListMetricDefinitionResponder(resp *http.Response) (result MetricDefinitionList, err error)

ListMetricDefinitionResponder handles the response to the ListMetricDefinition request. The method always closes the http.Response Body.

func (DevicesClient) ListMetricDefinitionSender

func (client DevicesClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) ListMetrics

func (client DevicesClient) ListMetrics(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)

ListMetrics retrieves the device metrics. Parameters: deviceName - the name of the appliance. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (DevicesClient) ListMetricsPreparer

func (client DevicesClient) ListMetricsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (DevicesClient) ListMetricsResponder

func (client DevicesClient) ListMetricsResponder(resp *http.Response) (result MetricList, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (DevicesClient) ListMetricsSender

func (client DevicesClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

func (DevicesClient) Patch

func (client DevicesClient) Patch(ctx context.Context, deviceName string, devicePatch DevicePatch, resourceGroupName string, managerName string) (result DevicesPatchFuture, err error)

Patch patches the device. Parameters: deviceName - the device Name. devicePatch - patch representation of the device. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) PatchPreparer

func (client DevicesClient) PatchPreparer(ctx context.Context, deviceName string, devicePatch DevicePatch, resourceGroupName string, managerName string) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (DevicesClient) PatchResponder

func (client DevicesClient) PatchResponder(resp *http.Response) (result Device, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (DevicesClient) PatchSender

func (client DevicesClient) PatchSender(req *http.Request) (future DevicesPatchFuture, err error)

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

func (DevicesClient) ScanForUpdates

func (client DevicesClient) ScanForUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesScanForUpdatesFuture, err error)

ScanForUpdates scans for updates on the device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (DevicesClient) ScanForUpdatesPreparer

func (client DevicesClient) ScanForUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ScanForUpdatesPreparer prepares the ScanForUpdates request.

func (DevicesClient) ScanForUpdatesResponder

func (client DevicesClient) ScanForUpdatesResponder(resp *http.Response) (result autorest.Response, err error)

ScanForUpdatesResponder handles the response to the ScanForUpdates request. The method always closes the http.Response Body.

func (DevicesClient) ScanForUpdatesSender

func (client DevicesClient) ScanForUpdatesSender(req *http.Request) (future DevicesScanForUpdatesFuture, err error)

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

type DevicesCreateOrUpdateAlertSettingsFuture

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

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

func (*DevicesCreateOrUpdateAlertSettingsFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesCreateOrUpdateSecuritySettingsFuture

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

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

func (*DevicesCreateOrUpdateSecuritySettingsFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesDeactivateFuture

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

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

func (*DevicesDeactivateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesDeleteFuture

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

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

func (*DevicesDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesDownloadUpdatesFuture

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

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

func (*DevicesDownloadUpdatesFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesFailoverFuture

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

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

func (*DevicesFailoverFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesInstallUpdatesFuture

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

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

func (*DevicesInstallUpdatesFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesPatchFuture

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

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

func (*DevicesPatchFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DevicesScanForUpdatesFuture

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

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

func (*DevicesScanForUpdatesFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DhcpStatus

type DhcpStatus string

DhcpStatus enumerates the values for dhcp status.

const (
	// DhcpStatusDisabled ...
	DhcpStatusDisabled DhcpStatus = "Disabled"
	// DhcpStatusEnabled ...
	DhcpStatusEnabled DhcpStatus = "Enabled"
)

func PossibleDhcpStatusValues

func PossibleDhcpStatusValues() []DhcpStatus

PossibleDhcpStatusValues returns an array of possible values for the DhcpStatus const type.

type DiskStatus

type DiskStatus string

DiskStatus enumerates the values for disk status.

const (
	// DiskStatusOffline ...
	DiskStatusOffline DiskStatus = "Offline"
	// DiskStatusOnline ...
	DiskStatusOnline DiskStatus = "Online"
)

func PossibleDiskStatusValues

func PossibleDiskStatusValues() []DiskStatus

PossibleDiskStatusValues returns an array of possible values for the DiskStatus const type.

type DownloadPhase

type DownloadPhase string

DownloadPhase enumerates the values for download phase.

const (
	// DownloadPhaseDownloading ...
	DownloadPhaseDownloading DownloadPhase = "Downloading"
	// DownloadPhaseInitializing ...
	DownloadPhaseInitializing DownloadPhase = "Initializing"
	// DownloadPhaseUnknown ...
	DownloadPhaseUnknown DownloadPhase = "Unknown"
	// DownloadPhaseVerifying ...
	DownloadPhaseVerifying DownloadPhase = "Verifying"
)

func PossibleDownloadPhaseValues

func PossibleDownloadPhaseValues() []DownloadPhase

PossibleDownloadPhaseValues returns an array of possible values for the DownloadPhase const type.

type EncryptionAlgorithm

type EncryptionAlgorithm string

EncryptionAlgorithm enumerates the values for encryption algorithm.

const (
	// EncryptionAlgorithmAES256 ...
	EncryptionAlgorithmAES256 EncryptionAlgorithm = "AES256"
	// EncryptionAlgorithmNone ...
	EncryptionAlgorithmNone EncryptionAlgorithm = "None"
	// EncryptionAlgorithmRSAESPKCS1V15 ...
	EncryptionAlgorithmRSAESPKCS1V15 EncryptionAlgorithm = "RSAES_PKCS1_v_1_5"
)

func PossibleEncryptionAlgorithmValues

func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm

PossibleEncryptionAlgorithmValues returns an array of possible values for the EncryptionAlgorithm const type.

type EncryptionSettings

type EncryptionSettings struct {
	autorest.Response `json:"-"`
	// EncryptionSettingsProperties - Properties of the EncryptionSettings.
	*EncryptionSettingsProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

EncryptionSettings the EncryptionSettings

func (EncryptionSettings) MarshalJSON

func (es EncryptionSettings) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncryptionSettings.

func (*EncryptionSettings) UnmarshalJSON

func (es *EncryptionSettings) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EncryptionSettings struct.

type EncryptionSettingsProperties

type EncryptionSettingsProperties struct {
	// EncryptionStatus - The encryption status which indicates if encryption is enabled or not. Possible values include: 'EncryptionStatusEnabled', 'EncryptionStatusDisabled'
	EncryptionStatus EncryptionStatus `json:"encryptionStatus,omitempty"`
	// KeyRolloverStatus - The key rollover status which indicates if key rollover is required or not. If secrets encryption has been upgraded, then it requires key rollover. Possible values include: 'Required', 'NotRequired'
	KeyRolloverStatus KeyRolloverStatus `json:"keyRolloverStatus,omitempty"`
}

EncryptionSettingsProperties the properties of EncryptionSettings

type EncryptionStatus

type EncryptionStatus string

EncryptionStatus enumerates the values for encryption status.

const (
	// EncryptionStatusDisabled ...
	EncryptionStatusDisabled EncryptionStatus = "Disabled"
	// EncryptionStatusEnabled ...
	EncryptionStatusEnabled EncryptionStatus = "Enabled"
)

func PossibleEncryptionStatusValues

func PossibleEncryptionStatusValues() []EncryptionStatus

PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type.

type Error

type Error struct {
	ErrorCode *string  `json:"errorCode,omitempty"`
	Message   *Message `json:"message,omitempty"`
	Values    *[]Item  `json:"values,omitempty"`
}

Error ...

type FailoverRequest

type FailoverRequest struct {
	AccesspointIds   *[]string `json:"accesspointIds,omitempty"`
	TargetDeviceID   *string   `json:"targetDeviceId,omitempty"`
	SkipValidation   *bool     `json:"skipValidation,omitempty"`
	KeepSourceDevice *bool     `json:"keepSourceDevice,omitempty"`
}

FailoverRequest the Failover request object.

type FileServer

type FileServer struct {
	autorest.Response `json:"-"`
	// FileServerProperties - The properties.
	*FileServerProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

FileServer the file server.

func (FileServer) MarshalJSON

func (fs FileServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileServer.

func (*FileServer) UnmarshalJSON

func (fs *FileServer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FileServer struct.

type FileServerList

type FileServerList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]FileServer `json:"value,omitempty"`
}

FileServerList collection of file servers

type FileServerProperties

type FileServerProperties struct {
	// DomainName - Domain of the file server
	DomainName *string `json:"domainName,omitempty"`
	// StorageDomainID - The storage domain id.
	StorageDomainID *string `json:"storageDomainId,omitempty"`
	// BackupScheduleGroupID - The backup policy id.
	BackupScheduleGroupID *string `json:"backupScheduleGroupId,omitempty"`
	// Description - The description of the file server
	Description *string `json:"description,omitempty"`
}

FileServerProperties the file server properties.

type FileServersBackupNowFuture

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

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

func (*FileServersBackupNowFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FileServersClient

type FileServersClient struct {
	BaseClient
}

FileServersClient is the client for the FileServers methods of the Storsimple service.

func NewFileServersClient

func NewFileServersClient(subscriptionID string) FileServersClient

NewFileServersClient creates an instance of the FileServersClient client.

func NewFileServersClientWithBaseURI

func NewFileServersClientWithBaseURI(baseURI string, subscriptionID string) FileServersClient

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

func (FileServersClient) BackupNow

func (client FileServersClient) BackupNow(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (result FileServersBackupNowFuture, err error)

BackupNow backup the file server now. Parameters: deviceName - the device name. fileServerName - the file server name. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) BackupNowPreparer

func (client FileServersClient) BackupNowPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)

BackupNowPreparer prepares the BackupNow request.

func (FileServersClient) BackupNowResponder

func (client FileServersClient) BackupNowResponder(resp *http.Response) (result autorest.Response, err error)

BackupNowResponder handles the response to the BackupNow request. The method always closes the http.Response Body.

func (FileServersClient) BackupNowSender

func (client FileServersClient) BackupNowSender(req *http.Request) (future FileServersBackupNowFuture, err error)

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

func (FileServersClient) CreateOrUpdate

func (client FileServersClient) CreateOrUpdate(ctx context.Context, deviceName string, fileServerName string, fileServer FileServer, resourceGroupName string, managerName string) (result FileServersCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates the file server. Parameters: deviceName - the device name. fileServerName - the file server name. fileServer - the file server. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) CreateOrUpdatePreparer

func (client FileServersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, fileServerName string, fileServer FileServer, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FileServersClient) CreateOrUpdateResponder

func (client FileServersClient) CreateOrUpdateResponder(resp *http.Response) (result FileServer, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (FileServersClient) CreateOrUpdateSender

func (client FileServersClient) CreateOrUpdateSender(req *http.Request) (future FileServersCreateOrUpdateFuture, err error)

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

func (FileServersClient) Delete

func (client FileServersClient) Delete(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (result FileServersDeleteFuture, err error)

Delete deletes the file server. Parameters: deviceName - the device name. fileServerName - the file server name. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) DeletePreparer

func (client FileServersClient) DeletePreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (FileServersClient) DeleteResponder

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

func (client FileServersClient) DeleteSender(req *http.Request) (future FileServersDeleteFuture, err error)

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

func (FileServersClient) Get

func (client FileServersClient) Get(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (result FileServer, err error)

Get returns the properties of the specified file server name. Parameters: deviceName - the device name. fileServerName - the file server name. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) GetPreparer

func (client FileServersClient) GetPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (FileServersClient) GetResponder

func (client FileServersClient) GetResponder(resp *http.Response) (result FileServer, err error)

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

func (FileServersClient) GetSender

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

func (client FileServersClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result FileServerList, err error)

ListByDevice retrieves all the file servers in a device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) ListByDevicePreparer

func (client FileServersClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (FileServersClient) ListByDeviceResponder

func (client FileServersClient) ListByDeviceResponder(resp *http.Response) (result FileServerList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (FileServersClient) ListByDeviceSender

func (client FileServersClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

func (FileServersClient) ListByManager

func (client FileServersClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string) (result FileServerList, err error)

ListByManager retrieves all the file servers in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) ListByManagerPreparer

func (client FileServersClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)

ListByManagerPreparer prepares the ListByManager request.

func (FileServersClient) ListByManagerResponder

func (client FileServersClient) ListByManagerResponder(resp *http.Response) (result FileServerList, err error)

ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.

func (FileServersClient) ListByManagerSender

func (client FileServersClient) ListByManagerSender(req *http.Request) (*http.Response, error)

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

func (FileServersClient) ListMetricDefinition

func (client FileServersClient) ListMetricDefinition(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)

ListMetricDefinition retrieves metric definitions of all metrics aggregated at the file server. Parameters: deviceName - the name of the device. fileServerName - the name of the file server. resourceGroupName - the resource group name managerName - the manager name

func (FileServersClient) ListMetricDefinitionPreparer

func (client FileServersClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (FileServersClient) ListMetricDefinitionResponder

func (client FileServersClient) ListMetricDefinitionResponder(resp *http.Response) (result MetricDefinitionList, err error)

ListMetricDefinitionResponder handles the response to the ListMetricDefinition request. The method always closes the http.Response Body.

func (FileServersClient) ListMetricDefinitionSender

func (client FileServersClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)

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

func (FileServersClient) ListMetrics

func (client FileServersClient) ListMetrics(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)

ListMetrics gets the file server metrics. Parameters: deviceName - the name of the device. fileServerName - the name of the file server name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (FileServersClient) ListMetricsPreparer

func (client FileServersClient) ListMetricsPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (FileServersClient) ListMetricsResponder

func (client FileServersClient) ListMetricsResponder(resp *http.Response) (result MetricList, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (FileServersClient) ListMetricsSender

func (client FileServersClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type FileServersCreateOrUpdateFuture

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

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

func (*FileServersCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FileServersDeleteFuture

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

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

func (*FileServersDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FileShare

type FileShare struct {
	autorest.Response `json:"-"`
	// FileShareProperties - The properties.
	*FileShareProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

FileShare the File Share.

func (FileShare) MarshalJSON

func (fs FileShare) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileShare.

func (*FileShare) UnmarshalJSON

func (fs *FileShare) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FileShare struct.

type FileShareList

type FileShareList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]FileShare `json:"value,omitempty"`
}

FileShareList collection of file shares

type FileShareProperties

type FileShareProperties struct {
	// Description - Description for file share
	Description *string `json:"description,omitempty"`
	// ShareStatus - The Share Status. Possible values include: 'ShareStatusOnline', 'ShareStatusOffline'
	ShareStatus ShareStatus `json:"shareStatus,omitempty"`
	// DataPolicy - The data policy. Possible values include: 'DataPolicyInvalid', 'DataPolicyLocal', 'DataPolicyTiered', 'DataPolicyCloud'
	DataPolicy DataPolicy `json:"dataPolicy,omitempty"`
	// AdminUser - The user/group who will have full permission in this share. Active directory email address. Example: xyz@contoso.com or Contoso\xyz.
	AdminUser *string `json:"adminUser,omitempty"`
	// ProvisionedCapacityInBytes - The total provisioned capacity in Bytes
	ProvisionedCapacityInBytes *int64 `json:"provisionedCapacityInBytes,omitempty"`
	// UsedCapacityInBytes - READ-ONLY; The used capacity in Bytes.
	UsedCapacityInBytes *int64 `json:"usedCapacityInBytes,omitempty"`
	// LocalUsedCapacityInBytes - READ-ONLY; The local used capacity in Bytes.
	LocalUsedCapacityInBytes *int64 `json:"localUsedCapacityInBytes,omitempty"`
	// MonitoringStatus - The monitoring status. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled'
	MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"`
}

FileShareProperties the File Share.

func (FileShareProperties) MarshalJSON

func (fsp FileShareProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FileShareProperties.

type FileSharesClient

type FileSharesClient struct {
	BaseClient
}

FileSharesClient is the client for the FileShares methods of the Storsimple service.

func NewFileSharesClient

func NewFileSharesClient(subscriptionID string) FileSharesClient

NewFileSharesClient creates an instance of the FileSharesClient client.

func NewFileSharesClientWithBaseURI

func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient

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

func (FileSharesClient) CreateOrUpdate

func (client FileSharesClient) CreateOrUpdate(ctx context.Context, deviceName string, fileServerName string, shareName string, fileShare FileShare, resourceGroupName string, managerName string) (result FileSharesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates the file share. Parameters: deviceName - the device name. fileServerName - the file server name. shareName - the file share name. fileShare - the file share. resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) CreateOrUpdatePreparer

func (client FileSharesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, fileShare FileShare, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FileSharesClient) CreateOrUpdateResponder

func (client FileSharesClient) CreateOrUpdateResponder(resp *http.Response) (result FileShare, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (FileSharesClient) CreateOrUpdateSender

func (client FileSharesClient) CreateOrUpdateSender(req *http.Request) (future FileSharesCreateOrUpdateFuture, err error)

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

func (FileSharesClient) Delete

func (client FileSharesClient) Delete(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (result FileSharesDeleteFuture, err error)

Delete deletes the file share. Parameters: deviceName - the device name. fileServerName - the file server name. shareName - the file share Name resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) DeletePreparer

func (client FileSharesClient) DeletePreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (FileSharesClient) DeleteResponder

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

func (client FileSharesClient) DeleteSender(req *http.Request) (future FileSharesDeleteFuture, err error)

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

func (FileSharesClient) Get

func (client FileSharesClient) Get(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (result FileShare, err error)

Get returns the properties of the specified file share name. Parameters: deviceName - the device name. fileServerName - the file server name. shareName - the file share name. resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) GetPreparer

func (client FileSharesClient) GetPreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (FileSharesClient) GetResponder

func (client FileSharesClient) GetResponder(resp *http.Response) (result FileShare, err error)

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

func (FileSharesClient) GetSender

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

func (client FileSharesClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result FileShareList, err error)

ListByDevice retrieves all the file shares in a device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) ListByDevicePreparer

func (client FileSharesClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (FileSharesClient) ListByDeviceResponder

func (client FileSharesClient) ListByDeviceResponder(resp *http.Response) (result FileShareList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (FileSharesClient) ListByDeviceSender

func (client FileSharesClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

func (FileSharesClient) ListByFileServer

func (client FileSharesClient) ListByFileServer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (result FileShareList, err error)

ListByFileServer retrieves all the file shares in a file server. Parameters: deviceName - the device name. fileServerName - the file server name. resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) ListByFileServerPreparer

func (client FileSharesClient) ListByFileServerPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByFileServerPreparer prepares the ListByFileServer request.

func (FileSharesClient) ListByFileServerResponder

func (client FileSharesClient) ListByFileServerResponder(resp *http.Response) (result FileShareList, err error)

ListByFileServerResponder handles the response to the ListByFileServer request. The method always closes the http.Response Body.

func (FileSharesClient) ListByFileServerSender

func (client FileSharesClient) ListByFileServerSender(req *http.Request) (*http.Response, error)

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

func (FileSharesClient) ListMetricDefinition

func (client FileSharesClient) ListMetricDefinition(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)

ListMetricDefinition retrieves metric definitions of all metrics aggregated at the file share. Parameters: deviceName - the device name. fileServerName - the file server name. shareName - the file share name. resourceGroupName - the resource group name managerName - the manager name

func (FileSharesClient) ListMetricDefinitionPreparer

func (client FileSharesClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (*http.Request, error)

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (FileSharesClient) ListMetricDefinitionResponder

func (client FileSharesClient) ListMetricDefinitionResponder(resp *http.Response) (result MetricDefinitionList, err error)

ListMetricDefinitionResponder handles the response to the ListMetricDefinition request. The method always closes the http.Response Body.

func (FileSharesClient) ListMetricDefinitionSender

func (client FileSharesClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)

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

func (FileSharesClient) ListMetrics

func (client FileSharesClient) ListMetrics(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)

ListMetrics gets the file share metrics Parameters: deviceName - the device name. fileServerName - the file server name. shareName - the file share name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (FileSharesClient) ListMetricsPreparer

func (client FileSharesClient) ListMetricsPreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (FileSharesClient) ListMetricsResponder

func (client FileSharesClient) ListMetricsResponder(resp *http.Response) (result MetricList, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (FileSharesClient) ListMetricsSender

func (client FileSharesClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type FileSharesCreateOrUpdateFuture

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

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

func (*FileSharesCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FileSharesDeleteFuture

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

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

func (*FileSharesDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IPConfig

type IPConfig struct {
	// IPAddress - The IP address of the network adapter, either ipv4 or ipv6.
	IPAddress *string `json:"ipAddress,omitempty"`
	// PrefixLength - The prefix length of the network adapter.
	PrefixLength *int32 `json:"prefixLength,omitempty"`
	// Gateway - The gateway of the network adapter.
	Gateway *string `json:"gateway,omitempty"`
}

IPConfig details related to the IP address configuration

type ISCSIDisk

type ISCSIDisk struct {
	autorest.Response `json:"-"`
	// ISCSIDiskProperties - The properties.
	*ISCSIDiskProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

ISCSIDisk the iSCSI disk.

func (ISCSIDisk) MarshalJSON

func (ID ISCSIDisk) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ISCSIDisk.

func (*ISCSIDisk) UnmarshalJSON

func (ID *ISCSIDisk) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ISCSIDisk struct.

type ISCSIDiskList

type ISCSIDiskList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]ISCSIDisk `json:"value,omitempty"`
}

ISCSIDiskList collection of Iscsi disk

type ISCSIDiskProperties

type ISCSIDiskProperties struct {
	// Description - The description.
	Description *string `json:"description,omitempty"`
	// DiskStatus - The disk status. Possible values include: 'DiskStatusOnline', 'DiskStatusOffline'
	DiskStatus DiskStatus `json:"diskStatus,omitempty"`
	// AccessControlRecords - The access control records.
	AccessControlRecords *[]string `json:"accessControlRecords,omitempty"`
	// DataPolicy - The data policy. Possible values include: 'DataPolicyInvalid', 'DataPolicyLocal', 'DataPolicyTiered', 'DataPolicyCloud'
	DataPolicy DataPolicy `json:"dataPolicy,omitempty"`
	// ProvisionedCapacityInBytes - The provisioned capacity in bytes.
	ProvisionedCapacityInBytes *int64 `json:"provisionedCapacityInBytes,omitempty"`
	// UsedCapacityInBytes - READ-ONLY; The used capacity in bytes.
	UsedCapacityInBytes *int64 `json:"usedCapacityInBytes,omitempty"`
	// LocalUsedCapacityInBytes - READ-ONLY; The local used capacity in bytes.
	LocalUsedCapacityInBytes *int64 `json:"localUsedCapacityInBytes,omitempty"`
	// MonitoringStatus - The monitoring. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled'
	MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"`
}

ISCSIDiskProperties the iSCSI disk properties.

func (ISCSIDiskProperties) MarshalJSON

func (idp ISCSIDiskProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ISCSIDiskProperties.

type ISCSIServer

type ISCSIServer struct {
	autorest.Response `json:"-"`
	// ISCSIServerProperties - The properties.
	*ISCSIServerProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The identifier.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type.
	Type *string `json:"type,omitempty"`
}

ISCSIServer the iSCSI server.

func (ISCSIServer) MarshalJSON

func (is ISCSIServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ISCSIServer.

func (*ISCSIServer) UnmarshalJSON

func (is *ISCSIServer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ISCSIServer struct.

type ISCSIServerList

type ISCSIServerList struct {
	autorest.Response `json:"-"`
	// Value - The value.
	Value *[]ISCSIServer `json:"value,omitempty"`
}

ISCSIServerList collection of Iscsi servers

type ISCSIServerProperties

type ISCSIServerProperties struct {
	// StorageDomainID - The storage domain id.
	StorageDomainID *string `json:"storageDomainId,omitempty"`
	// BackupScheduleGroupID - The backup policy id.
	BackupScheduleGroupID *string `json:"backupScheduleGroupId,omitempty"`
	// Description - The description.
	Description *string `json:"description,omitempty"`
	// ChapID - The chap id.
	ChapID *string `json:"chapId,omitempty"`
	// ReverseChapID - The reverse chap id.
	ReverseChapID *string `json:"reverseChapId,omitempty"`
}

ISCSIServerProperties the iSCSI server properties.

type InitiatedBy

type InitiatedBy string

InitiatedBy enumerates the values for initiated by.

const (
	// Manual ...
	Manual InitiatedBy = "Manual"
	// Scheduled ...
	Scheduled InitiatedBy = "Scheduled"
)

func PossibleInitiatedByValues

func PossibleInitiatedByValues() []InitiatedBy

PossibleInitiatedByValues returns an array of possible values for the InitiatedBy const type.

type IscsiDisksClient

type IscsiDisksClient struct {
	BaseClient
}

IscsiDisksClient is the client for the IscsiDisks methods of the Storsimple service.

func NewIscsiDisksClient

func NewIscsiDisksClient(subscriptionID string) IscsiDisksClient

NewIscsiDisksClient creates an instance of the IscsiDisksClient client.

func NewIscsiDisksClientWithBaseURI

func NewIscsiDisksClientWithBaseURI(baseURI string, subscriptionID string) IscsiDisksClient

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

func (IscsiDisksClient) CreateOrUpdate

func (client IscsiDisksClient) CreateOrUpdate(ctx context.Context, deviceName string, iscsiServerName string, diskName string, iscsiDisk ISCSIDisk, resourceGroupName string, managerName string) (result IscsiDisksCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates the iSCSI disk. Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. diskName - the disk name. iscsiDisk - the iSCSI disk. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) CreateOrUpdatePreparer

func (client IscsiDisksClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, iscsiDisk ISCSIDisk, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IscsiDisksClient) CreateOrUpdateResponder

func (client IscsiDisksClient) CreateOrUpdateResponder(resp *http.Response) (result ISCSIDisk, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (IscsiDisksClient) CreateOrUpdateSender

func (client IscsiDisksClient) CreateOrUpdateSender(req *http.Request) (future IscsiDisksCreateOrUpdateFuture, err error)

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

func (IscsiDisksClient) Delete

func (client IscsiDisksClient) Delete(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (result IscsiDisksDeleteFuture, err error)

Delete deletes the iSCSI disk. Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. diskName - the disk name. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) DeletePreparer

func (client IscsiDisksClient) DeletePreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (IscsiDisksClient) DeleteResponder

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

func (client IscsiDisksClient) DeleteSender(req *http.Request) (future IscsiDisksDeleteFuture, err error)

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

func (IscsiDisksClient) Get

func (client IscsiDisksClient) Get(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (result ISCSIDisk, err error)

Get returns the properties of the specified iSCSI disk name. Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. diskName - the disk name. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) GetPreparer

func (client IscsiDisksClient) GetPreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (IscsiDisksClient) GetResponder

func (client IscsiDisksClient) GetResponder(resp *http.Response) (result ISCSIDisk, err error)

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

func (IscsiDisksClient) GetSender

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

func (client IscsiDisksClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result ISCSIDiskList, err error)

ListByDevice retrieves all the iSCSI disks in a device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) ListByDevicePreparer

func (client IscsiDisksClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByDevicePreparer prepares the ListByDevice request.

func (IscsiDisksClient) ListByDeviceResponder

func (client IscsiDisksClient) ListByDeviceResponder(resp *http.Response) (result ISCSIDiskList, err error)

ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.

func (IscsiDisksClient) ListByDeviceSender

func (client IscsiDisksClient) ListByDeviceSender(req *http.Request) (*http.Response, error)

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

func (IscsiDisksClient) ListByIscsiServer

func (client IscsiDisksClient) ListByIscsiServer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (result ISCSIDiskList, err error)

ListByIscsiServer retrieves all the disks in a iSCSI server. Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) ListByIscsiServerPreparer

func (client IscsiDisksClient) ListByIscsiServerPreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)

ListByIscsiServerPreparer prepares the ListByIscsiServer request.

func (IscsiDisksClient) ListByIscsiServerResponder

func (client IscsiDisksClient) ListByIscsiServerResponder(resp *http.Response) (result ISCSIDiskList, err error)

ListByIscsiServerResponder handles the response to the ListByIscsiServer request. The method always closes the http.Response Body.

func (IscsiDisksClient) ListByIscsiServerSender

func (client IscsiDisksClient) ListByIscsiServerSender(req *http.Request) (*http.Response, error)

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

func (IscsiDisksClient) ListMetricDefinition

func (client IscsiDisksClient) ListMetricDefinition(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)

ListMetricDefinition retrieves metric definitions for all metric aggregated at the iSCSI disk. Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. diskName - the iSCSI disk name. resourceGroupName - the resource group name managerName - the manager name

func (IscsiDisksClient) ListMetricDefinitionPreparer

func (client IscsiDisksClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (*http.Request, error)

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (IscsiDisksClient) ListMetricDefinitionResponder

func (client IscsiDisksClient) ListMetricDefinitionResponder(resp *http.Response) (result MetricDefinitionList, err error)

ListMetricDefinitionResponder handles the response to the ListMetricDefinition request. The method always closes the http.Response Body.

func (IscsiDisksClient) ListMetricDefinitionSender

func (client IscsiDisksClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)

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

func (IscsiDisksClient) ListMetrics

func (client IscsiDisksClient) ListMetrics(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)

ListMetrics gets the iSCSI disk metrics Parameters: deviceName - the device name. iscsiServerName - the iSCSI server name. diskName - the iSCSI disk name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (IscsiDisksClient) ListMetricsPreparer

func (client IscsiDisksClient) ListMetricsPreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)

ListMet