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.
accesscontrolrecords.go alerts.go availableprovideroperations.go backups.go backupschedulegroups.go chapsettings.go client.go devices.go enums.go fileservers.go fileshares.go iscsidisks.go iscsiservers.go jobs.go managers.go models.go storageaccountcredentials.go storagedomains.go version.go
const ( // DefaultBaseURI is the default URI used for the service Storsimple DefaultBaseURI = "https://management.azure.com" )
UserAgent returns the UserAgent string to use when sending http.Requests.
Version returns the semantic version (see http://semver.org) of the client.
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 (acr AccessControlRecord) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccessControlRecord.
func (acr *AccessControlRecord) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AccessControlRecord struct.
type AccessControlRecordList struct { autorest.Response `json:"-"` // Value - The value. Value *[]AccessControlRecord `json:"value,omitempty"` }
AccessControlRecordList collection of AccessControlRecords
type AccessControlRecordProperties struct { // InitiatorName - The Iscsi initiator name (IQN) InitiatorName *string `json:"initiatorName,omitempty"` }
AccessControlRecordProperties properties of access control record
type AccessControlRecordsClient struct { BaseClient }
AccessControlRecordsClient is the client for the AccessControlRecords methods of the Storsimple service.
func NewAccessControlRecordsClient(subscriptionID string) AccessControlRecordsClient
NewAccessControlRecordsClient creates an instance of the AccessControlRecordsClient client.
func NewAccessControlRecordsClientWithBaseURI(baseURI string, subscriptionID string) AccessControlRecordsClient
NewAccessControlRecordsClientWithBaseURI creates an instance of the AccessControlRecordsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client AccessControlRecordsClient) CreateOrUpdatePreparer(ctx context.Context, accessControlRecordName string, accessControlRecord AccessControlRecord, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client AccessControlRecordsClient) DeletePreparer(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client AccessControlRecordsClient) GetPreparer(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client AccessControlRecordsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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 (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 struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AccessControlRecordsClient) (AccessControlRecord, error) }
AccessControlRecordsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type AccessControlRecordsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AccessControlRecordsClient) (autorest.Response, error) }
AccessControlRecordsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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
MarshalJSON is the custom marshaler for Alert.
UnmarshalJSON is the custom unmarshaler for Alert struct.
AlertEmailNotificationStatus enumerates the values for alert email notification status.
const ( // Disabled ... Disabled AlertEmailNotificationStatus = "Disabled" // Enabled ... Enabled AlertEmailNotificationStatus = "Enabled" )
func PossibleAlertEmailNotificationStatusValues() []AlertEmailNotificationStatus
PossibleAlertEmailNotificationStatusValues returns an array of possible values for the AlertEmailNotificationStatus const type.
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 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 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
IsEmpty returns true if the ListResult contains no values.
type AlertListIterator struct {
// contains filtered or unexported fields
}
AlertListIterator provides access to a complete listing of Alert values.
func NewAlertListIterator(page AlertListPage) AlertListIterator
Creates a new instance of the AlertListIterator type.
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 (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 (iter AlertListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AlertListIterator) Response() AlertList
Response returns the raw server response from the last page request.
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 struct {
// contains filtered or unexported fields
}
AlertListPage contains a page of Alert values.
func NewAlertListPage(cur AlertList, getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage
Creates a new instance of the AlertListPage type.
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 (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 (page AlertListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AlertListPage) Response() AlertList
Response returns the raw server response from the last page request.
func (page AlertListPage) Values() []Alert
Values returns the slice of values for the current page or nil if there are no values.
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 (ap AlertProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertProperties.
AlertScope enumerates the values for alert scope.
const ( // AlertScopeDevice ... AlertScopeDevice AlertScope = "Device" // AlertScopeResource ... AlertScopeResource AlertScope = "Resource" )
func PossibleAlertScopeValues() []AlertScope
PossibleAlertScopeValues returns an array of possible values for the AlertScope const type.
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 (as AlertSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertSettings.
func (as *AlertSettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AlertSettings struct.
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
AlertSeverity enumerates the values for alert severity.
const ( // Critical ... Critical AlertSeverity = "Critical" // Informational ... Informational AlertSeverity = "Informational" // Warning ... Warning AlertSeverity = "Warning" )
func PossibleAlertSeverityValues() []AlertSeverity
PossibleAlertSeverityValues returns an array of possible values for the AlertSeverity const type.
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
AlertSourceType enumerates the values for alert source type.
const ( // AlertSourceTypeDevice ... AlertSourceTypeDevice AlertSourceType = "Device" // AlertSourceTypeResource ... AlertSourceTypeResource AlertSourceType = "Resource" )
func PossibleAlertSourceTypeValues() []AlertSourceType
PossibleAlertSourceTypeValues returns an array of possible values for the AlertSourceType const type.
AlertStatus enumerates the values for alert status.
const ( // Active ... Active AlertStatus = "Active" // Cleared ... Cleared AlertStatus = "Cleared" )
func PossibleAlertStatusValues() []AlertStatus
PossibleAlertStatusValues returns an array of possible values for the AlertStatus const type.
type AlertsClient struct { BaseClient }
AlertsClient is the client for the Alerts methods of the Storsimple service.
func NewAlertsClient(subscriptionID string) AlertsClient
NewAlertsClient creates an instance of the AlertsClient client.
func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient
NewAlertsClientWithBaseURI creates an instance of the AlertsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client AlertsClient) ClearPreparer(ctx context.Context, request ClearAlertRequest, resourceGroupName string, managerName string) (*http.Request, error)
ClearPreparer prepares the Clear request.
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.
ClearSender sends the Clear request. The method will close the http.Response Body if it receives an error.
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 (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 (client AlertsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
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 (client AlertsClient) SendTestEmailPreparer(ctx context.Context, deviceName string, request SendTestAlertEmailRequest, resourceGroupName string, managerName string) (*http.Request, error)
SendTestEmailPreparer prepares the SendTestEmail request.
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.
SendTestEmailSender sends the SendTestEmail request. The method will close the http.Response Body if it receives an error.
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.
AuthType enumerates the values for auth type.
const ( // AccessControlService ... AccessControlService AuthType = "AccessControlService" // AzureActiveDirectory ... AzureActiveDirectory AuthType = "AzureActiveDirectory" // Invalid ... Invalid AuthType = "Invalid" )
PossibleAuthTypeValues returns an array of possible values for the AuthType const type.
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 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 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 (apo AvailableProviderOperations) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type AvailableProviderOperationsClient struct { BaseClient }
AvailableProviderOperationsClient is the client for the AvailableProviderOperations methods of the Storsimple service.
func NewAvailableProviderOperationsClient(subscriptionID string) AvailableProviderOperationsClient
NewAvailableProviderOperationsClient creates an instance of the AvailableProviderOperationsClient client.
func NewAvailableProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableProviderOperationsClient
NewAvailableProviderOperationsClientWithBaseURI creates an instance of the AvailableProviderOperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client AvailableProviderOperationsClient) List(ctx context.Context) (result AvailableProviderOperationsPage, err error)
List list of AvailableProviderOperations
func (client AvailableProviderOperationsClient) ListComplete(ctx context.Context) (result AvailableProviderOperationsIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AvailableProviderOperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 struct {
// contains filtered or unexported fields
}
AvailableProviderOperationsIterator provides access to a complete listing of AvailableProviderOperation values.
func NewAvailableProviderOperationsIterator(page AvailableProviderOperationsPage) AvailableProviderOperationsIterator
Creates a new instance of the AvailableProviderOperationsIterator type.
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 (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 (iter AvailableProviderOperationsIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AvailableProviderOperationsIterator) Response() AvailableProviderOperations
Response returns the raw server response from the last page request.
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 struct {
// contains filtered or unexported fields
}
AvailableProviderOperationsPage contains a page of AvailableProviderOperation values.
func NewAvailableProviderOperationsPage(cur AvailableProviderOperations, getNextPage func(context.Context, AvailableProviderOperations) (AvailableProviderOperations, error)) AvailableProviderOperationsPage
Creates a new instance of the AvailableProviderOperationsPage type.
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 (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 (page AvailableProviderOperationsPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AvailableProviderOperationsPage) Response() AvailableProviderOperations
Response returns the raw server response from the last page request.
func (page AvailableProviderOperationsPage) Values() []AvailableProviderOperation
Values returns the slice of values for the current page or nil if there are no values.
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.
MarshalJSON is the custom marshaler for Backup.
UnmarshalJSON is the custom unmarshaler for Backup struct.
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 (be BackupElement) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupElement.
func (be *BackupElement) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupElement struct.
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 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 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 (bl BackupList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type BackupListIterator struct {
// contains filtered or unexported fields
}
BackupListIterator provides access to a complete listing of Backup values.
func NewBackupListIterator(page BackupListPage) BackupListIterator
Creates a new instance of the BackupListIterator type.
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 (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 (iter BackupListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter BackupListIterator) Response() BackupList
Response returns the raw server response from the last page request.
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 struct {
// contains filtered or unexported fields
}
BackupListPage contains a page of Backup values.
func NewBackupListPage(cur BackupList, getNextPage func(context.Context, BackupList) (BackupList, error)) BackupListPage
Creates a new instance of the BackupListPage type.
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 (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 (page BackupListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page BackupListPage) Response() BackupList
Response returns the raw server response from the last page request.
func (page BackupListPage) Values() []Backup
Values returns the slice of values for the current page or nil if there are no values.
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 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 (bsg BackupScheduleGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupScheduleGroup.
func (bsg *BackupScheduleGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupScheduleGroup struct.
type BackupScheduleGroupList struct { autorest.Response `json:"-"` // Value - The value. Value *[]BackupScheduleGroup `json:"value,omitempty"` }
BackupScheduleGroupList the list response of backup schedule groups
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 struct { BaseClient }
BackupScheduleGroupsClient is the client for the BackupScheduleGroups methods of the Storsimple service.
func NewBackupScheduleGroupsClient(subscriptionID string) BackupScheduleGroupsClient
NewBackupScheduleGroupsClient creates an instance of the BackupScheduleGroupsClient client.
func NewBackupScheduleGroupsClientWithBaseURI(baseURI string, subscriptionID string) BackupScheduleGroupsClient
NewBackupScheduleGroupsClientWithBaseURI creates an instance of the BackupScheduleGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (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 (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 (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 (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 (client BackupScheduleGroupsClient) DeletePreparer(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client BackupScheduleGroupsClient) GetPreparer(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client BackupScheduleGroupsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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 (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 struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupScheduleGroupsClient) (BackupScheduleGroup, error) }
BackupScheduleGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupScheduleGroupsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupScheduleGroupsClient) (autorest.Response, error) }
BackupScheduleGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupsClient struct { BaseClient }
BackupsClient is the client for the Backups methods of the Storsimple service.
func NewBackupsClient(subscriptionID string) BackupsClient
NewBackupsClient creates an instance of the BackupsClient client.
func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient
NewBackupsClientWithBaseURI creates an instance of the BackupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (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 (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 (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 (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 (client BackupsClient) DeletePreparer(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (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 (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 (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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (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 (client BackupsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
type BackupsCloneFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupsClient) (autorest.Response, error) }
BackupsCloneFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupsClient) (autorest.Response, error) }
BackupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
BaseClient is the base client for Storsimple.
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type BaseModel 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 struct { // Password - The chap password. Password *AsymmetricEncryptedSecret `json:"password,omitempty"` }
ChapProperties chap properties
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 (cs ChapSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ChapSettings.
func (cs *ChapSettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ChapSettings struct.
type ChapSettingsClient struct { BaseClient }
ChapSettingsClient is the client for the ChapSettings methods of the Storsimple service.
func NewChapSettingsClient(subscriptionID string) ChapSettingsClient
NewChapSettingsClient creates an instance of the ChapSettingsClient client.
func NewChapSettingsClientWithBaseURI(baseURI string, subscriptionID string) ChapSettingsClient
NewChapSettingsClientWithBaseURI creates an instance of the ChapSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (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 (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 (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 (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 (client ChapSettingsClient) DeletePreparer(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client ChapSettingsClient) GetPreparer(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client ChapSettingsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
type ChapSettingsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ChapSettingsClient) (ChapSettings, error) }
ChapSettingsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ChapSettingsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ChapSettingsClient) (autorest.Response, error) }
ChapSettingsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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 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 struct { // CloneRequestProperties - CloneJob Properties are encapsulated in this object. *CloneRequestProperties `json:"properties,omitempty"` }
CloneRequest clone Job Request Model.
func (cr CloneRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CloneRequest.
func (cr *CloneRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CloneRequest struct.
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. *FileShare `json:"share,omitempty"` // Disk - Disk Object Disk *ISCSIDisk `json:"disk,omitempty"` }
CloneRequestProperties properties of CloneRequest
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" )
PossibleCloudTypeValues returns an array of possible values for the CloudType const type.
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() []ContractVersions
PossibleContractVersionsValues returns an array of possible values for the ContractVersions const type.
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() []DataPolicy
PossibleDataPolicyValues returns an array of possible values for the DataPolicy const type.
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
MarshalJSON is the custom marshaler for Device.
UnmarshalJSON is the custom unmarshaler for Device struct.
DeviceConfigurationStatus enumerates the values for device configuration status.
const ( // Complete ... Complete DeviceConfigurationStatus = "Complete" // Pending ... Pending DeviceConfigurationStatus = "Pending" )
func PossibleDeviceConfigurationStatusValues() []DeviceConfigurationStatus
PossibleDeviceConfigurationStatusValues returns an array of possible values for the DeviceConfigurationStatus const type.
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 struct { autorest.Response `json:"-"` // Value - The value. Value *[]Device `json:"value,omitempty"` }
DeviceList collection of Devices
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() []DeviceOperation
PossibleDeviceOperationValues returns an array of possible values for the DeviceOperation const type.
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 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
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() []DeviceStatus
PossibleDeviceStatusValues returns an array of possible values for the DeviceStatus const type.
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() []DeviceType
PossibleDeviceTypeValues returns an array of possible values for the DeviceType const type.
type DevicesClient struct { BaseClient }
DevicesClient is the client for the Devices methods of the Storsimple service.
func NewDevicesClient(subscriptionID string) DevicesClient
NewDevicesClient creates an instance of the DevicesClient client.
func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient
NewDevicesClientWithBaseURI creates an instance of the DevicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client DevicesClient) CreateOrUpdateAlertSettingsPreparer(ctx context.Context, deviceName string, alertSettings AlertSettings, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdateAlertSettingsPreparer prepares the CreateOrUpdateAlertSettings request.
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 (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 (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 (client DevicesClient) CreateOrUpdateSecuritySettingsPreparer(ctx context.Context, deviceName string, securitySettings SecuritySettings, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdateSecuritySettingsPreparer prepares the CreateOrUpdateSecuritySettings request.
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 (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 (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 (client DevicesClient) DeactivatePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
DeactivatePreparer prepares the Deactivate request.
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 (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 (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 (client DevicesClient) DeletePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client DevicesClient) DownloadUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
DownloadUpdatesPreparer prepares the DownloadUpdates request.
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 (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 (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 (client DevicesClient) FailoverPreparer(ctx context.Context, deviceName string, failoverRequest FailoverRequest, resourceGroupName string, managerName string) (*http.Request, error)
FailoverPreparer prepares the Failover request.
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 (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 (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 (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 (client DevicesClient) GetAlertSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetAlertSettingsPreparer prepares the GetAlertSettings request.
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.
GetAlertSettingsSender sends the GetAlertSettings request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) GetNetworkSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetNetworkSettingsPreparer prepares the GetNetworkSettings request.
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.
GetNetworkSettingsSender sends the GetNetworkSettings request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) GetPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) GetTimeSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetTimeSettingsPreparer prepares the GetTimeSettings request.
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.
GetTimeSettingsSender sends the GetTimeSettings request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) GetUpdateSummaryPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetUpdateSummaryPreparer prepares the GetUpdateSummary request.
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.
GetUpdateSummarySender sends the GetUpdateSummary request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) InstallUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
InstallUpdatesPreparer prepares the InstallUpdates request.
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 (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 (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 (client DevicesClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, expand string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) ListFailoverTargetPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (*http.Request, error)
ListFailoverTargetPreparer prepares the ListFailoverTarget request.
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.
ListFailoverTargetSender sends the ListFailoverTarget request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
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.
ListMetricDefinitionSender sends the ListMetricDefinition request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) ListMetricsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
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 (client DevicesClient) PatchPreparer(ctx context.Context, deviceName string, devicePatch DevicePatch, resourceGroupName string, managerName string) (*http.Request, error)
PatchPreparer prepares the Patch request.
PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.
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 (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 (client DevicesClient) ScanForUpdatesPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ScanForUpdatesPreparer prepares the ScanForUpdates request.
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 (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 struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (AlertSettings, error) }
DevicesCreateOrUpdateAlertSettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesCreateOrUpdateSecuritySettingsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesCreateOrUpdateSecuritySettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesDeactivateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesDeactivateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesDownloadUpdatesFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesDownloadUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesFailoverFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesInstallUpdatesFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesInstallUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesPatchFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (Device, error) }
DevicesPatchFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesScanForUpdatesFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DevicesClient) (autorest.Response, error) }
DevicesScanForUpdatesFuture an abstraction for monitoring and retrieving the results of a long-running operation.
DhcpStatus enumerates the values for dhcp status.
const ( // DhcpStatusDisabled ... DhcpStatusDisabled DhcpStatus = "Disabled" // DhcpStatusEnabled ... DhcpStatusEnabled DhcpStatus = "Enabled" )
func PossibleDhcpStatusValues() []DhcpStatus
PossibleDhcpStatusValues returns an array of possible values for the DhcpStatus const type.
DiskStatus enumerates the values for disk status.
const ( // DiskStatusOffline ... DiskStatusOffline DiskStatus = "Offline" // DiskStatusOnline ... DiskStatusOnline DiskStatus = "Online" )
func PossibleDiskStatusValues() []DiskStatus
PossibleDiskStatusValues returns an array of possible values for the DiskStatus const type.
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() []DownloadPhase
PossibleDownloadPhaseValues returns an array of possible values for the DownloadPhase const type.
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() []EncryptionAlgorithm
PossibleEncryptionAlgorithmValues returns an array of possible values for the EncryptionAlgorithm const type.
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 (es EncryptionSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EncryptionSettings.
func (es *EncryptionSettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EncryptionSettings struct.
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
EncryptionStatus enumerates the values for encryption status.
const ( // EncryptionStatusDisabled ... EncryptionStatusDisabled EncryptionStatus = "Disabled" // EncryptionStatusEnabled ... EncryptionStatusEnabled EncryptionStatus = "Enabled" )
func PossibleEncryptionStatusValues() []EncryptionStatus
PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type.
type Error struct { ErrorCode *string `json:"errorCode,omitempty"` Message *Message `json:"message,omitempty"` Values *[]Item `json:"values,omitempty"` }
Error ...
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 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 (fs FileServer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FileServer.
func (fs *FileServer) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for FileServer struct.
type FileServerList struct { autorest.Response `json:"-"` // Value - The value. Value *[]FileServer `json:"value,omitempty"` }
FileServerList collection of file servers
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 struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FileServersClient) (autorest.Response, error) }
FileServersBackupNowFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FileServersClient struct { BaseClient }
FileServersClient is the client for the FileServers methods of the Storsimple service.
func NewFileServersClient(subscriptionID string) FileServersClient
NewFileServersClient creates an instance of the FileServersClient client.
func NewFileServersClientWithBaseURI(baseURI string, subscriptionID string) FileServersClient
NewFileServersClientWithBaseURI creates an instance of the FileServersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client FileServersClient) BackupNowPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)
BackupNowPreparer prepares the BackupNow request.
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 (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 (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 (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 (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 (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 (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 (client FileServersClient) DeletePreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client FileServersClient) GetPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client FileServersClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (client FileServersClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
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 (client FileServersClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
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 (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 (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 (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 (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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type FileServersCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FileServersClient) (FileServer, error) }
FileServersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FileServersDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FileServersClient) (autorest.Response, error) }
FileServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FileShare struct { autorest.Response `json:"-"` // FileShareProperties - The properties. *FileShareProperties `json:"properties,omitempty"` // ID - READ-ONLY; The identifier. *string `json:"id,omitempty"` // Name - READ-ONLY; The name. *string `json:"name,omitempty"` // Type - READ-ONLY; The type. *string `json:"type,omitempty"` }
FileShare the File Share.
MarshalJSON is the custom marshaler for FileShare.
UnmarshalJSON is the custom unmarshaler for FileShare struct.
type FileShareList struct { autorest.Response `json:"-"` // Value - The value. *[]FileShare `json:"value,omitempty"` }
FileShareList collection of file shares
type FileShareProperties struct { // Description - Description for file share *string `json:"description,omitempty"` // ShareStatus - The Share Status. Possible values include: 'ShareStatusOnline', 'ShareStatusOffline' ShareStatus `json:"shareStatus,omitempty"` // DataPolicy - The data policy. Possible values include: 'DataPolicyInvalid', 'DataPolicyLocal', 'DataPolicyTiered', 'DataPolicyCloud' 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. *string `json:"adminUser,omitempty"` // ProvisionedCapacityInBytes - The total provisioned capacity in Bytes *int64 `json:"provisionedCapacityInBytes,omitempty"` // UsedCapacityInBytes - READ-ONLY; The used capacity in Bytes. *int64 `json:"usedCapacityInBytes,omitempty"` // LocalUsedCapacityInBytes - READ-ONLY; The local used capacity in Bytes. *int64 `json:"localUsedCapacityInBytes,omitempty"` // MonitoringStatus - The monitoring status. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus `json:"monitoringStatus,omitempty"` }
FileShareProperties the File Share.
func (fsp FileShareProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FileShareProperties.
type FileSharesClient struct { BaseClient }
FileSharesClient is the client for the FileShares methods of the Storsimple service.
func NewFileSharesClient(subscriptionID string) FileSharesClient
NewFileSharesClient creates an instance of the FileSharesClient client.
func NewFileSharesClientWithBaseURI(baseURI string, subscriptionID string) FileSharesClient
NewFileSharesClientWithBaseURI creates an instance of the FileSharesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (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 (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 (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 (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 (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 (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 (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 (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 (client FileSharesClient) GetPreparer(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client FileSharesClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (client FileSharesClient) ListByFileServerPreparer(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByFileServerPreparer prepares the ListByFileServer request.
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.
ListByFileServerSender sends the ListByFileServer request. The method will close the http.Response Body if it receives an error.
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 (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 (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 (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 (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 (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 (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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type FileSharesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func(FileSharesClient) (FileShare, error) }
FileSharesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FileSharesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func(FileSharesClient) (autorest.Response, error) }
FileSharesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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 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.
MarshalJSON is the custom marshaler for ISCSIDisk.
UnmarshalJSON is the custom unmarshaler for ISCSIDisk struct.
type ISCSIDiskList struct { autorest.Response `json:"-"` // Value - The value. Value *[]ISCSIDisk `json:"value,omitempty"` }
ISCSIDiskList collection of Iscsi disk
type ISCSIDiskProperties struct { // Description - The description. Description *string `json:"description,omitempty"` // DiskStatus - The disk status. Possible values include: 'DiskStatusOnline', 'DiskStatusOffline' DiskStatus DiskStatus `json:"diskStatus,omitempty"` // AccessControlRecords - The access control records. AccessControlRecords *[]string `json:"accessControlRecords,omitempty"` // DataPolicy - The data policy. Possible values include: 'DataPolicyInvalid', 'DataPolicyLocal', 'DataPolicyTiered', 'DataPolicyCloud' DataPolicy DataPolicy `json:"dataPolicy,omitempty"` // ProvisionedCapacityInBytes - The provisioned capacity in bytes. ProvisionedCapacityInBytes *int64 `json:"provisionedCapacityInBytes,omitempty"` // UsedCapacityInBytes - READ-ONLY; The used capacity in bytes. UsedCapacityInBytes *int64 `json:"usedCapacityInBytes,omitempty"` // LocalUsedCapacityInBytes - READ-ONLY; The local used capacity in bytes. LocalUsedCapacityInBytes *int64 `json:"localUsedCapacityInBytes,omitempty"` // MonitoringStatus - The monitoring. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` }
ISCSIDiskProperties the iSCSI disk properties.
func (idp ISCSIDiskProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ISCSIDiskProperties.
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 (is ISCSIServer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ISCSIServer.
func (is *ISCSIServer) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ISCSIServer struct.
type ISCSIServerList struct { autorest.Response `json:"-"` // Value - The value. Value *[]ISCSIServer `json:"value,omitempty"` }
ISCSIServerList collection of Iscsi servers
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.
InitiatedBy enumerates the values for initiated by.
const ( // Manual ... Manual InitiatedBy = "Manual" // Scheduled ... Scheduled InitiatedBy = "Scheduled" )
func PossibleInitiatedByValues() []InitiatedBy
PossibleInitiatedByValues returns an array of possible values for the InitiatedBy const type.
type IscsiDisksClient struct { BaseClient }
IscsiDisksClient is the client for the IscsiDisks methods of the Storsimple service.
func NewIscsiDisksClient(subscriptionID string) IscsiDisksClient
NewIscsiDisksClient creates an instance of the IscsiDisksClient client.
func NewIscsiDisksClientWithBaseURI(baseURI string, subscriptionID string) IscsiDisksClient
NewIscsiDisksClientWithBaseURI creates an instance of the IscsiDisksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (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 (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 (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 (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 (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 (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 (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 (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 (client IscsiDisksClient) GetPreparer(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client IscsiDisksClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (client IscsiDisksClient) ListByIscsiServerPreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByIscsiServerPreparer prepares the ListByIscsiServer request.
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.
ListByIscsiServerSender sends the ListByIscsiServer request. The method will close the http.Response Body if it receives an error.
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 (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 (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 (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 (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 (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 (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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type IscsiDisksCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiDisksClient) (ISCSIDisk, error) }
IscsiDisksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiDisksDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiDisksClient) (autorest.Response, error) }
IscsiDisksDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiServersBackupNowFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiServersClient) (autorest.Response, error) }
IscsiServersBackupNowFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiServersClient struct { BaseClient }
IscsiServersClient is the client for the IscsiServers methods of the Storsimple service.
func NewIscsiServersClient(subscriptionID string) IscsiServersClient
NewIscsiServersClient creates an instance of the IscsiServersClient client.
func NewIscsiServersClientWithBaseURI(baseURI string, subscriptionID string) IscsiServersClient
NewIscsiServersClientWithBaseURI creates an instance of the IscsiServersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client IscsiServersClient) BackupNowPreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)
BackupNowPreparer prepares the BackupNow request.
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 (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 (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 (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 (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 (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 (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 (client IscsiServersClient) DeletePreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client IscsiServersClient) GetPreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (client IscsiServersClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
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.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (client IscsiServersClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
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.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
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 (client IscsiServersClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
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 (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 (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 (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 (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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type IscsiServersCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiServersClient) (ISCSIServer, error) }
IscsiServersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type IscsiServersDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(IscsiServersClient) (autorest.Response, error) }
IscsiServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
Item ...
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.
MarshalJSON is the custom marshaler for Job.
UnmarshalJSON is the custom unmarshaler for Job struct.
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 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 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 struct { autorest.Response `json:"-"` // Value - The value. Value *[]Job `json:"value,omitempty"` // NextLink - The NextLink. NextLink *string `json:"nextLink,omitempty"` }
JobList collection of jobs
IsEmpty returns true if the ListResult contains no values.
type JobListIterator struct {
// contains filtered or unexported fields
}
JobListIterator provides access to a complete listing of Job values.
func NewJobListIterator(page JobListPage) JobListIterator
Creates a new instance of the JobListIterator type.
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 (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 (iter JobListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter JobListIterator) Response() JobList
Response returns the raw server response from the last page request.
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 struct {
// contains filtered or unexported fields
}
JobListPage contains a page of Job values.
func NewJobListPage(cur JobList, getNextPage func(context.Context, JobList) (JobList, error)) JobListPage
Creates a new instance of the JobListPage type.
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 (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 (page JobListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page JobListPage) Response() JobList
Response returns the raw server response from the last page request.
func (page JobListPage) Values() []Job
Values returns the slice of values for the current page or nil if there are no values.
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 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 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
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" )
PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
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" )
PossibleJobTypeValues returns an array of possible values for the JobType const type.
type JobsClient struct { BaseClient }
JobsClient is the client for the Jobs methods of the Storsimple service.
func NewJobsClient(subscriptionID string) JobsClient
NewJobsClient creates an instance of the JobsClient client.
func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient
NewJobsClientWithBaseURI creates an instance of the JobsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client JobsClient) GetPreparer(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 (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 (client JobsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
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 (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 (client JobsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
KeyRolloverStatus enumerates the values for key rollover status.
const ( // NotRequired ... NotRequired KeyRolloverStatus = "NotRequired" // Required ... Required KeyRolloverStatus = "Required" )
func PossibleKeyRolloverStatusValues() []KeyRolloverStatus
PossibleKeyRolloverStatusValues returns an array of possible values for the KeyRolloverStatus const type.
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
MarshalJSON is the custom marshaler for Manager.
UnmarshalJSON is the custom unmarshaler for Manager struct.
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 (mei ManagerExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagerExtendedInfo.
func (mei *ManagerExtendedInfo) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagerExtendedInfo struct.
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 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 struct { autorest.Response `json:"-"` // Value - List of Managers Value *[]Manager `json:"value,omitempty"` }
ManagerList list of StorSimple Managers under a particular resourceGroup
type ManagerPatch struct { // Tags - The tags attached to the StorSimple Manager. Tags map[string]*string `json:"tags"` }
ManagerPatch the StorSimple Manager patch.
func (mp ManagerPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagerPatch.
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
func (mp ManagerProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagerProperties.
type ManagerSku struct { // Name - Refers to the sku name which should be "Standard" Name *string `json:"name,omitempty"` }
ManagerSku the Sku.
ManagerType enumerates the values for manager type.
const ( // GardaV1 ... GardaV1 ManagerType = "GardaV1" // HelsinkiV1 ... HelsinkiV1 ManagerType = "HelsinkiV1" )
func PossibleManagerTypeValues() []ManagerType
PossibleManagerTypeValues returns an array of possible values for the ManagerType const type.
type ManagersClient struct { BaseClient }
ManagersClient is the client for the Managers methods of the Storsimple service.
func NewManagersClient(subscriptionID string) ManagersClient
NewManagersClient creates an instance of the ManagersClient client.
func NewManagersClientWithBaseURI(baseURI string, subscriptionID string) ManagersClient
NewManagersClientWithBaseURI creates an instance of the ManagersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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 (client ManagersClient) CreateExtendedInfoPreparer(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string) (*http.Request, error)
CreateExtendedInfoPreparer prepares the CreateExtendedInfo request.
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.
CreateExtendedInfoSender sends the CreateExtendedInfo request. The method will close the http.Response Body if it receives an error.
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 (client ManagersClient) CreateOrUpdatePreparer(ctx context.Context, manager Manager, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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.
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
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 (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 (client ManagersClient) DeleteExtendedInfoPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
DeleteExtendedInfoPreparer prepares the DeleteExtendedInfo request.
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.
DeleteExtendedInfoSender sends the DeleteExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) DeletePreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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.
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
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 (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 (client ManagersClient) GetEncryptionKeyPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetEncryptionKeyPreparer prepares the GetEncryptionKey request.
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.
GetEncryptionKeySender sends the GetEncryptionKey request. The method will close the http.Response Body if it receives an error.
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 (client ManagersClient) GetEncryptionSettingsPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetEncryptionSettingsPreparer prepares the GetEncryptionSettings request.
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 (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 (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 (client ManagersClient) GetExtendedInfoPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetExtendedInfoPreparer prepares the GetExtendedInfo request.
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.
GetExtendedInfoSender sends the GetExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) GetPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) List(ctx context.Context) (result ManagerList, err error)
List retrieves all the managers in a subscription.
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 (client ManagersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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.
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
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 (client ManagersClient) ListMetricDefinitionPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
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.
ListMetricDefinitionSender sends the ListMetricDefinition request. The method will close the http.Response Body if it receives an error.
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 (client ManagersClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
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.
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
ListPreparer prepares the List request.
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.
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
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 (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 (client ManagersClient) UpdateExtendedInfoPreparer(ctx context.Context, managerExtendedInfo ManagerExtendedInfo, resourceGroupName string, managerName string, ifMatch string) (*http.Request, error)
UpdateExtendedInfoPreparer prepares the UpdateExtendedInfo request.
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.
UpdateExtendedInfoSender sends the UpdateExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) UpdatePreparer(ctx context.Context, parameters ManagerPatch, resourceGroupName string, managerName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) UploadRegistrationCertificate(ctx context.Context, certificateName string, uploadCertificateRequestrequest UploadCertificateRequest, resourceGroupName string, managerName string) (result UploadCertificateResponse, err error)
UploadRegistrationCertificate upload Vault Cred Certificate. Returns UploadCertificateResponse Parameters: certificateName - certificate Name uploadCertificateRequestrequest - uploadCertificateRequest Request resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) UploadRegistrationCertificatePreparer(ctx context.Context, certificateName string, uploadCertificateRequestrequest UploadCertificateRequest, resourceGroupName string, managerName string) (*http.Request, error)
UploadRegistrationCertificatePreparer prepares the UploadRegistrationCertificate request.
func (client ManagersClient) UploadRegistrationCertificateResponder(resp *http.Response) (result UploadCertificateResponse, err error)
UploadRegistrationCertificateResponder handles the response to the UploadRegistrationCertificate request. The method always closes the http.Response Body.
func (client ManagersClient) UploadRegistrationCertificateSender(req *http.Request) (*http.Response, error)
UploadRegistrationCertificateSender sends the UploadRegistrationCertificate request. The method will close the http.Response Body if it receives an error.
type Message struct { Language *string `json:"language,omitempty"` Value *string `json:"value,omitempty"` }
Message ...
MetricAggregationType enumerates the values for metric aggregation type.
const ( // MetricAggregationTypeAverage ... MetricAggregationTypeAverage MetricAggregationType = "Average" // MetricAggregationTypeLast ... MetricAggregationTypeLast MetricAggregationType = "Last" // MetricAggregationTypeMaximum ... MetricAggregationTypeMaximum MetricAggregationType = "Maximum" // MetricAggregationTypeMinimum ... MetricAggregationTypeMinimum MetricAggregationType = "Minimum" // MetricAggregationTypeNone ... MetricAggregationTypeNone MetricAggregationType = "None" // MetricAggregationTypeTotal ... MetricAggregationTypeTotal MetricAggregationType = "Total" )
func PossibleMetricAggregationTypeValues() []MetricAggregationType
PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type.
type MetricAvailablity struct { // TimeGrain - The time grain, specifies the aggregation interval for the metric. TimeGrain *string `json:"timeGrain,omitempty"` // Retention - The retention period for the metric at the specified timegrain Retention *string `json:"retention,omitempty"` }
MetricAvailablity metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain
type MetricData struct { // TimeStamp - The time when the metric data is fetched TimeStamp *date.Time `json:"timeStamp,omitempty"` // Sum - The sum of all the samples available in the given instance of time for the specific metric data Sum *float64 `json:"sum,omitempty"` // Count - The count of samples of the metric data available for the given instance Count *int32 `json:"count,omitempty"` // Average - The average of all sample for the given instance Average *float64 `json:"average,omitempty"` // Minimum - The minimum of all samples available Minimum *float64 `json:"minimum,omitempty"` // Maximum - The maximum of all samples available Maximum *float64 `json:"maximum,omitempty"` }
MetricData the metric data.
type MetricDefinition struct { // Name - The metric name Name *MetricName `json:"name,omitempty"` // Unit - The metric unit. Possible values include: 'Bytes', 'BytesPerSecond', 'Count', 'CountPerSecond', 'Percent', 'Seconds' Unit MetricUnit `json:"unit,omitempty"` // PrimaryAggregationType - The metric aggregation type. Possible values include: 'MetricAggregationTypeAverage', 'MetricAggregationTypeLast', 'MetricAggregationTypeMaximum', 'MetricAggregationTypeMinimum', 'MetricAggregationTypeNone', 'MetricAggregationTypeTotal' PrimaryAggregationType MetricAggregationType `json:"primaryAggregationType,omitempty"` // ResourceID - The metric source id ResourceID *string `json:"resourceId,omitempty"` // MetricAvailabilities - The available metric granularities MetricAvailabilities *[]MetricAvailablity `json:"metricAvailabilities,omitempty"` // Dimensions - The supported dimensions Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // Type - The metric definition type Type *string `json:"type,omitempty"` }
MetricDefinition monitoring metric definition represents the metadata of the metrics.
type MetricDefinitionList struct { autorest.Response `json:"-"` // Value - The list of metric definition Value *[]MetricDefinition `json:"value,omitempty"` }
MetricDefinitionList list of metric definition
type MetricDimension struct { // Name - Metric dimension name Name *string `json:"name,omitempty"` // Value - Metric dimension values Value *string `json:"value,omitempty"` }
MetricDimension metric dimension
type MetricFilter struct { // Name - filter for name property Name *MetricNameFilter `json:"name,omitempty"` // StartTime - starttime for fetching metrics StartTime *date.Time `json:"startTime,omitempty"` // EndTime - endtime for fetching metrics EndTime *