azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/storsimple1200series/mgmt/2016-10-01/storsimple Index | Files | Directories

package storsimple

import "github.com/Azure/azure-sdk-for-go/services/storsimple1200series/mgmt/2016-10-01/storsimple"

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

Index

Package Files

accesscontrolrecords.go alerts.go availableprovideroperations.go backups.go backupschedulegroups.go chapsettings.go client.go devices.go fileservers.go fileshares.go iscsidisks.go iscsiservers.go jobs.go managers.go models.go storageaccountcredentials.go storagedomains.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AccessControlRecord Uses

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 Uses

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

MarshalJSON is the custom marshaler for AccessControlRecord.

func (*AccessControlRecord) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AccessControlRecord struct.

type AccessControlRecordList Uses

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

AccessControlRecordList collection of AccessControlRecords

type AccessControlRecordProperties Uses

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

AccessControlRecordProperties properties of access control record

type AccessControlRecordsClient Uses

type AccessControlRecordsClient struct {
    BaseClient
}

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

func NewAccessControlRecordsClient Uses

func NewAccessControlRecordsClient(subscriptionID string) AccessControlRecordsClient

NewAccessControlRecordsClient creates an instance of the AccessControlRecordsClient client.

func NewAccessControlRecordsClientWithBaseURI Uses

func NewAccessControlRecordsClientWithBaseURI(baseURI string, subscriptionID string) AccessControlRecordsClient

NewAccessControlRecordsClientWithBaseURI creates an instance of the AccessControlRecordsClient client.

func (AccessControlRecordsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (AccessControlRecordsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AccessControlRecordsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (AccessControlRecordsClient) ListByManagerResponder Uses

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 Uses

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 Uses

type AccessControlRecordsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*AccessControlRecordsCreateOrUpdateFuture) Result Uses

func (future *AccessControlRecordsCreateOrUpdateFuture) Result(client AccessControlRecordsClient) (acr AccessControlRecord, err error)

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

type AccessControlRecordsDeleteFuture Uses

type AccessControlRecordsDeleteFuture struct {
    azure.Future
}

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

func (*AccessControlRecordsDeleteFuture) Result Uses

func (future *AccessControlRecordsDeleteFuture) Result(client AccessControlRecordsClient) (ar autorest.Response, err error)

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

type Alert Uses

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 Uses

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

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertEmailNotificationStatus Uses

type AlertEmailNotificationStatus string

AlertEmailNotificationStatus enumerates the values for alert email notification status.

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

func PossibleAlertEmailNotificationStatusValues Uses

func PossibleAlertEmailNotificationStatusValues() []AlertEmailNotificationStatus

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

type AlertErrorDetails Uses

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 Uses

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 Uses

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 Uses

func (al AlertList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListIterator Uses

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

AlertListIterator provides access to a complete listing of Alert values.

func NewAlertListIterator Uses

func NewAlertListIterator(page AlertListPage) AlertListIterator

Creates a new instance of the AlertListIterator type.

func (*AlertListIterator) Next Uses

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 Uses

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 Uses

func (iter AlertListIterator) NotDone() bool

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

func (AlertListIterator) Response Uses

func (iter AlertListIterator) Response() AlertList

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

func (AlertListIterator) Value Uses

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 Uses

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

AlertListPage contains a page of Alert values.

func NewAlertListPage Uses

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

Creates a new instance of the AlertListPage type.

func (*AlertListPage) Next Uses

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 Uses

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 Uses

func (page AlertListPage) NotDone() bool

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

func (AlertListPage) Response Uses

func (page AlertListPage) Response() AlertList

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

func (AlertListPage) Values Uses

func (page AlertListPage) Values() []Alert

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

type AlertProperties Uses

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 Uses

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

MarshalJSON is the custom marshaler for AlertProperties.

type AlertScope Uses

type AlertScope string

AlertScope enumerates the values for alert scope.

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

func PossibleAlertScopeValues Uses

func PossibleAlertScopeValues() []AlertScope

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

type AlertSettings Uses

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 Uses

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

MarshalJSON is the custom marshaler for AlertSettings.

func (*AlertSettings) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AlertSettings struct.

type AlertSettingsProperties Uses

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 Uses

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 Uses

func PossibleAlertSeverityValues() []AlertSeverity

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

type AlertSource Uses

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 Uses

type AlertSourceType string

AlertSourceType enumerates the values for alert source type.

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

func PossibleAlertSourceTypeValues Uses

func PossibleAlertSourceTypeValues() []AlertSourceType

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

type AlertStatus Uses

type AlertStatus string

AlertStatus enumerates the values for alert status.

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

func PossibleAlertStatusValues Uses

func PossibleAlertStatusValues() []AlertStatus

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

type AlertsClient Uses

type AlertsClient struct {
    BaseClient
}

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

func NewAlertsClient Uses

func NewAlertsClient(subscriptionID string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI Uses

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient

NewAlertsClientWithBaseURI creates an instance of the AlertsClient client.

func (AlertsClient) Clear Uses

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 Uses

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

ClearPreparer prepares the Clear request.

func (AlertsClient) ClearResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (AlertsClient) ListByManagerResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleAuthTypeValues() []AuthType

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

type AvailableProviderOperation Uses

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 Uses

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 Uses

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 Uses

func (apo AvailableProviderOperations) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AvailableProviderOperationsClient Uses

type AvailableProviderOperationsClient struct {
    BaseClient
}

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

func NewAvailableProviderOperationsClient Uses

func NewAvailableProviderOperationsClient(subscriptionID string) AvailableProviderOperationsClient

NewAvailableProviderOperationsClient creates an instance of the AvailableProviderOperationsClient client.

func NewAvailableProviderOperationsClientWithBaseURI Uses

func NewAvailableProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableProviderOperationsClient

NewAvailableProviderOperationsClientWithBaseURI creates an instance of the AvailableProviderOperationsClient client.

func (AvailableProviderOperationsClient) List Uses

func (client AvailableProviderOperationsClient) List(ctx context.Context) (result AvailableProviderOperationsPage, err error)

List list of AvailableProviderOperations

func (AvailableProviderOperationsClient) ListComplete Uses

func (client AvailableProviderOperationsClient) ListComplete(ctx context.Context) (result AvailableProviderOperationsIterator, err error)

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

func (AvailableProviderOperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AvailableProviderOperationsClient) ListResponder Uses

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 Uses

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 Uses

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

AvailableProviderOperationsIterator provides access to a complete listing of AvailableProviderOperation values.

func NewAvailableProviderOperationsIterator Uses

func NewAvailableProviderOperationsIterator(page AvailableProviderOperationsPage) AvailableProviderOperationsIterator

Creates a new instance of the AvailableProviderOperationsIterator type.

func (*AvailableProviderOperationsIterator) Next Uses

func (iter *AvailableProviderOperationsIterator) 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 (*AvailableProviderOperationsIterator) NextWithContext Uses

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 Uses

func (iter AvailableProviderOperationsIterator) NotDone() bool

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

func (AvailableProviderOperationsIterator) Response Uses

func (iter AvailableProviderOperationsIterator) Response() AvailableProviderOperations

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

func (AvailableProviderOperationsIterator) Value Uses

func (iter AvailableProviderOperationsIterator) Value() AvailableProviderOperation

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

type AvailableProviderOperationsPage Uses

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

AvailableProviderOperationsPage contains a page of AvailableProviderOperation values.

func NewAvailableProviderOperationsPage Uses

func NewAvailableProviderOperationsPage(getNextPage func(context.Context, AvailableProviderOperations) (AvailableProviderOperations, error)) AvailableProviderOperationsPage

Creates a new instance of the AvailableProviderOperationsPage type.

func (*AvailableProviderOperationsPage) Next Uses

func (page *AvailableProviderOperationsPage) 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 (*AvailableProviderOperationsPage) NextWithContext Uses

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 Uses

func (page AvailableProviderOperationsPage) NotDone() bool

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

func (AvailableProviderOperationsPage) Response Uses

func (page AvailableProviderOperationsPage) Response() AvailableProviderOperations

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

func (AvailableProviderOperationsPage) Values Uses

func (page AvailableProviderOperationsPage) Values() []AvailableProviderOperation

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

type Backup Uses

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 Uses

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

MarshalJSON is the custom marshaler for Backup.

func (*Backup) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Backup struct.

type BackupElement Uses

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 Uses

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

MarshalJSON is the custom marshaler for BackupElement.

func (*BackupElement) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BackupElement struct.

type BackupElementProperties Uses

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 Uses

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 Uses

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 Uses

func (bl BackupList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BackupListIterator Uses

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

BackupListIterator provides access to a complete listing of Backup values.

func NewBackupListIterator Uses

func NewBackupListIterator(page BackupListPage) BackupListIterator

Creates a new instance of the BackupListIterator type.

func (*BackupListIterator) Next Uses

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 Uses

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 Uses

func (iter BackupListIterator) NotDone() bool

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

func (BackupListIterator) Response Uses

func (iter BackupListIterator) Response() BackupList

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

func (BackupListIterator) Value Uses

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 Uses

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

BackupListPage contains a page of Backup values.

func NewBackupListPage Uses

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

Creates a new instance of the BackupListPage type.

func (*BackupListPage) Next Uses

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 Uses

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 Uses

func (page BackupListPage) NotDone() bool

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

func (BackupListPage) Response Uses

func (page BackupListPage) Response() BackupList

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

func (BackupListPage) Values Uses

func (page BackupListPage) Values() []Backup

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

type BackupProperties Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for BackupScheduleGroup.

func (*BackupScheduleGroup) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BackupScheduleGroup struct.

type BackupScheduleGroupList Uses

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

BackupScheduleGroupList the list response of backup schedule groups

type BackupScheduleGroupProperties Uses

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 Uses

type BackupScheduleGroupsClient struct {
    BaseClient
}

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

func NewBackupScheduleGroupsClient Uses

func NewBackupScheduleGroupsClient(subscriptionID string) BackupScheduleGroupsClient

NewBackupScheduleGroupsClient creates an instance of the BackupScheduleGroupsClient client.

func NewBackupScheduleGroupsClientWithBaseURI Uses

func NewBackupScheduleGroupsClientWithBaseURI(baseURI string, subscriptionID string) BackupScheduleGroupsClient

NewBackupScheduleGroupsClientWithBaseURI creates an instance of the BackupScheduleGroupsClient client.

func (BackupScheduleGroupsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (BackupScheduleGroupsClient) ListByDeviceResponder Uses

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 Uses

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 Uses

type BackupScheduleGroupsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*BackupScheduleGroupsCreateOrUpdateFuture) Result Uses

func (future *BackupScheduleGroupsCreateOrUpdateFuture) Result(client BackupScheduleGroupsClient) (bsg BackupScheduleGroup, err error)

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

type BackupScheduleGroupsDeleteFuture Uses

type BackupScheduleGroupsDeleteFuture struct {
    azure.Future
}

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

func (*BackupScheduleGroupsDeleteFuture) Result Uses

func (future *BackupScheduleGroupsDeleteFuture) Result(client BackupScheduleGroupsClient) (ar autorest.Response, err error)

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

type BackupsClient Uses

type BackupsClient struct {
    BaseClient
}

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

func NewBackupsClient Uses

func NewBackupsClient(subscriptionID string) BackupsClient

NewBackupsClient creates an instance of the BackupsClient client.

func NewBackupsClientWithBaseURI Uses

func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient

NewBackupsClientWithBaseURI creates an instance of the BackupsClient client.

func (BackupsClient) Clone Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (BackupsClient) ListByManagerResponder Uses

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 Uses

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 Uses

type BackupsCloneFuture struct {
    azure.Future
}

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

func (*BackupsCloneFuture) Result Uses

func (future *BackupsCloneFuture) Result(client BackupsClient) (ar autorest.Response, err error)

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

type BackupsDeleteFuture Uses

type BackupsDeleteFuture struct {
    azure.Future
}

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

func (*BackupsDeleteFuture) Result Uses

func (future *BackupsDeleteFuture) Result(client BackupsClient) (ar autorest.Response, err error)

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

type BaseClient Uses

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

BaseClient is the base client for Storsimple.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BaseModel Uses

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

type ChapProperties Uses

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

ChapProperties chap properties

type ChapSettings Uses

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 Uses

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

MarshalJSON is the custom marshaler for ChapSettings.

func (*ChapSettings) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ChapSettings struct.

type ChapSettingsClient Uses

type ChapSettingsClient struct {
    BaseClient
}

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

func NewChapSettingsClient Uses

func NewChapSettingsClient(subscriptionID string) ChapSettingsClient

NewChapSettingsClient creates an instance of the ChapSettingsClient client.

func NewChapSettingsClientWithBaseURI Uses

func NewChapSettingsClientWithBaseURI(baseURI string, subscriptionID string) ChapSettingsClient

NewChapSettingsClientWithBaseURI creates an instance of the ChapSettingsClient client.

func (ChapSettingsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (ChapSettingsClient) ListByDeviceResponder Uses

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 Uses

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 Uses

type ChapSettingsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ChapSettingsCreateOrUpdateFuture) Result Uses

func (future *ChapSettingsCreateOrUpdateFuture) Result(client ChapSettingsClient) (cs ChapSettings, err error)

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

type ChapSettingsDeleteFuture Uses

type ChapSettingsDeleteFuture struct {
    azure.Future
}

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

func (*ChapSettingsDeleteFuture) Result Uses

func (future *ChapSettingsDeleteFuture) Result(client ChapSettingsClient) (ar autorest.Response, err error)

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

type ChapSettingsList Uses

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 Uses

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 Uses

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

CloneRequest clone Job Request Model.

func (CloneRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CloneRequest.

func (*CloneRequest) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CloneRequest struct.

type CloneRequestProperties Uses

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 Uses

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 Uses

func PossibleCloudTypeValues() []CloudType

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

type ContractVersions Uses

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 Uses

func PossibleContractVersionsValues() []ContractVersions

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

type DataPolicy Uses

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 Uses

func PossibleDataPolicyValues() []DataPolicy

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

type Device Uses

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 Uses

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

MarshalJSON is the custom marshaler for Device.

func (*Device) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Device struct.

type DeviceConfigurationStatus Uses

type DeviceConfigurationStatus string

DeviceConfigurationStatus enumerates the values for device configuration status.

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

func PossibleDeviceConfigurationStatusValues Uses

func PossibleDeviceConfigurationStatusValues() []DeviceConfigurationStatus

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

type DeviceDetails Uses

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 Uses

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

DeviceList collection of Devices

type DeviceOperation Uses

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 Uses

func PossibleDeviceOperationValues() []DeviceOperation

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

type DevicePatch Uses

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 Uses

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 Uses

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 Uses

func PossibleDeviceStatusValues() []DeviceStatus

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

type DeviceType Uses

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 Uses

func PossibleDeviceTypeValues() []DeviceType

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

type DevicesClient Uses

type DevicesClient struct {
    BaseClient
}

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

func NewDevicesClient Uses

func NewDevicesClient(subscriptionID string) DevicesClient

NewDevicesClient creates an instance of the DevicesClient client.

func NewDevicesClientWithBaseURI Uses

func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient

NewDevicesClientWithBaseURI creates an instance of the DevicesClient client.

func (DevicesClient) CreateOrUpdateAlertSettings Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeactivatePreparer prepares the Deactivate request.

func (DevicesClient) DeactivateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (DevicesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

DownloadUpdatesPreparer prepares the DownloadUpdates request.

func (DevicesClient) DownloadUpdatesResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetAlertSettingsPreparer prepares the GetAlertSettings request.

func (DevicesClient) GetAlertSettingsResponder Uses

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 Uses

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 Uses

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 Uses

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

GetNetworkSettingsPreparer prepares the GetNetworkSettings request.

func (DevicesClient) GetNetworkSettingsResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetTimeSettingsPreparer prepares the GetTimeSettings request.

func (DevicesClient) GetTimeSettingsResponder Uses

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 Uses

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 Uses

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 Uses

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

GetUpdateSummaryPreparer prepares the GetUpdateSummary request.

func (DevicesClient) GetUpdateSummaryResponder Uses

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 Uses

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 Uses

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 Uses

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

InstallUpdatesPreparer prepares the InstallUpdates request.

func (DevicesClient) InstallUpdatesResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (DevicesClient) ListByManagerResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (DevicesClient) ListMetricDefinitionResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ScanForUpdatesPreparer prepares the ScanForUpdates request.

func (DevicesClient) ScanForUpdatesResponder Uses

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 Uses

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 Uses

type DevicesCreateOrUpdateAlertSettingsFuture struct {
    azure.Future
}

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

func (*DevicesCreateOrUpdateAlertSettingsFuture) Result Uses

func (future *DevicesCreateOrUpdateAlertSettingsFuture) Result(client DevicesClient) (as AlertSettings, err error)

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

type DevicesCreateOrUpdateSecuritySettingsFuture Uses

type DevicesCreateOrUpdateSecuritySettingsFuture struct {
    azure.Future
}

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

func (*DevicesCreateOrUpdateSecuritySettingsFuture) Result Uses

func (future *DevicesCreateOrUpdateSecuritySettingsFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesDeactivateFuture Uses

type DevicesDeactivateFuture struct {
    azure.Future
}

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

func (*DevicesDeactivateFuture) Result Uses

func (future *DevicesDeactivateFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesDeleteFuture Uses

type DevicesDeleteFuture struct {
    azure.Future
}

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

func (*DevicesDeleteFuture) Result Uses

func (future *DevicesDeleteFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesDownloadUpdatesFuture Uses

type DevicesDownloadUpdatesFuture struct {
    azure.Future
}

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

func (*DevicesDownloadUpdatesFuture) Result Uses

func (future *DevicesDownloadUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesFailoverFuture Uses

type DevicesFailoverFuture struct {
    azure.Future
}

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

func (*DevicesFailoverFuture) Result Uses

func (future *DevicesFailoverFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesInstallUpdatesFuture Uses

type DevicesInstallUpdatesFuture struct {
    azure.Future
}

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

func (*DevicesInstallUpdatesFuture) Result Uses

func (future *DevicesInstallUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DevicesPatchFuture Uses

type DevicesPatchFuture struct {
    azure.Future
}

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

func (*DevicesPatchFuture) Result Uses

func (future *DevicesPatchFuture) Result(client DevicesClient) (d Device, err error)

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

type DevicesScanForUpdatesFuture Uses

type DevicesScanForUpdatesFuture struct {
    azure.Future
}

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

func (*DevicesScanForUpdatesFuture) Result Uses

func (future *DevicesScanForUpdatesFuture) Result(client DevicesClient) (ar autorest.Response, err error)

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

type DhcpStatus Uses

type DhcpStatus string

DhcpStatus enumerates the values for dhcp status.

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

func PossibleDhcpStatusValues Uses

func PossibleDhcpStatusValues() []DhcpStatus

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

type DiskStatus Uses

type DiskStatus string

DiskStatus enumerates the values for disk status.

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

func PossibleDiskStatusValues Uses

func PossibleDiskStatusValues() []DiskStatus

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

type DownloadPhase Uses

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 Uses

func PossibleDownloadPhaseValues() []DownloadPhase

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

type EncryptionAlgorithm Uses

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 Uses

func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm

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

type EncryptionSettings Uses

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 Uses

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

MarshalJSON is the custom marshaler for EncryptionSettings.

func (*EncryptionSettings) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for EncryptionSettings struct.

type EncryptionSettingsProperties Uses

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 Uses

type EncryptionStatus string

EncryptionStatus enumerates the values for encryption status.

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

func PossibleEncryptionStatusValues Uses

func PossibleEncryptionStatusValues() []EncryptionStatus

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

type Error Uses

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

Error ...

type FailoverRequest Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for FileServer.

func (*FileServer) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for FileServer struct.

type FileServerList Uses

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

FileServerList collection of file servers

type FileServerProperties Uses

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 Uses

type FileServersBackupNowFuture struct {
    azure.Future
}

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

func (*FileServersBackupNowFuture) Result Uses

func (future *FileServersBackupNowFuture) Result(client FileServersClient) (ar autorest.Response, err error)

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

type FileServersClient Uses

type FileServersClient struct {
    BaseClient
}

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

func NewFileServersClient Uses

func NewFileServersClient(subscriptionID string) FileServersClient

NewFileServersClient creates an instance of the FileServersClient client.

func NewFileServersClientWithBaseURI Uses

func NewFileServersClientWithBaseURI(baseURI string, subscriptionID string) FileServersClient

NewFileServersClientWithBaseURI creates an instance of the FileServersClient client.

func (FileServersClient) BackupNow Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (FileServersClient) ListByDeviceResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (FileServersClient) ListByManagerResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type FileServersCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*FileServersCreateOrUpdateFuture) Result Uses

func (future *FileServersCreateOrUpdateFuture) Result(client FileServersClient) (fs FileServer, err error)

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

type FileServersDeleteFuture Uses

type FileServersDeleteFuture struct {
    azure.Future
}

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

func (*FileServersDeleteFuture) Result Uses

func (future *FileServersDeleteFuture) Result(client FileServersClient) (ar autorest.Response, err error)

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

type FileShare Uses

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 Uses

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

MarshalJSON is the custom marshaler for FileShare.

func (*FileShare) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for FileShare struct.

type FileShareList Uses

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

FileShareList collection of file shares

type FileShareProperties Uses

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.

type FileSharesClient Uses

type FileSharesClient struct {
    BaseClient
}

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

func NewFileSharesClient Uses

func NewFileSharesClient(subscriptionID string) FileSharesClient

NewFileSharesClient creates an instance of the FileSharesClient client.

func NewFileSharesClientWithBaseURI Uses

func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient

NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client.

func (FileSharesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (FileSharesClient) ListByDeviceResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type FileSharesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*FileSharesCreateOrUpdateFuture) Result Uses

func (future *FileSharesCreateOrUpdateFuture) Result(client FileSharesClient) (fs FileShare, err error)

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

type FileSharesDeleteFuture Uses

type FileSharesDeleteFuture struct {
    azure.Future
}

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

func (*FileSharesDeleteFuture) Result Uses

func (future *FileSharesDeleteFuture) Result(client FileSharesClient) (ar autorest.Response, err error)

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

type IPConfig Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ISCSIDisk.

func (*ISCSIDisk) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ISCSIDisk struct.

type ISCSIDiskList Uses

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

ISCSIDiskList collection of Iscsi disk

type ISCSIDiskProperties Uses

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.

type ISCSIServer Uses

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 Uses

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

MarshalJSON is the custom marshaler for ISCSIServer.

func (*ISCSIServer) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ISCSIServer struct.

type ISCSIServerList Uses

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

ISCSIServerList collection of Iscsi servers

type ISCSIServerProperties Uses

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 Uses

type InitiatedBy string

InitiatedBy enumerates the values for initiated by.

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

func PossibleInitiatedByValues Uses

func PossibleInitiatedByValues() []InitiatedBy

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

type IscsiDisksClient Uses

type IscsiDisksClient struct {
    BaseClient
}

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

func NewIscsiDisksClient Uses

func NewIscsiDisksClient(subscriptionID string) IscsiDisksClient

NewIscsiDisksClient creates an instance of the IscsiDisksClient client.

func NewIscsiDisksClientWithBaseURI Uses

func NewIscsiDisksClientWithBaseURI(baseURI string, subscriptionID string) IscsiDisksClient

NewIscsiDisksClientWithBaseURI creates an instance of the IscsiDisksClient client.

func (IscsiDisksClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (IscsiDisksClient) ListByDeviceResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListMetricsPreparer prepares the ListMetrics request.

func (IscsiDisksClient) ListMetricsResponder Uses

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

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

type IscsiDisksCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*IscsiDisksCreateOrUpdateFuture) Result Uses

func (future *IscsiDisksCreateOrUpdateFuture) Result(client IscsiDisksClient) (ID ISCSIDisk, err error)

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

type IscsiDisksDeleteFuture Uses

type IscsiDisksDeleteFuture struct {
    azure.Future
}

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

func (*IscsiDisksDeleteFuture) Result Uses

func (future *IscsiDisksDeleteFuture) Result(client IscsiDisksClient) (ar autorest.Response, err error)

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

type IscsiServersBackupNowFuture Uses

type IscsiServersBackupNowFuture struct {
    azure.Future
}

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

func (*IscsiServersBackupNowFuture) Result Uses

func (future *IscsiServersBackupNowFuture) Result(client IscsiServersClient) (ar autorest.Response, err error)

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

type IscsiServersClient Uses

type IscsiServersClient struct {
    BaseClient
}

IscsiServersClient is the client for the IscsiServers methods of the Storsimple service.

func NewIscsiServersClient Uses

func NewIscsiServersClient(subscriptionID string) IscsiServersClient

NewIscsiServersClient creates an instance of the IscsiServersClient client.

func NewIscsiServersClientWithBaseURI Uses

func NewIscsiServersClientWithBaseURI(baseURI string, subscriptionID string) IscsiServersClient

NewIscsiServersClientWithBaseURI creates an instance of the IscsiServersClient client.

func (IscsiServersClient) BackupNow Uses

func (client IscsiServersClient) BackupNow(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (result IscsiServersBackupNowFuture, err error)

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

func (IscsiServersClient) BackupNowPreparer Uses

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

BackupNowPreparer prepares the BackupNow request.

func (IscsiServersClient) BackupNowResponder Uses

func (client IscsiServersClient) 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 (IscsiServersClient) BackupNowSender Uses

func (client IscsiServersClient) BackupNowSender(req *http.Request) (future IscsiServersBackupNowFuture, err error)

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

func (IscsiServersClient) CreateOrUpdate Uses

func (client IscsiServersClient) CreateOrUpdate(ctx context.Context, deviceName string, iscsiServerName string, iscsiServer ISCSIServer, resourceGroupName string, managerName string) (result IscsiServersCreateOrUpdateFuture, err error)

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

func (IscsiServersClient) CreateOrUpdatePreparer Uses

func (client IscsiServersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, iscsiServerName string, iscsiServer ISCSIServer, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IscsiServersClient) CreateOrUpdateResponder Uses

func (client IscsiServersClient) CreateOrUpdateResponder(resp *http.Response) (result ISCSIServer, err error)

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

func (IscsiServersClient) CreateOrUpdateSender Uses

func (client IscsiServersClient) CreateOrUpdateSender(req *http.Request) (future IscsiServersCreateOrUpdateFuture, err error)

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

func (IscsiServersClient) Delete Uses

func (client IscsiServersClient) Delete(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (result IscsiServersDeleteFuture, err error)

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

func (IscsiServersClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (IscsiServersClient) DeleteResponder Uses

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

func (client IscsiServersClient) DeleteSender(req *http.Request) (future IscsiServersDeleteFuture, err error)

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

func (IscsiServersClient) Get Uses

func (client IscsiServersClient) Get(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (result ISCSIServer, err error)

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

func (IscsiServersClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (IscsiServersClient) GetResponder Uses

func (client IscsiServersClient) GetResponder(resp *http.Response) (result ISCSIServer, err error)

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

func (IscsiServersClient) GetSender Uses

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

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

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

func (IscsiServersClient) ListByDevicePreparer Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (IscsiServersClient) ListByDeviceResponder Uses

func (client IscsiServersClient) ListByDeviceResponder(resp *http.Response) (result ISCSIServerList, err error)

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

func (IscsiServersClient) ListByDeviceSender Uses

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

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

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

func (IscsiServersClient) ListByManagerPreparer Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (IscsiServersClient) ListByManagerResponder Uses

func (client IscsiServersClient) ListByManagerResponder(resp *http.Response) (result ISCSIServerList, err error)

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

func (IscsiServersClient) ListByManagerSender Uses

func (client IscsiServersClient) 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 (IscsiServersClient) ListMetricDefinition Uses

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

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

func (IscsiServersClient) ListMetricDefinitionPreparer Uses

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

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (IscsiServersClient) ListMetricDefinitionResponder Uses

func (client IscsiServersClient) 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 (IscsiServersClient) ListMetricDefinitionSender Uses

func (client IscsiServersClient) 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 (IscsiServersClient) ListMetrics Uses

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

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

func (IscsiServersClient) ListMetricsPreparer Uses

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

ListMetricsPreparer prepares the ListMetrics request.

func (IscsiServersClient) ListMetricsResponder Uses

func (client IscsiServersClient) 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 (IscsiServersClient) ListMetricsSender Uses

func (client IscsiServersClient) 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 IscsiServersCreateOrUpdateFuture Uses

type IscsiServersCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*IscsiServersCreateOrUpdateFuture) Result Uses

func (future *IscsiServersCreateOrUpdateFuture) Result(client IscsiServersClient) (is ISCSIServer, err error)

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

type IscsiServersDeleteFuture Uses

type IscsiServersDeleteFuture struct {
    azure.Future
}

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

func (*IscsiServersDeleteFuture) Result Uses

func (future *IscsiServersDeleteFuture) Result(client IscsiServersClient) (ar autorest.Response, err error)

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

type Item Uses

type Item struct {
    Key   *string `json:"key,omitempty"`
    Value *string `json:"value,omitempty"`
}

Item ...

type Job Uses

type Job struct {
    autorest.Response `json:"-"`
    // Status - Current status of the job. Possible values include: 'JobStatusInvalid', 'JobStatusRunning', 'JobStatusSucceeded', 'JobStatusFailed', 'JobStatusCanceled', 'JobStatusPaused', 'JobStatusScheduled'
    Status JobStatus `json:"status,omitempty"`
    // StartTime - The UTC time at which the job was started
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - The UTC time at which the job completed
    EndTime *date.Time `json:"endTime,omitempty"`
    // PercentComplete - The percentage of the job that is already complete
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // Error - The Error details.
    Error *JobErrorDetails `json:"error,omitempty"`
    // JobProperties - Other properties of the job
    *JobProperties `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"`
}

Job the Job.

func (Job) MarshalJSON Uses

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Job.

func (*Job) UnmarshalJSON Uses

func (j *Job) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Job struct.

type JobErrorDetails Uses

type JobErrorDetails struct {
    // ErrorDetails - The error details.
    ErrorDetails *[]JobErrorItem `json:"errorDetails,omitempty"`
    // Code - The code intended for programmatic access
    Code *string `json:"code,omitempty"`
    // Message - The message intended to describe the error in detail
    Message *string `json:"message,omitempty"`
}

JobErrorDetails the job error information containing List of JobErrorItem.

type JobErrorItem Uses

type JobErrorItem struct {
    // Recommendations - The recommended actions.
    Recommendations *[]string `json:"recommendations,omitempty"`
    // Code - The code intended for programmatic access
    Code *string `json:"code,omitempty"`
    // Message - The message intended to describe the error in detail
    Message *string `json:"message,omitempty"`
}

JobErrorItem the job error items.

type JobFilter Uses

type JobFilter struct {
    // JobType - The job type. Possible values include: 'JobTypeBackup', 'JobTypeClone', 'JobTypeFailover', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates'
    JobType JobType `json:"jobType,omitempty"`
    // Status - The job status. Possible values include: 'JobStatusInvalid', 'JobStatusRunning', 'JobStatusSucceeded', 'JobStatusFailed', 'JobStatusCanceled', 'JobStatusPaused', 'JobStatusScheduled'
    Status JobStatus `json:"status,omitempty"`
    // StartTime - The start time of the job.
    StartTime *date.Time `json:"startTime,omitempty"`
}

JobFilter filters that can be specified for the job

type JobList Uses

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

JobList collection of jobs

func (JobList) IsEmpty Uses

func (jl JobList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobListIterator Uses

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

JobListIterator provides access to a complete listing of Job values.

func NewJobListIterator Uses

func NewJobListIterator(page JobListPage) JobListIterator

Creates a new instance of the JobListIterator type.

func (*JobListIterator) Next Uses

func (iter *JobListIterator) 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 (*JobListIterator) NextWithContext Uses

func (iter *JobListIterator) 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 (JobListIterator) NotDone Uses

func (iter JobListIterator) NotDone() bool

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

func (JobListIterator) Response Uses

func (iter JobListIterator) Response() JobList

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

func (JobListIterator) Value Uses

func (iter JobListIterator) Value() Job

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

type JobListPage Uses

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

JobListPage contains a page of Job values.

func NewJobListPage Uses

func NewJobListPage(getNextPage func(context.Context, JobList) (JobList, error)) JobListPage

Creates a new instance of the JobListPage type.

func (*JobListPage) Next Uses

func (page *JobListPage) 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 (*JobListPage) NextWithContext Uses

func (page *JobListPage) 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 (JobListPage) NotDone Uses

func (page JobListPage) NotDone() bool

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

func (JobListPage) Response Uses

func (page JobListPage) Response() JobList

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

func (JobListPage) Values Uses

func (page JobListPage) Values() []Job

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

type JobProperties Uses

type JobProperties struct {
    // JobType - Type of the job. Possible values include: 'JobTypeBackup', 'JobTypeClone', 'JobTypeFailover', 'JobTypeDownloadUpdates', 'JobTypeInstallUpdates'
    JobType JobType `json:"jobType,omitempty"`
    // TargetID - Id of the object that is created by the job
    TargetID *string `json:"targetId,omitempty"`
    // EntityID - The entity identifier for which the job ran.
    EntityID *string `json:"entityId,omitempty"`
    // EntityType - The entity type for which the job ran.
    EntityType *string `json:"entityType,omitempty"`
    // JobStages - The job stages.
    JobStages *[]JobStage `json:"jobStages,omitempty"`
    // DeviceID - The device id in which the job is currently running
    DeviceID *string `json:"deviceId,omitempty"`
    // IsCancellable - Represents whether the job is cancellable or not
    IsCancellable *bool `json:"isCancellable,omitempty"`
    // Stats - stats properties for the job
    Stats *JobStats `json:"stats,omitempty"`
    // TargetType - The target type of the backup. Possible values include: 'TargetTypeFileServer', 'TargetTypeDiskServer'
    TargetType TargetType `json:"targetType,omitempty"`
    // SourceDeviceID - The source device identifier of the failover job.
    SourceDeviceID *string `json:"sourceDeviceId,omitempty"`
    // BackupPointInTime - The time of the backup used for the failover.
    BackupPointInTime *date.Time `json:"backupPointInTime,omitempty"`
    // DownloadProgress - The download progress.
    DownloadProgress *UpdateDownloadProgress `json:"downloadProgress,omitempty"`
    // InstallProgress - The install progress.
    InstallProgress *UpdateInstallProgress `json:"installProgress,omitempty"`
}

JobProperties properties for the job

type JobStage Uses

type JobStage struct {
    // Message - The message of the job stage.
    Message *string `json:"message,omitempty"`
    // StageStatus - The stage status. Possible values include: 'JobStatusInvalid', 'JobStatusRunning', 'JobStatusSucceeded', 'JobStatusFailed', 'JobStatusCanceled', 'JobStatusPaused', 'JobStatusScheduled'
    StageStatus JobStatus `json:"stageStatus,omitempty"`
    // Detail - The details of the stage.
    Detail *string `json:"detail,omitempty"`
    // ErrorCode - The error code of the stage if any.
    ErrorCode *string `json:"errorCode,omitempty"`
}

JobStage contains details about the multiple job stages of a job

type JobStats Uses

type JobStats struct {
    // CompletedWorkItemCount - Completed work item count.
    CompletedWorkItemCount *int32 `json:"completedWorkItemCount,omitempty"`
    // TotalWorkItemCount - Total work item count.
    TotalWorkItemCount *int32 `json:"totalWorkItemCount,omitempty"`
    // EstimatedTimeRemaining - The estimated time remaining.
    EstimatedTimeRemaining *int32 `json:"estimatedTimeRemaining,omitempty"`
}

JobStats stats that are available for all jobs in common

type JobStatus Uses

type JobStatus string

JobStatus enumerates the values for job status.

const (
    // JobStatusCanceled ...
    JobStatusCanceled JobStatus = "Canceled"
    // JobStatusFailed ...
    JobStatusFailed JobStatus = "Failed"
    // JobStatusInvalid ...
    JobStatusInvalid JobStatus = "Invalid"
    // JobStatusPaused ...
    JobStatusPaused JobStatus = "Paused"
    // JobStatusRunning ...
    JobStatusRunning JobStatus = "Running"
    // JobStatusScheduled ...
    JobStatusScheduled JobStatus = "Scheduled"
    // JobStatusSucceeded ...
    JobStatusSucceeded JobStatus = "Succeeded"
)

func PossibleJobStatusValues Uses

func PossibleJobStatusValues() []JobStatus

PossibleJobStatusValues returns an array of possible values for the JobStatus const type.

type JobType Uses

type JobType string

JobType enumerates the values for job type.

const (
    // JobTypeBackup ...
    JobTypeBackup JobType = "Backup"
    // JobTypeClone ...
    JobTypeClone JobType = "Clone"
    // JobTypeDownloadUpdates ...
    JobTypeDownloadUpdates JobType = "DownloadUpdates"
    // JobTypeFailover ...
    JobTypeFailover JobType = "Failover"
    // JobTypeInstallUpdates ...
    JobTypeInstallUpdates JobType = "InstallUpdates"
)

func PossibleJobTypeValues Uses

func PossibleJobTypeValues() []JobType

PossibleJobTypeValues returns an array of possible values for the JobType const type.

type JobsClient Uses

type JobsClient struct {
    BaseClient
}

JobsClient is the client for the Jobs methods of the Storsimple service.

func NewJobsClient Uses

func NewJobsClient(subscriptionID string) JobsClient

NewJobsClient creates an instance of the JobsClient client.

func NewJobsClientWithBaseURI Uses

func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient

NewJobsClientWithBaseURI creates an instance of the JobsClient client.

func (JobsClient) Get Uses

func (client JobsClient) Get(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string) (result Job, err error)

Get returns the properties of the specified job name. Parameters: deviceName - the device name. jobName - the job name. resourceGroupName - the resource group name managerName - the manager name

func (JobsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (JobsClient) GetResponder Uses

func (client JobsClient) GetResponder(resp *http.Response) (result Job, err error)

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

func (JobsClient) GetSender Uses

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

func (client JobsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (result JobListPage, err error)

ListByDevice retrieves all the jobs in a device. Parameters: deviceName - the device name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (JobsClient) ListByDeviceComplete Uses

func (client JobsClient) ListByDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (result JobListIterator, err error)

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

func (JobsClient) ListByDevicePreparer Uses

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

ListByDevicePreparer prepares the ListByDevice request.

func (JobsClient) ListByDeviceResponder Uses

func (client JobsClient) ListByDeviceResponder(resp *http.Response) (result JobList, err error)

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

func (JobsClient) ListByDeviceSender Uses

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

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

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

func (JobsClient) ListByManagerComplete Uses

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

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

func (JobsClient) ListByManagerPreparer Uses

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

ListByManagerPreparer prepares the ListByManager request.

func (JobsClient) ListByManagerResponder Uses

func (client JobsClient) ListByManagerResponder(resp *http.Response) (result JobList, err error)

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

func (JobsClient) ListByManagerSender Uses

func (client JobsClient) 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 KeyRolloverStatus Uses

type KeyRolloverStatus string

KeyRolloverStatus enumerates the values for key rollover status.

const (
    // NotRequired ...
    NotRequired KeyRolloverStatus = "NotRequired"
    // Required ...
    Required KeyRolloverStatus = "Required"
)

func PossibleKeyRolloverStatusValues Uses

func PossibleKeyRolloverStatusValues() []KeyRolloverStatus

PossibleKeyRolloverStatusValues returns an array of possible values for the KeyRolloverStatus const type.

type Manager Uses

type Manager struct {
    autorest.Response `json:"-"`
    // ManagerProperties - List of properties of the Manager
    *ManagerProperties `json:"properties,omitempty"`
    // Etag - ETag of the Manager
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; The Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The Resource Name
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The Resource type
    Type *string `json:"type,omitempty"`
    // Location - The Geo location of the Manager
    Location *string `json:"location,omitempty"`
    // Tags - Tags attached to the Manager
    Tags map[string]*string `json:"tags"`
}

Manager the StorSimple Manager

func (Manager) MarshalJSON Uses

func (mVar Manager) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Manager.

func (*Manager) UnmarshalJSON Uses

func (mVar *Manager) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Manager struct.

type ManagerExtendedInfo Uses

type ManagerExtendedInfo struct {
    autorest.Response `json:"-"`
    // ManagerExtendedInfoProperties - The extended info properties.
    *ManagerExtendedInfoProperties `json:"properties,omitempty"`
    // Etag - ETag of the Resource
    Etag *string `json:"etag,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"`
}

ManagerExtendedInfo the extended info of the manager.

func (ManagerExtendedInfo) MarshalJSON Uses

func (mei ManagerExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagerExtendedInfo.

func (*ManagerExtendedInfo) UnmarshalJSON Uses

func (mei *ManagerExtendedInfo) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagerExtendedInfo struct.

type ManagerExtendedInfoProperties Uses

type ManagerExtendedInfoProperties struct {
    // Version - Represents the version of the ExtendedInfo object being persisted
    Version *string `json:"version,omitempty"`
    // IntegrityKey - Represents the CIK of the resource
    IntegrityKey *string `json:"integrityKey,omitempty"`
    // EncryptionKey - Represents the CEK of the resource
    EncryptionKey *string `json:"encryptionKey,omitempty"`
    // EncryptionKeyThumbprint - Represents the Cert thumbprint that was used to encrypt the CEK
    EncryptionKeyThumbprint *string `json:"encryptionKeyThumbprint,omitempty"`
    // PortalCertificateThumbprint - Represents the portal thumbprint which can be used optionally to encrypt the entire data before storing it.
    PortalCertificateThumbprint *string `json:"portalCertificateThumbprint,omitempty"`
    // Algorithm - Represents the encryption algorithm used to encrypt the other keys. None - if EncryptionKey is saved in plain text format. AlgorithmName - if encryption is used
    Algorithm *string `json:"algorithm,omitempty"`
}

ManagerExtendedInfoProperties properties of the ManagerExtendedInfo

type ManagerIntrinsicSettings Uses

type ManagerIntrinsicSettings struct {
    // Type - Refers to the type of the StorSimple Manager. Possible values include: 'GardaV1', 'HelsinkiV1'
    Type ManagerType `json:"type,omitempty"`
}

ManagerIntrinsicSettings intrinsic settings which refers to the type of the StorSimple manager

type ManagerList Uses

type ManagerList struct {
    autorest.Response `json:"-"`
    // Value - List of Managers
    Value *[]Manager `json:"value,omitempty"`
}

ManagerList list of StorSimple Managers under a particular resourceGroup

type ManagerPatch Uses

type ManagerPatch struct {
    // Tags - The tags attached to the StorSimple Manager.
    Tags map[string]*string `json:"tags"`
}

ManagerPatch the StorSimple Manager patch.

func (ManagerPatch) MarshalJSON Uses

func (mp ManagerPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagerPatch.

type ManagerProperties Uses

type ManagerProperties struct {
    // CisIntrinsicSettings - Specifies if the Manager is Garda or Helsinki
    CisIntrinsicSettings *ManagerIntrinsicSettings `json:"cisIntrinsicSettings,omitempty"`
    // Sku - Specifies the Sku
    Sku *ManagerSku `json:"sku,omitempty"`
    // ProvisioningState - READ-ONLY; Specifies the state of the resource as it is getting provisioned. Value of "Succeeded" means the Manager was successfully created
    ProvisioningState *string `json:"provisioningState,omitempty"`
}

ManagerProperties the properties of the Manager

type ManagerSku Uses

type ManagerSku struct {
    // Name - Refers to the sku name which should be "Standard"
    Name *string `json:"name,omitempty"`
}

ManagerSku the Sku.

type ManagerType Uses

type ManagerType string

ManagerType enumerates the values for manager type.

const (
    // GardaV1 ...
    GardaV1 ManagerType = "GardaV1"
    // HelsinkiV1 ...
    HelsinkiV1 ManagerType = "HelsinkiV1"
)

func PossibleManagerTypeValues Uses

func PossibleManagerTypeValues() []ManagerType

PossibleManagerTypeValues returns an array of possible values for the ManagerType const type.

type ManagersClient Uses

type ManagersClient struct {
    BaseClient
}

ManagersClient is the client for the Managers methods of the Storsimple service.

func NewManagersClient Uses

func NewManagersClient(subscriptionID string) ManagersClient

NewManagersClient creates an instance of the ManagersClient client.

func NewManagersClientWithBaseURI Uses

func NewManagersClientWithBaseURI(baseURI string, subscriptionID string) ManagersClient

NewManagersClientWithBaseURI creates an instance of the ManagersClient client.

func (ManagersClient) CreateExtendedInfo Uses

func (client ManagersClient) CreateExtendedInfo(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string) (result ManagerExtendedInfo, err error)

CreateExtendedInfo creates the extended info of the manager. Parameters: managerExtendedInfo - the manager extended information. resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) CreateExtendedInfoPreparer Uses

func (client ManagersClient) CreateExtendedInfoPreparer(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string) (*http.Request, error)

CreateExtendedInfoPreparer prepares the CreateExtendedInfo request.

func (ManagersClient) CreateExtendedInfoResponder Uses

func (client ManagersClient) CreateExtendedInfoResponder(resp *http.Response) (result ManagerExtendedInfo, err error)

CreateExtendedInfoResponder handles the response to the CreateExtendedInfo request. The method always closes the http.Response Body.

func (ManagersClient) CreateExtendedInfoSender Uses

func (client ManagersClient) CreateExtendedInfoSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) CreateOrUpdate Uses

func (client ManagersClient) CreateOrUpdate(ctx context.Context, manager Manager, resourceGroupName string, managerName string) (result Manager, err error)

CreateOrUpdate creates or updates the manager. Parameters: manager - the manager. resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) CreateOrUpdatePreparer Uses

func (client ManagersClient) CreateOrUpdatePreparer(ctx context.Context, manager Manager, resourceGroupName string, managerName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagersClient) CreateOrUpdateResponder Uses

func (client ManagersClient) CreateOrUpdateResponder(resp *http.Response) (result Manager, err error)

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

func (ManagersClient) CreateOrUpdateSender Uses

func (client ManagersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) Delete Uses

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

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

func (ManagersClient) DeleteExtendedInfo Uses

func (client ManagersClient) DeleteExtendedInfo(ctx context.Context, resourceGroupName string, managerName string) (result autorest.Response, err error)

DeleteExtendedInfo deletes the extended info of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) DeleteExtendedInfoPreparer Uses

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

DeleteExtendedInfoPreparer prepares the DeleteExtendedInfo request.

func (ManagersClient) DeleteExtendedInfoResponder Uses

func (client ManagersClient) DeleteExtendedInfoResponder(resp *http.Response) (result autorest.Response, err error)

DeleteExtendedInfoResponder handles the response to the DeleteExtendedInfo request. The method always closes the http.Response Body.

func (ManagersClient) DeleteExtendedInfoSender Uses

func (client ManagersClient) DeleteExtendedInfoSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ManagersClient) DeleteResponder Uses

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

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

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

func (ManagersClient) Get Uses

func (client ManagersClient) Get(ctx context.Context, resourceGroupName string, managerName string) (result Manager, err error)

Get returns the properties of the specified manager name. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) GetEncryptionKey Uses

func (client ManagersClient) GetEncryptionKey(ctx context.Context, resourceGroupName string, managerName string) (result SymmetricEncryptedSecret, err error)

GetEncryptionKey returns the symmetric encryption key of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) GetEncryptionKeyPreparer Uses

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

GetEncryptionKeyPreparer prepares the GetEncryptionKey request.

func (ManagersClient) GetEncryptionKeyResponder Uses

func (client ManagersClient) GetEncryptionKeyResponder(resp *http.Response) (result SymmetricEncryptedSecret, err error)

GetEncryptionKeyResponder handles the response to the GetEncryptionKey request. The method always closes the http.Response Body.

func (ManagersClient) GetEncryptionKeySender Uses

func (client ManagersClient) GetEncryptionKeySender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) GetEncryptionSettings Uses

func (client ManagersClient) GetEncryptionSettings(ctx context.Context, resourceGroupName string, managerName string) (result EncryptionSettings, err error)

GetEncryptionSettings returns the encryption settings of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) GetEncryptionSettingsPreparer Uses

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

GetEncryptionSettingsPreparer prepares the GetEncryptionSettings request.

func (ManagersClient) GetEncryptionSettingsResponder Uses

func (client ManagersClient) GetEncryptionSettingsResponder(resp *http.Response) (result EncryptionSettings, err error)

GetEncryptionSettingsResponder handles the response to the GetEncryptionSettings request. The method always closes the http.Response Body.

func (ManagersClient) GetEncryptionSettingsSender Uses

func (client ManagersClient) GetEncryptionSettingsSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) GetExtendedInfo Uses

func (client ManagersClient) GetExtendedInfo(ctx context.Context, resourceGroupName string, managerName string) (result ManagerExtendedInfo, err error)

GetExtendedInfo returns the extended information of the specified manager name. Parameters: resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) GetExtendedInfoPreparer Uses

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

GetExtendedInfoPreparer prepares the GetExtendedInfo request.

func (ManagersClient) GetExtendedInfoResponder Uses

func (client ManagersClient) GetExtendedInfoResponder(resp *http.Response) (result ManagerExtendedInfo, err error)

GetExtendedInfoResponder handles the response to the GetExtendedInfo request. The method always closes the http.Response Body.

func (ManagersClient) GetExtendedInfoSender Uses

func (client ManagersClient) GetExtendedInfoSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ManagersClient) GetResponder Uses

func (client ManagersClient) GetResponder(resp *http.Response) (result Manager, err error)

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

func (ManagersClient) GetSender Uses

func (client ManagersClient) 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 (ManagersClient) List Uses

func (client ManagersClient) List(ctx context.Context) (result ManagerList, err error)

List retrieves all the managers in a subscription.

func (ManagersClient) ListByResourceGroup Uses

func (client ManagersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagerList, err error)

ListByResourceGroup retrieves all the managers in a resource group. Parameters: resourceGroupName - the resource group name

func (ManagersClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ManagersClient) ListByResourceGroupResponder Uses

func (client ManagersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagerList, err error)

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

func (ManagersClient) ListByResourceGroupSender Uses

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

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

func (ManagersClient) ListMetricDefinition Uses

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

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

func (ManagersClient) ListMetricDefinitionPreparer Uses

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

ListMetricDefinitionPreparer prepares the ListMetricDefinition request.

func (ManagersClient) ListMetricDefinitionResponder Uses

func (client ManagersClient) 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 (ManagersClient) ListMetricDefinitionSender Uses

func (client ManagersClient) 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 (ManagersClient) ListMetrics Uses

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

ListMetrics gets the manager metrics Parameters: resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options

func (ManagersClient) ListMetricsPreparer Uses

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

ListMetricsPreparer prepares the ListMetrics request.

func (ManagersClient) ListMetricsResponder Uses

func (client ManagersClient) 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 (ManagersClient) ListMetricsSender Uses

func (client ManagersClient) 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 (ManagersClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ManagersClient) ListResponder Uses

func (client ManagersClient) ListResponder(resp *http.Response) (result ManagerList, err error)

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

func (ManagersClient) ListSender Uses

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

func (ManagersClient) Update Uses

func (client ManagersClient) Update(ctx context.Context, parameters ManagerPatch, resourceGroupName string, managerName string) (result Manager, err error)

Update updates the StorSimple Manager. Parameters: parameters - the manager update parameters. resourceGroupName - the resource group name managerName - the manager name

func (ManagersClient) UpdateExtendedInfo Uses

func (client ManagersClient) UpdateExtendedInfo(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string, ifMatch string) (result ManagerExtendedInfo, err error)

UpdateExtendedInfo updates the extended info of the manager. Parameters: managerExtendedInfo - the manager extended information. resourceGroupName - the resource group name managerName - the manager name ifMatch - pass the ETag of ExtendedInfo fetched from GET call

func (ManagersClient) UpdateExtendedInfoPreparer Uses

func (client ManagersClient) UpdateExtendedInfoPreparer(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string, ifMatch string) (*http.Request, error)

UpdateExtendedInfoPreparer prepares the UpdateExtendedInfo request.

func (ManagersClient) UpdateExtendedInfoResponder Uses

func (client ManagersClient) UpdateExtendedInfoResponder(resp *http.Response) (result ManagerExtendedInfo, err error)

UpdateExtendedInfoResponder handles the response to the UpdateExtendedInfo request. The method always closes the http.Response Body.

func (ManagersClient) UpdateExtendedInfoSender Uses

func (client ManagersClient) UpdateExtendedInfoSender(req *http.Request) (*http.Response, error)

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

func (ManagersClient) UpdatePreparer Uses

func (client ManagersClient) UpdatePreparer(ctx context.Context, parameters ManagerPatch, resourceGroupName string, managerName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagersClient) UpdateResponder Uses

func (client ManagersClient) UpdateR