const ( // DefaultBaseURI is the default URI used for the service Storsimple DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AccessControlRecord the access control record.
type AccessControlRecord struct { autorest.Response `json:"-"` // AccessControlRecordProperties - The properties of access control record. *AccessControlRecordProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
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.
AccessControlRecordList the collection of access control records.
type AccessControlRecordList struct { autorest.Response `json:"-"` // Value - The value. Value *[]AccessControlRecord `json:"value,omitempty"` }
AccessControlRecordProperties the properties of access control record.
type AccessControlRecordProperties struct { // InitiatorName - The iSCSI initiator name (IQN). InitiatorName *string `json:"initiatorName,omitempty"` // VolumeCount - READ-ONLY; The number of volumes using the access control record. VolumeCount *int32 `json:"volumeCount,omitempty"` }
func (acrp AccessControlRecordProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccessControlRecordProperties.
AccessControlRecordsClient is the client for the AccessControlRecords methods of the Storsimple service.
type AccessControlRecordsClient struct { BaseClient }
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, parameters 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. parameters - 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, parameters 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.
func (client AccessControlRecordsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (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.
AccessControlRecordsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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) }
func (future *AccessControlRecordsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
AccessControlRecordsDeleteFuture 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) }
func (future *AccessControlRecordsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
AcsConfiguration the ACS configuration.
type AcsConfiguration struct { // Namespace - The namespace. Namespace *string `json:"namespace,omitempty"` // Realm - The realm. Realm *string `json:"realm,omitempty"` // ServiceURL - The service URL. ServiceURL *string `json:"serviceUrl,omitempty"` }
Alert the alert.
type Alert struct { // AlertProperties - The properties of the alert. *AlertProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (a Alert) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Alert.
func (a *Alert) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Alert struct.
AlertEmailNotificationStatus enumerates the values for alert email notification status.
type AlertEmailNotificationStatus string
const ( // Disabled ... Disabled AlertEmailNotificationStatus = "Disabled" // Enabled ... Enabled AlertEmailNotificationStatus = "Enabled" )
func PossibleAlertEmailNotificationStatusValues() []AlertEmailNotificationStatus
PossibleAlertEmailNotificationStatusValues returns an array of possible values for the AlertEmailNotificationStatus const type.
AlertErrorDetails the details of the error for which the alert was raised
type AlertErrorDetails struct { // ErrorCode - The error code ErrorCode *string `json:"errorCode,omitempty"` // ErrorMessage - The error message ErrorMessage *string `json:"errorMessage,omitempty"` // Occurences - The number of occurrences Occurences *int32 `json:"occurences,omitempty"` }
AlertFilter the OData filters to be used for Alert
type AlertFilter struct { // Status - Specifies the status of the alerts to be filtered. Only 'Equality' operator is supported for this property. Possible values include: 'Active', 'Cleared' Status AlertStatus `json:"status,omitempty"` // Severity - Specifies the severity of the alerts to be filtered. Only 'Equality' operator is supported for this property. Possible values include: 'Informational', 'Warning', 'Critical' Severity AlertSeverity `json:"severity,omitempty"` // SourceType - Specifies the source type of the alerts to be filtered. Only 'Equality' operator is supported for this property. Possible values include: 'AlertSourceTypeResource', 'AlertSourceTypeDevice' SourceType AlertSourceType `json:"sourceType,omitempty"` // SourceName - Specifies the source name of the alerts to be filtered. Only 'Equality' operator is supported for this property. SourceName *string `json:"sourceName,omitempty"` // AppearedOnTime - Specifies the appeared time (in UTC) of the alerts to be filtered. Only 'Greater-Than' and 'Lesser-Than' operators are supported for this property. AppearedOnTime *date.Time `json:"appearedOnTime,omitempty"` }
AlertList the collection of alerts.
type AlertList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Alert `json:"value,omitempty"` // NextLink - The URI of the next page of alerts. NextLink *string `json:"nextLink,omitempty"` }
func (al AlertList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AlertListIterator provides access to a complete listing of Alert values.
type AlertListIterator struct {
// contains filtered or unexported fields
}
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.
AlertListPage contains a page of Alert values.
type AlertListPage struct {
// contains filtered or unexported fields
}
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.
AlertNotificationProperties the properties of the alert notification settings.
type AlertNotificationProperties struct { // EmailNotification - Indicates whether email notification enabled or not. Possible values include: 'Enabled', 'Disabled' EmailNotification AlertEmailNotificationStatus `json:"emailNotification,omitempty"` // AlertNotificationCulture - The alert notification culture. AlertNotificationCulture *string `json:"alertNotificationCulture,omitempty"` // NotificationToServiceOwners - The value indicating whether alert notification enabled for admin or not. Possible values include: 'Enabled', 'Disabled' NotificationToServiceOwners AlertEmailNotificationStatus `json:"notificationToServiceOwners,omitempty"` // AdditionalRecipientEmailList - The alert notification email list. AdditionalRecipientEmailList *[]string `json:"additionalRecipientEmailList,omitempty"` }
AlertProperties the properties of alert
type AlertProperties struct { // Title - The title of the alert Title *string `json:"title,omitempty"` // Scope - The scope of the alert. Possible values include: 'AlertScopeResource', 'AlertScopeDevice' Scope AlertScope `json:"scope,omitempty"` // AlertType - The type of the alert AlertType *string `json:"alertType,omitempty"` // AppearedAtTime - The UTC time at which the alert was raised AppearedAtTime *date.Time `json:"appearedAtTime,omitempty"` // AppearedAtSourceTime - The source time at which the alert was raised AppearedAtSourceTime *date.Time `json:"appearedAtSourceTime,omitempty"` // ClearedAtTime - The UTC time at which the alert was cleared ClearedAtTime *date.Time `json:"clearedAtTime,omitempty"` // ClearedAtSourceTime - The source time at which the alert was cleared ClearedAtSourceTime *date.Time `json:"clearedAtSourceTime,omitempty"` // Source - The source at which the alert was raised Source *AlertSource `json:"source,omitempty"` // Recommendation - The recommended action for the issue raised in the alert Recommendation *string `json:"recommendation,omitempty"` // ResolutionReason - The reason for resolving the alert ResolutionReason *string `json:"resolutionReason,omitempty"` // Severity - The severity of the alert. Possible values include: 'Informational', 'Warning', 'Critical' Severity AlertSeverity `json:"severity,omitempty"` // Status - The current status of the alert. Possible values include: 'Active', 'Cleared' Status AlertStatus `json:"status,omitempty"` // ErrorDetails - The details of the error for which the alert was raised ErrorDetails *AlertErrorDetails `json:"errorDetails,omitempty"` // DetailedInformation - More details about the alert DetailedInformation map[string]*string `json:"detailedInformation"` }
func (ap AlertProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertProperties.
AlertScope enumerates the values for alert scope.
type AlertScope string
const ( // AlertScopeDevice ... AlertScopeDevice AlertScope = "Device" // AlertScopeResource ... AlertScopeResource AlertScope = "Resource" )
func PossibleAlertScopeValues() []AlertScope
PossibleAlertScopeValues returns an array of possible values for the AlertScope const type.
AlertSettings the alert settings.
type AlertSettings struct { autorest.Response `json:"-"` // AlertNotificationProperties - The properties of the alert notification settings. *AlertNotificationProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
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.
AlertSeverity enumerates the values for alert severity.
type AlertSeverity string
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.
AlertSource the source details at which the alert was raised
type AlertSource struct { // Name - The name of the source Name *string `json:"name,omitempty"` // TimeZone - The time zone of the source TimeZone *string `json:"timeZone,omitempty"` // AlertSourceType - The source type of the alert. Possible values include: 'AlertSourceTypeResource', 'AlertSourceTypeDevice' AlertSourceType AlertSourceType `json:"alertSourceType,omitempty"` }
AlertSourceType enumerates the values for alert source type.
type AlertSourceType string
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.
type AlertStatus string
const ( // Active ... Active AlertStatus = "Active" // Cleared ... Cleared AlertStatus = "Cleared" )
func PossibleAlertStatusValues() []AlertStatus
PossibleAlertStatusValues returns an array of possible values for the AlertStatus const type.
AlertsClient is the client for the Alerts methods of the Storsimple service.
type AlertsClient struct { BaseClient }
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, parameters ClearAlertRequest, resourceGroupName string, managerName string) (result autorest.Response, err error)
Clear clear the alerts. Parameters: parameters - the clear alert request. resourceGroupName - the resource group name managerName - the manager name
func (client AlertsClient) ClearPreparer(ctx context.Context, parameters 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.
func (client AlertsClient) ClearSender(req *http.Request) (*http.Response, error)
ClearSender sends the Clear request. The method will close the http.Response Body if it receives an error.
func (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.
func (client AlertsClient) ListByManagerSender(req *http.Request) (*http.Response, error)
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
func (client AlertsClient) SendTestEmail(ctx context.Context, deviceName string, parameters SendTestAlertEmailRequest, resourceGroupName string, managerName string) (result autorest.Response, err error)
SendTestEmail sends a test alert email. Parameters: deviceName - the device name parameters - the send test alert email request. resourceGroupName - the resource group name managerName - the manager name
func (client AlertsClient) SendTestEmailPreparer(ctx context.Context, deviceName string, parameters 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.
func (client AlertsClient) SendTestEmailSender(req *http.Request) (*http.Response, error)
SendTestEmailSender sends the SendTestEmail request. The method will close the http.Response Body if it receives an error.
AsymmetricEncryptedSecret represent the secrets intended for encryption with asymmetric key pair.
type AsymmetricEncryptedSecret struct { // Value - The value of the secret. Value *string `json:"value,omitempty"` // EncryptionCertThumbprint - Thumbprint certificate that was used to encrypt "Value". If the value in unencrypted, it will be null. EncryptionCertThumbprint *string `json:"encryptionCertThumbprint,omitempty"` // EncryptionAlgorithm - The algorithm used to encrypt "Value". Possible values include: 'EncryptionAlgorithmNone', 'EncryptionAlgorithmAES256', 'EncryptionAlgorithmRSAESPKCS1V15' EncryptionAlgorithm EncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"` }
AuthenticationType enumerates the values for authentication type.
type AuthenticationType string
const ( // Basic ... Basic AuthenticationType = "Basic" // Invalid ... Invalid AuthenticationType = "Invalid" // None ... None AuthenticationType = "None" // NTLM ... NTLM AuthenticationType = "NTLM" )
func PossibleAuthenticationTypeValues() []AuthenticationType
PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.
AuthorizationEligibility enumerates the values for authorization eligibility.
type AuthorizationEligibility string
const ( // Eligible ... Eligible AuthorizationEligibility = "Eligible" // InEligible ... InEligible AuthorizationEligibility = "InEligible" )
func PossibleAuthorizationEligibilityValues() []AuthorizationEligibility
PossibleAuthorizationEligibilityValues returns an array of possible values for the AuthorizationEligibility const type.
AuthorizationStatus enumerates the values for authorization status.
type AuthorizationStatus string
const ( // AuthorizationStatusDisabled ... AuthorizationStatusDisabled AuthorizationStatus = "Disabled" // AuthorizationStatusEnabled ... AuthorizationStatusEnabled AuthorizationStatus = "Enabled" )
func PossibleAuthorizationStatusValues() []AuthorizationStatus
PossibleAuthorizationStatusValues returns an array of possible values for the AuthorizationStatus const type.
AvailableProviderOperation represents available provider operation.
type AvailableProviderOperation struct { // Name - The name of the operation being performed on a particular object. Name format: "{resourceProviderNamespace}/{resourceType}/{read|write|delete|action}". Eg. Microsoft.StorSimple/managers/devices/volumeContainers/read, Microsoft.StorSimple/managers/devices/alerts/clearAlerts/action Name *string `json:"name,omitempty"` // Display - Contains the localized display information for this particular operation/action. Display *AvailableProviderOperationDisplay `json:"display,omitempty"` // 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 - Reserved for future use. Properties interface{} `json:"properties,omitempty"` }
AvailableProviderOperationDisplay contains the localized display information for this particular operation/action. These value will be used by several clients for (a) custom role definitions for RBAC, (b) complex query filters for the event service and (c) audit history/records for management operations.
type AvailableProviderOperationDisplay struct { // 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 - 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 - 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 - 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"` }
AvailableProviderOperationList list of available provider operations.
type AvailableProviderOperationList struct { autorest.Response `json:"-"` // Value - The value. Value *[]AvailableProviderOperation `json:"value,omitempty"` // NextLink - The NextLink. NextLink *string `json:"nextLink,omitempty"` }
func (apol AvailableProviderOperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AvailableProviderOperationListIterator provides access to a complete listing of AvailableProviderOperation values.
type AvailableProviderOperationListIterator struct {
// contains filtered or unexported fields
}
func NewAvailableProviderOperationListIterator(page AvailableProviderOperationListPage) AvailableProviderOperationListIterator
Creates a new instance of the AvailableProviderOperationListIterator type.
func (iter *AvailableProviderOperationListIterator) 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 *AvailableProviderOperationListIterator) 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 AvailableProviderOperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AvailableProviderOperationListIterator) Response() AvailableProviderOperationList
Response returns the raw server response from the last page request.
func (iter AvailableProviderOperationListIterator) Value() AvailableProviderOperation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
AvailableProviderOperationListPage contains a page of AvailableProviderOperation values.
type AvailableProviderOperationListPage struct {
// contains filtered or unexported fields
}
func NewAvailableProviderOperationListPage(cur AvailableProviderOperationList, getNextPage func(context.Context, AvailableProviderOperationList) (AvailableProviderOperationList, error)) AvailableProviderOperationListPage
Creates a new instance of the AvailableProviderOperationListPage type.
func (page *AvailableProviderOperationListPage) 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 *AvailableProviderOperationListPage) 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 AvailableProviderOperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AvailableProviderOperationListPage) Response() AvailableProviderOperationList
Response returns the raw server response from the last page request.
func (page AvailableProviderOperationListPage) Values() []AvailableProviderOperation
Values returns the slice of values for the current page or nil if there are no values.
Backup the backup.
type Backup struct { // BackupProperties - The properties of the backup. *BackupProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (b Backup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Backup.
func (b *Backup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Backup struct.
BackupElement the backup element.
type BackupElement struct { // ElementID - The path ID that uniquely identifies the backup element. ElementID *string `json:"elementId,omitempty"` // ElementName - The name of the backup element. ElementName *string `json:"elementName,omitempty"` // ElementType - The hierarchical type of the backup element. ElementType *string `json:"elementType,omitempty"` // SizeInBytes - The size in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` // VolumeName - The name of the volume. VolumeName *string `json:"volumeName,omitempty"` // VolumeContainerID - The path ID of the volume container. VolumeContainerID *string `json:"volumeContainerId,omitempty"` // VolumeType - The volume type. Possible values include: 'Tiered', 'Archival', 'LocallyPinned' VolumeType VolumeType `json:"volumeType,omitempty"` }
BackupFilter the OData filters to be used for backups.
type BackupFilter struct { // BackupPolicyID - Specifies the backupPolicyId of the backups to be filtered. Only 'Equality' operator is supported for this property. BackupPolicyID *string `json:"backupPolicyId,omitempty"` // VolumeID - Specifies the volumeId of the backups to be filtered. Only 'Equality' operator is supported for this property. VolumeID *string `json:"volumeId,omitempty"` // CreatedTime - Specifies the creation time of the backups to be filtered. Only 'Greater Than or Equal To' and 'Lesser Than or Equal To' operators are supported for this property. CreatedTime *date.Time `json:"createdTime,omitempty"` }
BackupJobCreationType enumerates the values for backup job creation type.
type BackupJobCreationType string
const ( // Adhoc ... Adhoc BackupJobCreationType = "Adhoc" // BySchedule ... BySchedule BackupJobCreationType = "BySchedule" // BySSM ... BySSM BackupJobCreationType = "BySSM" )
func PossibleBackupJobCreationTypeValues() []BackupJobCreationType
PossibleBackupJobCreationTypeValues returns an array of possible values for the BackupJobCreationType const type.
BackupList the collection of backups.
type BackupList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Backup `json:"value,omitempty"` // NextLink - The NextLink. NextLink *string `json:"nextLink,omitempty"` }
func (bl BackupList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
BackupListIterator provides access to a complete listing of Backup values.
type BackupListIterator struct {
// contains filtered or unexported fields
}
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.
BackupListPage contains a page of Backup values.
type BackupListPage struct {
// contains filtered or unexported fields
}
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.
BackupPoliciesBackupNowFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupPoliciesBackupNowFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupPoliciesClient) (autorest.Response, error) }
func (future *BackupPoliciesBackupNowFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupPoliciesClient is the client for the BackupPolicies methods of the Storsimple service.
type BackupPoliciesClient struct { BaseClient }
func NewBackupPoliciesClient(subscriptionID string) BackupPoliciesClient
NewBackupPoliciesClient creates an instance of the BackupPoliciesClient client.
func NewBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupPoliciesClient
NewBackupPoliciesClientWithBaseURI creates an instance of the BackupPoliciesClient 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 BackupPoliciesClient) BackupNow(ctx context.Context, deviceName string, backupPolicyName string, backupType string, resourceGroupName string, managerName string) (result BackupPoliciesBackupNowFuture, err error)
BackupNow backup the backup policy now. Parameters: deviceName - the device name backupPolicyName - the backup policy name. backupType - the backup Type. This can be cloudSnapshot or localSnapshot. resourceGroupName - the resource group name managerName - the manager name
func (client BackupPoliciesClient) BackupNowPreparer(ctx context.Context, deviceName string, backupPolicyName string, backupType string, resourceGroupName string, managerName string) (*http.Request, error)
BackupNowPreparer prepares the BackupNow request.
func (client BackupPoliciesClient) 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 BackupPoliciesClient) BackupNowSender(req *http.Request) (future BackupPoliciesBackupNowFuture, err error)
BackupNowSender sends the BackupNow request. The method will close the http.Response Body if it receives an error.
func (client BackupPoliciesClient) CreateOrUpdate(ctx context.Context, deviceName string, backupPolicyName string, parameters BackupPolicy, resourceGroupName string, managerName string) (result BackupPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the backup policy. Parameters: deviceName - the device name backupPolicyName - the name of the backup policy to be created/updated. parameters - the backup policy. resourceGroupName - the resource group name managerName - the manager name
func (client BackupPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, backupPolicyName string, parameters BackupPolicy, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client BackupPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client BackupPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client BackupPoliciesClient) Delete(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (result BackupPoliciesDeleteFuture, err error)
Delete deletes the backup policy. Parameters: deviceName - the device name backupPolicyName - the name of the backup policy. resourceGroupName - the resource group name managerName - the manager name
func (client BackupPoliciesClient) DeletePreparer(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client BackupPoliciesClient) 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 BackupPoliciesClient) DeleteSender(req *http.Request) (future BackupPoliciesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client BackupPoliciesClient) Get(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (result BackupPolicy, err error)
Get gets the properties of the specified backup policy name. Parameters: deviceName - the device name backupPolicyName - the name of backup policy to be fetched. resourceGroupName - the resource group name managerName - the manager name
func (client BackupPoliciesClient) GetPreparer(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client BackupPoliciesClient) GetResponder(resp *http.Response) (result BackupPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client BackupPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client BackupPoliciesClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result BackupPolicyList, err error)
ListByDevice gets all the backup policies in a device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client BackupPoliciesClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
func (client BackupPoliciesClient) ListByDeviceResponder(resp *http.Response) (result BackupPolicyList, err error)
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
func (client BackupPoliciesClient) 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.
BackupPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupPoliciesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupPoliciesClient) (BackupPolicy, error) }
func (future *BackupPoliciesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupPoliciesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupPoliciesClient) (autorest.Response, error) }
func (future *BackupPoliciesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupPolicy the backup policy.
type BackupPolicy struct { autorest.Response `json:"-"` // BackupPolicyProperties - The properties of the backup policy. *BackupPolicyProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (bp BackupPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupPolicy.
func (bp *BackupPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupPolicy struct.
BackupPolicyCreationType enumerates the values for backup policy creation type.
type BackupPolicyCreationType string
const ( // BackupPolicyCreationTypeBySaaS ... BackupPolicyCreationTypeBySaaS BackupPolicyCreationType = "BySaaS" // BackupPolicyCreationTypeBySSM ... BackupPolicyCreationTypeBySSM BackupPolicyCreationType = "BySSM" )
func PossibleBackupPolicyCreationTypeValues() []BackupPolicyCreationType
PossibleBackupPolicyCreationTypeValues returns an array of possible values for the BackupPolicyCreationType const type.
BackupPolicyList the collection of backup policies.
type BackupPolicyList struct { autorest.Response `json:"-"` // Value - The value. Value *[]BackupPolicy `json:"value,omitempty"` }
BackupPolicyProperties the properties of the backup policy.
type BackupPolicyProperties struct { // VolumeIds - The path IDs of the volumes which are part of the backup policy. VolumeIds *[]string `json:"volumeIds,omitempty"` // NextBackupTime - READ-ONLY; The time of the next backup for the backup policy. NextBackupTime *date.Time `json:"nextBackupTime,omitempty"` // LastBackupTime - READ-ONLY; The time of the last backup for the backup policy. LastBackupTime *date.Time `json:"lastBackupTime,omitempty"` // SchedulesCount - READ-ONLY; The count of schedules the backup policy contains. SchedulesCount *int64 `json:"schedulesCount,omitempty"` // ScheduledBackupStatus - READ-ONLY; Indicates whether at least one of the schedules in the backup policy is active or not. Possible values include: 'ScheduledBackupStatusDisabled', 'ScheduledBackupStatusEnabled' ScheduledBackupStatus ScheduledBackupStatus `json:"scheduledBackupStatus,omitempty"` // BackupPolicyCreationType - READ-ONLY; The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager. Possible values include: 'BackupPolicyCreationTypeBySaaS', 'BackupPolicyCreationTypeBySSM' BackupPolicyCreationType BackupPolicyCreationType `json:"backupPolicyCreationType,omitempty"` // SsmHostName - READ-ONLY; If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager. SsmHostName *string `json:"ssmHostName,omitempty"` }
func (bpp BackupPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupPolicyProperties.
BackupProperties the properties of the backup.
type BackupProperties struct { // CreatedOn - The time when the backup was created. CreatedOn *date.Time `json:"createdOn,omitempty"` // SizeInBytes - The backup size in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` // BackupType - The type of the backup. Possible values include: 'LocalSnapshot', 'CloudSnapshot' BackupType BackupType `json:"backupType,omitempty"` // BackupJobCreationType - The backup job creation type. Possible values include: 'Adhoc', 'BySchedule', 'BySSM' BackupJobCreationType BackupJobCreationType `json:"backupJobCreationType,omitempty"` // BackupPolicyID - The path ID of the backup policy. BackupPolicyID *string `json:"backupPolicyId,omitempty"` // SsmHostName - The StorSimple Snapshot Manager host name. SsmHostName *string `json:"ssmHostName,omitempty"` // Elements - The backup elements. Elements *[]BackupElement `json:"elements,omitempty"` }
BackupSchedule the backup schedule.
type BackupSchedule struct { autorest.Response `json:"-"` // BackupScheduleProperties - The properties of the backup schedule. *BackupScheduleProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (bs BackupSchedule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupSchedule.
func (bs *BackupSchedule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupSchedule struct.
BackupScheduleList the backup schedule list.
type BackupScheduleList struct { autorest.Response `json:"-"` // Value - The value. Value *[]BackupSchedule `json:"value,omitempty"` }
BackupScheduleProperties the properties of the backup schedule.
type BackupScheduleProperties struct { // ScheduleRecurrence - The schedule recurrence. ScheduleRecurrence *ScheduleRecurrence `json:"scheduleRecurrence,omitempty"` // BackupType - The type of backup which needs to be taken. Possible values include: 'LocalSnapshot', 'CloudSnapshot' BackupType BackupType `json:"backupType,omitempty"` // RetentionCount - The number of backups to be retained. RetentionCount *int64 `json:"retentionCount,omitempty"` // StartTime - The start time of the schedule. StartTime *date.Time `json:"startTime,omitempty"` // ScheduleStatus - The schedule status. Possible values include: 'ScheduleStatusEnabled', 'ScheduleStatusDisabled' ScheduleStatus ScheduleStatus `json:"scheduleStatus,omitempty"` // LastSuccessfulRun - READ-ONLY; The last successful backup run which was triggered for the schedule. LastSuccessfulRun *date.Time `json:"lastSuccessfulRun,omitempty"` }
func (bsp BackupScheduleProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupScheduleProperties.
BackupSchedulesClient is the client for the BackupSchedules methods of the Storsimple service.
type BackupSchedulesClient struct { BaseClient }
func NewBackupSchedulesClient(subscriptionID string) BackupSchedulesClient
NewBackupSchedulesClient creates an instance of the BackupSchedulesClient client.
func NewBackupSchedulesClientWithBaseURI(baseURI string, subscriptionID string) BackupSchedulesClient
NewBackupSchedulesClientWithBaseURI creates an instance of the BackupSchedulesClient 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 BackupSchedulesClient) CreateOrUpdate(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, parameters BackupSchedule, resourceGroupName string, managerName string) (result BackupSchedulesCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the backup schedule. Parameters: deviceName - the device name backupPolicyName - the backup policy name. backupScheduleName - the backup schedule name. parameters - the backup schedule. resourceGroupName - the resource group name managerName - the manager name
func (client BackupSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, parameters BackupSchedule, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client BackupSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupSchedule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client BackupSchedulesClient) CreateOrUpdateSender(req *http.Request) (future BackupSchedulesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client BackupSchedulesClient) Delete(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string) (result BackupSchedulesDeleteFuture, err error)
Delete deletes the backup schedule. Parameters: deviceName - the device name backupPolicyName - the backup policy name. backupScheduleName - the name the backup schedule. resourceGroupName - the resource group name managerName - the manager name
func (client BackupSchedulesClient) DeletePreparer(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client BackupSchedulesClient) 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 BackupSchedulesClient) DeleteSender(req *http.Request) (future BackupSchedulesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client BackupSchedulesClient) Get(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string) (result BackupSchedule, err error)
Get gets the properties of the specified backup schedule name. Parameters: deviceName - the device name backupPolicyName - the backup policy name. backupScheduleName - the name of the backup schedule to be fetched resourceGroupName - the resource group name managerName - the manager name
func (client BackupSchedulesClient) GetPreparer(ctx context.Context, deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client BackupSchedulesClient) GetResponder(resp *http.Response) (result BackupSchedule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client BackupSchedulesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client BackupSchedulesClient) ListByBackupPolicy(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (result BackupScheduleList, err error)
ListByBackupPolicy gets all the backup schedules in a backup policy. Parameters: deviceName - the device name backupPolicyName - the backup policy name. resourceGroupName - the resource group name managerName - the manager name
func (client BackupSchedulesClient) ListByBackupPolicyPreparer(ctx context.Context, deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByBackupPolicyPreparer prepares the ListByBackupPolicy request.
func (client BackupSchedulesClient) ListByBackupPolicyResponder(resp *http.Response) (result BackupScheduleList, err error)
ListByBackupPolicyResponder handles the response to the ListByBackupPolicy request. The method always closes the http.Response Body.
func (client BackupSchedulesClient) ListByBackupPolicySender(req *http.Request) (*http.Response, error)
ListByBackupPolicySender sends the ListByBackupPolicy request. The method will close the http.Response Body if it receives an error.
BackupSchedulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupSchedulesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupSchedulesClient) (BackupSchedule, error) }
func (future *BackupSchedulesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupSchedulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupSchedulesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BackupSchedulesClient) (autorest.Response, error) }
func (future *BackupSchedulesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupStatus enumerates the values for backup status.
type BackupStatus string
const ( // BackupStatusDisabled ... BackupStatusDisabled BackupStatus = "Disabled" // BackupStatusEnabled ... BackupStatusEnabled BackupStatus = "Enabled" )
func PossibleBackupStatusValues() []BackupStatus
PossibleBackupStatusValues returns an array of possible values for the BackupStatus const type.
BackupType enumerates the values for backup type.
type BackupType string
const ( // CloudSnapshot ... CloudSnapshot BackupType = "CloudSnapshot" // LocalSnapshot ... LocalSnapshot BackupType = "LocalSnapshot" )
func PossibleBackupTypeValues() []BackupType
PossibleBackupTypeValues returns an array of possible values for the BackupType const type.
BackupsClient is the client for the Backups methods of the Storsimple service.
type BackupsClient struct { BaseClient }
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, backupElementName string, parameters CloneRequest, resourceGroupName string, managerName string) (result BackupsCloneFuture, err error)
Clone clones the backup element as a new volume. Parameters: deviceName - the device name backupName - the backup name. backupElementName - the backup element name. parameters - the clone request object. resourceGroupName - the resource group name managerName - the manager name
func (client BackupsClient) ClonePreparer(ctx context.Context, deviceName string, backupName string, backupElementName string, parameters 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, filter string) (result BackupListPage, err error)
ListByDevice retrieves all the backups in a device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options
func (client BackupsClient) ListByDeviceComplete(ctx context.Context, deviceName string, resourceGroupName string, managerName string, 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, 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.
func (client BackupsClient) ListByDeviceSender(req *http.Request) (*http.Response, error)
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
func (client BackupsClient) Restore(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string) (result BackupsRestoreFuture, err error)
Restore restores the backup on the device. Parameters: deviceName - the device name backupName - the backupSet name resourceGroupName - the resource group name managerName - the manager name
func (client BackupsClient) RestorePreparer(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string) (*http.Request, error)
RestorePreparer prepares the Restore request.
func (client BackupsClient) RestoreResponder(resp *http.Response) (result autorest.Response, err error)
RestoreResponder handles the response to the Restore request. The method always closes the http.Response Body.
func (client BackupsClient) RestoreSender(req *http.Request) (future BackupsRestoreFuture, err error)
RestoreSender sends the Restore request. The method will close the http.Response Body if it receives an error.
BackupsCloneFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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) }
func (future *BackupsCloneFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupsDeleteFuture 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) }
func (future *BackupsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BackupsRestoreFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BackupsRestoreFuture 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) }
func (future *BackupsRestoreFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BandwidthRateSettingProperties the properties of the bandwidth setting.
type BandwidthRateSettingProperties struct { // Schedules - The schedules. Schedules *[]BandwidthSchedule `json:"schedules,omitempty"` // VolumeCount - READ-ONLY; The number of volumes that uses the bandwidth setting. VolumeCount *int32 `json:"volumeCount,omitempty"` }
func (brsp BandwidthRateSettingProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BandwidthRateSettingProperties.
BandwidthSchedule the schedule for bandwidth setting.
type BandwidthSchedule struct { // Start - The start time of the schedule. Start *Time `json:"start,omitempty"` // Stop - The stop time of the schedule. Stop *Time `json:"stop,omitempty"` // RateInMbps - The rate in Mbps. RateInMbps *int32 `json:"rateInMbps,omitempty"` // Days - The days of the week when this schedule is applicable. Days *[]DayOfWeek `json:"days,omitempty"` }
BandwidthSetting the bandwidth setting.
type BandwidthSetting struct { autorest.Response `json:"-"` // BandwidthRateSettingProperties - The properties of the bandwidth setting. *BandwidthRateSettingProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (bs BandwidthSetting) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BandwidthSetting.
func (bs *BandwidthSetting) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BandwidthSetting struct.
BandwidthSettingList the collection of bandwidth setting entities.
type BandwidthSettingList struct { autorest.Response `json:"-"` // Value - The value. Value *[]BandwidthSetting `json:"value,omitempty"` }
BandwidthSettingsClient is the client for the BandwidthSettings methods of the Storsimple service.
type BandwidthSettingsClient struct { BaseClient }
func NewBandwidthSettingsClient(subscriptionID string) BandwidthSettingsClient
NewBandwidthSettingsClient creates an instance of the BandwidthSettingsClient client.
func NewBandwidthSettingsClientWithBaseURI(baseURI string, subscriptionID string) BandwidthSettingsClient
NewBandwidthSettingsClientWithBaseURI creates an instance of the BandwidthSettingsClient 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 BandwidthSettingsClient) CreateOrUpdate(ctx context.Context, bandwidthSettingName string, parameters BandwidthSetting, resourceGroupName string, managerName string) (result BandwidthSettingsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the bandwidth setting Parameters: bandwidthSettingName - the bandwidth setting name. parameters - the bandwidth setting to be added or updated. resourceGroupName - the resource group name managerName - the manager name
func (client BandwidthSettingsClient) CreateOrUpdatePreparer(ctx context.Context, bandwidthSettingName string, parameters BandwidthSetting, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client BandwidthSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result BandwidthSetting, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client BandwidthSettingsClient) CreateOrUpdateSender(req *http.Request) (future BandwidthSettingsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client BandwidthSettingsClient) Delete(ctx context.Context, bandwidthSettingName string, resourceGroupName string, managerName string) (result BandwidthSettingsDeleteFuture, err error)
Delete deletes the bandwidth setting Parameters: bandwidthSettingName - the name of the bandwidth setting. resourceGroupName - the resource group name managerName - the manager name
func (client BandwidthSettingsClient) DeletePreparer(ctx context.Context, bandwidthSettingName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client BandwidthSettingsClient) 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 BandwidthSettingsClient) DeleteSender(req *http.Request) (future BandwidthSettingsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client BandwidthSettingsClient) Get(ctx context.Context, bandwidthSettingName string, resourceGroupName string, managerName string) (result BandwidthSetting, err error)
Get returns the properties of the specified bandwidth setting name. Parameters: bandwidthSettingName - the name of bandwidth setting to be fetched. resourceGroupName - the resource group name managerName - the manager name
func (client BandwidthSettingsClient) GetPreparer(ctx context.Context, bandwidthSettingName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client BandwidthSettingsClient) GetResponder(resp *http.Response) (result BandwidthSetting, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client BandwidthSettingsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client BandwidthSettingsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string) (result BandwidthSettingList, err error)
ListByManager retrieves all the bandwidth setting in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client BandwidthSettingsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
func (client BandwidthSettingsClient) ListByManagerResponder(resp *http.Response) (result BandwidthSettingList, err error)
ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.
func (client BandwidthSettingsClient) 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.
BandwidthSettingsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BandwidthSettingsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BandwidthSettingsClient) (BandwidthSetting, error) }
func (future *BandwidthSettingsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BandwidthSettingsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type BandwidthSettingsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(BandwidthSettingsClient) (autorest.Response, error) }
func (future *BandwidthSettingsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
BaseClient is the base client for Storsimple.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
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).
BaseModel represents the base class for all other ARM object models
type BaseModel struct { // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (bm BaseModel) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BaseModel.
ChapSettings the Challenge-Handshake Authentication Protocol (CHAP) settings.
type ChapSettings struct { // InitiatorUser - The CHAP initiator user. InitiatorUser *string `json:"initiatorUser,omitempty"` // InitiatorSecret - The CHAP initiator secret. InitiatorSecret *AsymmetricEncryptedSecret `json:"initiatorSecret,omitempty"` // TargetUser - The CHAP target user. TargetUser *string `json:"targetUser,omitempty"` // TargetSecret - The target secret. TargetSecret *AsymmetricEncryptedSecret `json:"targetSecret,omitempty"` }
ClearAlertRequest the request for clearing the alert
type ClearAlertRequest struct { // ResolutionMessage - The resolution message while clearing the alert ResolutionMessage *string `json:"resolutionMessage,omitempty"` // Alerts - The list of alert IDs to be cleared Alerts *[]string `json:"alerts,omitempty"` }
CloneRequest the clone job request.
type CloneRequest struct { // TargetDeviceID - The path ID of the device which will act as the clone target. TargetDeviceID *string `json:"targetDeviceId,omitempty"` // TargetVolumeName - The name of the new volume which will be created and the backup will be cloned into. TargetVolumeName *string `json:"targetVolumeName,omitempty"` // TargetAccessControlRecordIds - The list of path IDs of the access control records to be associated to the new cloned volume. TargetAccessControlRecordIds *[]string `json:"targetAccessControlRecordIds,omitempty"` // BackupElement - The backup element that is cloned. BackupElement *BackupElement `json:"backupElement,omitempty"` }
CloudAppliance the cloud appliance.
type CloudAppliance struct { // Name - The name. Name *string `json:"name,omitempty"` // VnetName - The name of the virtual network. VnetName *string `json:"vnetName,omitempty"` // VnetRegion - The virtual network region. VnetRegion *string `json:"vnetRegion,omitempty"` // IsVnetDNSConfigured - Indicates whether virtual network used is configured with DNS or not. IsVnetDNSConfigured *bool `json:"isVnetDnsConfigured,omitempty"` // IsVnetExpressConfigured - Indicates whether virtual network used is configured with express route or not. IsVnetExpressConfigured *bool `json:"isVnetExpressConfigured,omitempty"` // SubnetName - The name of the subnet. SubnetName *string `json:"subnetName,omitempty"` // StorageAccountName - The name of the storage account. StorageAccountName *string `json:"storageAccountName,omitempty"` // StorageAccountType - The type of the storage account. StorageAccountType *string `json:"storageAccountType,omitempty"` // VMType - The type of the virtual machine. VMType *string `json:"vmType,omitempty"` // VMImageName - The name of the virtual machine image. VMImageName *string `json:"vmImageName,omitempty"` // ModelNumber - The model number. ModelNumber *string `json:"modelNumber,omitempty"` }
CloudApplianceConfiguration the cloud appliance configuration
type CloudApplianceConfiguration struct { // CloudApplianceConfigurationProperties - The properties. *CloudApplianceConfigurationProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (cac CloudApplianceConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CloudApplianceConfiguration.
func (cac *CloudApplianceConfiguration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CloudApplianceConfiguration struct.
CloudApplianceConfigurationList the cloud appliance configuration list
type CloudApplianceConfigurationList struct { autorest.Response `json:"-"` // Value - The value. Value *[]CloudApplianceConfiguration `json:"value,omitempty"` }
CloudApplianceConfigurationProperties the properties of cloud appliance configuration.
type CloudApplianceConfigurationProperties struct { // ModelNumber - The model number. ModelNumber *string `json:"modelNumber,omitempty"` // CloudPlatform - The cloud platform. CloudPlatform *string `json:"cloudPlatform,omitempty"` // AcsConfiguration - The ACS configuration. AcsConfiguration *AcsConfiguration `json:"acsConfiguration,omitempty"` // SupportedStorageAccountTypes - The supported storage account types. SupportedStorageAccountTypes *[]string `json:"supportedStorageAccountTypes,omitempty"` // SupportedRegions - The supported regions. SupportedRegions *[]string `json:"supportedRegions,omitempty"` // SupportedVMTypes - The supported virtual machine types. SupportedVMTypes *[]string `json:"supportedVmTypes,omitempty"` // SupportedVMImages - The supported virtual machine images. SupportedVMImages *[]VMImage `json:"supportedVmImages,omitempty"` }
CloudApplianceSettings the cloud appliance settings.
type CloudApplianceSettings struct { // ServiceDataEncryptionKey - The service data encryption key (encrypted with DAK). ServiceDataEncryptionKey *AsymmetricEncryptedSecret `json:"serviceDataEncryptionKey,omitempty"` // ChannelIntegrityKey - The channel integrity key (encrypted with DAK). ChannelIntegrityKey *AsymmetricEncryptedSecret `json:"channelIntegrityKey,omitempty"` }
CloudAppliancesClient is the client for the CloudAppliances methods of the Storsimple service.
type CloudAppliancesClient struct { BaseClient }
func NewCloudAppliancesClient(subscriptionID string) CloudAppliancesClient
NewCloudAppliancesClient creates an instance of the CloudAppliancesClient client.
func NewCloudAppliancesClientWithBaseURI(baseURI string, subscriptionID string) CloudAppliancesClient
NewCloudAppliancesClientWithBaseURI creates an instance of the CloudAppliancesClient 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 CloudAppliancesClient) ListSupportedConfigurations(ctx context.Context, resourceGroupName string, managerName string) (result CloudApplianceConfigurationList, err error)
ListSupportedConfigurations lists supported cloud appliance models and supported configurations. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client CloudAppliancesClient) ListSupportedConfigurationsPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListSupportedConfigurationsPreparer prepares the ListSupportedConfigurations request.
func (client CloudAppliancesClient) ListSupportedConfigurationsResponder(resp *http.Response) (result CloudApplianceConfigurationList, err error)
ListSupportedConfigurationsResponder handles the response to the ListSupportedConfigurations request. The method always closes the http.Response Body.
func (client CloudAppliancesClient) ListSupportedConfigurationsSender(req *http.Request) (*http.Response, error)
ListSupportedConfigurationsSender sends the ListSupportedConfigurations request. The method will close the http.Response Body if it receives an error.
func (client CloudAppliancesClient) Provision(ctx context.Context, parameters CloudAppliance, resourceGroupName string, managerName string) (result CloudAppliancesProvisionFuture, err error)
Provision provisions cloud appliance. Parameters: parameters - the cloud appliance resourceGroupName - the resource group name managerName - the manager name
func (client CloudAppliancesClient) ProvisionPreparer(ctx context.Context, parameters CloudAppliance, resourceGroupName string, managerName string) (*http.Request, error)
ProvisionPreparer prepares the Provision request.
func (client CloudAppliancesClient) ProvisionResponder(resp *http.Response) (result autorest.Response, err error)
ProvisionResponder handles the response to the Provision request. The method always closes the http.Response Body.
func (client CloudAppliancesClient) ProvisionSender(req *http.Request) (future CloudAppliancesProvisionFuture, err error)
ProvisionSender sends the Provision request. The method will close the http.Response Body if it receives an error.
CloudAppliancesProvisionFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type CloudAppliancesProvisionFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(CloudAppliancesClient) (autorest.Response, error) }
func (future *CloudAppliancesProvisionFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ConfigureDeviceRequest the mandatory device configuration request.
type ConfigureDeviceRequest struct { // ConfigureDeviceRequestProperties - The properties of the configure device request. *ConfigureDeviceRequestProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (cdr ConfigureDeviceRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigureDeviceRequest.
func (cdr *ConfigureDeviceRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConfigureDeviceRequest struct.
ConfigureDeviceRequestProperties the properties of the configure device request.
type ConfigureDeviceRequestProperties struct { // FriendlyName - The friendly name for the device. FriendlyName *string `json:"friendlyName,omitempty"` // CurrentDeviceName - The current name of the device. CurrentDeviceName *string `json:"currentDeviceName,omitempty"` // TimeZone - The device time zone. For eg: "Pacific Standard Time" TimeZone *string `json:"timeZone,omitempty"` // DNSSettings - The secondary DNS Settings of the device. DNSSettings *SecondaryDNSSettings `json:"dnsSettings,omitempty"` // NetworkInterfaceData0Settings - The 'Data 0' network interface card settings. NetworkInterfaceData0Settings *NetworkInterfaceData0Settings `json:"networkInterfaceData0Settings,omitempty"` }
ControllerID enumerates the values for controller id.
type ControllerID string
const ( // ControllerIDController0 ... ControllerIDController0 ControllerID = "Controller0" // ControllerIDController1 ... ControllerIDController1 ControllerID = "Controller1" // ControllerIDNone ... ControllerIDNone ControllerID = "None" // ControllerIDUnknown ... ControllerIDUnknown ControllerID = "Unknown" )
func PossibleControllerIDValues() []ControllerID
PossibleControllerIDValues returns an array of possible values for the ControllerID const type.
ControllerPowerStateAction enumerates the values for controller power state action.
type ControllerPowerStateAction string
const ( // Restart ... Restart ControllerPowerStateAction = "Restart" // Shutdown ... Shutdown ControllerPowerStateAction = "Shutdown" // Start ... Start ControllerPowerStateAction = "Start" )
func PossibleControllerPowerStateActionValues() []ControllerPowerStateAction
PossibleControllerPowerStateActionValues returns an array of possible values for the ControllerPowerStateAction const type.
ControllerPowerStateChangeRequest the controller power state change request.
type ControllerPowerStateChangeRequest struct { // ControllerPowerStateChangeRequestProperties - The properties of the controller power state change request. *ControllerPowerStateChangeRequestProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (cpscr ControllerPowerStateChangeRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ControllerPowerStateChangeRequest.
func (cpscr *ControllerPowerStateChangeRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ControllerPowerStateChangeRequest struct.
ControllerPowerStateChangeRequestProperties the properties of the controller power state change request.
type ControllerPowerStateChangeRequestProperties struct { // Action - The power state that the request is expecting for the controller of the device. Possible values include: 'Start', 'Restart', 'Shutdown' Action ControllerPowerStateAction `json:"action,omitempty"` // ActiveController - The active controller that the request is expecting on the device. Possible values include: 'ControllerIDUnknown', 'ControllerIDNone', 'ControllerIDController0', 'ControllerIDController1' ActiveController ControllerID `json:"activeController,omitempty"` // Controller0State - The controller 0's status that the request is expecting on the device. Possible values include: 'ControllerStatusNotPresent', 'ControllerStatusPoweredOff', 'ControllerStatusOk', 'ControllerStatusRecovering', 'ControllerStatusWarning', 'ControllerStatusFailure' Controller0State ControllerStatus `json:"controller0State,omitempty"` // Controller1State - The controller 1's status that the request is expecting on the device. Possible values include: 'ControllerStatusNotPresent', 'ControllerStatusPoweredOff', 'ControllerStatusOk', 'ControllerStatusRecovering', 'ControllerStatusWarning', 'ControllerStatusFailure' Controller1State ControllerStatus `json:"controller1State,omitempty"` }
ControllerStatus enumerates the values for controller status.
type ControllerStatus string
const ( // ControllerStatusFailure ... ControllerStatusFailure ControllerStatus = "Failure" // ControllerStatusNotPresent ... ControllerStatusNotPresent ControllerStatus = "NotPresent" // ControllerStatusOk ... ControllerStatusOk ControllerStatus = "Ok" // ControllerStatusPoweredOff ... ControllerStatusPoweredOff ControllerStatus = "PoweredOff" // ControllerStatusRecovering ... ControllerStatusRecovering ControllerStatus = "Recovering" // ControllerStatusWarning ... ControllerStatusWarning ControllerStatus = "Warning" )
func PossibleControllerStatusValues() []ControllerStatus
PossibleControllerStatusValues returns an array of possible values for the ControllerStatus const type.
DNSSettings the DNS(Domain Name Server) settings of a device.
type DNSSettings struct { // PrimaryDNSServer - The primary IPv4 DNS server for the device PrimaryDNSServer *string `json:"primaryDnsServer,omitempty"` // PrimaryIpv6DNSServer - The primary IPv6 DNS server for the device PrimaryIpv6DNSServer *string `json:"primaryIpv6DnsServer,omitempty"` // SecondaryDNSServers - The secondary IPv4 DNS server for the device SecondaryDNSServers *[]string `json:"secondaryDnsServers,omitempty"` // SecondaryIpv6DNSServers - The secondary IPv6 DNS server for the device SecondaryIpv6DNSServers *[]string `json:"secondaryIpv6DnsServers,omitempty"` }
DataStatistics the additional details related to the data related statistics of a job. Currently applicable only for Backup, Clone and Restore jobs.
type DataStatistics struct { // TotalData - The total bytes of data to be processed, as part of the job. TotalData *int64 `json:"totalData,omitempty"` // ProcessedData - The number of bytes of data processed till now, as part of the job. ProcessedData *int64 `json:"processedData,omitempty"` // CloudData - The number of bytes of data written to cloud, as part of the job. CloudData *int64 `json:"cloudData,omitempty"` // Throughput - The average throughput of data processed(bytes/sec), as part of the job. Throughput *int64 `json:"throughput,omitempty"` }
DayOfWeek enumerates the values for day of week.
type DayOfWeek string
const ( // Friday ... Friday DayOfWeek = "Friday" // Monday ... Monday DayOfWeek = "Monday" // Saturday ... Saturday DayOfWeek = "Saturday" // Sunday ... Sunday DayOfWeek = "Sunday" // Thursday ... Thursday DayOfWeek = "Thursday" // Tuesday ... Tuesday DayOfWeek = "Tuesday" // Wednesday ... Wednesday DayOfWeek = "Wednesday" )
func PossibleDayOfWeekValues() []DayOfWeek
PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.
Device the StorSimple device.
type Device struct { autorest.Response `json:"-"` // DeviceProperties - The properties of the StorSimple device. *DeviceProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (d Device) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Device.
func (d *Device) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Device struct.
DeviceConfigurationStatus enumerates the values for device configuration status.
type DeviceConfigurationStatus string
const ( // Complete ... Complete DeviceConfigurationStatus = "Complete" // Pending ... Pending DeviceConfigurationStatus = "Pending" )
func PossibleDeviceConfigurationStatusValues() []DeviceConfigurationStatus
PossibleDeviceConfigurationStatusValues returns an array of possible values for the DeviceConfigurationStatus const type.
DeviceDetails the additional device details regarding the end point count and volume container count.
type DeviceDetails struct { // EndpointCount - The total number of endpoints that are currently on the device ( i.e. number of volumes). EndpointCount *int32 `json:"endpointCount,omitempty"` // VolumeContainerCount - The total number of volume containers on the device. VolumeContainerCount *int32 `json:"volumeContainerCount,omitempty"` }
DeviceList the collection of devices.
type DeviceList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Device `json:"value,omitempty"` }
DevicePatch the device patch.
type DevicePatch struct { // DevicePatchProperties - The properties of the device patch. *DevicePatchProperties `json:"properties,omitempty"` }
func (dp DevicePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DevicePatch.
func (dp *DevicePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DevicePatch struct.
DevicePatchProperties the properties of the device patch.
type DevicePatchProperties struct { // DeviceDescription - Short description given for the device DeviceDescription *string `json:"deviceDescription,omitempty"` }
DeviceProperties the properties of the StorSimple device.
type DeviceProperties struct { // FriendlyName - The friendly name of the device. FriendlyName *string `json:"friendlyName,omitempty"` // ActivationTime - The UTC time at which the device was activated ActivationTime *date.Time `json:"activationTime,omitempty"` // Culture - The language culture setting on the device. For eg: "en-US" Culture *string `json:"culture,omitempty"` // DeviceDescription - The device description. DeviceDescription *string `json:"deviceDescription,omitempty"` // DeviceSoftwareVersion - The version number of the software running on the device. DeviceSoftwareVersion *string `json:"deviceSoftwareVersion,omitempty"` // FriendlySoftwareName - The friendly name of the software running on the device. FriendlySoftwareName *string `json:"friendlySoftwareName,omitempty"` // DeviceConfigurationStatus - The current configuration status of the device. Possible values include: 'Complete', 'Pending' DeviceConfigurationStatus DeviceConfigurationStatus `json:"deviceConfigurationStatus,omitempty"` // TargetIqn - The target IQN. TargetIqn *string `json:"targetIqn,omitempty"` // ModelDescription - The device model. ModelDescription *string `json:"modelDescription,omitempty"` // Status - The current status of the device. Possible values include: 'Unknown', 'Online', 'Offline', 'Deactivated', 'RequiresAttention', 'MaintenanceMode', 'Creating', 'Provisioning', 'Deactivating', 'Deleted', 'ReadyToSetup' Status DeviceStatus `json:"status,omitempty"` // SerialNumber - The serial number. SerialNumber *string `json:"serialNumber,omitempty"` // DeviceType - The type of the device. Possible values include: 'DeviceTypeInvalid', 'DeviceTypeSeries8000VirtualAppliance', 'DeviceTypeSeries8000PhysicalAppliance' DeviceType DeviceType `json:"deviceType,omitempty"` // ActiveController - The identifier of the active controller of the device. Possible values include: 'ControllerIDUnknown', 'ControllerIDNone', 'ControllerIDController0', 'ControllerIDController1' ActiveController ControllerID `json:"activeController,omitempty"` // FriendlySoftwareVersion - The device friendly software version. FriendlySoftwareVersion *string `json:"friendlySoftwareVersion,omitempty"` // AvailableLocalStorageInBytes - The storage in bytes that is available locally on the device. AvailableLocalStorageInBytes *int64 `json:"availableLocalStorageInBytes,omitempty"` // AvailableTieredStorageInBytes - The storage in bytes that is available on the device for tiered volumes. AvailableTieredStorageInBytes *int64 `json:"availableTieredStorageInBytes,omitempty"` // ProvisionedTieredStorageInBytes - The storage in bytes that has been provisioned on the device for tiered volumes. ProvisionedTieredStorageInBytes *int64 `json:"provisionedTieredStorageInBytes,omitempty"` // ProvisionedLocalStorageInBytes - The storage in bytes used for locally pinned volumes on the device (including additional local reservation). ProvisionedLocalStorageInBytes *int64 `json:"provisionedLocalStorageInBytes,omitempty"` // ProvisionedVolumeSizeInBytes - Total capacity in bytes of tiered and locally pinned volumes on the device ProvisionedVolumeSizeInBytes *int64 `json:"provisionedVolumeSizeInBytes,omitempty"` // UsingStorageInBytes - The storage in bytes that is currently being used on the device, including both local and cloud. UsingStorageInBytes *int64 `json:"usingStorageInBytes,omitempty"` // TotalTieredStorageInBytes - The total tiered storage available on the device in bytes. TotalTieredStorageInBytes *int64 `json:"totalTieredStorageInBytes,omitempty"` // AgentGroupVersion - The device agent group version. AgentGroupVersion *int32 `json:"agentGroupVersion,omitempty"` // NetworkInterfaceCardCount - The number of network interface cards NetworkInterfaceCardCount *int32 `json:"networkInterfaceCardCount,omitempty"` // DeviceLocation - The location of the virtual appliance. DeviceLocation *string `json:"deviceLocation,omitempty"` // VirtualMachineAPIType - READ-ONLY; The virtual machine API type. Possible values include: 'Classic', 'Arm' VirtualMachineAPIType VirtualMachineAPIType `json:"virtualMachineApiType,omitempty"` // Details - The additional device details regarding the end point count and volume container count. Details *DeviceDetails `json:"details,omitempty"` // RolloverDetails - The additional device details for the service data encryption key rollover. RolloverDetails *DeviceRolloverDetails `json:"rolloverDetails,omitempty"` }
func (dp DeviceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DeviceProperties.
DeviceRolloverDetails the additional device details for the service data encryption key rollover.
type DeviceRolloverDetails struct { // AuthorizationEligibility - The eligibility status of device for service data encryption key rollover. Possible values include: 'InEligible', 'Eligible' AuthorizationEligibility AuthorizationEligibility `json:"authorizationEligibility,omitempty"` // AuthorizationStatus - The authorization status of the device for service data encryption key rollover. Possible values include: 'AuthorizationStatusDisabled', 'AuthorizationStatusEnabled' AuthorizationStatus AuthorizationStatus `json:"authorizationStatus,omitempty"` // InEligibilityReason - The reason for inEligibility of device, in case it's not eligible for service data encryption key rollover. Possible values include: 'DeviceNotOnline', 'NotSupportedAppliance', 'RolloverPending' InEligibilityReason InEligibilityCategory `json:"inEligibilityReason,omitempty"` }
DeviceSettingsClient is the client for the DeviceSettings methods of the Storsimple service.
type DeviceSettingsClient struct { BaseClient }
func NewDeviceSettingsClient(subscriptionID string) DeviceSettingsClient
NewDeviceSettingsClient creates an instance of the DeviceSettingsClient client.
func NewDeviceSettingsClientWithBaseURI(baseURI string, subscriptionID string) DeviceSettingsClient
NewDeviceSettingsClientWithBaseURI creates an instance of the DeviceSettingsClient 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 DeviceSettingsClient) CreateOrUpdateAlertSettings(ctx context.Context, deviceName string, parameters AlertSettings, resourceGroupName string, managerName string) (result DeviceSettingsCreateOrUpdateAlertSettingsFuture, err error)
CreateOrUpdateAlertSettings creates or updates the alert settings of the specified device. Parameters: deviceName - the device name parameters - the alert settings to be added or updated. resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) CreateOrUpdateAlertSettingsPreparer(ctx context.Context, deviceName string, parameters AlertSettings, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdateAlertSettingsPreparer prepares the CreateOrUpdateAlertSettings request.
func (client DeviceSettingsClient) 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 DeviceSettingsClient) CreateOrUpdateAlertSettingsSender(req *http.Request) (future DeviceSettingsCreateOrUpdateAlertSettingsFuture, err error)
CreateOrUpdateAlertSettingsSender sends the CreateOrUpdateAlertSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) CreateOrUpdateTimeSettings(ctx context.Context, deviceName string, parameters TimeSettings, resourceGroupName string, managerName string) (result DeviceSettingsCreateOrUpdateTimeSettingsFuture, err error)
CreateOrUpdateTimeSettings creates or updates the time settings of the specified device. Parameters: deviceName - the device name parameters - the time settings to be added or updated. resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) CreateOrUpdateTimeSettingsPreparer(ctx context.Context, deviceName string, parameters TimeSettings, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdateTimeSettingsPreparer prepares the CreateOrUpdateTimeSettings request.
func (client DeviceSettingsClient) CreateOrUpdateTimeSettingsResponder(resp *http.Response) (result TimeSettings, err error)
CreateOrUpdateTimeSettingsResponder handles the response to the CreateOrUpdateTimeSettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) CreateOrUpdateTimeSettingsSender(req *http.Request) (future DeviceSettingsCreateOrUpdateTimeSettingsFuture, err error)
CreateOrUpdateTimeSettingsSender sends the CreateOrUpdateTimeSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) GetAlertSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result AlertSettings, err error)
GetAlertSettings gets the alert settings of the specified device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) GetAlertSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetAlertSettingsPreparer prepares the GetAlertSettings request.
func (client DeviceSettingsClient) GetAlertSettingsResponder(resp *http.Response) (result AlertSettings, err error)
GetAlertSettingsResponder handles the response to the GetAlertSettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) GetAlertSettingsSender(req *http.Request) (*http.Response, error)
GetAlertSettingsSender sends the GetAlertSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) GetNetworkSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result NetworkSettings, err error)
GetNetworkSettings gets the network settings of the specified device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) GetNetworkSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetNetworkSettingsPreparer prepares the GetNetworkSettings request.
func (client DeviceSettingsClient) GetNetworkSettingsResponder(resp *http.Response) (result NetworkSettings, err error)
GetNetworkSettingsResponder handles the response to the GetNetworkSettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) GetNetworkSettingsSender(req *http.Request) (*http.Response, error)
GetNetworkSettingsSender sends the GetNetworkSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) GetSecuritySettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result SecuritySettings, err error)
GetSecuritySettings returns the Security properties of the specified device name. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) GetSecuritySettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetSecuritySettingsPreparer prepares the GetSecuritySettings request.
func (client DeviceSettingsClient) GetSecuritySettingsResponder(resp *http.Response) (result SecuritySettings, err error)
GetSecuritySettingsResponder handles the response to the GetSecuritySettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) GetSecuritySettingsSender(req *http.Request) (*http.Response, error)
GetSecuritySettingsSender sends the GetSecuritySettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) GetTimeSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result TimeSettings, err error)
GetTimeSettings gets the time settings of the specified device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) GetTimeSettingsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetTimeSettingsPreparer prepares the GetTimeSettings request.
func (client DeviceSettingsClient) GetTimeSettingsResponder(resp *http.Response) (result TimeSettings, err error)
GetTimeSettingsResponder handles the response to the GetTimeSettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) GetTimeSettingsSender(req *http.Request) (*http.Response, error)
GetTimeSettingsSender sends the GetTimeSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) SyncRemotemanagementCertificate(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DeviceSettingsSyncRemotemanagementCertificateFuture, err error)
SyncRemotemanagementCertificate sync Remote management Certificate between appliance and Service Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) SyncRemotemanagementCertificatePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
SyncRemotemanagementCertificatePreparer prepares the SyncRemotemanagementCertificate request.
func (client DeviceSettingsClient) SyncRemotemanagementCertificateResponder(resp *http.Response) (result autorest.Response, err error)
SyncRemotemanagementCertificateResponder handles the response to the SyncRemotemanagementCertificate request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) SyncRemotemanagementCertificateSender(req *http.Request) (future DeviceSettingsSyncRemotemanagementCertificateFuture, err error)
SyncRemotemanagementCertificateSender sends the SyncRemotemanagementCertificate request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) UpdateNetworkSettings(ctx context.Context, deviceName string, parameters NetworkSettingsPatch, resourceGroupName string, managerName string) (result DeviceSettingsUpdateNetworkSettingsFuture, err error)
UpdateNetworkSettings updates the network settings on the specified device. Parameters: deviceName - the device name parameters - the network settings to be updated. resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) UpdateNetworkSettingsPreparer(ctx context.Context, deviceName string, parameters NetworkSettingsPatch, resourceGroupName string, managerName string) (*http.Request, error)
UpdateNetworkSettingsPreparer prepares the UpdateNetworkSettings request.
func (client DeviceSettingsClient) UpdateNetworkSettingsResponder(resp *http.Response) (result NetworkSettings, err error)
UpdateNetworkSettingsResponder handles the response to the UpdateNetworkSettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) UpdateNetworkSettingsSender(req *http.Request) (future DeviceSettingsUpdateNetworkSettingsFuture, err error)
UpdateNetworkSettingsSender sends the UpdateNetworkSettings request. The method will close the http.Response Body if it receives an error.
func (client DeviceSettingsClient) UpdateSecuritySettings(ctx context.Context, deviceName string, parameters SecuritySettingsPatch, resourceGroupName string, managerName string) (result DeviceSettingsUpdateSecuritySettingsFuture, err error)
UpdateSecuritySettings patch Security properties of the specified device name. Parameters: deviceName - the device name parameters - the security settings properties to be patched. resourceGroupName - the resource group name managerName - the manager name
func (client DeviceSettingsClient) UpdateSecuritySettingsPreparer(ctx context.Context, deviceName string, parameters SecuritySettingsPatch, resourceGroupName string, managerName string) (*http.Request, error)
UpdateSecuritySettingsPreparer prepares the UpdateSecuritySettings request.
func (client DeviceSettingsClient) UpdateSecuritySettingsResponder(resp *http.Response) (result SecuritySettings, err error)
UpdateSecuritySettingsResponder handles the response to the UpdateSecuritySettings request. The method always closes the http.Response Body.
func (client DeviceSettingsClient) UpdateSecuritySettingsSender(req *http.Request) (future DeviceSettingsUpdateSecuritySettingsFuture, err error)
UpdateSecuritySettingsSender sends the UpdateSecuritySettings request. The method will close the http.Response Body if it receives an error.
DeviceSettingsCreateOrUpdateAlertSettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DeviceSettingsCreateOrUpdateAlertSettingsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeviceSettingsClient) (AlertSettings, error) }
func (future *DeviceSettingsCreateOrUpdateAlertSettingsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DeviceSettingsCreateOrUpdateTimeSettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DeviceSettingsCreateOrUpdateTimeSettingsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeviceSettingsClient) (TimeSettings, error) }
func (future *DeviceSettingsCreateOrUpdateTimeSettingsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DeviceSettingsSyncRemotemanagementCertificateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DeviceSettingsSyncRemotemanagementCertificateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeviceSettingsClient) (autorest.Response, error) }
func (future *DeviceSettingsSyncRemotemanagementCertificateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DeviceSettingsUpdateNetworkSettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DeviceSettingsUpdateNetworkSettingsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeviceSettingsClient) (NetworkSettings, error) }
func (future *DeviceSettingsUpdateNetworkSettingsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DeviceSettingsUpdateSecuritySettingsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DeviceSettingsUpdateSecuritySettingsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DeviceSettingsClient) (SecuritySettings, error) }
func (future *DeviceSettingsUpdateSecuritySettingsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DeviceStatus enumerates the values for device status.
type DeviceStatus string
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.
type DeviceType string
const ( // DeviceTypeInvalid ... DeviceTypeInvalid DeviceType = "Invalid" // DeviceTypeSeries8000PhysicalAppliance ... DeviceTypeSeries8000PhysicalAppliance DeviceType = "Series8000PhysicalAppliance" // DeviceTypeSeries8000VirtualAppliance ... DeviceTypeSeries8000VirtualAppliance DeviceType = "Series8000VirtualAppliance" )
func PossibleDeviceTypeValues() []DeviceType
PossibleDeviceTypeValues returns an array of possible values for the DeviceType const type.
DevicesClient is the client for the Devices methods of the Storsimple service.
type DevicesClient struct { BaseClient }
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) AuthorizeForServiceEncryptionKeyRollover(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result autorest.Response, err error)
AuthorizeForServiceEncryptionKeyRollover authorizes the specified device for service data encryption key rollover. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) AuthorizeForServiceEncryptionKeyRolloverPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
AuthorizeForServiceEncryptionKeyRolloverPreparer prepares the AuthorizeForServiceEncryptionKeyRollover request.
func (client DevicesClient) AuthorizeForServiceEncryptionKeyRolloverResponder(resp *http.Response) (result autorest.Response, err error)
AuthorizeForServiceEncryptionKeyRolloverResponder handles the response to the AuthorizeForServiceEncryptionKeyRollover request. The method always closes the http.Response Body.
func (client DevicesClient) AuthorizeForServiceEncryptionKeyRolloverSender(req *http.Request) (*http.Response, error)
AuthorizeForServiceEncryptionKeyRolloverSender sends the AuthorizeForServiceEncryptionKeyRollover request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) Configure(ctx context.Context, parameters ConfigureDeviceRequest, resourceGroupName string, managerName string) (result DevicesConfigureFuture, err error)
Configure complete minimal setup before using the device. Parameters: parameters - the minimal properties to configure a device. resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) ConfigurePreparer(ctx context.Context, parameters ConfigureDeviceRequest, resourceGroupName string, managerName string) (*http.Request, error)
ConfigurePreparer prepares the Configure request.
func (client DevicesClient) ConfigureResponder(resp *http.Response) (result autorest.Response, err error)
ConfigureResponder handles the response to the Configure request. The method always closes the http.Response Body.
func (client DevicesClient) ConfigureSender(req *http.Request) (future DevicesConfigureFuture, err error)
ConfigureSender sends the Configure 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) Failover(ctx context.Context, sourceDeviceName string, parameters FailoverRequest, resourceGroupName string, managerName string) (result DevicesFailoverFuture, err error)
Failover failovers a set of volume containers from a specified source device to a target device. Parameters: sourceDeviceName - the source device name on which failover is performed. parameters - failoverRequest containing the source device and the list of volume containers to be failed over. resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) FailoverPreparer(ctx context.Context, sourceDeviceName string, parameters 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. 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 or $expand=rolloverdetails to populate additional fields related to the service data encryption key rollover on device
func (client DevicesClient) GetPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DevicesClient) GetResponder(resp *http.Response) (result Device, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DevicesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (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.
func (client DevicesClient) GetUpdateSummarySender(req *http.Request) (*http.Response, error)
GetUpdateSummarySender sends the GetUpdateSummary request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) InstallUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result DevicesInstallUpdatesFuture, err error)
InstallUpdates downloads and 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 returns the list of devices for the specified manager. Parameters: resourceGroupName - the resource group name managerName - the manager name expand - specify $expand=details to populate additional fields related to the device or $expand=rolloverdetails to populate additional fields related to the service data encryption key rollover on 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.
func (client DevicesClient) ListByManagerSender(req *http.Request) (*http.Response, error)
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) ListFailoverSets(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result FailoverSetsList, err error)
ListFailoverSets returns all failover sets for a given device and their eligibility for participating in a failover. A failover set refers to a set of volume containers that need to be failed-over as a single unit to maintain data integrity. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) ListFailoverSetsPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListFailoverSetsPreparer prepares the ListFailoverSets request.
func (client DevicesClient) ListFailoverSetsResponder(resp *http.Response) (result FailoverSetsList, err error)
ListFailoverSetsResponder handles the response to the ListFailoverSets request. The method always closes the http.Response Body.
func (client DevicesClient) ListFailoverSetsSender(req *http.Request) (*http.Response, error)
ListFailoverSetsSender sends the ListFailoverSets request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) ListFailoverTargets(ctx context.Context, sourceDeviceName string, parameters ListFailoverTargetsRequest, resourceGroupName string, managerName string) (result FailoverTargetsList, err error)
ListFailoverTargets given a list of volume containers to be failed over from a source device, this method returns the eligibility result, as a failover target, for all devices under that resource. Parameters: sourceDeviceName - the source device name on which failover is performed. parameters - listFailoverTargetsRequest containing the list of volume containers to be failed over. resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) ListFailoverTargetsPreparer(ctx context.Context, sourceDeviceName string, parameters ListFailoverTargetsRequest, resourceGroupName string, managerName string) (*http.Request, error)
ListFailoverTargetsPreparer prepares the ListFailoverTargets request.
func (client DevicesClient) ListFailoverTargetsResponder(resp *http.Response) (result FailoverTargetsList, err error)
ListFailoverTargetsResponder handles the response to the ListFailoverTargets request. The method always closes the http.Response Body.
func (client DevicesClient) ListFailoverTargetsSender(req *http.Request) (*http.Response, error)
ListFailoverTargetsSender sends the ListFailoverTargets 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 gets the metric definitions for the specified device. Parameters: deviceName - the device name 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.
func (client DevicesClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)
ListMetricDefinitionSender sends the ListMetricDefinition request. The method will close the http.Response Body if it receives an error.
func (client DevicesClient) ListMetrics(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)
ListMetrics gets the metrics for the specified device. Parameters: deviceName - the device name 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.
func (client DevicesClient) ListMetricsSender(req *http.Request) (*http.Response, error)
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
func (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.
func (client DevicesClient) Update(ctx context.Context, deviceName string, parameters DevicePatch, resourceGroupName string, managerName string) (result Device, err error)
Update patches the device. Parameters: deviceName - the device name parameters - patch representation of the device. resourceGroupName - the resource group name managerName - the manager name
func (client DevicesClient) UpdatePreparer(ctx context.Context, deviceName string, parameters DevicePatch, resourceGroupName string, managerName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client DevicesClient) UpdateResponder(resp *http.Response) (result Device, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client DevicesClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
DevicesConfigureFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DevicesConfigureFuture 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) }
func (future *DevicesConfigureFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DevicesDeactivateFuture 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) }
func (future *DevicesDeactivateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DevicesDeleteFuture 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) }
func (future *DevicesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DevicesFailoverFuture 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) }
func (future *DevicesFailoverFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DevicesInstallUpdatesFuture 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) }
func (future *DevicesInstallUpdatesFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DevicesScanForUpdatesFuture 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) }
func (future *DevicesScanForUpdatesFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DimensionFilter the dimension filter.
type DimensionFilter struct { // Name - Specifies the dimension name. E.g., NetworkInterface. Valid values are the ones specified in the field "dimensions" in the ListMetricDefinitions call. Only 'Equality' operator is supported for this property. Name *string `json:"name,omitempty"` // Values - Specifies the dimension value. E.g., Data0. Valid values are the ones returned in the field "dimensions" in the ListMetricDefinitions call. Only 'Equality' operator is supported for this property. Values *string `json:"values,omitempty"` }
EncryptionAlgorithm enumerates the values for encryption algorithm.
type EncryptionAlgorithm string
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.
EncryptionSettings the encryption settings.
type EncryptionSettings struct { autorest.Response `json:"-"` // EncryptionSettingsProperties - The properties of the encryption settings. *EncryptionSettingsProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
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.
EncryptionSettingsProperties the properties of encryption settings.
type EncryptionSettingsProperties struct { // EncryptionStatus - The encryption status to indicates if encryption is enabled or not. Possible values include: 'EncryptionStatusEnabled', 'EncryptionStatusDisabled' EncryptionStatus EncryptionStatus `json:"encryptionStatus,omitempty"` // KeyRolloverStatus - The key rollover status to indicates if key rollover is required or not. If secret's encryption has been upgraded, then it requires key rollover. Possible values include: 'Required', 'NotRequired' KeyRolloverStatus KeyRolloverStatus `json:"keyRolloverStatus,omitempty"` }
EncryptionStatus enumerates the values for encryption status.
type EncryptionStatus string
const ( // EncryptionStatusDisabled ... EncryptionStatusDisabled EncryptionStatus = "Disabled" // EncryptionStatusEnabled ... EncryptionStatusEnabled EncryptionStatus = "Enabled" )
func PossibleEncryptionStatusValues() []EncryptionStatus
PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type.
FailoverRequest the request object for triggering a failover of volume containers, from a source device to a target device.
type FailoverRequest struct { // TargetDeviceID - The ARM path ID of the device which will act as the failover target. TargetDeviceID *string `json:"targetDeviceId,omitempty"` // VolumeContainers - The list of path IDs of the volume containers which needs to be failed-over to the target device. VolumeContainers *[]string `json:"volumeContainers,omitempty"` }
FailoverSet the failover set on a device.
type FailoverSet struct { // VolumeContainers - The list of meta data of volume containers, which are part of the failover set. VolumeContainers *[]VolumeContainerFailoverMetadata `json:"volumeContainers,omitempty"` // EligibilityResult - The eligibility result of the failover set, for failover. EligibilityResult *FailoverSetEligibilityResult `json:"eligibilityResult,omitempty"` }
FailoverSetEligibilityResult the eligibility result of failover set, for failover.
type FailoverSetEligibilityResult struct { // IsEligibleForFailover - Represents if this failover set is eligible for failover or not. IsEligibleForFailover *bool `json:"isEligibleForFailover,omitempty"` // ErrorMessage - The error message, if the failover set is not eligible for failover. ErrorMessage *string `json:"errorMessage,omitempty"` }
FailoverSetsList the list of failover sets.
type FailoverSetsList struct { autorest.Response `json:"-"` // Value - The list of failover sets. Value *[]FailoverSet `json:"value,omitempty"` }
FailoverTarget represents the eligibility of a device as a failover target device.
type FailoverTarget struct { // DeviceID - The path ID of the device. DeviceID *string `json:"deviceId,omitempty"` // DeviceStatus - The status of the device. Possible values include: 'Unknown', 'Online', 'Offline', 'Deactivated', 'RequiresAttention', 'MaintenanceMode', 'Creating', 'Provisioning', 'Deactivating', 'Deleted', 'ReadyToSetup' DeviceStatus DeviceStatus `json:"deviceStatus,omitempty"` // ModelDescription - The model number of the device. ModelDescription *string `json:"modelDescription,omitempty"` // DeviceSoftwareVersion - The software version of the device. DeviceSoftwareVersion *string `json:"deviceSoftwareVersion,omitempty"` // DataContainersCount - The count of data containers on the device. DataContainersCount *int32 `json:"dataContainersCount,omitempty"` // VolumesCount - The count of volumes on the device. VolumesCount *int32 `json:"volumesCount,omitempty"` // AvailableLocalStorageInBytes - The amount of free local storage available on the device in bytes. AvailableLocalStorageInBytes *int64 `json:"availableLocalStorageInBytes,omitempty"` // AvailableTieredStorageInBytes - The amount of free tiered storage available for the device in bytes. AvailableTieredStorageInBytes *int64 `json:"availableTieredStorageInBytes,omitempty"` // DeviceLocation - The geo location (applicable only for cloud appliances) of the device. DeviceLocation *string `json:"deviceLocation,omitempty"` // FriendlyDeviceSoftwareVersion - The friendly name for the current version of software on the device. FriendlyDeviceSoftwareVersion *string `json:"friendlyDeviceSoftwareVersion,omitempty"` // EligibilityResult - The eligibility result of the device, as a failover target device. EligibilityResult *TargetEligibilityResult `json:"eligibilityResult,omitempty"` }
FailoverTargetsList the list of all devices in a resource and their eligibility status as a failover target device.
type FailoverTargetsList struct { autorest.Response `json:"-"` // Value - The list of all the failover targets. Value *[]FailoverTarget `json:"value,omitempty"` }
Feature the feature.
type Feature struct { // Name - The name of the feature. Name *string `json:"name,omitempty"` // Status - The feature support status. Possible values include: 'NotAvailable', 'UnsupportedDeviceVersion', 'Supported' Status FeatureSupportStatus `json:"status,omitempty"` }
FeatureFilter the OData filter to be used for features.
type FeatureFilter struct { // DeviceID - Specifies the device ID for which the features are required. Only 'Equality' operator is supported for this property. DeviceID *string `json:"deviceId,omitempty"` }
FeatureList the collections of features.
type FeatureList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Feature `json:"value,omitempty"` }
FeatureSupportStatus enumerates the values for feature support status.
type FeatureSupportStatus string
const ( // NotAvailable ... NotAvailable FeatureSupportStatus = "NotAvailable" // Supported ... Supported FeatureSupportStatus = "Supported" // UnsupportedDeviceVersion ... UnsupportedDeviceVersion FeatureSupportStatus = "UnsupportedDeviceVersion" )
func PossibleFeatureSupportStatusValues() []FeatureSupportStatus
PossibleFeatureSupportStatusValues returns an array of possible values for the FeatureSupportStatus const type.
HardwareComponent the hardware component.
type HardwareComponent struct { // ComponentID - The component ID. ComponentID *string `json:"componentId,omitempty"` // DisplayName - The display name of the hardware component. DisplayName *string `json:"displayName,omitempty"` // Status - The status of the hardware component. Possible values include: 'HardwareComponentStatusUnknown', 'HardwareComponentStatusNotPresent', 'HardwareComponentStatusPoweredOff', 'HardwareComponentStatusOk', 'HardwareComponentStatusRecovering', 'HardwareComponentStatusWarning', 'HardwareComponentStatusFailure' Status HardwareComponentStatus `json:"status,omitempty"` // StatusDisplayName - The display name of the status of hardware component. StatusDisplayName *string `json:"statusDisplayName,omitempty"` }
HardwareComponentGroup the hardware component group.
type HardwareComponentGroup struct { // HardwareComponentGroupProperties - The properties of the hardware component group. *HardwareComponentGroupProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (hcg HardwareComponentGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HardwareComponentGroup.
func (hcg *HardwareComponentGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for HardwareComponentGroup struct.
HardwareComponentGroupList the collection of hardware component groups.
type HardwareComponentGroupList struct { autorest.Response `json:"-"` // Value - The value. Value *[]HardwareComponentGroup `json:"value,omitempty"` }
HardwareComponentGroupProperties the properties of hardware component group.
type HardwareComponentGroupProperties struct { // DisplayName - The display name the hardware component group. DisplayName *string `json:"displayName,omitempty"` // LastUpdatedTime - The last updated time. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` // Components - The list of hardware components. Components *[]HardwareComponent `json:"components,omitempty"` }
HardwareComponentGroupsChangeControllerPowerStateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type HardwareComponentGroupsChangeControllerPowerStateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(HardwareComponentGroupsClient) (autorest.Response, error) }
func (future *HardwareComponentGroupsChangeControllerPowerStateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
HardwareComponentGroupsClient is the client for the HardwareComponentGroups methods of the Storsimple service.
type HardwareComponentGroupsClient struct { BaseClient }
func NewHardwareComponentGroupsClient(subscriptionID string) HardwareComponentGroupsClient
NewHardwareComponentGroupsClient creates an instance of the HardwareComponentGroupsClient client.
func NewHardwareComponentGroupsClientWithBaseURI(baseURI string, subscriptionID string) HardwareComponentGroupsClient
NewHardwareComponentGroupsClientWithBaseURI creates an instance of the HardwareComponentGroupsClient 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 HardwareComponentGroupsClient) ChangeControllerPowerState(ctx context.Context, deviceName string, hardwareComponentGroupName string, parameters ControllerPowerStateChangeRequest, resourceGroupName string, managerName string) (result HardwareComponentGroupsChangeControllerPowerStateFuture, err error)
ChangeControllerPowerState changes the power state of the controller. Parameters: deviceName - the device name hardwareComponentGroupName - the hardware component group name. parameters - the controller power state change request. resourceGroupName - the resource group name managerName - the manager name
func (client HardwareComponentGroupsClient) ChangeControllerPowerStatePreparer(ctx context.Context, deviceName string, hardwareComponentGroupName string, parameters ControllerPowerStateChangeRequest, resourceGroupName string, managerName string) (*http.Request, error)
ChangeControllerPowerStatePreparer prepares the ChangeControllerPowerState request.
func (client HardwareComponentGroupsClient) ChangeControllerPowerStateResponder(resp *http.Response) (result autorest.Response, err error)
ChangeControllerPowerStateResponder handles the response to the ChangeControllerPowerState request. The method always closes the http.Response Body.
func (client HardwareComponentGroupsClient) ChangeControllerPowerStateSender(req *http.Request) (future HardwareComponentGroupsChangeControllerPowerStateFuture, err error)
ChangeControllerPowerStateSender sends the ChangeControllerPowerState request. The method will close the http.Response Body if it receives an error.
func (client HardwareComponentGroupsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result HardwareComponentGroupList, err error)
ListByDevice lists the hardware component groups at device-level. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client HardwareComponentGroupsClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
func (client HardwareComponentGroupsClient) ListByDeviceResponder(resp *http.Response) (result HardwareComponentGroupList, err error)
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
func (client HardwareComponentGroupsClient) 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.
HardwareComponentStatus enumerates the values for hardware component status.
type HardwareComponentStatus string
const ( // HardwareComponentStatusFailure ... HardwareComponentStatusFailure HardwareComponentStatus = "Failure" // HardwareComponentStatusNotPresent ... HardwareComponentStatusNotPresent HardwareComponentStatus = "NotPresent" // HardwareComponentStatusOk ... HardwareComponentStatusOk HardwareComponentStatus = "Ok" // HardwareComponentStatusPoweredOff ... HardwareComponentStatusPoweredOff HardwareComponentStatus = "PoweredOff" // HardwareComponentStatusRecovering ... HardwareComponentStatusRecovering HardwareComponentStatus = "Recovering" // HardwareComponentStatusUnknown ... HardwareComponentStatusUnknown HardwareComponentStatus = "Unknown" // HardwareComponentStatusWarning ... HardwareComponentStatusWarning HardwareComponentStatus = "Warning" )
func PossibleHardwareComponentStatusValues() []HardwareComponentStatus
PossibleHardwareComponentStatusValues returns an array of possible values for the HardwareComponentStatus const type.
ISCSIAndCloudStatus enumerates the values for iscsi and cloud status.
type ISCSIAndCloudStatus string
const ( // ISCSIAndCloudStatusCloudEnabled ... ISCSIAndCloudStatusCloudEnabled ISCSIAndCloudStatus = "CloudEnabled" // ISCSIAndCloudStatusDisabled ... ISCSIAndCloudStatusDisabled ISCSIAndCloudStatus = "Disabled" // ISCSIAndCloudStatusIscsiAndCloudEnabled ... ISCSIAndCloudStatusIscsiAndCloudEnabled ISCSIAndCloudStatus = "IscsiAndCloudEnabled" // ISCSIAndCloudStatusIscsiEnabled ... ISCSIAndCloudStatusIscsiEnabled ISCSIAndCloudStatus = "IscsiEnabled" )
func PossibleISCSIAndCloudStatusValues() []ISCSIAndCloudStatus
PossibleISCSIAndCloudStatusValues returns an array of possible values for the ISCSIAndCloudStatus const type.
InEligibilityCategory enumerates the values for in eligibility category.
type InEligibilityCategory string
const ( // DeviceNotOnline ... DeviceNotOnline InEligibilityCategory = "DeviceNotOnline" // NotSupportedAppliance ... NotSupportedAppliance InEligibilityCategory = "NotSupportedAppliance" // RolloverPending ... RolloverPending InEligibilityCategory = "RolloverPending" )
func PossibleInEligibilityCategoryValues() []InEligibilityCategory
PossibleInEligibilityCategoryValues returns an array of possible values for the InEligibilityCategory const type.
Job the job.
type Job struct { autorest.Response `json:"-"` // Status - The current status of the job. Possible values include: 'Running', 'Succeeded', 'Failed', 'Canceled' 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, if any, for the job. Error *JobErrorDetails `json:"error,omitempty"` // JobProperties - The properties of the job. *JobProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (j Job) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Job.
func (j *Job) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Job struct.
JobErrorDetails the job error details. Contains list of job error items.
type JobErrorDetails struct { // ErrorDetails - The error details. ErrorDetails *[]JobErrorItem `json:"errorDetails,omitempty"` // Code - The error code intended for programmatic access. Code *string `json:"code,omitempty"` // Message - The error message intended to describe the error in detail. Message *string `json:"message,omitempty"` }
JobErrorItem the job error items.
type JobErrorItem struct { // Recommendations - The recommended actions. Recommendations *[]string `json:"recommendations,omitempty"` // Code - The error code intended for programmatic access. Code *string `json:"code,omitempty"` // Message - The error message intended to describe the error in detail. Message *string `json:"message,omitempty"` }
JobFilter the OData filter to be used for jobs.
type JobFilter struct { // Status - Specifies the status of the jobs to be filtered. For e.g., "Running", "Succeeded", "Failed" or "Canceled". Only 'Equality' operator is supported for this property. Status *string `json:"status,omitempty"` // JobType - Specifies the type of the jobs to be filtered. For e.g., "ScheduledBackup", "ManualBackup", "RestoreBackup", "CloneVolume", "FailoverVolumeContainers", "CreateLocallyPinnedVolume", "ModifyVolume", "InstallUpdates", "SupportPackageLogs", or "CreateCloudAppliance". Only 'Equality' operator can be used for this property. JobType *string `json:"jobType,omitempty"` // StartTime - Specifies the start time of the jobs to be filtered. Only 'Greater Than or Equal To' and 'Lesser Than or Equal To' operators are supported for this property. StartTime *date.Time `json:"startTime,omitempty"` }
JobList the collection of jobs.
type JobList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Job `json:"value,omitempty"` // NextLink - The NextLink. NextLink *string `json:"nextLink,omitempty"` }
func (jl JobList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
JobListIterator provides access to a complete listing of Job values.
type JobListIterator struct {
// contains filtered or unexported fields
}
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.
JobListPage contains a page of Job values.
type JobListPage struct {
// contains filtered or unexported fields
}
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.
JobProperties the properties of the job.
type JobProperties struct { // JobType - The type of the job. Possible values include: 'ScheduledBackup', 'ManualBackup', 'RestoreBackup', 'CloneVolume', 'FailoverVolumeContainers', 'CreateLocallyPinnedVolume', 'ModifyVolume', 'InstallUpdates', 'SupportPackageLogs', 'CreateCloudAppliance' JobType JobType `json:"jobType,omitempty"` // DataStats - The data statistics properties of the job. DataStats *DataStatistics `json:"dataStats,omitempty"` // EntityLabel - The entity identifier for which the job ran. EntityLabel *string `json:"entityLabel,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 ran. DeviceID *string `json:"deviceId,omitempty"` // IsCancellable - Represents whether the job is cancellable or not. IsCancellable *bool `json:"isCancellable,omitempty"` // BackupType - The backup type (CloudSnapshot | LocalSnapshot). Applicable only for backup jobs. Possible values include: 'LocalSnapshot', 'CloudSnapshot' BackupType BackupType `json:"backupType,omitempty"` // SourceDeviceID - The source device ID 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"` }
JobStage the details about the specific stage of a job.
type JobStage struct { // Message - The message of the job stage. Message *string `json:"message,omitempty"` // StageStatus - The stage status. Possible values include: 'Running', 'Succeeded', 'Failed', 'Canceled' 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"` }
JobStatus enumerates the values for job status.
type JobStatus string
const ( // Canceled ... Canceled JobStatus = "Canceled" // Failed ... Failed JobStatus = "Failed" // Running ... Running JobStatus = "Running" // Succeeded ... Succeeded JobStatus = "Succeeded" )
func PossibleJobStatusValues() []JobStatus
PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
JobType enumerates the values for job type.
type JobType string
const ( // CloneVolume ... CloneVolume JobType = "CloneVolume" // CreateCloudAppliance ... CreateCloudAppliance JobType = "CreateCloudAppliance" // CreateLocallyPinnedVolume ... CreateLocallyPinnedVolume JobType = "CreateLocallyPinnedVolume" // FailoverVolumeContainers ... FailoverVolumeContainers JobType = "FailoverVolumeContainers" // InstallUpdates ... InstallUpdates JobType = "InstallUpdates" // ManualBackup ... ManualBackup JobType = "ManualBackup" // ModifyVolume ... ModifyVolume JobType = "ModifyVolume" // RestoreBackup ... RestoreBackup JobType = "RestoreBackup" // ScheduledBackup ... ScheduledBackup JobType = "ScheduledBackup" // SupportPackageLogs ... SupportPackageLogs JobType = "SupportPackageLogs" )
func PossibleJobTypeValues() []JobType
PossibleJobTypeValues returns an array of possible values for the JobType const type.
JobsCancelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type JobsCancelFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(JobsClient) (autorest.Response, error) }
func (future *JobsCancelFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
JobsClient is the client for the Jobs methods of the Storsimple service.
type JobsClient struct { BaseClient }
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) Cancel(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string) (result JobsCancelFuture, err error)
Cancel cancels a job on the device. Parameters: deviceName - the device name jobName - the jobName. resourceGroupName - the resource group name managerName - the manager name
func (client JobsClient) CancelPreparer(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string) (*http.Request, error)
CancelPreparer prepares the Cancel request.
func (client JobsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.
func (client JobsClient) CancelSender(req *http.Request) (future JobsCancelFuture, err error)
CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.
func (client JobsClient) Get(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string) (result Job, err error)
Get gets the details 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.
func (client JobsClient) GetResponder(resp *http.Response) (result Job, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client JobsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client JobsClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string, filter string) (result JobListPage, err error)
ListByDevice gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs is returned. 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.
func (client JobsClient) ListByDeviceResponder(resp *http.Response) (result JobList, err error)
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
func (client JobsClient) ListByDeviceSender(req *http.Request) (*http.Response, error)
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
func (client JobsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string, filter string) (result JobListPage, err error)
ListByManager gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of jobs is returned. 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.
func (client JobsClient) ListByManagerResponder(resp *http.Response) (result JobList, err error)
ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.
func (client JobsClient) ListByManagerSender(req *http.Request) (*http.Response, error)
ListByManagerSender sends the ListByManager request. The method will close the http.Response Body if it receives an error.
Key the key.
type Key struct { autorest.Response `json:"-"` // ActivationKey - The activation key for the device. ActivationKey *string `json:"activationKey,omitempty"` }
KeyRolloverStatus enumerates the values for key rollover status.
type KeyRolloverStatus string
const ( // NotRequired ... NotRequired KeyRolloverStatus = "NotRequired" // Required ... Required KeyRolloverStatus = "Required" )
func PossibleKeyRolloverStatusValues() []KeyRolloverStatus
PossibleKeyRolloverStatusValues returns an array of possible values for the KeyRolloverStatus const type.
Kind enumerates the values for kind.
type Kind string
const ( // Series8000 ... Series8000 Kind = "Series8000" )
func PossibleKindValues() []Kind
PossibleKindValues returns an array of possible values for the Kind const type.
ListFailoverTargetsRequest the request object for fetching the list of failover targets (eligible devices for failover).
type ListFailoverTargetsRequest struct { // VolumeContainers - The list of path IDs of the volume containers that needs to be failed-over, for which we want to fetch the eligible targets. VolumeContainers *[]string `json:"volumeContainers,omitempty"` }
Manager the StorSimple Manager.
type Manager struct { autorest.Response `json:"-"` // ManagerProperties - The properties of the StorSimple Manager. *ManagerProperties `json:"properties,omitempty"` // Etag - The 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 resource. Location *string `json:"location,omitempty"` // Tags - The tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (mVar Manager) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Manager.
func (mVar *Manager) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Manager struct.
ManagerExtendedInfo the extended info of the manager.
type ManagerExtendedInfo struct { autorest.Response `json:"-"` // ManagerExtendedInfoProperties - The extended info properties. *ManagerExtendedInfoProperties `json:"properties,omitempty"` // Etag - The etag of the resource. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
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.
ManagerExtendedInfoProperties the properties of the manager extended info.
type ManagerExtendedInfoProperties struct { // Version - The version of the extended info 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 keys. None - if Key is saved in plain text format. Algorithm name - if key is encrypted Algorithm *string `json:"algorithm,omitempty"` }
ManagerIntrinsicSettings intrinsic settings which refers to the type of the StorSimple Manager.
type ManagerIntrinsicSettings struct { // Type - The type of StorSimple Manager. Possible values include: 'GardaV1', 'HelsinkiV1' Type ManagerType `json:"type,omitempty"` }
ManagerList the list of StorSimple Managers.
type ManagerList struct { autorest.Response `json:"-"` // Value - The list of StorSimple managers. Value *[]Manager `json:"value,omitempty"` }
ManagerPatch the StorSimple Manager patch.
type ManagerPatch struct { // Tags - The tags attached to the Manager. Tags map[string]*string `json:"tags"` }
func (mp ManagerPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagerPatch.
ManagerProperties the properties of the StorSimple Manager.
type ManagerProperties struct { // CisIntrinsicSettings - Represents the type of StorSimple Manager. CisIntrinsicSettings *ManagerIntrinsicSettings `json:"cisIntrinsicSettings,omitempty"` // Sku - Specifies the Sku. Sku *ManagerSku `json:"sku,omitempty"` // ProvisioningState - 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"` }
ManagerSku the Sku.
type ManagerSku struct { // Name - Refers to the sku name which should be "Standard" Name *string `json:"name,omitempty"` }
ManagerType enumerates the values for manager type.
type ManagerType string
const ( // GardaV1 ... GardaV1 ManagerType = "GardaV1" // HelsinkiV1 ... HelsinkiV1 ManagerType = "HelsinkiV1" )
func PossibleManagerTypeValues() []ManagerType
PossibleManagerTypeValues returns an array of possible values for the ManagerType const type.
ManagersClient is the client for the Managers methods of the Storsimple service.
type ManagersClient struct { BaseClient }
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, parameters ManagerExtendedInfo, resourceGroupName string, managerName string) (result ManagerExtendedInfo, err error)
CreateExtendedInfo creates the extended info of the manager. Parameters: parameters - the manager extended information. resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) CreateExtendedInfoPreparer(ctx context.Context, parameters 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.
func (client ManagersClient) CreateExtendedInfoSender(req *http.Request) (*http.Response, error)
CreateExtendedInfoSender sends the CreateExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) CreateOrUpdate(ctx context.Context, parameters Manager, resourceGroupName string, managerName string) (result Manager, err error)
CreateOrUpdate creates or updates the manager. Parameters: parameters - the manager. resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) CreateOrUpdatePreparer(ctx context.Context, parameters 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.
func (client ManagersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (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.
func (client ManagersClient) DeleteExtendedInfoSender(req *http.Request) (*http.Response, error)
DeleteExtendedInfoSender sends the DeleteExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (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.
func (client ManagersClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (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) GetActivationKey(ctx context.Context, resourceGroupName string, managerName string) (result Key, err error)
GetActivationKey returns the activation key of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) GetActivationKeyPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetActivationKeyPreparer prepares the GetActivationKey request.
func (client ManagersClient) GetActivationKeyResponder(resp *http.Response) (result Key, err error)
GetActivationKeyResponder handles the response to the GetActivationKey request. The method always closes the http.Response Body.
func (client ManagersClient) GetActivationKeySender(req *http.Request) (*http.Response, error)
GetActivationKeySender sends the GetActivationKey request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) GetDevicePublicEncryptionKey(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result PublicKey, err error)
GetDevicePublicEncryptionKey returns the public encryption key of the device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) GetDevicePublicEncryptionKeyPreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
GetDevicePublicEncryptionKeyPreparer prepares the GetDevicePublicEncryptionKey request.
func (client ManagersClient) GetDevicePublicEncryptionKeyResponder(resp *http.Response) (result PublicKey, err error)
GetDevicePublicEncryptionKeyResponder handles the response to the GetDevicePublicEncryptionKey request. The method always closes the http.Response Body.
func (client ManagersClient) GetDevicePublicEncryptionKeySender(req *http.Request) (*http.Response, error)
GetDevicePublicEncryptionKeySender sends the GetDevicePublicEncryptionKey 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.
func (client ManagersClient) GetExtendedInfoSender(req *http.Request) (*http.Response, error)
GetExtendedInfoSender sends the GetExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) GetPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ManagersClient) GetPublicEncryptionKey(ctx context.Context, resourceGroupName string, managerName string) (result SymmetricEncryptedSecret, err error)
GetPublicEncryptionKey returns the symmetric encrypted public encryption key of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) GetPublicEncryptionKeyPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
GetPublicEncryptionKeyPreparer prepares the GetPublicEncryptionKey request.
func (client ManagersClient) GetPublicEncryptionKeyResponder(resp *http.Response) (result SymmetricEncryptedSecret, err error)
GetPublicEncryptionKeyResponder handles the response to the GetPublicEncryptionKey request. The method always closes the http.Response Body.
func (client ManagersClient) GetPublicEncryptionKeySender(req *http.Request) (*http.Response, error)
GetPublicEncryptionKeySender sends the GetPublicEncryptionKey request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) GetResponder(resp *http.Response) (result Manager, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ManagersClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (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.
func (client ManagersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) ListFeatureSupportStatus(ctx context.Context, resourceGroupName string, managerName string, filter string) (result FeatureList, err error)
ListFeatureSupportStatus lists the features and their support status Parameters: resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options
func (client ManagersClient) ListFeatureSupportStatusPreparer(ctx context.Context, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListFeatureSupportStatusPreparer prepares the ListFeatureSupportStatus request.
func (client ManagersClient) ListFeatureSupportStatusResponder(resp *http.Response) (result FeatureList, err error)
ListFeatureSupportStatusResponder handles the response to the ListFeatureSupportStatus request. The method always closes the http.Response Body.
func (client ManagersClient) ListFeatureSupportStatusSender(req *http.Request) (*http.Response, error)
ListFeatureSupportStatusSender sends the ListFeatureSupportStatus 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 gets the metric definitions for the specified 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.
func (client ManagersClient) ListMetricDefinitionSender(req *http.Request) (*http.Response, error)
ListMetricDefinitionSender sends the ListMetricDefinition request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) ListMetrics(ctx context.Context, resourceGroupName string, managerName string, filter string) (result MetricList, err error)
ListMetrics gets the metrics for the specified manager. 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.
func (client ManagersClient) ListMetricsSender(req *http.Request) (*http.Response, error)
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) ListPreparer(ctx context.Context) (*http.Request, 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.
func (client ManagersClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) RegenerateActivationKey(ctx context.Context, resourceGroupName string, managerName string) (result Key, err error)
RegenerateActivationKey re-generates and returns the activation key of the manager. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client ManagersClient) RegenerateActivationKeyPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
RegenerateActivationKeyPreparer prepares the RegenerateActivationKey request.
func (client ManagersClient) RegenerateActivationKeyResponder(resp *http.Response) (result Key, err error)
RegenerateActivationKeyResponder handles the response to the RegenerateActivationKey request. The method always closes the http.Response Body.
func (client ManagersClient) RegenerateActivationKeySender(req *http.Request) (*http.Response, error)
RegenerateActivationKeySender sends the RegenerateActivationKey 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, parameters ManagerExtendedInfo, resourceGroupName string, managerName string, ifMatch string) (result ManagerExtendedInfo, err error)
UpdateExtendedInfo updates the extended info of the manager. Parameters: parameters - 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, parameters 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.
func (client ManagersClient) UpdateExtendedInfoSender(req *http.Request) (*http.Response, error)
UpdateExtendedInfoSender sends the UpdateExtendedInfo request. The method will close the http.Response Body if it receives an error.
func (client ManagersClient) UpdatePreparer(ctx context.Context, parameters ManagerPatch, resourceGroupName string, managerName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ManagersClient) UpdateResponder(resp *http.Response) (result Manager, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ManagersClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
MetricAggregationType enumerates the values for metric aggregation type.
type MetricAggregationType string
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.
MetricAvailablity the metric availability.
type MetricAvailablity struct { // TimeGrain - 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"` }
MetricData the metric data.
type MetricData struct { // TimeStamp - The time stamp of the metric data. TimeStamp *date.Time `json:"timeStamp,omitempty"` // Sum - The sum of all samples at the time stamp. Sum *float64 `json:"sum,omitempty"` // Count - The count of all samples at the time stamp. Count *int32 `json:"count,omitempty"` // Average - The average of all samples at the time stamp. Average *float64 `json:"average,omitempty"` // Minimum - The minimum of all samples at the time stamp. Minimum *float64 `json:"minimum,omitempty"` // Maximum - The maximum of all samples at the time stamp. Maximum *float64 `json:"maximum,omitempty"` }
MetricDefinition the monitoring metric definition.
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 available metric dimensions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // Category - The category of the metric. Category *string `json:"category,omitempty"` // Type - The metric definition type. Type *string `json:"type,omitempty"` }
MetricDefinitionList the list of metric definitions.
type MetricDefinitionList struct { autorest.Response `json:"-"` // Value - The list of metric definitions. Value *[]MetricDefinition `json:"value,omitempty"` }
MetricDimension the metric dimension. It indicates the source of the metric.
type MetricDimension struct { // Name - The metric dimension name. Name *string `json:"name,omitempty"` // Value - The metric dimension values. Value *string `json:"value,omitempty"` }
MetricFilter the OData filters to be used for metrics.
type MetricFilter struct { // Name - Specifies the metric name filter specifying the name of the metric to be filtered on. Only 'Equality' operator is supported for this property. Name *MetricNameFilter `json:"name,omitempty"` // StartTime - Specifies the start time of the time range to be queried. Only 'Greater Than Or Equal To' operator is supported for this property. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Specifies the end time of the time range to be queried. Only 'Less Than Or Equal To' operator is supported for this property. EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - Specifies the time granularity of the metrics to be returned. E.g., "P1D". Valid values are the ones returned as the field "timeGrain" in the ListMetricDefinitions call. Only 'Equality' operator is supported for this property. TimeGrain *string `json:"timeGrain,omitempty"` // Category - Specifies the category of the metrics to be filtered. E.g., "CapacityUtilization". Valid values are the ones returned as the field "category" in the ListMetricDefinitions call. Only 'Equality' operator is supported for this property. Category *string `json:"category,omitempty"` // Dimensions - Specifies the source(the dimension) of the metrics to be filtered. Only 'Equality' operator is supported for this property. Dimensions *DimensionFilter `json:"dimensions,omitempty"` }
MetricList the metric list.
type MetricList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Metrics `json:"value,omitempty"` }
MetricName the metric name.
type MetricName struct { // Value - The metric name. Value *string `json:"value,omitempty"` // LocalizedValue - The localized metric name. LocalizedValue *string `json:"localizedValue,omitempty"` }
MetricNameFilter the metric name filter, specifying the name of the metric to be filtered on.
type MetricNameFilter struct { // Value - Specifies the metric name to be filtered on. E.g., CloudStorageUsed. Valid values are the ones returned in the field "name" in the ListMetricDefinitions call. Only 'Equality' operator is supported for this property. Value *string `json:"value,omitempty"` }
MetricUnit enumerates the values for metric unit.
type MetricUnit string
const ( // Bytes ... Bytes MetricUnit = "Bytes" // BytesPerSecond ... BytesPerSecond MetricUnit = "BytesPerSecond" // Count ... Count MetricUnit = "Count" // CountPerSecond ... CountPerSecond MetricUnit = "CountPerSecond" // Percent ... Percent MetricUnit = "Percent" // Seconds ... Seconds MetricUnit = "Seconds" )
func PossibleMetricUnitValues() []MetricUnit
PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type.
Metrics the monitoring metric.
type Metrics struct { // ResourceID - The ID of metric source. ResourceID *string `json:"resourceId,omitempty"` // StartTime - The start time of the metric data. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - The end time of the metric data. EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - The time granularity of the metric data. TimeGrain *string `json:"timeGrain,omitempty"` // PrimaryAggregation - The metric aggregation type. Possible values include: 'MetricAggregationTypeAverage', 'MetricAggregationTypeLast', 'MetricAggregationTypeMaximum', 'MetricAggregationTypeMinimum', 'MetricAggregationTypeNone', 'MetricAggregationTypeTotal' PrimaryAggregation MetricAggregationType `json:"primaryAggregation,omitempty"` // Name - The name of the metric. Name *MetricName `json:"name,omitempty"` // Dimensions - The metric dimensions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // Unit - The unit of the metric data. Possible values include: 'Bytes', 'BytesPerSecond', 'Count', 'CountPerSecond', 'Percent', 'Seconds' Unit MetricUnit `json:"unit,omitempty"` // Type - The type of the metric data. Type *string `json:"type,omitempty"` // Values - The list of the metric data. Values *[]MetricData `json:"values,omitempty"` }
MonitoringStatus enumerates the values for monitoring status.
type MonitoringStatus string
const ( // MonitoringStatusDisabled ... MonitoringStatusDisabled MonitoringStatus = "Disabled" // MonitoringStatusEnabled ... MonitoringStatusEnabled MonitoringStatus = "Enabled" )
func PossibleMonitoringStatusValues() []MonitoringStatus
PossibleMonitoringStatusValues returns an array of possible values for the MonitoringStatus const type.
NetInterfaceID enumerates the values for net interface id.
type NetInterfaceID string
const ( // NetInterfaceIDData0 ... NetInterfaceIDData0 NetInterfaceID = "Data0" // NetInterfaceIDData1 ... NetInterfaceIDData1 NetInterfaceID = "Data1" // NetInterfaceIDData2 ... NetInterfaceIDData2 NetInterfaceID = "Data2" // NetInterfaceIDData3 ... NetInterfaceIDData3 NetInterfaceID = "Data3" // NetInterfaceIDData4 ... NetInterfaceIDData4 NetInterfaceID = "Data4" // NetInterfaceIDData5 ... NetInterfaceIDData5 NetInterfaceID = "Data5" // NetInterfaceIDInvalid ... NetInterfaceIDInvalid NetInterfaceID = "Invalid" )
func PossibleNetInterfaceIDValues() []NetInterfaceID
PossibleNetInterfaceIDValues returns an array of possible values for the NetInterfaceID const type.
NetInterfaceStatus enumerates the values for net interface status.
type NetInterfaceStatus string
const ( // NetInterfaceStatusDisabled ... NetInterfaceStatusDisabled NetInterfaceStatus = "Disabled" // NetInterfaceStatusEnabled ... NetInterfaceStatusEnabled NetInterfaceStatus = "Enabled" )
func PossibleNetInterfaceStatusValues() []NetInterfaceStatus
PossibleNetInterfaceStatusValues returns an array of possible values for the NetInterfaceStatus const type.
NetworkAdapterList the collection of network adapters on the device.
type NetworkAdapterList struct { // Value - The value. Value *[]NetworkAdapters `json:"value,omitempty"` }
NetworkAdapters represents the network adapter on device.
type NetworkAdapters struct { // InterfaceID - The ID of the network adapter. Possible values include: 'NetInterfaceIDInvalid', 'NetInterfaceIDData0', 'NetInterfaceIDData1', 'NetInterfaceIDData2', 'NetInterfaceIDData3', 'NetInterfaceIDData4', 'NetInterfaceIDData5' InterfaceID NetInterfaceID `json:"interfaceId,omitempty"` // NetInterfaceStatus - Value indicating status of network adapter. Possible values include: 'NetInterfaceStatusEnabled', 'NetInterfaceStatusDisabled' NetInterfaceStatus NetInterfaceStatus `json:"netInterfaceStatus,omitempty"` // IsDefault - Value indicating whether this instance is default. IsDefault *bool `json:"isDefault,omitempty"` // IscsiAndCloudStatus - Value indicating cloud and ISCSI status of network adapter. Possible values include: 'ISCSIAndCloudStatusDisabled', 'ISCSIAndCloudStatusIscsiEnabled', 'ISCSIAndCloudStatusCloudEnabled', 'ISCSIAndCloudStatusIscsiAndCloudEnabled' IscsiAndCloudStatus ISCSIAndCloudStatus `json:"iscsiAndCloudStatus,omitempty"` // Speed - The speed of the network adapter. Speed *int64 `json:"speed,omitempty"` // Mode - The mode of network adapter, either IPv4, IPv6 or both. Possible values include: 'NetworkModeInvalid', 'NetworkModeIPV4', 'NetworkModeIPV6', 'NetworkModeBOTH' Mode NetworkMode `json:"mode,omitempty"` // NicIpv4Settings - The IPv4 configuration of the network adapter. NicIpv4Settings *NicIPv4 `json:"nicIpv4Settings,omitempty"` // NicIpv6Settings - The IPv6 configuration of the network adapter. NicIpv6Settings *NicIPv6 `json:"nicIpv6Settings,omitempty"` }
NetworkInterfaceData0Settings the 'Data 0' network interface card settings.
type NetworkInterfaceData0Settings struct { // ControllerZeroIP - The controller 0's IPv4 address. ControllerZeroIP *string `json:"controllerZeroIp,omitempty"` // ControllerOneIP - The controller 1's IPv4 address. ControllerOneIP *string `json:"controllerOneIp,omitempty"` }
NetworkMode enumerates the values for network mode.
type NetworkMode string
const ( // NetworkModeBOTH ... NetworkModeBOTH NetworkMode = "BOTH" // NetworkModeInvalid ... NetworkModeInvalid NetworkMode = "Invalid" // NetworkModeIPV4 ... NetworkModeIPV4 NetworkMode = "IPV4" // NetworkModeIPV6 ... NetworkModeIPV6 NetworkMode = "IPV6" )
func PossibleNetworkModeValues() []NetworkMode
PossibleNetworkModeValues returns an array of possible values for the NetworkMode const type.
NetworkSettings represents the network settings of a device.
type NetworkSettings struct { autorest.Response `json:"-"` // NetworkSettingsProperties - The properties of network settings of a device. *NetworkSettingsProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (ns NetworkSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NetworkSettings.
func (ns *NetworkSettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NetworkSettings struct.
NetworkSettingsPatch represents the patch request for the network settings of a device.
type NetworkSettingsPatch struct { // NetworkSettingsPatchProperties - The properties of the network settings patch. *NetworkSettingsPatchProperties `json:"properties,omitempty"` }
func (nsp NetworkSettingsPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NetworkSettingsPatch.
func (nsp *NetworkSettingsPatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NetworkSettingsPatch struct.
NetworkSettingsPatchProperties the properties of the network settings patch.
type NetworkSettingsPatchProperties struct { // DNSSettings - The DNS (Domain Name System) settings of device. DNSSettings *DNSSettings `json:"dnsSettings,omitempty"` // NetworkAdapters - The network adapter list of device. NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"` }
NetworkSettingsProperties the properties of the network settings of device.
type NetworkSettingsProperties struct { // DNSSettings - The DNS (Domain Name System) settings of device. DNSSettings *DNSSettings `json:"dnsSettings,omitempty"` // NetworkAdapters - The network adapter list of device. NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"` // WebproxySettings - The webproxy settings of device. WebproxySettings *WebproxySettings `json:"webproxySettings,omitempty"` }
NicIPv4 details related to the IPv4 address configuration.
type NicIPv4 struct { // Ipv4Address - The IPv4 address of the network adapter. Ipv4Address *string `json:"ipv4Address,omitempty"` // Ipv4Netmask - The IPv4 netmask of the network adapter. Ipv4Netmask *string `json:"ipv4Netmask,omitempty"` // Ipv4Gateway - The IPv4 gateway of the network adapter. Ipv4Gateway *string `json:"ipv4Gateway,omitempty"` // Controller0Ipv4Address - The IPv4 address of Controller0. Controller0Ipv4Address *string `json:"controller0Ipv4Address,omitempty"` // Controller1Ipv4Address - The IPv4 address of Controller1. Controller1Ipv4Address *string `json:"controller1Ipv4Address,omitempty"` }
NicIPv6 details related to the IPv6 address configuration.
type NicIPv6 struct { // Ipv6Address - The IPv6 address of the network adapter. Ipv6Address *string `json:"ipv6Address,omitempty"` // Ipv6Prefix - The IPv6 prefix of the network adapter. Ipv6Prefix *string `json:"ipv6Prefix,omitempty"` // Ipv6Gateway - The IPv6 gateway of the network adapter. Ipv6Gateway *string `json:"ipv6Gateway,omitempty"` // Controller0Ipv6Address - The IPv6 address of Controller0. Controller0Ipv6Address *string `json:"controller0Ipv6Address,omitempty"` // Controller1Ipv6Address - The IPv6 address of Controller1. Controller1Ipv6Address *string `json:"controller1Ipv6Address,omitempty"` }
OperationStatus enumerates the values for operation status.
type OperationStatus string
const ( // OperationStatusDeleting ... OperationStatusDeleting OperationStatus = "Deleting" // OperationStatusNone ... OperationStatusNone OperationStatus = "None" // OperationStatusRestoring ... OperationStatusRestoring OperationStatus = "Restoring" // OperationStatusUpdating ... OperationStatusUpdating OperationStatus = "Updating" )
func PossibleOperationStatusValues() []OperationStatus
PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
OperationsClient is the client for the Operations methods of the Storsimple service.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result AvailableProviderOperationListPage, err error)
List lists all of the available REST API operations of the Microsoft.StorSimple provider
func (client OperationsClient) ListComplete(ctx context.Context) (result AvailableProviderOperationListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client OperationsClient) ListResponder(resp *http.Response) (result AvailableProviderOperationList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
OwnerShipStatus enumerates the values for owner ship status.
type OwnerShipStatus string
const ( // NotOwned ... NotOwned OwnerShipStatus = "NotOwned" // Owned ... Owned OwnerShipStatus = "Owned" )
func PossibleOwnerShipStatusValues() []OwnerShipStatus
PossibleOwnerShipStatusValues returns an array of possible values for the OwnerShipStatus const type.
PublicKey the public key.
type PublicKey struct { autorest.Response `json:"-"` // Key - The key. Key *string `json:"key,omitempty"` }
RecurrenceType enumerates the values for recurrence type.
type RecurrenceType string
const ( // Daily ... Daily RecurrenceType = "Daily" // Hourly ... Hourly RecurrenceType = "Hourly" // Minutes ... Minutes RecurrenceType = "Minutes" // Weekly ... Weekly RecurrenceType = "Weekly" )
func PossibleRecurrenceTypeValues() []RecurrenceType
PossibleRecurrenceTypeValues returns an array of possible values for the RecurrenceType const type.
RemoteManagementModeConfiguration enumerates the values for remote management mode configuration.
type RemoteManagementModeConfiguration string
const ( // RemoteManagementModeConfigurationDisabled ... RemoteManagementModeConfigurationDisabled RemoteManagementModeConfiguration = "Disabled" // RemoteManagementModeConfigurationHTTPSAndHTTPEnabled ... RemoteManagementModeConfigurationHTTPSAndHTTPEnabled RemoteManagementModeConfiguration = "HttpsAndHttpEnabled" // RemoteManagementModeConfigurationHTTPSEnabled ... RemoteManagementModeConfigurationHTTPSEnabled RemoteManagementModeConfiguration = "HttpsEnabled" // RemoteManagementModeConfigurationUnknown ... RemoteManagementModeConfigurationUnknown RemoteManagementModeConfiguration = "Unknown" )
func PossibleRemoteManagementModeConfigurationValues() []RemoteManagementModeConfiguration
PossibleRemoteManagementModeConfigurationValues returns an array of possible values for the RemoteManagementModeConfiguration const type.
RemoteManagementSettings the settings for remote management of a device.
type RemoteManagementSettings struct { // RemoteManagementMode - The remote management mode. Possible values include: 'RemoteManagementModeConfigurationUnknown', 'RemoteManagementModeConfigurationDisabled', 'RemoteManagementModeConfigurationHTTPSEnabled', 'RemoteManagementModeConfigurationHTTPSAndHTTPEnabled' RemoteManagementMode RemoteManagementModeConfiguration `json:"remoteManagementMode,omitempty"` // RemoteManagementCertificate - The remote management certificates. RemoteManagementCertificate *string `json:"remoteManagementCertificate,omitempty"` }
RemoteManagementSettingsPatch the settings for updating remote management mode of the device.
type RemoteManagementSettingsPatch struct { // RemoteManagementMode - The remote management mode. Possible values include: 'RemoteManagementModeConfigurationUnknown', 'RemoteManagementModeConfigurationDisabled', 'RemoteManagementModeConfigurationHTTPSEnabled', 'RemoteManagementModeConfigurationHTTPSAndHTTPEnabled' RemoteManagementMode RemoteManagementModeConfiguration `json:"remoteManagementMode,omitempty"` }
Resource the Azure Resource.
type Resource struct { // 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 resource. Location *string `json:"location,omitempty"` // Tags - The tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ScheduleRecurrence the schedule recurrence.
type ScheduleRecurrence struct { // RecurrenceType - The recurrence type. Possible values include: 'Minutes', 'Hourly', 'Daily', 'Weekly' RecurrenceType RecurrenceType `json:"recurrenceType,omitempty"` // RecurrenceValue - The recurrence value. RecurrenceValue *int32 `json:"recurrenceValue,omitempty"` // WeeklyDaysList - The week days list. Applicable only for schedules of recurrence type 'weekly'. WeeklyDaysList *[]DayOfWeek `json:"weeklyDaysList,omitempty"` }
ScheduleStatus enumerates the values for schedule status.
type ScheduleStatus string
const ( // ScheduleStatusDisabled ... ScheduleStatusDisabled ScheduleStatus = "Disabled" // ScheduleStatusEnabled ... ScheduleStatusEnabled ScheduleStatus = "Enabled" )
func PossibleScheduleStatusValues() []ScheduleStatus
PossibleScheduleStatusValues returns an array of possible values for the ScheduleStatus const type.
ScheduledBackupStatus enumerates the values for scheduled backup status.
type ScheduledBackupStatus string
const ( // ScheduledBackupStatusDisabled ... ScheduledBackupStatusDisabled ScheduledBackupStatus = "Disabled" // ScheduledBackupStatusEnabled ... ScheduledBackupStatusEnabled ScheduledBackupStatus = "Enabled" )
func PossibleScheduledBackupStatusValues() []ScheduledBackupStatus
PossibleScheduledBackupStatusValues returns an array of possible values for the ScheduledBackupStatus const type.
SecondaryDNSSettings the secondary DNS settings.
type SecondaryDNSSettings struct { // SecondaryDNSServers - The list of secondary DNS Server IP addresses. SecondaryDNSServers *[]string `json:"secondaryDnsServers,omitempty"` }
SecuritySettings the security settings of a device.
type SecuritySettings struct { autorest.Response `json:"-"` // SecuritySettingsProperties - The properties of the security settings of a device. *SecuritySettingsProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (ss SecuritySettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SecuritySettings.
func (ss *SecuritySettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SecuritySettings struct.
SecuritySettingsPatch represents the patch request for the security settings of a device.
type SecuritySettingsPatch struct { // SecuritySettingsPatchProperties - The properties of the security settings patch. *SecuritySettingsPatchProperties `json:"properties,omitempty"` }
func (ssp SecuritySettingsPatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SecuritySettingsPatch.
func (ssp *SecuritySettingsPatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SecuritySettingsPatch struct.
SecuritySettingsPatchProperties the properties of the security settings patch.
type SecuritySettingsPatchProperties struct { // RemoteManagementSettings - The remote management settings. RemoteManagementSettings *RemoteManagementSettingsPatch `json:"remoteManagementSettings,omitempty"` // DeviceAdminPassword - The device administrator password. DeviceAdminPassword *AsymmetricEncryptedSecret `json:"deviceAdminPassword,omitempty"` // SnapshotPassword - The snapshot manager password. SnapshotPassword *AsymmetricEncryptedSecret `json:"snapshotPassword,omitempty"` // ChapSettings - The device CHAP and reverse-CHAP settings. ChapSettings *ChapSettings `json:"chapSettings,omitempty"` // CloudApplianceSettings - The cloud appliance settings. CloudApplianceSettings *CloudApplianceSettings `json:"cloudApplianceSettings,omitempty"` }
SecuritySettingsProperties the properties of security settings of a device.
type SecuritySettingsProperties struct { // RemoteManagementSettings - The settings for remote management of a device. RemoteManagementSettings *RemoteManagementSettings `json:"remoteManagementSettings,omitempty"` // ChapSettings - The Challenge-Handshake Authentication Protocol (CHAP) settings. ChapSettings *ChapSettings `json:"chapSettings,omitempty"` }
SendTestAlertEmailRequest the request for sending test alert email
type SendTestAlertEmailRequest struct { // EmailList - The list of email IDs to send the test alert email EmailList *[]string `json:"emailList,omitempty"` }
SslStatus enumerates the values for ssl status.
type SslStatus string
const ( // SslStatusDisabled ... SslStatusDisabled SslStatus = "Disabled" // SslStatusEnabled ... SslStatusEnabled SslStatus = "Enabled" )
func PossibleSslStatusValues() []SslStatus
PossibleSslStatusValues returns an array of possible values for the SslStatus const type.
StorageAccountCredential the storage account credential.
type StorageAccountCredential struct { autorest.Response `json:"-"` // StorageAccountCredentialProperties - The storage account credential properties. *StorageAccountCredentialProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (sac StorageAccountCredential) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StorageAccountCredential.
func (sac *StorageAccountCredential) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StorageAccountCredential struct.
StorageAccountCredentialList the collection of storage account credential entities.
type StorageAccountCredentialList struct { autorest.Response `json:"-"` // Value - The value. Value *[]StorageAccountCredential `json:"value,omitempty"` }
StorageAccountCredentialProperties the storage account credential properties.
type StorageAccountCredentialProperties struct { // EndPoint - The storage endpoint EndPoint *string `json:"endPoint,omitempty"` // SslStatus - Signifies whether SSL needs to be enabled or not. Possible values include: 'SslStatusEnabled', 'SslStatusDisabled' SslStatus SslStatus `json:"sslStatus,omitempty"` // AccessKey - The details of the storage account password. AccessKey *AsymmetricEncryptedSecret `json:"accessKey,omitempty"` // VolumesCount - READ-ONLY; The count of volumes using this storage account credential. VolumesCount *int32 `json:"volumesCount,omitempty"` }
func (sacp StorageAccountCredentialProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StorageAccountCredentialProperties.
StorageAccountCredentialsClient is the client for the StorageAccountCredentials methods of the Storsimple service.
type StorageAccountCredentialsClient struct { BaseClient }
func NewStorageAccountCredentialsClient(subscriptionID string) StorageAccountCredentialsClient
NewStorageAccountCredentialsClient creates an instance of the StorageAccountCredentialsClient client.
func NewStorageAccountCredentialsClientWithBaseURI(baseURI string, subscriptionID string) StorageAccountCredentialsClient
NewStorageAccountCredentialsClientWithBaseURI creates an instance of the StorageAccountCredentialsClient 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 StorageAccountCredentialsClient) CreateOrUpdate(ctx context.Context, storageAccountCredentialName string, parameters StorageAccountCredential, resourceGroupName string, managerName string) (result StorageAccountCredentialsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the storage account credential. Parameters: storageAccountCredentialName - the storage account credential name. parameters - the storage account credential to be added or updated. resourceGroupName - the resource group name managerName - the manager name
func (client StorageAccountCredentialsClient) CreateOrUpdatePreparer(ctx context.Context, storageAccountCredentialName string, parameters StorageAccountCredential, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client StorageAccountCredentialsClient) CreateOrUpdateResponder(resp *http.Response) (result StorageAccountCredential, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client StorageAccountCredentialsClient) CreateOrUpdateSender(req *http.Request) (future StorageAccountCredentialsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client StorageAccountCredentialsClient) Delete(ctx context.Context, storageAccountCredentialName string, resourceGroupName string, managerName string) (result StorageAccountCredentialsDeleteFuture, err error)
Delete deletes the storage account credential. Parameters: storageAccountCredentialName - the name of the storage account credential. resourceGroupName - the resource group name managerName - the manager name
func (client StorageAccountCredentialsClient) DeletePreparer(ctx context.Context, storageAccountCredentialName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client StorageAccountCredentialsClient) 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 StorageAccountCredentialsClient) DeleteSender(req *http.Request) (future StorageAccountCredentialsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client StorageAccountCredentialsClient) Get(ctx context.Context, storageAccountCredentialName string, resourceGroupName string, managerName string) (result StorageAccountCredential, err error)
Get gets the properties of the specified storage account credential name. Parameters: storageAccountCredentialName - the name of storage account credential to be fetched. resourceGroupName - the resource group name managerName - the manager name
func (client StorageAccountCredentialsClient) GetPreparer(ctx context.Context, storageAccountCredentialName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client StorageAccountCredentialsClient) GetResponder(resp *http.Response) (result StorageAccountCredential, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client StorageAccountCredentialsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client StorageAccountCredentialsClient) ListByManager(ctx context.Context, resourceGroupName string, managerName string) (result StorageAccountCredentialList, err error)
ListByManager gets all the storage account credentials in a manager. Parameters: resourceGroupName - the resource group name managerName - the manager name
func (client StorageAccountCredentialsClient) ListByManagerPreparer(ctx context.Context, resourceGroupName string, managerName string) (*http.Request, error)
ListByManagerPreparer prepares the ListByManager request.
func (client StorageAccountCredentialsClient) ListByManagerResponder(resp *http.Response) (result StorageAccountCredentialList, err error)
ListByManagerResponder handles the response to the ListByManager request. The method always closes the http.Response Body.
func (client StorageAccountCredentialsClient) 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.
StorageAccountCredentialsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type StorageAccountCredentialsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(StorageAccountCredentialsClient) (StorageAccountCredential, error) }
func (future *StorageAccountCredentialsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
StorageAccountCredentialsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type StorageAccountCredentialsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(StorageAccountCredentialsClient) (autorest.Response, error) }
func (future *StorageAccountCredentialsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
SymmetricEncryptedSecret represents the secrets encrypted using Symmetric Encryption Key.
type SymmetricEncryptedSecret struct { autorest.Response `json:"-"` // Value - The value of the secret itself. If the secret is in plaintext or null then EncryptionAlgorithm will be none. Value *string `json:"value,omitempty"` // ValueCertificateThumbprint - The thumbprint of the cert that was used to encrypt "Value". ValueCertificateThumbprint *string `json:"valueCertificateThumbprint,omitempty"` // EncryptionAlgorithm - The algorithm used to encrypt the "Value". Possible values include: 'EncryptionAlgorithmNone', 'EncryptionAlgorithmAES256', 'EncryptionAlgorithmRSAESPKCS1V15' EncryptionAlgorithm EncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"` }
TargetEligibilityErrorMessage the error/warning message due to which the device is ineligible as a failover target device.
type TargetEligibilityErrorMessage struct { // Message - The localized error message stating the reason why the device is not eligible as a target device. Message *string `json:"message,omitempty"` // Resolution - The localized resolution message for the error. Resolution *string `json:"resolution,omitempty"` // ResultCode - The result code for the error, due to which the device does not qualify as a failover target device. Possible values include: 'TargetAndSourceCannotBeSameError', 'TargetIsNotOnlineError', 'TargetSourceIncompatibleVersionError', 'LocalToTieredVolumesConversionWarning', 'TargetInsufficientCapacityError', 'TargetInsufficientLocalVolumeMemoryError', 'TargetInsufficientTieredVolumeMemoryError' ResultCode TargetEligibilityResultCode `json:"resultCode,omitempty"` }
TargetEligibilityResult the eligibility result of device, as a failover target device.
type TargetEligibilityResult struct { // EligibilityStatus - The eligibility status of device, as a failover target device. Possible values include: 'TargetEligibilityStatusNotEligible', 'TargetEligibilityStatusEligible' EligibilityStatus TargetEligibilityStatus `json:"eligibilityStatus,omitempty"` // Messages - The list of error messages, if a device does not qualify as a failover target device. Messages *[]TargetEligibilityErrorMessage `json:"messages,omitempty"` }
TargetEligibilityResultCode enumerates the values for target eligibility result code.
type TargetEligibilityResultCode string
const ( // LocalToTieredVolumesConversionWarning ... LocalToTieredVolumesConversionWarning TargetEligibilityResultCode = "LocalToTieredVolumesConversionWarning" // TargetAndSourceCannotBeSameError ... TargetAndSourceCannotBeSameError TargetEligibilityResultCode = "TargetAndSourceCannotBeSameError" // TargetInsufficientCapacityError ... TargetInsufficientCapacityError TargetEligibilityResultCode = "TargetInsufficientCapacityError" // TargetInsufficientLocalVolumeMemoryError ... TargetInsufficientLocalVolumeMemoryError TargetEligibilityResultCode = "TargetInsufficientLocalVolumeMemoryError" // TargetInsufficientTieredVolumeMemoryError ... TargetInsufficientTieredVolumeMemoryError TargetEligibilityResultCode = "TargetInsufficientTieredVolumeMemoryError" // TargetIsNotOnlineError ... TargetIsNotOnlineError TargetEligibilityResultCode = "TargetIsNotOnlineError" // TargetSourceIncompatibleVersionError ... TargetSourceIncompatibleVersionError TargetEligibilityResultCode = "TargetSourceIncompatibleVersionError" )
func PossibleTargetEligibilityResultCodeValues() []TargetEligibilityResultCode
PossibleTargetEligibilityResultCodeValues returns an array of possible values for the TargetEligibilityResultCode const type.
TargetEligibilityStatus enumerates the values for target eligibility status.
type TargetEligibilityStatus string
const ( // TargetEligibilityStatusEligible ... TargetEligibilityStatusEligible TargetEligibilityStatus = "Eligible" // TargetEligibilityStatusNotEligible ... TargetEligibilityStatusNotEligible TargetEligibilityStatus = "NotEligible" )
func PossibleTargetEligibilityStatusValues() []TargetEligibilityStatus
PossibleTargetEligibilityStatusValues returns an array of possible values for the TargetEligibilityStatus const type.
Time the time.
type Time struct { // Hours - The hour. Hours *int32 `json:"hours,omitempty"` // Minutes - The minute. Minutes *int32 `json:"minutes,omitempty"` // Seconds - The second. Seconds *int32 `json:"seconds,omitempty"` }
TimeSettings the time settings of a device.
type TimeSettings struct { autorest.Response `json:"-"` // TimeSettingsProperties - The properties of the time settings of a device. *TimeSettingsProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (ts TimeSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TimeSettings.
func (ts *TimeSettings) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for TimeSettings struct.
TimeSettingsProperties the properties of time settings of a device.
type TimeSettingsProperties struct { // TimeZone - The timezone of device, like '(UTC -06:00) Central America' TimeZone *string `json:"timeZone,omitempty"` // PrimaryTimeServer - The primary Network Time Protocol (NTP) server name, like 'time.windows.com'. PrimaryTimeServer *string `json:"primaryTimeServer,omitempty"` // SecondaryTimeServer - The secondary Network Time Protocol (NTP) server name, like 'time.contoso.com'. It's optional. SecondaryTimeServer *[]string `json:"secondaryTimeServer,omitempty"` }
Updates the updates profile of a device.
type Updates struct { autorest.Response `json:"-"` // UpdatesProperties - The properties of the updates profile. *UpdatesProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (u Updates) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Updates.
func (u *Updates) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Updates struct.
UpdatesProperties the properties of the updates profile.
type UpdatesProperties struct { // RegularUpdatesAvailable - Set to 'true' if regular updates are available for the device. RegularUpdatesAvailable *bool `json:"regularUpdatesAvailable,omitempty"` // MaintenanceModeUpdatesAvailable - Set to 'true' if maintenance mode update available. MaintenanceModeUpdatesAvailable *bool `json:"maintenanceModeUpdatesAvailable,omitempty"` // IsUpdateInProgress - Indicates whether an update is in progress or not. IsUpdateInProgress *bool `json:"isUpdateInProgress,omitempty"` // LastUpdatedTime - The time when the last update was completed. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` }
VMImage the virtual machine image.
type VMImage struct { // Name - The name. Name *string `json:"name,omitempty"` // Version - The version. Version *string `json:"version,omitempty"` // Offer - The offer. Offer *string `json:"offer,omitempty"` // Publisher - The publisher. Publisher *string `json:"publisher,omitempty"` // Sku - The SKU. Sku *string `json:"sku,omitempty"` }
VirtualMachineAPIType enumerates the values for virtual machine api type.
type VirtualMachineAPIType string
const ( // Arm ... Arm VirtualMachineAPIType = "Arm" // Classic ... Classic VirtualMachineAPIType = "Classic" )
func PossibleVirtualMachineAPITypeValues() []VirtualMachineAPIType
PossibleVirtualMachineAPITypeValues returns an array of possible values for the VirtualMachineAPIType const type.
Volume the volume.
type Volume struct { autorest.Response `json:"-"` // VolumeProperties - The properties of the volume. *VolumeProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (vVar Volume) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Volume.
func (vVar *Volume) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Volume struct.
VolumeContainer the volume container.
type VolumeContainer struct { autorest.Response `json:"-"` // VolumeContainerProperties - The volume container properties. *VolumeContainerProperties `json:"properties,omitempty"` // ID - READ-ONLY; The path ID that uniquely identifies the object. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the object. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The hierarchical type of the object. Type *string `json:"type,omitempty"` // Kind - The Kind of the object. Currently only Series8000 is supported. Possible values include: 'Series8000' Kind Kind `json:"kind,omitempty"` }
func (vc VolumeContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VolumeContainer.
func (vc *VolumeContainer) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VolumeContainer struct.
VolumeContainerFailoverMetadata the metadata of the volume container, that is being considered as part of a failover set.
type VolumeContainerFailoverMetadata struct { // VolumeContainerID - The path ID of the volume container. VolumeContainerID *string `json:"volumeContainerId,omitempty"` // Volumes - The list of metadata of volumes inside the volume container, which contains valid cloud snapshots. Volumes *[]VolumeFailoverMetadata `json:"volumes,omitempty"` }
VolumeContainerList the collection of volume container entities.
type VolumeContainerList struct { autorest.Response `json:"-"` // Value - The value. Value *[]VolumeContainer `json:"value,omitempty"` }
VolumeContainerProperties the properties of volume container.
type VolumeContainerProperties struct { // EncryptionKey - The key used to encrypt data in the volume container. It is required when property 'EncryptionStatus' is "Enabled". EncryptionKey *AsymmetricEncryptedSecret `json:"encryptionKey,omitempty"` // EncryptionStatus - READ-ONLY; The flag to denote whether encryption is enabled or not. Possible values include: 'EncryptionStatusEnabled', 'EncryptionStatusDisabled' EncryptionStatus EncryptionStatus `json:"encryptionStatus,omitempty"` // VolumeCount - READ-ONLY; The number of volumes in the volume Container. VolumeCount *int32 `json:"volumeCount,omitempty"` // StorageAccountCredentialID - The path ID of storage account associated with the volume container. StorageAccountCredentialID *string `json:"storageAccountCredentialId,omitempty"` // OwnerShipStatus - READ-ONLY; The owner ship status of the volume container. Only when the status is "NotOwned", the delete operation on the volume container is permitted. Possible values include: 'Owned', 'NotOwned' OwnerShipStatus OwnerShipStatus `json:"ownerShipStatus,omitempty"` // BandWidthRateInMbps - The bandwidth-rate set on the volume container. BandWidthRateInMbps *int32 `json:"bandWidthRateInMbps,omitempty"` // BandwidthSettingID - The ID of the bandwidth setting associated with the volume container. BandwidthSettingID *string `json:"bandwidthSettingId,omitempty"` // TotalCloudStorageUsageInBytes - READ-ONLY; The total cloud storage for the volume container. TotalCloudStorageUsageInBytes *int64 `json:"totalCloudStorageUsageInBytes,omitempty"` }
func (vcp VolumeContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VolumeContainerProperties.
VolumeContainersClient is the client for the VolumeContainers methods of the Storsimple service.
type VolumeContainersClient struct { BaseClient }
func NewVolumeContainersClient(subscriptionID string) VolumeContainersClient
NewVolumeContainersClient creates an instance of the VolumeContainersClient client.
func NewVolumeContainersClientWithBaseURI(baseURI string, subscriptionID string) VolumeContainersClient
NewVolumeContainersClientWithBaseURI creates an instance of the VolumeContainersClient 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 VolumeContainersClient) CreateOrUpdate(ctx context.Context, deviceName string, volumeContainerName string, parameters VolumeContainer, resourceGroupName string, managerName string) (result VolumeContainersCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the volume container. Parameters: deviceName - the device name volumeContainerName - the name of the volume container. parameters - the volume container to be added or updated. resourceGroupName - the resource group name managerName - the manager name
func (client VolumeContainersClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, volumeContainerName string, parameters VolumeContainer, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client VolumeContainersClient) CreateOrUpdateResponder(resp *http.Response) (result VolumeContainer, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client VolumeContainersClient) CreateOrUpdateSender(req *http.Request) (future VolumeContainersCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client VolumeContainersClient) Delete(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result VolumeContainersDeleteFuture, err error)
Delete deletes the volume container. Parameters: deviceName - the device name volumeContainerName - the name of the volume container. resourceGroupName - the resource group name managerName - the manager name
func (client VolumeContainersClient) DeletePreparer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client VolumeContainersClient) 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 VolumeContainersClient) DeleteSender(req *http.Request) (future VolumeContainersDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client VolumeContainersClient) Get(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result VolumeContainer, err error)
Get gets the properties of the specified volume container name. Parameters: deviceName - the device name volumeContainerName - the name of the volume container. resourceGroupName - the resource group name managerName - the manager name
func (client VolumeContainersClient) GetPreparer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client VolumeContainersClient) GetResponder(resp *http.Response) (result VolumeContainer, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client VolumeContainersClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client VolumeContainersClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result VolumeContainerList, err error)
ListByDevice gets all the volume containers in a device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client VolumeContainersClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
func (client VolumeContainersClient) ListByDeviceResponder(resp *http.Response) (result VolumeContainerList, err error)
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
func (client VolumeContainersClient) ListByDeviceSender(req *http.Request) (*http.Response, error)
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
func (client VolumeContainersClient) ListMetricDefinition(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)
ListMetricDefinition gets the metric definitions for the specified volume container. Parameters: deviceName - the device name volumeContainerName - the volume container name. resourceGroupName - the resource group name managerName - the manager name
func (client VolumeContainersClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
func (client VolumeContainersClient) 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 VolumeContainersClient) 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 VolumeContainersClient) ListMetrics(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)
ListMetrics gets the metrics for the specified volume container. Parameters: deviceName - the device name volumeContainerName - the volume container name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options
func (client VolumeContainersClient) ListMetricsPreparer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (client VolumeContainersClient) ListMetricsResponder(resp *http.Response) (result MetricList, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (client VolumeContainersClient) ListMetricsSender(req *http.Request) (*http.Response, error)
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
VolumeContainersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VolumeContainersCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VolumeContainersClient) (VolumeContainer, error) }
func (future *VolumeContainersCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VolumeContainersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VolumeContainersDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VolumeContainersClient) (autorest.Response, error) }
func (future *VolumeContainersDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VolumeFailoverMetadata the metadata of a volume that has valid cloud snapshot.
type VolumeFailoverMetadata struct { // VolumeID - The path ID of the volume. VolumeID *string `json:"volumeId,omitempty"` // VolumeType - The type of the volume. Possible values include: 'Tiered', 'Archival', 'LocallyPinned' VolumeType VolumeType `json:"volumeType,omitempty"` // SizeInBytes - The size of the volume in bytes at the time the snapshot was taken. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` // BackupCreatedDate - The date at which the snapshot was taken. BackupCreatedDate *date.Time `json:"backupCreatedDate,omitempty"` // BackupElementID - The path ID of the backup-element for this volume, inside the backup set. BackupElementID *string `json:"backupElementId,omitempty"` // BackupID - The path ID of the backup set. BackupID *string `json:"backupId,omitempty"` // BackupPolicyID - The path ID of the backup policy using which the snapshot was taken. BackupPolicyID *string `json:"backupPolicyId,omitempty"` }
VolumeList the collection of volumes.
type VolumeList struct { autorest.Response `json:"-"` // Value - The value. Value *[]Volume `json:"value,omitempty"` }
VolumeProperties the properties of volume.
type VolumeProperties struct { // SizeInBytes - The size of the volume in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` // VolumeType - The type of the volume. Possible values include: 'Tiered', 'Archival', 'LocallyPinned' VolumeType VolumeType `json:"volumeType,omitempty"` // VolumeContainerID - READ-ONLY; The ID of the volume container, in which this volume is created. VolumeContainerID *string `json:"volumeContainerId,omitempty"` // AccessControlRecordIds - The IDs of the access control records, associated with the volume. AccessControlRecordIds *[]string `json:"accessControlRecordIds,omitempty"` // VolumeStatus - The volume status. Possible values include: 'VolumeStatusOnline', 'VolumeStatusOffline' VolumeStatus VolumeStatus `json:"volumeStatus,omitempty"` // OperationStatus - READ-ONLY; The operation status on the volume. Possible values include: 'OperationStatusNone', 'OperationStatusUpdating', 'OperationStatusDeleting', 'OperationStatusRestoring' OperationStatus OperationStatus `json:"operationStatus,omitempty"` // BackupStatus - READ-ONLY; The backup status of the volume. Possible values include: 'BackupStatusEnabled', 'BackupStatusDisabled' BackupStatus BackupStatus `json:"backupStatus,omitempty"` // MonitoringStatus - The monitoring status of the volume. Possible values include: 'MonitoringStatusEnabled', 'MonitoringStatusDisabled' MonitoringStatus MonitoringStatus `json:"monitoringStatus,omitempty"` // BackupPolicyIds - READ-ONLY; The IDs of the backup policies, in which this volume is part of. BackupPolicyIds *[]string `json:"backupPolicyIds,omitempty"` }
func (vp VolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VolumeProperties.
VolumeStatus enumerates the values for volume status.
type VolumeStatus string
const ( // VolumeStatusOffline ... VolumeStatusOffline VolumeStatus = "Offline" // VolumeStatusOnline ... VolumeStatusOnline VolumeStatus = "Online" )
func PossibleVolumeStatusValues() []VolumeStatus
PossibleVolumeStatusValues returns an array of possible values for the VolumeStatus const type.
VolumeType enumerates the values for volume type.
type VolumeType string
const ( // Archival ... Archival VolumeType = "Archival" // LocallyPinned ... LocallyPinned VolumeType = "LocallyPinned" // Tiered ... Tiered VolumeType = "Tiered" )
func PossibleVolumeTypeValues() []VolumeType
PossibleVolumeTypeValues returns an array of possible values for the VolumeType const type.
VolumesClient is the client for the Volumes methods of the Storsimple service.
type VolumesClient struct { BaseClient }
func NewVolumesClient(subscriptionID string) VolumesClient
NewVolumesClient creates an instance of the VolumesClient client.
func NewVolumesClientWithBaseURI(baseURI string, subscriptionID string) VolumesClient
NewVolumesClientWithBaseURI creates an instance of the VolumesClient 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 VolumesClient) CreateOrUpdate(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, parameters Volume, resourceGroupName string, managerName string) (result VolumesCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates the volume. Parameters: deviceName - the device name volumeContainerName - the volume container name. volumeName - the volume name. parameters - volume to be created or updated. resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) CreateOrUpdatePreparer(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, parameters Volume, resourceGroupName string, managerName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client VolumesClient) CreateOrUpdateResponder(resp *http.Response) (result Volume, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client VolumesClient) CreateOrUpdateSender(req *http.Request) (future VolumesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client VolumesClient) Delete(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (result VolumesDeleteFuture, err error)
Delete deletes the volume. Parameters: deviceName - the device name volumeContainerName - the volume container name. volumeName - the volume name. resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) DeletePreparer(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client VolumesClient) 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 VolumesClient) DeleteSender(req *http.Request) (future VolumesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client VolumesClient) Get(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (result Volume, err error)
Get returns the properties of the specified volume name. Parameters: deviceName - the device name volumeContainerName - the volume container name. volumeName - the volume name. resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) GetPreparer(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client VolumesClient) GetResponder(resp *http.Response) (result Volume, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client VolumesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client VolumesClient) ListByDevice(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (result VolumeList, err error)
ListByDevice retrieves all the volumes in a device. Parameters: deviceName - the device name resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) ListByDevicePreparer(ctx context.Context, deviceName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByDevicePreparer prepares the ListByDevice request.
func (client VolumesClient) ListByDeviceResponder(resp *http.Response) (result VolumeList, err error)
ListByDeviceResponder handles the response to the ListByDevice request. The method always closes the http.Response Body.
func (client VolumesClient) ListByDeviceSender(req *http.Request) (*http.Response, error)
ListByDeviceSender sends the ListByDevice request. The method will close the http.Response Body if it receives an error.
func (client VolumesClient) ListByVolumeContainer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result VolumeList, err error)
ListByVolumeContainer retrieves all the volumes in a volume container. Parameters: deviceName - the device name volumeContainerName - the volume container name. resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) ListByVolumeContainerPreparer(ctx context.Context, deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (*http.Request, error)
ListByVolumeContainerPreparer prepares the ListByVolumeContainer request.
func (client VolumesClient) ListByVolumeContainerResponder(resp *http.Response) (result VolumeList, err error)
ListByVolumeContainerResponder handles the response to the ListByVolumeContainer request. The method always closes the http.Response Body.
func (client VolumesClient) ListByVolumeContainerSender(req *http.Request) (*http.Response, error)
ListByVolumeContainerSender sends the ListByVolumeContainer request. The method will close the http.Response Body if it receives an error.
func (client VolumesClient) ListMetricDefinition(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error)
ListMetricDefinition gets the metric definitions for the specified volume. Parameters: deviceName - the device name volumeContainerName - the volume container name. volumeName - the volume name. resourceGroupName - the resource group name managerName - the manager name
func (client VolumesClient) ListMetricDefinitionPreparer(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (*http.Request, error)
ListMetricDefinitionPreparer prepares the ListMetricDefinition request.
func (client VolumesClient) 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 VolumesClient) 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 VolumesClient) ListMetrics(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error)
ListMetrics gets the metrics for the specified volume. Parameters: deviceName - the device name volumeContainerName - the volume container name. volumeName - the volume name. resourceGroupName - the resource group name managerName - the manager name filter - oData Filter options
func (client VolumesClient) ListMetricsPreparer(ctx context.Context, deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (client VolumesClient) ListMetricsResponder(resp *http.Response) (result MetricList, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (client VolumesClient) ListMetricsSender(req *http.Request) (*http.Response, error)
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
VolumesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VolumesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VolumesClient) (Volume, error) }
func (future *VolumesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VolumesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VolumesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VolumesClient) (autorest.Response, error) }
func (future *VolumesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
WebproxySettings the web proxy settings on the device.
type WebproxySettings struct { // ConnectionURI - The connection URI. ConnectionURI *string `json:"connectionUri,omitempty"` // Authentication - The authentication type. Possible values include: 'Invalid', 'None', 'Basic', 'NTLM' Authentication AuthenticationType `json:"authentication,omitempty"` // Username - The webproxy username. Username *string `json:"username,omitempty"` }
Name | Synopsis |
---|---|
.. | |
storsimpleapi | Deprecated: Please note, this package has been deprecated. |