vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,32 +24,27 @@ import (
"net/http"
)
// AccessControlRecordsClient is the client for the AccessControlRecords
// methods of the Storsimple8000series service.
// AccessControlRecordsClient is the client for the AccessControlRecords methods of the Storsimple8000series service.
type AccessControlRecordsClient struct {
ManagementClient
}
// NewAccessControlRecordsClient creates an instance of the
// AccessControlRecordsClient client.
// NewAccessControlRecordsClient creates an instance of the AccessControlRecordsClient client.
func NewAccessControlRecordsClient(subscriptionID string) AccessControlRecordsClient {
return NewAccessControlRecordsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewAccessControlRecordsClientWithBaseURI creates an instance of the
// AccessControlRecordsClient client.
// NewAccessControlRecordsClientWithBaseURI creates an instance of the AccessControlRecordsClient client.
func NewAccessControlRecordsClientWithBaseURI(baseURI string, subscriptionID string) AccessControlRecordsClient {
return AccessControlRecordsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or Updates an access control record. This method may
// poll for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or Updates an access control record. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// accessControlRecordName is the name of the access control record. parameters
// is the access control record to be added or updated. resourceGroupName is
// the resource group name managerName is the manager name
// accessControlRecordName is the name of the access control record. parameters is the access control record to be
// added or updated. resourceGroupName is the resource group name managerName is the manager name
func (client AccessControlRecordsClient) CreateOrUpdate(accessControlRecordName string, parameters AccessControlRecord, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan AccessControlRecord, <-chan error) {
resultChan := make(chan AccessControlRecord, 1)
errChan := make(chan error, 1)
@@ -144,13 +138,11 @@ func (client AccessControlRecordsClient) CreateOrUpdateResponder(resp *http.Resp
return
}
// Delete deletes the access control record. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// Delete deletes the access control record. This method may poll for completion. Polling can be canceled by passing
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// accessControlRecordName is the name of the access control record to delete.
// resourceGroupName is the resource group name managerName is the manager name
// accessControlRecordName is the name of the access control record to delete. resourceGroupName is the resource group
// name managerName is the manager name
func (client AccessControlRecordsClient) Delete(accessControlRecordName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -240,8 +232,8 @@ func (client AccessControlRecordsClient) DeleteResponder(resp *http.Response) (r
// Get returns the properties of the specified access control record name.
//
// accessControlRecordName is name of access control record to be fetched.
// resourceGroupName is the resource group name managerName is the manager name
// accessControlRecordName is name of access control record to be fetched. resourceGroupName is the resource group name
// managerName is the manager name
func (client AccessControlRecordsClient) Get(accessControlRecordName string, resourceGroupName string, managerName string) (result AccessControlRecord, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// AlertsClient is the client for the Alerts methods of the
// Storsimple8000series service.
// AlertsClient is the client for the Alerts methods of the Storsimple8000series service.
type AlertsClient struct {
ManagementClient
}
@@ -43,8 +41,7 @@ func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsCli
// Clear clear the alerts.
//
// parameters is the clear alert request. resourceGroupName is the resource
// group name managerName is the manager name
// parameters is the clear alert request. resourceGroupName is the resource group name managerName is the manager name
func (client AlertsClient) Clear(parameters ClearAlertRequest, resourceGroupName string, managerName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -119,8 +116,7 @@ func (client AlertsClient) ClearResponder(resp *http.Response) (result autorest.
// ListByManager retrieves all the alerts in a manager.
//
// resourceGroupName is the resource group name managerName is the manager name
// filter is oData Filter options
// resourceGroupName is the resource group name managerName is the manager name filter is oData Filter options
func (client AlertsClient) ListByManager(resourceGroupName string, managerName string, filter string) (result AlertList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -264,9 +260,8 @@ func (client AlertsClient) ListByManagerComplete(resourceGroupName string, manag
// SendTestEmail sends a test alert email.
//
// deviceName is the device name parameters is the send test alert email
// request. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name parameters is the send test alert email request. resourceGroupName is the resource
// group name managerName is the manager name
func (client AlertsClient) SendTestEmail(deviceName string, parameters SendTestAlertEmailRequest, resourceGroupName string, managerName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,31 +24,26 @@ import (
"net/http"
)
// BackupPoliciesClient is the client for the BackupPolicies methods of the
// Storsimple8000series service.
// BackupPoliciesClient is the client for the BackupPolicies methods of the Storsimple8000series service.
type BackupPoliciesClient struct {
ManagementClient
}
// NewBackupPoliciesClient creates an instance of the BackupPoliciesClient
// client.
// NewBackupPoliciesClient creates an instance of the BackupPoliciesClient client.
func NewBackupPoliciesClient(subscriptionID string) BackupPoliciesClient {
return NewBackupPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewBackupPoliciesClientWithBaseURI creates an instance of the
// BackupPoliciesClient client.
// NewBackupPoliciesClientWithBaseURI creates an instance of the BackupPoliciesClient client.
func NewBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupPoliciesClient {
return BackupPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// BackupNow backup the backup policy now. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// BackupNow backup the backup policy now. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupPolicyName is the backup policy name.
// backupType is the backup Type. This can be cloudSnapshot or localSnapshot.
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupPolicyName is the backup policy name. backupType is the backup Type. This can be
// cloudSnapshot or localSnapshot. resourceGroupName is the resource group name managerName is the manager name
func (client BackupPoliciesClient) BackupNow(deviceName string, backupPolicyName string, backupType string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -139,14 +133,11 @@ func (client BackupPoliciesClient) BackupNowResponder(resp *http.Response) (resu
return
}
// CreateOrUpdate creates or updates the backup policy. This method may poll
// for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or updates the backup policy. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupPolicyName is the name of the backup
// policy to be created/updated. parameters is the backup policy.
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupPolicyName is the name of the backup policy to be created/updated. parameters is
// the backup policy. resourceGroupName is the resource group name managerName is the manager name
func (client BackupPoliciesClient) CreateOrUpdate(deviceName string, backupPolicyName string, parameters BackupPolicy, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan BackupPolicy, <-chan error) {
resultChan := make(chan BackupPolicy, 1)
errChan := make(chan error, 1)
@@ -241,13 +232,11 @@ func (client BackupPoliciesClient) CreateOrUpdateResponder(resp *http.Response)
return
}
// Delete deletes the backup policy. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Delete deletes the backup policy. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupPolicyName is the name of the backup
// policy. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name backupPolicyName is the name of the backup policy. resourceGroupName is the resource
// group name managerName is the manager name
func (client BackupPoliciesClient) Delete(deviceName string, backupPolicyName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -338,9 +327,8 @@ func (client BackupPoliciesClient) DeleteResponder(resp *http.Response) (result
// Get gets the properties of the specified backup policy name.
//
// deviceName is the device name backupPolicyName is the name of backup policy
// to be fetched. resourceGroupName is the resource group name managerName is
// the manager name
// deviceName is the device name backupPolicyName is the name of backup policy to be fetched. resourceGroupName is the
// resource group name managerName is the manager name
func (client BackupPoliciesClient) Get(deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (result BackupPolicy, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -414,8 +402,7 @@ func (client BackupPoliciesClient) GetResponder(resp *http.Response) (result Bac
// ListByDevice gets all the backup policies in a device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client BackupPoliciesClient) ListByDevice(deviceName string, resourceGroupName string, managerName string) (result BackupPolicyList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
+17 -26
View File
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// BackupsClient is the client for the Backups methods of the
// Storsimple8000series service.
// BackupsClient is the client for the Backups methods of the Storsimple8000series service.
type BackupsClient struct {
ManagementClient
}
@@ -41,15 +39,11 @@ func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsC
return BackupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Clone clones the backup element as a new volume. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// Clone clones the backup element as a new volume. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupName is the backup name.
// backupElementName is the backup element name. parameters is the clone
// request object. resourceGroupName is the resource group name managerName is
// the manager name
// deviceName is the device name backupName is the backup name. backupElementName is the backup element name.
// parameters is the clone request object. resourceGroupName is the resource group name managerName is the manager name
func (client BackupsClient) Clone(deviceName string, backupName string, backupElementName string, parameters CloneRequest, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -153,12 +147,11 @@ func (client BackupsClient) CloneResponder(resp *http.Response) (result autorest
return
}
// Delete deletes the backup. This method may poll for completion. Polling can
// be canceled by passing the cancel channel argument. The channel will be used
// to cancel polling and any outstanding HTTP requests.
// Delete deletes the backup. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupName is the backup name.
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupName is the backup name. resourceGroupName is the resource group name
// managerName is the manager name
func (client BackupsClient) Delete(deviceName string, backupName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -249,8 +242,8 @@ func (client BackupsClient) DeleteResponder(resp *http.Response) (result autores
// ListByDevice retrieves all the backups in a device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name filter is oData Filter options
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name filter is
// oData Filter options
func (client BackupsClient) ListByDevice(deviceName string, resourceGroupName string, managerName string, filter string) (result BackupList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -393,13 +386,11 @@ func (client BackupsClient) ListByDeviceComplete(deviceName string, resourceGrou
return resultChan, errChan
}
// Restore restores the backup on the device. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// Restore restores the backup on the device. This method may poll for completion. Polling can be canceled by passing
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupName is the backupSet name
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupName is the backupSet name resourceGroupName is the resource group name
// managerName is the manager name
func (client BackupsClient) Restore(deviceName string, backupName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,33 +24,28 @@ import (
"net/http"
)
// BackupSchedulesClient is the client for the BackupSchedules methods of the
// Storsimple8000series service.
// BackupSchedulesClient is the client for the BackupSchedules methods of the Storsimple8000series service.
type BackupSchedulesClient struct {
ManagementClient
}
// NewBackupSchedulesClient creates an instance of the BackupSchedulesClient
// client.
// NewBackupSchedulesClient creates an instance of the BackupSchedulesClient client.
func NewBackupSchedulesClient(subscriptionID string) BackupSchedulesClient {
return NewBackupSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewBackupSchedulesClientWithBaseURI creates an instance of the
// BackupSchedulesClient client.
// NewBackupSchedulesClientWithBaseURI creates an instance of the BackupSchedulesClient client.
func NewBackupSchedulesClientWithBaseURI(baseURI string, subscriptionID string) BackupSchedulesClient {
return BackupSchedulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates the backup schedule. This method may poll
// for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or updates the backup schedule. This method may poll for completion. Polling can be canceled
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// deviceName is the device name backupPolicyName is the backup policy name.
// backupScheduleName is the backup schedule name. parameters is the backup
// schedule. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name backupPolicyName is the backup policy name. backupScheduleName is the backup schedule
// name. parameters is the backup schedule. resourceGroupName is the resource group name managerName is the manager
// name
func (client BackupSchedulesClient) CreateOrUpdate(deviceName string, backupPolicyName string, backupScheduleName string, parameters BackupSchedule, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan BackupSchedule, <-chan error) {
resultChan := make(chan BackupSchedule, 1)
errChan := make(chan error, 1)
@@ -151,13 +145,11 @@ func (client BackupSchedulesClient) CreateOrUpdateResponder(resp *http.Response)
return
}
// Delete deletes the backup schedule. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Delete deletes the backup schedule. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name backupPolicyName is the backup policy name.
// backupScheduleName is the name the backup schedule. resourceGroupName is the
// resource group name managerName is the manager name
// deviceName is the device name backupPolicyName is the backup policy name. backupScheduleName is the name the backup
// schedule. resourceGroupName is the resource group name managerName is the manager name
func (client BackupSchedulesClient) Delete(deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -249,9 +241,8 @@ func (client BackupSchedulesClient) DeleteResponder(resp *http.Response) (result
// Get gets the properties of the specified backup schedule name.
//
// deviceName is the device name backupPolicyName is the backup policy name.
// backupScheduleName is the name of the backup schedule to be fetched
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupPolicyName is the backup policy name. backupScheduleName is the name of the
// backup schedule to be fetched resourceGroupName is the resource group name managerName is the manager name
func (client BackupSchedulesClient) Get(deviceName string, backupPolicyName string, backupScheduleName string, resourceGroupName string, managerName string) (result BackupSchedule, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -326,8 +317,8 @@ func (client BackupSchedulesClient) GetResponder(resp *http.Response) (result Ba
// ListByBackupPolicy gets all the backup schedules in a backup policy.
//
// deviceName is the device name backupPolicyName is the backup policy name.
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name backupPolicyName is the backup policy name. resourceGroupName is the resource group
// name managerName is the manager name
func (client BackupSchedulesClient) ListByBackupPolicy(deviceName string, backupPolicyName string, resourceGroupName string, managerName string) (result BackupScheduleList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,32 +24,27 @@ import (
"net/http"
)
// BandwidthSettingsClient is the client for the BandwidthSettings methods of
// the Storsimple8000series service.
// BandwidthSettingsClient is the client for the BandwidthSettings methods of the Storsimple8000series service.
type BandwidthSettingsClient struct {
ManagementClient
}
// NewBandwidthSettingsClient creates an instance of the
// BandwidthSettingsClient client.
// NewBandwidthSettingsClient creates an instance of the BandwidthSettingsClient client.
func NewBandwidthSettingsClient(subscriptionID string) BandwidthSettingsClient {
return NewBandwidthSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewBandwidthSettingsClientWithBaseURI creates an instance of the
// BandwidthSettingsClient client.
// NewBandwidthSettingsClientWithBaseURI creates an instance of the BandwidthSettingsClient client.
func NewBandwidthSettingsClientWithBaseURI(baseURI string, subscriptionID string) BandwidthSettingsClient {
return BandwidthSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates the bandwidth setting This method may poll
// for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or updates the bandwidth setting This method may poll for completion. Polling can be canceled
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// bandwidthSettingName is the bandwidth setting name. parameters is the
// bandwidth setting to be added or updated. resourceGroupName is the resource
// group name managerName is the manager name
// bandwidthSettingName is the bandwidth setting name. parameters is the bandwidth setting to be added or updated.
// resourceGroupName is the resource group name managerName is the manager name
func (client BandwidthSettingsClient) CreateOrUpdate(bandwidthSettingName string, parameters BandwidthSetting, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan BandwidthSetting, <-chan error) {
resultChan := make(chan BandwidthSetting, 1)
errChan := make(chan error, 1)
@@ -144,12 +138,11 @@ func (client BandwidthSettingsClient) CreateOrUpdateResponder(resp *http.Respons
return
}
// Delete deletes the bandwidth setting This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Delete deletes the bandwidth setting This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// bandwidthSettingName is the name of the bandwidth setting. resourceGroupName
// is the resource group name managerName is the manager name
// bandwidthSettingName is the name of the bandwidth setting. resourceGroupName is the resource group name managerName
// is the manager name
func (client BandwidthSettingsClient) Delete(bandwidthSettingName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -239,8 +232,8 @@ func (client BandwidthSettingsClient) DeleteResponder(resp *http.Response) (resu
// Get returns the properties of the specified bandwidth setting name.
//
// bandwidthSettingName is the name of bandwidth setting to be fetched.
// resourceGroupName is the resource group name managerName is the manager name
// bandwidthSettingName is the name of bandwidth setting to be fetched. resourceGroupName is the resource group name
// managerName is the manager name
func (client BandwidthSettingsClient) Get(bandwidthSettingName string, resourceGroupName string, managerName string) (result BandwidthSetting, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1,5 +1,4 @@
// Package storsimple8000series implements the Azure ARM Storsimple8000series
// service API version 2017-06-01.
// Package storsimple8000series implements the Azure ARM Storsimple8000series service API version 2017-06-01.
//
//
package storsimple8000series
@@ -18,9 +17,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,26 +24,22 @@ import (
"net/http"
)
// CloudAppliancesClient is the client for the CloudAppliances methods of the
// Storsimple8000series service.
// CloudAppliancesClient is the client for the CloudAppliances methods of the Storsimple8000series service.
type CloudAppliancesClient struct {
ManagementClient
}
// NewCloudAppliancesClient creates an instance of the CloudAppliancesClient
// client.
// NewCloudAppliancesClient creates an instance of the CloudAppliancesClient client.
func NewCloudAppliancesClient(subscriptionID string) CloudAppliancesClient {
return NewCloudAppliancesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewCloudAppliancesClientWithBaseURI creates an instance of the
// CloudAppliancesClient client.
// NewCloudAppliancesClientWithBaseURI creates an instance of the CloudAppliancesClient client.
func NewCloudAppliancesClientWithBaseURI(baseURI string, subscriptionID string) CloudAppliancesClient {
return CloudAppliancesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// ListSupportedConfigurations lists supported cloud appliance models and
// supported configurations.
// ListSupportedConfigurations lists supported cloud appliance models and supported configurations.
//
// resourceGroupName is the resource group name managerName is the manager name
func (client CloudAppliancesClient) ListSupportedConfigurations(resourceGroupName string, managerName string) (result CloudApplianceConfigurationList, err error) {
@@ -116,12 +111,10 @@ func (client CloudAppliancesClient) ListSupportedConfigurationsResponder(resp *h
return
}
// Provision provisions cloud appliance. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Provision provisions cloud appliance. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// parameters is the cloud appliance resourceGroupName is the resource group
// name managerName is the manager name
// parameters is the cloud appliance resourceGroupName is the resource group name managerName is the manager name
func (client CloudAppliancesClient) Provision(parameters CloudAppliance, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
+49 -75
View File
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// DevicesClient is the client for the Devices methods of the
// Storsimple8000series service.
// DevicesClient is the client for the Devices methods of the Storsimple8000series service.
type DevicesClient struct {
ManagementClient
}
@@ -41,11 +39,9 @@ func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesC
return DevicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// AuthorizeForServiceEncryptionKeyRollover authorizes the specified device for
// service data encryption key rollover.
// AuthorizeForServiceEncryptionKeyRollover authorizes the specified device for service data encryption key rollover.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) AuthorizeForServiceEncryptionKeyRollover(deviceName string, resourceGroupName string, managerName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -115,13 +111,12 @@ func (client DevicesClient) AuthorizeForServiceEncryptionKeyRolloverResponder(re
return
}
// Configure complete minimal setup before using the device. This method may
// poll for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// Configure complete minimal setup before using the device. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// parameters is the minimal properties to configure a device.
// resourceGroupName is the resource group name managerName is the manager name
// parameters is the minimal properties to configure a device. resourceGroupName is the resource group name managerName
// is the manager name
func (client DevicesClient) Configure(parameters ConfigureDeviceRequest, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -216,12 +211,10 @@ func (client DevicesClient) ConfigureResponder(resp *http.Response) (result auto
return
}
// Deactivate deactivates the device. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Deactivate deactivates the device. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) Deactivate(deviceName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -309,12 +302,10 @@ func (client DevicesClient) DeactivateResponder(resp *http.Response) (result aut
return
}
// Delete deletes the device. This method may poll for completion. Polling can
// be canceled by passing the cancel channel argument. The channel will be used
// to cancel polling and any outstanding HTTP requests.
// Delete deletes the device. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) Delete(deviceName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -402,15 +393,13 @@ func (client DevicesClient) DeleteResponder(resp *http.Response) (result autores
return
}
// Failover failovers a set of volume containers from a specified source device
// to a target device. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to
// Failover failovers a set of volume containers from a specified source device to a target device. This method may
// poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to
// cancel polling and any outstanding HTTP requests.
//
// sourceDeviceName is the source device name on which failover is performed.
// parameters is failoverRequest containing the source device and the list of
// volume containers to be failed over. resourceGroupName is the resource group
// name managerName is the manager name
// sourceDeviceName is the source device name on which failover is performed. parameters is failoverRequest containing
// the source device and the list of volume containers to be failed over. resourceGroupName is the resource group name
// managerName is the manager name
func (client DevicesClient) Failover(sourceDeviceName string, parameters FailoverRequest, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -502,11 +491,9 @@ func (client DevicesClient) FailoverResponder(resp *http.Response) (result autor
// Get returns the properties of the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name expand is 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
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name expand is
// 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) Get(deviceName string, resourceGroupName string, managerName string, expand string) (result Device, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -582,8 +569,7 @@ func (client DevicesClient) GetResponder(resp *http.Response) (result Device, er
// GetUpdateSummary returns the update summary of the specified device name.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) GetUpdateSummary(deviceName string, resourceGroupName string, managerName string) (result Updates, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -654,13 +640,11 @@ func (client DevicesClient) GetUpdateSummaryResponder(resp *http.Response) (resu
return
}
// InstallUpdates downloads and installs the updates on the device. This method
// may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
// InstallUpdates downloads and installs the updates on the device. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) InstallUpdates(deviceName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -750,10 +734,9 @@ func (client DevicesClient) InstallUpdatesResponder(resp *http.Response) (result
// ListByManager returns the list of devices for the specified manager.
//
// resourceGroupName is the resource group name managerName is the manager name
// expand is 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
// resourceGroupName is the resource group name managerName is the manager name expand is 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) ListByManager(resourceGroupName string, managerName string, expand string) (result DeviceList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -826,13 +809,11 @@ func (client DevicesClient) ListByManagerResponder(resp *http.Response) (result
return
}
// 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.
// 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.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) ListFailoverSets(deviceName string, resourceGroupName string, managerName string) (result FailoverSetsList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -903,14 +884,12 @@ func (client DevicesClient) ListFailoverSetsResponder(resp *http.Response) (resu
return
}
// 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.
// 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.
//
// sourceDeviceName is the source device name on which failover is performed.
// parameters is listFailoverTargetsRequest containing the list of volume
// containers to be failed over. resourceGroupName is the resource group name
// managerName is the manager name
// sourceDeviceName is the source device name on which failover is performed. parameters is listFailoverTargetsRequest
// containing the list of volume containers to be failed over. resourceGroupName is the resource group name managerName
// is the manager name
func (client DevicesClient) ListFailoverTargets(sourceDeviceName string, parameters ListFailoverTargetsRequest, resourceGroupName string, managerName string) (result FailoverTargetsList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -985,8 +964,7 @@ func (client DevicesClient) ListFailoverTargetsResponder(resp *http.Response) (r
// ListMetricDefinition gets the metric definitions for the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) ListMetricDefinition(deviceName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1059,8 +1037,8 @@ func (client DevicesClient) ListMetricDefinitionResponder(resp *http.Response) (
// ListMetrics gets the metrics for the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name filter is oData Filter options
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name filter is
// oData Filter options
func (client DevicesClient) ListMetrics(deviceName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1132,13 +1110,10 @@ func (client DevicesClient) ListMetricsResponder(resp *http.Response) (result Me
return
}
// ScanForUpdates scans for updates on the device. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// ScanForUpdates scans for updates on the device. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DevicesClient) ScanForUpdates(deviceName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -1228,9 +1203,8 @@ func (client DevicesClient) ScanForUpdatesResponder(resp *http.Response) (result
// Update patches the device.
//
// deviceName is the device name parameters is patch representation of the
// device. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name parameters is patch representation of the device. resourceGroupName is the resource
// group name managerName is the manager name
func (client DevicesClient) Update(deviceName string, parameters DevicePatch, resourceGroupName string, managerName string) (result Device, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,32 +24,27 @@ import (
"net/http"
)
// DeviceSettingsClient is the client for the DeviceSettings methods of the
// Storsimple8000series service.
// DeviceSettingsClient is the client for the DeviceSettings methods of the Storsimple8000series service.
type DeviceSettingsClient struct {
ManagementClient
}
// NewDeviceSettingsClient creates an instance of the DeviceSettingsClient
// client.
// NewDeviceSettingsClient creates an instance of the DeviceSettingsClient client.
func NewDeviceSettingsClient(subscriptionID string) DeviceSettingsClient {
return NewDeviceSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewDeviceSettingsClientWithBaseURI creates an instance of the
// DeviceSettingsClient client.
// NewDeviceSettingsClientWithBaseURI creates an instance of the DeviceSettingsClient client.
func NewDeviceSettingsClientWithBaseURI(baseURI string, subscriptionID string) DeviceSettingsClient {
return DeviceSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdateAlertSettings creates or updates the alert settings of the
// specified device. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to
// cancel polling and any outstanding HTTP requests.
// CreateOrUpdateAlertSettings creates or updates the alert settings of the specified device. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel
// polling and any outstanding HTTP requests.
//
// deviceName is the device name parameters is the alert settings to be added
// or updated. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name parameters is the alert settings to be added or updated. resourceGroupName is the
// resource group name managerName is the manager name
func (client DeviceSettingsClient) CreateOrUpdateAlertSettings(deviceName string, parameters AlertSettings, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan AlertSettings, <-chan error) {
resultChan := make(chan AlertSettings, 1)
errChan := make(chan error, 1)
@@ -143,14 +137,12 @@ func (client DeviceSettingsClient) CreateOrUpdateAlertSettingsResponder(resp *ht
return
}
// CreateOrUpdateTimeSettings creates or updates the time settings of the
// specified device. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to
// cancel polling and any outstanding HTTP requests.
// CreateOrUpdateTimeSettings creates or updates the time settings of the specified device. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel
// polling and any outstanding HTTP requests.
//
// deviceName is the device name parameters is the time settings to be added or
// updated. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name parameters is the time settings to be added or updated. resourceGroupName is the
// resource group name managerName is the manager name
func (client DeviceSettingsClient) CreateOrUpdateTimeSettings(deviceName string, parameters TimeSettings, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan TimeSettings, <-chan error) {
resultChan := make(chan TimeSettings, 1)
errChan := make(chan error, 1)
@@ -246,8 +238,7 @@ func (client DeviceSettingsClient) CreateOrUpdateTimeSettingsResponder(resp *htt
// GetAlertSettings gets the alert settings of the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DeviceSettingsClient) GetAlertSettings(deviceName string, resourceGroupName string, managerName string) (result AlertSettings, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -320,8 +311,7 @@ func (client DeviceSettingsClient) GetAlertSettingsResponder(resp *http.Response
// GetNetworkSettings gets the network settings of the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DeviceSettingsClient) GetNetworkSettings(deviceName string, resourceGroupName string, managerName string) (result NetworkSettings, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -392,11 +382,9 @@ func (client DeviceSettingsClient) GetNetworkSettingsResponder(resp *http.Respon
return
}
// GetSecuritySettings returns the Security properties of the specified device
// name.
// GetSecuritySettings returns the Security properties of the specified device name.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DeviceSettingsClient) GetSecuritySettings(deviceName string, resourceGroupName string, managerName string) (result SecuritySettings, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -469,8 +457,7 @@ func (client DeviceSettingsClient) GetSecuritySettingsResponder(resp *http.Respo
// GetTimeSettings gets the time settings of the specified device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DeviceSettingsClient) GetTimeSettings(deviceName string, resourceGroupName string, managerName string) (result TimeSettings, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -541,13 +528,11 @@ func (client DeviceSettingsClient) GetTimeSettingsResponder(resp *http.Response)
return
}
// SyncRemotemanagementCertificate sync Remote management Certificate between
// appliance and Service This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to
// SyncRemotemanagementCertificate sync Remote management Certificate between appliance and Service This method may
// poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to
// cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client DeviceSettingsClient) SyncRemotemanagementCertificate(deviceName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -635,14 +620,12 @@ func (client DeviceSettingsClient) SyncRemotemanagementCertificateResponder(resp
return
}
// UpdateNetworkSettings updates the network settings on the specified device.
// This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any
// UpdateNetworkSettings updates the network settings on the specified device. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
//
// deviceName is the device name parameters is the network settings to be
// updated. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name parameters is the network settings to be updated. resourceGroupName is the resource
// group name managerName is the manager name
func (client DeviceSettingsClient) UpdateNetworkSettings(deviceName string, parameters NetworkSettingsPatch, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan NetworkSettings, <-chan error) {
resultChan := make(chan NetworkSettings, 1)
errChan := make(chan error, 1)
@@ -733,14 +716,12 @@ func (client DeviceSettingsClient) UpdateNetworkSettingsResponder(resp *http.Res
return
}
// UpdateSecuritySettings patch Security properties of the specified device
// name. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel
// polling and any outstanding HTTP requests.
// UpdateSecuritySettings patch Security properties of the specified device name. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
//
// deviceName is the device name parameters is the security settings properties
// to be patched. resourceGroupName is the resource group name managerName is
// the manager name
// deviceName is the device name parameters is the security settings properties to be patched. resourceGroupName is the
// resource group name managerName is the manager name
func (client DeviceSettingsClient) UpdateSecuritySettings(deviceName string, parameters SecuritySettingsPatch, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan SecuritySettings, <-chan error) {
resultChan := make(chan SecuritySettings, 1)
errChan := make(chan error, 1)
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,33 +24,28 @@ import (
"net/http"
)
// HardwareComponentGroupsClient is the client for the HardwareComponentGroups
// methods of the Storsimple8000series service.
// HardwareComponentGroupsClient is the client for the HardwareComponentGroups methods of the Storsimple8000series
// service.
type HardwareComponentGroupsClient struct {
ManagementClient
}
// NewHardwareComponentGroupsClient creates an instance of the
// HardwareComponentGroupsClient client.
// NewHardwareComponentGroupsClient creates an instance of the HardwareComponentGroupsClient client.
func NewHardwareComponentGroupsClient(subscriptionID string) HardwareComponentGroupsClient {
return NewHardwareComponentGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewHardwareComponentGroupsClientWithBaseURI creates an instance of the
// HardwareComponentGroupsClient client.
// NewHardwareComponentGroupsClientWithBaseURI creates an instance of the HardwareComponentGroupsClient client.
func NewHardwareComponentGroupsClientWithBaseURI(baseURI string, subscriptionID string) HardwareComponentGroupsClient {
return HardwareComponentGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// ChangeControllerPowerState changes the power state of the controller. This
// method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any
// ChangeControllerPowerState changes the power state of the controller. This method may poll for completion. Polling
// can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
//
// deviceName is the device name hardwareComponentGroupName is the hardware
// component group name. parameters is the controller power state change
// request. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name hardwareComponentGroupName is the hardware component group name. parameters is the
// controller power state change request. resourceGroupName is the resource group name managerName is the manager name
func (client HardwareComponentGroupsClient) ChangeControllerPowerState(deviceName string, hardwareComponentGroupName string, parameters ControllerPowerStateChangeRequest, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -146,8 +140,7 @@ func (client HardwareComponentGroupsClient) ChangeControllerPowerStateResponder(
// ListByDevice lists the hardware component groups at device-level.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client HardwareComponentGroupsClient) ListByDevice(deviceName string, resourceGroupName string, managerName string) (result HardwareComponentGroupList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
+16 -20
View File
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// JobsClient is the client for the Jobs methods of the Storsimple8000series
// service.
// JobsClient is the client for the Jobs methods of the Storsimple8000series service.
type JobsClient struct {
ManagementClient
}
@@ -41,12 +39,11 @@ func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient
return JobsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Cancel cancels a job on the device. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Cancel cancels a job on the device. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name jobName is the jobName. resourceGroupName is
// the resource group name managerName is the manager name
// deviceName is the device name jobName is the jobName. resourceGroupName is the resource group name managerName is
// the manager name
func (client JobsClient) Cancel(deviceName string, jobName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -137,8 +134,8 @@ func (client JobsClient) CancelResponder(resp *http.Response) (result autorest.R
// Get gets the details of the specified job name.
//
// deviceName is the device name jobName is the job Name. resourceGroupName is
// the resource group name managerName is the manager name
// deviceName is the device name jobName is the job Name. resourceGroupName is the resource group name managerName is
// the manager name
func (client JobsClient) Get(deviceName string, jobName string, resourceGroupName string, managerName string) (result Job, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -210,11 +207,11 @@ func (client JobsClient) GetResponder(resp *http.Response) (result Job, err erro
return
}
// ListByDevice gets all the jobs for specified device. With optional OData
// query parameters, a filtered set of jobs is returned.
// ListByDevice gets all the jobs for specified device. With optional OData query parameters, a filtered set of jobs is
// returned.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name filter is oData Filter options
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name filter is
// oData Filter options
func (client JobsClient) ListByDevice(deviceName string, resourceGroupName string, managerName string, filter string) (result JobList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -357,11 +354,10 @@ func (client JobsClient) ListByDeviceComplete(deviceName string, resourceGroupNa
return resultChan, errChan
}
// ListByManager gets all the jobs for the specified manager. With optional
// OData query parameters, a filtered set of jobs is returned.
// ListByManager gets all the jobs for the specified manager. With optional OData query parameters, a filtered set of
// jobs is returned.
//
// resourceGroupName is the resource group name managerName is the manager name
// filter is oData Filter options
// resourceGroupName is the resource group name managerName is the manager name filter is oData Filter options
func (client JobsClient) ListByManager(resourceGroupName string, managerName string, filter string) (result JobList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// ManagersClient is the client for the Managers methods of the
// Storsimple8000series service.
// ManagersClient is the client for the Managers methods of the Storsimple8000series service.
type ManagersClient struct {
ManagementClient
}
@@ -36,16 +34,15 @@ func NewManagersClient(subscriptionID string) ManagersClient {
return NewManagersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewManagersClientWithBaseURI creates an instance of the ManagersClient
// client.
// NewManagersClientWithBaseURI creates an instance of the ManagersClient client.
func NewManagersClientWithBaseURI(baseURI string, subscriptionID string) ManagersClient {
return ManagersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateExtendedInfo creates the extended info of the manager.
//
// parameters is the manager extended information. resourceGroupName is the
// resource group name managerName is the manager name
// parameters is the manager extended information. resourceGroupName is the resource group name managerName is the
// manager name
func (client ManagersClient) CreateExtendedInfo(parameters ManagerExtendedInfo, resourceGroupName string, managerName string) (result ManagerExtendedInfo, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -124,8 +121,7 @@ func (client ManagersClient) CreateExtendedInfoResponder(resp *http.Response) (r
// CreateOrUpdate creates or updates the manager.
//
// parameters is the manager. resourceGroupName is the resource group name
// managerName is the manager name
// parameters is the manager. resourceGroupName is the resource group name managerName is the manager name
func (client ManagersClient) CreateOrUpdate(parameters Manager, resourceGroupName string, managerName string) (result Manager, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: parameters,
@@ -488,11 +484,9 @@ func (client ManagersClient) GetActivationKeyResponder(resp *http.Response) (res
return
}
// GetDevicePublicEncryptionKey returns the public encryption key of the
// device.
// GetDevicePublicEncryptionKey returns the public encryption key of the device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client ManagersClient) GetDevicePublicEncryptionKey(deviceName string, resourceGroupName string, managerName string) (result PublicKey, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -635,8 +629,7 @@ func (client ManagersClient) GetEncryptionSettingsResponder(resp *http.Response)
return
}
// GetExtendedInfo returns the extended information of the specified manager
// name.
// GetExtendedInfo returns the extended information of the specified manager name.
//
// resourceGroupName is the resource group name managerName is the manager name
func (client ManagersClient) GetExtendedInfo(resourceGroupName string, managerName string) (result ManagerExtendedInfo, err error) {
@@ -708,8 +701,7 @@ func (client ManagersClient) GetExtendedInfoResponder(resp *http.Response) (resu
return
}
// GetPublicEncryptionKey returns the symmetric encrypted public encryption key
// of the manager.
// GetPublicEncryptionKey returns the symmetric encrypted public encryption key of the manager.
//
// resourceGroupName is the resource group name managerName is the manager name
func (client ManagersClient) GetPublicEncryptionKey(resourceGroupName string, managerName string) (result SymmetricEncryptedSecret, err error) {
@@ -908,8 +900,7 @@ func (client ManagersClient) ListByResourceGroupResponder(resp *http.Response) (
// ListFeatureSupportStatus lists the features and their support status
//
// resourceGroupName is the resource group name managerName is the manager name
// filter is oData Filter options
// resourceGroupName is the resource group name managerName is the manager name filter is oData Filter options
func (client ManagersClient) ListFeatureSupportStatus(resourceGroupName string, managerName string, filter string) (result FeatureList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1056,8 +1047,7 @@ func (client ManagersClient) ListMetricDefinitionResponder(resp *http.Response)
// ListMetrics gets the metrics for the specified manager.
//
// resourceGroupName is the resource group name managerName is the manager name
// filter is oData Filter options
// resourceGroupName is the resource group name managerName is the manager name filter is oData Filter options
func (client ManagersClient) ListMetrics(resourceGroupName string, managerName string, filter string) (result MetricList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1128,8 +1118,7 @@ func (client ManagersClient) ListMetricsResponder(resp *http.Response) (result M
return
}
// RegenerateActivationKey re-generates and returns the activation key of the
// manager.
// RegenerateActivationKey re-generates and returns the activation key of the manager.
//
// resourceGroupName is the resource group name managerName is the manager name
func (client ManagersClient) RegenerateActivationKey(resourceGroupName string, managerName string) (result Key, err error) {
@@ -1203,8 +1192,8 @@ func (client ManagersClient) RegenerateActivationKeyResponder(resp *http.Respons
// Update updates the StorSimple Manager.
//
// parameters is the manager update parameters. resourceGroupName is the
// resource group name managerName is the manager name
// parameters is the manager update parameters. resourceGroupName is the resource group name managerName is the manager
// name
func (client ManagersClient) Update(parameters ManagerPatch, resourceGroupName string, managerName string) (result Manager, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -1278,9 +1267,8 @@ func (client ManagersClient) UpdateResponder(resp *http.Response) (result Manage
// UpdateExtendedInfo updates the extended info of the manager.
//
// parameters is the manager extended information. resourceGroupName is the
// resource group name managerName is the manager name ifMatch is pass the ETag
// of ExtendedInfo fetched from GET call
// parameters is the manager extended information. resourceGroupName is the resource group name managerName is the
// manager name ifMatch is pass the ETag of ExtendedInfo fetched from GET call
func (client ManagersClient) UpdateExtendedInfo(parameters ManagerExtendedInfo, resourceGroupName string, managerName string, ifMatch string) (result ManagerExtendedInfo, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
+164 -283
View File
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,13 +24,11 @@ import (
"net/http"
)
// AlertEmailNotificationStatus enumerates the values for alert email
// notification status.
// AlertEmailNotificationStatus enumerates the values for alert email notification status.
type AlertEmailNotificationStatus string
const (
// Disabled specifies the disabled state for alert email notification
// status.
// Disabled specifies the disabled state for alert email notification status.
Disabled AlertEmailNotificationStatus = "Disabled"
// Enabled specifies the enabled state for alert email notification status.
Enabled AlertEmailNotificationStatus = "Enabled"
@@ -43,8 +40,7 @@ type AlertScope string
const (
// AlertScopeDevice specifies the alert scope device state for alert scope.
AlertScopeDevice AlertScope = "Device"
// AlertScopeResource specifies the alert scope resource state for alert
// scope.
// AlertScopeResource specifies the alert scope resource state for alert scope.
AlertScopeResource AlertScope = "Resource"
)
@@ -64,11 +60,9 @@ const (
type AlertSourceType string
const (
// AlertSourceTypeDevice specifies the alert source type device state for
// alert source type.
// AlertSourceTypeDevice specifies the alert source type device state for alert source type.
AlertSourceTypeDevice AlertSourceType = "Device"
// AlertSourceTypeResource specifies the alert source type resource state
// for alert source type.
// AlertSourceTypeResource specifies the alert source type resource state for alert source type.
AlertSourceTypeResource AlertSourceType = "Resource"
)
@@ -96,15 +90,13 @@ const (
NTLM AuthenticationType = "NTLM"
)
// AuthorizationEligibility enumerates the values for authorization
// eligibility.
// AuthorizationEligibility enumerates the values for authorization eligibility.
type AuthorizationEligibility string
const (
// Eligible specifies the eligible state for authorization eligibility.
Eligible AuthorizationEligibility = "Eligible"
// InEligible specifies the in eligible state for authorization
// eligibility.
// InEligible specifies the in eligible state for authorization eligibility.
InEligible AuthorizationEligibility = "InEligible"
)
@@ -112,11 +104,9 @@ const (
type AuthorizationStatus string
const (
// AuthorizationStatusDisabled specifies the authorization status disabled
// state for authorization status.
// AuthorizationStatusDisabled specifies the authorization status disabled state for authorization status.
AuthorizationStatusDisabled AuthorizationStatus = "Disabled"
// AuthorizationStatusEnabled specifies the authorization status enabled
// state for authorization status.
// AuthorizationStatusEnabled specifies the authorization status enabled state for authorization status.
AuthorizationStatusEnabled AuthorizationStatus = "Enabled"
)
@@ -132,16 +122,15 @@ const (
BySSM BackupJobCreationType = "BySSM"
)
// BackupPolicyCreationType enumerates the values for backup policy creation
// type.
// BackupPolicyCreationType enumerates the values for backup policy creation type.
type BackupPolicyCreationType string
const (
// BackupPolicyCreationTypeBySaaS specifies the backup policy creation type
// by saa s state for backup policy creation type.
// BackupPolicyCreationTypeBySaaS specifies the backup policy creation type by saa s state for backup policy creation
// type.
BackupPolicyCreationTypeBySaaS BackupPolicyCreationType = "BySaaS"
// BackupPolicyCreationTypeBySSM specifies the backup policy creation type
// by ssm state for backup policy creation type.
// BackupPolicyCreationTypeBySSM specifies the backup policy creation type by ssm state for backup policy creation
// type.
BackupPolicyCreationTypeBySSM BackupPolicyCreationType = "BySSM"
)
@@ -149,11 +138,9 @@ const (
type BackupStatus string
const (
// BackupStatusDisabled specifies the backup status disabled state for
// backup status.
// BackupStatusDisabled specifies the backup status disabled state for backup status.
BackupStatusDisabled BackupStatus = "Disabled"
// BackupStatusEnabled specifies the backup status enabled state for backup
// status.
// BackupStatusEnabled specifies the backup status enabled state for backup status.
BackupStatusEnabled BackupStatus = "Enabled"
)
@@ -171,22 +158,17 @@ const (
type ControllerID string
const (
// ControllerIDController0 specifies the controller id controller 0 state
// for controller id.
// ControllerIDController0 specifies the controller id controller 0 state for controller id.
ControllerIDController0 ControllerID = "Controller0"
// ControllerIDController1 specifies the controller id controller 1 state
// for controller id.
// ControllerIDController1 specifies the controller id controller 1 state for controller id.
ControllerIDController1 ControllerID = "Controller1"
// ControllerIDNone specifies the controller id none state for controller
// id.
// ControllerIDNone specifies the controller id none state for controller id.
ControllerIDNone ControllerID = "None"
// ControllerIDUnknown specifies the controller id unknown state for
// controller id.
// ControllerIDUnknown specifies the controller id unknown state for controller id.
ControllerIDUnknown ControllerID = "Unknown"
)
// ControllerPowerStateAction enumerates the values for controller power state
// action.
// ControllerPowerStateAction enumerates the values for controller power state action.
type ControllerPowerStateAction string
const (
@@ -202,23 +184,17 @@ const (
type ControllerStatus string
const (
// ControllerStatusFailure specifies the controller status failure state
// for controller status.
// ControllerStatusFailure specifies the controller status failure state for controller status.
ControllerStatusFailure ControllerStatus = "Failure"
// ControllerStatusNotPresent specifies the controller status not present
// state for controller status.
// ControllerStatusNotPresent specifies the controller status not present state for controller status.
ControllerStatusNotPresent ControllerStatus = "NotPresent"
// ControllerStatusOk specifies the controller status ok state for
// controller status.
// ControllerStatusOk specifies the controller status ok state for controller status.
ControllerStatusOk ControllerStatus = "Ok"
// ControllerStatusPoweredOff specifies the controller status powered off
// state for controller status.
// ControllerStatusPoweredOff specifies the controller status powered off state for controller status.
ControllerStatusPoweredOff ControllerStatus = "PoweredOff"
// ControllerStatusRecovering specifies the controller status recovering
// state for controller status.
// ControllerStatusRecovering specifies the controller status recovering state for controller status.
ControllerStatusRecovering ControllerStatus = "Recovering"
// ControllerStatusWarning specifies the controller status warning state
// for controller status.
// ControllerStatusWarning specifies the controller status warning state for controller status.
ControllerStatusWarning ControllerStatus = "Warning"
)
@@ -242,8 +218,7 @@ const (
Wednesday DayOfWeek = "Wednesday"
)
// DeviceConfigurationStatus enumerates the values for device configuration
// status.
// DeviceConfigurationStatus enumerates the values for device configuration status.
type DeviceConfigurationStatus string
const (
@@ -275,8 +250,7 @@ const (
Provisioning DeviceStatus = "Provisioning"
// ReadyToSetup specifies the ready to setup state for device status.
ReadyToSetup DeviceStatus = "ReadyToSetup"
// RequiresAttention specifies the requires attention state for device
// status.
// RequiresAttention specifies the requires attention state for device status.
RequiresAttention DeviceStatus = "RequiresAttention"
// Unknown specifies the unknown state for device status.
Unknown DeviceStatus = "Unknown"
@@ -286,14 +260,12 @@ const (
type DeviceType string
const (
// DeviceTypeInvalid specifies the device type invalid state for device
// type.
// DeviceTypeInvalid specifies the device type invalid state for device type.
DeviceTypeInvalid DeviceType = "Invalid"
// DeviceTypeSeries8000PhysicalAppliance specifies the device type series
// 8000 physical appliance state for device type.
// DeviceTypeSeries8000PhysicalAppliance specifies the device type series 8000 physical appliance state for device
// type.
DeviceTypeSeries8000PhysicalAppliance DeviceType = "Series8000PhysicalAppliance"
// DeviceTypeSeries8000VirtualAppliance specifies the device type series
// 8000 virtual appliance state for device type.
// DeviceTypeSeries8000VirtualAppliance specifies the device type series 8000 virtual appliance state for device type.
DeviceTypeSeries8000VirtualAppliance DeviceType = "Series8000VirtualAppliance"
)
@@ -301,14 +273,11 @@ const (
type EncryptionAlgorithm string
const (
// EncryptionAlgorithmAES256 specifies the encryption algorithm aes256
// state for encryption algorithm.
// EncryptionAlgorithmAES256 specifies the encryption algorithm aes256 state for encryption algorithm.
EncryptionAlgorithmAES256 EncryptionAlgorithm = "AES256"
// EncryptionAlgorithmNone specifies the encryption algorithm none state
// for encryption algorithm.
// EncryptionAlgorithmNone specifies the encryption algorithm none state for encryption algorithm.
EncryptionAlgorithmNone EncryptionAlgorithm = "None"
// EncryptionAlgorithmRSAESPKCS1V15 specifies the encryption algorithm
// rsaespkcs1v15 state for encryption algorithm.
// EncryptionAlgorithmRSAESPKCS1V15 specifies the encryption algorithm rsaespkcs1v15 state for encryption algorithm.
EncryptionAlgorithmRSAESPKCS1V15 EncryptionAlgorithm = "RSAES_PKCS1_v_1_5"
)
@@ -316,11 +285,9 @@ const (
type EncryptionStatus string
const (
// EncryptionStatusDisabled specifies the encryption status disabled state
// for encryption status.
// EncryptionStatusDisabled specifies the encryption status disabled state for encryption status.
EncryptionStatusDisabled EncryptionStatus = "Disabled"
// EncryptionStatusEnabled specifies the encryption status enabled state
// for encryption status.
// EncryptionStatusEnabled specifies the encryption status enabled state for encryption status.
EncryptionStatusEnabled EncryptionStatus = "Enabled"
)
@@ -328,13 +295,11 @@ const (
type FeatureSupportStatus string
const (
// NotAvailable specifies the not available state for feature support
// status.
// NotAvailable specifies the not available state for feature support status.
NotAvailable FeatureSupportStatus = "NotAvailable"
// Supported specifies the supported state for feature support status.
Supported FeatureSupportStatus = "Supported"
// UnsupportedDeviceVersion specifies the unsupported device version state
// for feature support status.
// UnsupportedDeviceVersion specifies the unsupported device version state for feature support status.
UnsupportedDeviceVersion FeatureSupportStatus = "UnsupportedDeviceVersion"
)
@@ -342,26 +307,22 @@ const (
type HardwareComponentStatus string
const (
// HardwareComponentStatusFailure specifies the hardware component status
// failure state for hardware component status.
// HardwareComponentStatusFailure specifies the hardware component status failure state for hardware component status.
HardwareComponentStatusFailure HardwareComponentStatus = "Failure"
// HardwareComponentStatusNotPresent specifies the hardware component
// status not present state for hardware component status.
// HardwareComponentStatusNotPresent specifies the hardware component status not present state for hardware component
// status.
HardwareComponentStatusNotPresent HardwareComponentStatus = "NotPresent"
// HardwareComponentStatusOk specifies the hardware component status ok
// state for hardware component status.
// HardwareComponentStatusOk specifies the hardware component status ok state for hardware component status.
HardwareComponentStatusOk HardwareComponentStatus = "Ok"
// HardwareComponentStatusPoweredOff specifies the hardware component
// status powered off state for hardware component status.
// HardwareComponentStatusPoweredOff specifies the hardware component status powered off state for hardware component
// status.
HardwareComponentStatusPoweredOff HardwareComponentStatus = "PoweredOff"
// HardwareComponentStatusRecovering specifies the hardware component
// status recovering state for hardware component status.
// HardwareComponentStatusRecovering specifies the hardware component status recovering state for hardware component
// status.
HardwareComponentStatusRecovering HardwareComponentStatus = "Recovering"
// HardwareComponentStatusUnknown specifies the hardware component status
// unknown state for hardware component status.
// HardwareComponentStatusUnknown specifies the hardware component status unknown state for hardware component status.
HardwareComponentStatusUnknown HardwareComponentStatus = "Unknown"
// HardwareComponentStatusWarning specifies the hardware component status
// warning state for hardware component status.
// HardwareComponentStatusWarning specifies the hardware component status warning state for hardware component status.
HardwareComponentStatusWarning HardwareComponentStatus = "Warning"
)
@@ -369,14 +330,11 @@ const (
type InEligibilityCategory string
const (
// DeviceNotOnline specifies the device not online state for in eligibility
// category.
// DeviceNotOnline specifies the device not online state for in eligibility category.
DeviceNotOnline InEligibilityCategory = "DeviceNotOnline"
// NotSupportedAppliance specifies the not supported appliance state for in
// eligibility category.
// NotSupportedAppliance specifies the not supported appliance state for in eligibility category.
NotSupportedAppliance InEligibilityCategory = "NotSupportedAppliance"
// RolloverPending specifies the rollover pending state for in eligibility
// category.
// RolloverPending specifies the rollover pending state for in eligibility category.
RolloverPending InEligibilityCategory = "RolloverPending"
)
@@ -384,17 +342,14 @@ const (
type ISCSIAndCloudStatus string
const (
// ISCSIAndCloudStatusCloudEnabled specifies the iscsi and cloud status
// cloud enabled state for iscsi and cloud status.
// ISCSIAndCloudStatusCloudEnabled specifies the iscsi and cloud status cloud enabled state for iscsi and cloud status.
ISCSIAndCloudStatusCloudEnabled ISCSIAndCloudStatus = "CloudEnabled"
// ISCSIAndCloudStatusDisabled specifies the iscsi and cloud status
// disabled state for iscsi and cloud status.
// ISCSIAndCloudStatusDisabled specifies the iscsi and cloud status disabled state for iscsi and cloud status.
ISCSIAndCloudStatusDisabled ISCSIAndCloudStatus = "Disabled"
// ISCSIAndCloudStatusIscsiAndCloudEnabled specifies the iscsi and cloud
// status iscsi and cloud enabled state for iscsi and cloud status.
// ISCSIAndCloudStatusIscsiAndCloudEnabled specifies the iscsi and cloud status iscsi and cloud enabled state for iscsi
// and cloud status.
ISCSIAndCloudStatusIscsiAndCloudEnabled ISCSIAndCloudStatus = "IscsiAndCloudEnabled"
// ISCSIAndCloudStatusIscsiEnabled specifies the iscsi and cloud status
// iscsi enabled state for iscsi and cloud status.
// ISCSIAndCloudStatusIscsiEnabled specifies the iscsi and cloud status iscsi enabled state for iscsi and cloud status.
ISCSIAndCloudStatusIscsiEnabled ISCSIAndCloudStatus = "IscsiEnabled"
)
@@ -418,14 +373,11 @@ type JobType string
const (
// CloneVolume specifies the clone volume state for job type.
CloneVolume JobType = "CloneVolume"
// CreateCloudAppliance specifies the create cloud appliance state for job
// type.
// CreateCloudAppliance specifies the create cloud appliance state for job type.
CreateCloudAppliance JobType = "CreateCloudAppliance"
// CreateLocallyPinnedVolume specifies the create locally pinned volume
// state for job type.
// CreateLocallyPinnedVolume specifies the create locally pinned volume state for job type.
CreateLocallyPinnedVolume JobType = "CreateLocallyPinnedVolume"
// FailoverVolumeContainers specifies the failover volume containers state
// for job type.
// FailoverVolumeContainers specifies the failover volume containers state for job type.
FailoverVolumeContainers JobType = "FailoverVolumeContainers"
// InstallUpdates specifies the install updates state for job type.
InstallUpdates JobType = "InstallUpdates"
@@ -437,8 +389,7 @@ const (
RestoreBackup JobType = "RestoreBackup"
// ScheduledBackup specifies the scheduled backup state for job type.
ScheduledBackup JobType = "ScheduledBackup"
// SupportPackageLogs specifies the support package logs state for job
// type.
// SupportPackageLogs specifies the support package logs state for job type.
SupportPackageLogs JobType = "SupportPackageLogs"
)
@@ -474,23 +425,17 @@ const (
type MetricAggregationType string
const (
// MetricAggregationTypeAverage specifies the metric aggregation type
// average state for metric aggregation type.
// MetricAggregationTypeAverage specifies the metric aggregation type average state for metric aggregation type.
MetricAggregationTypeAverage MetricAggregationType = "Average"
// MetricAggregationTypeLast specifies the metric aggregation type last
// state for metric aggregation type.
// MetricAggregationTypeLast specifies the metric aggregation type last state for metric aggregation type.
MetricAggregationTypeLast MetricAggregationType = "Last"
// MetricAggregationTypeMaximum specifies the metric aggregation type
// maximum state for metric aggregation type.
// MetricAggregationTypeMaximum specifies the metric aggregation type maximum state for metric aggregation type.
MetricAggregationTypeMaximum MetricAggregationType = "Maximum"
// MetricAggregationTypeMinimum specifies the metric aggregation type
// minimum state for metric aggregation type.
// MetricAggregationTypeMinimum specifies the metric aggregation type minimum state for metric aggregation type.
MetricAggregationTypeMinimum MetricAggregationType = "Minimum"
// MetricAggregationTypeNone specifies the metric aggregation type none
// state for metric aggregation type.
// MetricAggregationTypeNone specifies the metric aggregation type none state for metric aggregation type.
MetricAggregationTypeNone MetricAggregationType = "None"
// MetricAggregationTypeTotal specifies the metric aggregation type total
// state for metric aggregation type.
// MetricAggregationTypeTotal specifies the metric aggregation type total state for metric aggregation type.
MetricAggregationTypeTotal MetricAggregationType = "Total"
)
@@ -516,11 +461,9 @@ const (
type MonitoringStatus string
const (
// MonitoringStatusDisabled specifies the monitoring status disabled state
// for monitoring status.
// MonitoringStatusDisabled specifies the monitoring status disabled state for monitoring status.
MonitoringStatusDisabled MonitoringStatus = "Disabled"
// MonitoringStatusEnabled specifies the monitoring status enabled state
// for monitoring status.
// MonitoringStatusEnabled specifies the monitoring status enabled state for monitoring status.
MonitoringStatusEnabled MonitoringStatus = "Enabled"
)
@@ -528,26 +471,19 @@ const (
type NetInterfaceID string
const (
// NetInterfaceIDData0 specifies the net interface id data 0 state for net
// interface id.
// NetInterfaceIDData0 specifies the net interface id data 0 state for net interface id.
NetInterfaceIDData0 NetInterfaceID = "Data0"
// NetInterfaceIDData1 specifies the net interface id data 1 state for net
// interface id.
// NetInterfaceIDData1 specifies the net interface id data 1 state for net interface id.
NetInterfaceIDData1 NetInterfaceID = "Data1"
// NetInterfaceIDData2 specifies the net interface id data 2 state for net
// interface id.
// NetInterfaceIDData2 specifies the net interface id data 2 state for net interface id.
NetInterfaceIDData2 NetInterfaceID = "Data2"
// NetInterfaceIDData3 specifies the net interface id data 3 state for net
// interface id.
// NetInterfaceIDData3 specifies the net interface id data 3 state for net interface id.
NetInterfaceIDData3 NetInterfaceID = "Data3"
// NetInterfaceIDData4 specifies the net interface id data 4 state for net
// interface id.
// NetInterfaceIDData4 specifies the net interface id data 4 state for net interface id.
NetInterfaceIDData4 NetInterfaceID = "Data4"
// NetInterfaceIDData5 specifies the net interface id data 5 state for net
// interface id.
// NetInterfaceIDData5 specifies the net interface id data 5 state for net interface id.
NetInterfaceIDData5 NetInterfaceID = "Data5"
// NetInterfaceIDInvalid specifies the net interface id invalid state for
// net interface id.
// NetInterfaceIDInvalid specifies the net interface id invalid state for net interface id.
NetInterfaceIDInvalid NetInterfaceID = "Invalid"
)
@@ -555,11 +491,9 @@ const (
type NetInterfaceStatus string
const (
// NetInterfaceStatusDisabled specifies the net interface status disabled
// state for net interface status.
// NetInterfaceStatusDisabled specifies the net interface status disabled state for net interface status.
NetInterfaceStatusDisabled NetInterfaceStatus = "Disabled"
// NetInterfaceStatusEnabled specifies the net interface status enabled
// state for net interface status.
// NetInterfaceStatusEnabled specifies the net interface status enabled state for net interface status.
NetInterfaceStatusEnabled NetInterfaceStatus = "Enabled"
)
@@ -569,8 +503,7 @@ type NetworkMode string
const (
// NetworkModeBOTH specifies the network mode both state for network mode.
NetworkModeBOTH NetworkMode = "BOTH"
// NetworkModeInvalid specifies the network mode invalid state for network
// mode.
// NetworkModeInvalid specifies the network mode invalid state for network mode.
NetworkModeInvalid NetworkMode = "Invalid"
// NetworkModeIPV4 specifies the network mode ipv4 state for network mode.
NetworkModeIPV4 NetworkMode = "IPV4"
@@ -582,17 +515,13 @@ const (
type OperationStatus string
const (
// OperationStatusDeleting specifies the operation status deleting state
// for operation status.
// OperationStatusDeleting specifies the operation status deleting state for operation status.
OperationStatusDeleting OperationStatus = "Deleting"
// OperationStatusNone specifies the operation status none state for
// operation status.
// OperationStatusNone specifies the operation status none state for operation status.
OperationStatusNone OperationStatus = "None"
// OperationStatusRestoring specifies the operation status restoring state
// for operation status.
// OperationStatusRestoring specifies the operation status restoring state for operation status.
OperationStatusRestoring OperationStatus = "Restoring"
// OperationStatusUpdating specifies the operation status updating state
// for operation status.
// OperationStatusUpdating specifies the operation status updating state for operation status.
OperationStatusUpdating OperationStatus = "Updating"
)
@@ -620,26 +549,21 @@ const (
Weekly RecurrenceType = "Weekly"
)
// RemoteManagementModeConfiguration enumerates the values for remote
// management mode configuration.
// RemoteManagementModeConfiguration enumerates the values for remote management mode configuration.
type RemoteManagementModeConfiguration string
const (
// RemoteManagementModeConfigurationDisabled specifies the remote
// management mode configuration disabled state for remote management mode
// configuration.
RemoteManagementModeConfigurationDisabled RemoteManagementModeConfiguration = "Disabled"
// RemoteManagementModeConfigurationHTTPSAndHTTPEnabled specifies the
// remote management mode configuration https and http enabled state for
// RemoteManagementModeConfigurationDisabled specifies the remote management mode configuration disabled state for
// remote management mode configuration.
RemoteManagementModeConfigurationDisabled RemoteManagementModeConfiguration = "Disabled"
// RemoteManagementModeConfigurationHTTPSAndHTTPEnabled specifies the remote management mode configuration https and
// http enabled state for remote management mode configuration.
RemoteManagementModeConfigurationHTTPSAndHTTPEnabled RemoteManagementModeConfiguration = "HttpsAndHttpEnabled"
// RemoteManagementModeConfigurationHTTPSEnabled specifies the remote
// management mode configuration https enabled state for remote management
// mode configuration.
// RemoteManagementModeConfigurationHTTPSEnabled specifies the remote management mode configuration https enabled state
// for remote management mode configuration.
RemoteManagementModeConfigurationHTTPSEnabled RemoteManagementModeConfiguration = "HttpsEnabled"
// RemoteManagementModeConfigurationUnknown specifies the remote management
// mode configuration unknown state for remote management mode
// configuration.
// RemoteManagementModeConfigurationUnknown specifies the remote management mode configuration unknown state for remote
// management mode configuration.
RemoteManagementModeConfigurationUnknown RemoteManagementModeConfiguration = "Unknown"
)
@@ -647,11 +571,9 @@ const (
type ScheduledBackupStatus string
const (
// ScheduledBackupStatusDisabled specifies the scheduled backup status
// disabled state for scheduled backup status.
// ScheduledBackupStatusDisabled specifies the scheduled backup status disabled state for scheduled backup status.
ScheduledBackupStatusDisabled ScheduledBackupStatus = "Disabled"
// ScheduledBackupStatusEnabled specifies the scheduled backup status
// enabled state for scheduled backup status.
// ScheduledBackupStatusEnabled specifies the scheduled backup status enabled state for scheduled backup status.
ScheduledBackupStatusEnabled ScheduledBackupStatus = "Enabled"
)
@@ -659,11 +581,9 @@ const (
type ScheduleStatus string
const (
// ScheduleStatusDisabled specifies the schedule status disabled state for
// schedule status.
// ScheduleStatusDisabled specifies the schedule status disabled state for schedule status.
ScheduleStatusDisabled ScheduleStatus = "Disabled"
// ScheduleStatusEnabled specifies the schedule status enabled state for
// schedule status.
// ScheduleStatusEnabled specifies the schedule status enabled state for schedule status.
ScheduleStatusEnabled ScheduleStatus = "Enabled"
)
@@ -671,40 +591,35 @@ const (
type SslStatus string
const (
// SslStatusDisabled specifies the ssl status disabled state for ssl
// status.
// SslStatusDisabled specifies the ssl status disabled state for ssl status.
SslStatusDisabled SslStatus = "Disabled"
// SslStatusEnabled specifies the ssl status enabled state for ssl status.
SslStatusEnabled SslStatus = "Enabled"
)
// TargetEligibilityResultCode enumerates the values for target eligibility
// result code.
// TargetEligibilityResultCode enumerates the values for target eligibility result code.
type TargetEligibilityResultCode string
const (
// LocalToTieredVolumesConversionWarning specifies the local to tiered
// volumes conversion warning state for target eligibility result code.
// LocalToTieredVolumesConversionWarning specifies the local to tiered volumes conversion warning state for target
// eligibility result code.
LocalToTieredVolumesConversionWarning TargetEligibilityResultCode = "LocalToTieredVolumesConversionWarning"
// TargetAndSourceCannotBeSameError specifies the target and source cannot
// be same error state for target eligibility result code.
// TargetAndSourceCannotBeSameError specifies the target and source cannot be same error state for target eligibility
// result code.
TargetAndSourceCannotBeSameError TargetEligibilityResultCode = "TargetAndSourceCannotBeSameError"
// TargetInsufficientCapacityError specifies the target insufficient
// capacity error state for target eligibility result code.
// TargetInsufficientCapacityError specifies the target insufficient capacity error state for target eligibility result
// code.
TargetInsufficientCapacityError TargetEligibilityResultCode = "TargetInsufficientCapacityError"
// TargetInsufficientLocalVolumeMemoryError specifies the target
// insufficient local volume memory error state for target eligibility
// result code.
// TargetInsufficientLocalVolumeMemoryError specifies the target insufficient local volume memory error state for
// target eligibility result code.
TargetInsufficientLocalVolumeMemoryError TargetEligibilityResultCode = "TargetInsufficientLocalVolumeMemoryError"
// TargetInsufficientTieredVolumeMemoryError specifies the target
// insufficient tiered volume memory error state for target eligibility
// result code.
// TargetInsufficientTieredVolumeMemoryError specifies the target insufficient tiered volume memory error state for
// target eligibility result code.
TargetInsufficientTieredVolumeMemoryError TargetEligibilityResultCode = "TargetInsufficientTieredVolumeMemoryError"
// TargetIsNotOnlineError specifies the target is not online error state
// for target eligibility result code.
// TargetIsNotOnlineError specifies the target is not online error state for target eligibility result code.
TargetIsNotOnlineError TargetEligibilityResultCode = "TargetIsNotOnlineError"
// TargetSourceIncompatibleVersionError specifies the target source
// incompatible version error state for target eligibility result code.
// TargetSourceIncompatibleVersionError specifies the target source incompatible version error state for target
// eligibility result code.
TargetSourceIncompatibleVersionError TargetEligibilityResultCode = "TargetSourceIncompatibleVersionError"
)
@@ -712,11 +627,11 @@ const (
type TargetEligibilityStatus string
const (
// TargetEligibilityStatusEligible specifies the target eligibility status
// eligible state for target eligibility status.
// TargetEligibilityStatusEligible specifies the target eligibility status eligible state for target eligibility
// status.
TargetEligibilityStatusEligible TargetEligibilityStatus = "Eligible"
// TargetEligibilityStatusNotEligible specifies the target eligibility
// status not eligible state for target eligibility status.
// TargetEligibilityStatusNotEligible specifies the target eligibility status not eligible state for target eligibility
// status.
TargetEligibilityStatusNotEligible TargetEligibilityStatus = "NotEligible"
)
@@ -734,11 +649,9 @@ const (
type VolumeStatus string
const (
// VolumeStatusOffline specifies the volume status offline state for volume
// status.
// VolumeStatusOffline specifies the volume status offline state for volume status.
VolumeStatusOffline VolumeStatus = "Offline"
// VolumeStatusOnline specifies the volume status online state for volume
// status.
// VolumeStatusOnline specifies the volume status online state for volume status.
VolumeStatusOnline VolumeStatus = "Online"
)
@@ -827,8 +740,7 @@ func (client AlertList) AlertListPreparer() (*http.Request, error) {
autorest.WithBaseURL(to.String(client.NextLink)))
}
// AlertNotificationProperties is the properties of the alert notification
// settings.
// AlertNotificationProperties is the properties of the alert notification settings.
type AlertNotificationProperties struct {
EmailNotification AlertEmailNotificationStatus `json:"emailNotification,omitempty"`
AlertNotificationCulture *string `json:"alertNotificationCulture,omitempty"`
@@ -871,8 +783,7 @@ type AlertSource struct {
AlertSourceType AlertSourceType `json:"alertSourceType,omitempty"`
}
// AsymmetricEncryptedSecret is represent the secrets intended for encryption
// with asymmetric key pair.
// AsymmetricEncryptedSecret is represent the secrets intended for encryption with asymmetric key pair.
type AsymmetricEncryptedSecret struct {
Value *string `json:"value,omitempty"`
EncryptionCertThumbprint *string `json:"encryptionCertThumbprint,omitempty"`
@@ -887,11 +798,9 @@ type AvailableProviderOperation struct {
Properties *map[string]interface{} `json:"properties,omitempty"`
}
// AvailableProviderOperationDisplay is 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.
// AvailableProviderOperationDisplay is 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 *string `json:"provider,omitempty"`
Resource *string `json:"resource,omitempty"`
@@ -1066,8 +975,7 @@ type BaseModel struct {
Kind Kind `json:"kind,omitempty"`
}
// ChapSettings is the Challenge-Handshake Authentication Protocol (CHAP)
// settings.
// ChapSettings is the Challenge-Handshake Authentication Protocol (CHAP) settings.
type ChapSettings struct {
InitiatorUser *string `json:"initiatorUser,omitempty"`
InitiatorSecret *AsymmetricEncryptedSecret `json:"initiatorSecret,omitempty"`
@@ -1119,8 +1027,7 @@ type CloudApplianceConfigurationList struct {
Value *[]CloudApplianceConfiguration `json:"value,omitempty"`
}
// CloudApplianceConfigurationProperties is the properties of cloud appliance
// configuration.
// CloudApplianceConfigurationProperties is the properties of cloud appliance configuration.
type CloudApplianceConfigurationProperties struct {
ModelNumber *string `json:"modelNumber,omitempty"`
CloudPlatform *string `json:"cloudPlatform,omitempty"`
@@ -1146,8 +1053,7 @@ type ConfigureDeviceRequest struct {
*ConfigureDeviceRequestProperties `json:"properties,omitempty"`
}
// ConfigureDeviceRequestProperties is the properties of the configure device
// request.
// ConfigureDeviceRequestProperties is the properties of the configure device request.
type ConfigureDeviceRequestProperties struct {
FriendlyName *string `json:"friendlyName,omitempty"`
CurrentDeviceName *string `json:"currentDeviceName,omitempty"`
@@ -1156,8 +1062,7 @@ type ConfigureDeviceRequestProperties struct {
NetworkInterfaceData0Settings *NetworkInterfaceData0Settings `json:"networkInterfaceData0Settings,omitempty"`
}
// ControllerPowerStateChangeRequest is the controller power state change
// request.
// ControllerPowerStateChangeRequest is the controller power state change request.
type ControllerPowerStateChangeRequest struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
@@ -1166,8 +1071,7 @@ type ControllerPowerStateChangeRequest struct {
*ControllerPowerStateChangeRequestProperties `json:"properties,omitempty"`
}
// ControllerPowerStateChangeRequestProperties is the properties of the
// controller power state change request.
// ControllerPowerStateChangeRequestProperties is the properties of the controller power state change request.
type ControllerPowerStateChangeRequestProperties struct {
Action ControllerPowerStateAction `json:"action,omitempty"`
ActiveController ControllerID `json:"activeController,omitempty"`
@@ -1175,9 +1079,8 @@ type ControllerPowerStateChangeRequestProperties struct {
Controller1State ControllerStatus `json:"controller1State,omitempty"`
}
// DataStatistics is the additional details related to the data related
// statistics of a job. Currently applicable only for Backup, Clone and Restore
// jobs.
// DataStatistics is 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 *int64 `json:"totalData,omitempty"`
ProcessedData *int64 `json:"processedData,omitempty"`
@@ -1195,8 +1098,7 @@ type Device struct {
*DeviceProperties `json:"properties,omitempty"`
}
// DeviceDetails is the additional device details regarding the end point count
// and volume container count.
// DeviceDetails is the additional device details regarding the end point count and volume container count.
type DeviceDetails struct {
EndpointCount *int32 `json:"endpointCount,omitempty"`
VolumeContainerCount *int32 `json:"volumeContainerCount,omitempty"`
@@ -1249,8 +1151,7 @@ type DeviceProperties struct {
RolloverDetails *DeviceRolloverDetails `json:"rolloverDetails,omitempty"`
}
// DeviceRolloverDetails is the additional device details for the service data
// encryption key rollover.
// DeviceRolloverDetails is the additional device details for the service data encryption key rollover.
type DeviceRolloverDetails struct {
AuthorizationEligibility AuthorizationEligibility `json:"authorizationEligibility,omitempty"`
AuthorizationStatus AuthorizationStatus `json:"authorizationStatus,omitempty"`
@@ -1287,8 +1188,8 @@ type EncryptionSettingsProperties struct {
KeyRolloverStatus KeyRolloverStatus `json:"keyRolloverStatus,omitempty"`
}
// FailoverRequest is the request object for triggering a failover of volume
// containers, from a source device to a target device.
// FailoverRequest is the request object for triggering a failover of volume containers, from a source device to a
// target device.
type FailoverRequest struct {
TargetDeviceID *string `json:"targetDeviceId,omitempty"`
VolumeContainers *[]string `json:"volumeContainers,omitempty"`
@@ -1300,8 +1201,7 @@ type FailoverSet struct {
EligibilityResult *FailoverSetEligibilityResult `json:"eligibilityResult,omitempty"`
}
// FailoverSetEligibilityResult is the eligibility result of failover set, for
// failover.
// FailoverSetEligibilityResult is the eligibility result of failover set, for failover.
type FailoverSetEligibilityResult struct {
IsEligibleForFailover *bool `json:"isEligibleForFailover,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
@@ -1313,8 +1213,7 @@ type FailoverSetsList struct {
Value *[]FailoverSet `json:"value,omitempty"`
}
// FailoverTarget is represents the eligibility of a device as a failover
// target device.
// FailoverTarget is represents the eligibility of a device as a failover target device.
type FailoverTarget struct {
DeviceID *string `json:"deviceId,omitempty"`
DeviceStatus DeviceStatus `json:"deviceStatus,omitempty"`
@@ -1329,8 +1228,8 @@ type FailoverTarget struct {
EligibilityResult *TargetEligibilityResult `json:"eligibilityResult,omitempty"`
}
// FailoverTargetsList is the list of all devices in a resource and their
// eligibility status as a failover target device.
// FailoverTargetsList is the list of all devices in a resource and their eligibility status as a failover target
// device.
type FailoverTargetsList struct {
autorest.Response `json:"-"`
Value *[]FailoverTarget `json:"value,omitempty"`
@@ -1376,8 +1275,7 @@ type HardwareComponentGroupList struct {
Value *[]HardwareComponentGroup `json:"value,omitempty"`
}
// HardwareComponentGroupProperties is the properties of hardware component
// group.
// HardwareComponentGroupProperties is the properties of hardware component group.
type HardwareComponentGroupProperties struct {
DisplayName *string `json:"displayName,omitempty"`
LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"`
@@ -1467,8 +1365,8 @@ type Key struct {
ActivationKey *string `json:"activationKey,omitempty"`
}
// ListFailoverTargetsRequest is the request object for fetching the list of
// failover targets (eligible devices for failover).
// ListFailoverTargetsRequest is the request object for fetching the list of failover targets (eligible devices for
// failover).
type ListFailoverTargetsRequest struct {
VolumeContainers *[]string `json:"volumeContainers,omitempty"`
}
@@ -1496,8 +1394,7 @@ type ManagerExtendedInfo struct {
Etag *string `json:"etag,omitempty"`
}
// ManagerExtendedInfoProperties is the properties of the manager extended
// info.
// ManagerExtendedInfoProperties is the properties of the manager extended info.
type ManagerExtendedInfoProperties struct {
Version *string `json:"version,omitempty"`
IntegrityKey *string `json:"integrityKey,omitempty"`
@@ -1507,8 +1404,7 @@ type ManagerExtendedInfoProperties struct {
Algorithm *string `json:"algorithm,omitempty"`
}
// ManagerIntrinsicSettings is intrinsic settings which refers to the type of
// the Storsimple Manager.
// ManagerIntrinsicSettings is intrinsic settings which refers to the type of the Storsimple Manager.
type ManagerIntrinsicSettings struct {
Type ManagerType `json:"type,omitempty"`
}
@@ -1570,8 +1466,7 @@ type MetricDefinitionList struct {
Value *[]MetricDefinition `json:"value,omitempty"`
}
// MetricDimension is the metric dimension. It indicates the source of the
// metric.
// MetricDimension is the metric dimension. It indicates the source of the metric.
type MetricDimension struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
@@ -1599,8 +1494,7 @@ type MetricName struct {
LocalizedValue *string `json:"localizedValue,omitempty"`
}
// MetricNameFilter is the metric name filter, specifying the name of the
// metric to be filtered on.
// MetricNameFilter is the metric name filter, specifying the name of the metric to be filtered on.
type MetricNameFilter struct {
Value *string `json:"value,omitempty"`
}
@@ -1636,8 +1530,7 @@ type NetworkAdapters struct {
NicIpv6Settings *NicIPv6 `json:"nicIpv6Settings,omitempty"`
}
// NetworkInterfaceData0Settings is the 'Data 0' network interface card
// settings.
// NetworkInterfaceData0Settings is the 'Data 0' network interface card settings.
type NetworkInterfaceData0Settings struct {
ControllerZeroIP *string `json:"controllerZeroIp,omitempty"`
ControllerOneIP *string `json:"controllerOneIp,omitempty"`
@@ -1653,21 +1546,18 @@ type NetworkSettings struct {
*NetworkSettingsProperties `json:"properties,omitempty"`
}
// NetworkSettingsPatch is represents the patch request for the network
// settings of a device.
// NetworkSettingsPatch is represents the patch request for the network settings of a device.
type NetworkSettingsPatch struct {
*NetworkSettingsPatchProperties `json:"properties,omitempty"`
}
// NetworkSettingsPatchProperties is the properties of the network settings
// patch.
// NetworkSettingsPatchProperties is the properties of the network settings patch.
type NetworkSettingsPatchProperties struct {
DNSSettings *DNSSettings `json:"dnsSettings,omitempty"`
NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"`
}
// NetworkSettingsProperties is the properties of the network settings of
// device.
// NetworkSettingsProperties is the properties of the network settings of device.
type NetworkSettingsProperties struct {
DNSSettings *DNSSettings `json:"dnsSettings,omitempty"`
NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"`
@@ -1704,8 +1594,7 @@ type RemoteManagementSettings struct {
RemoteManagementCertificate *string `json:"remoteManagementCertificate,omitempty"`
}
// RemoteManagementSettingsPatch is the settings for updating remote management
// mode of the device.
// RemoteManagementSettingsPatch is the settings for updating remote management mode of the device.
type RemoteManagementSettingsPatch struct {
RemoteManagementMode RemoteManagementModeConfiguration `json:"remoteManagementMode,omitempty"`
}
@@ -1741,14 +1630,12 @@ type SecuritySettings struct {
*SecuritySettingsProperties `json:"properties,omitempty"`
}
// SecuritySettingsPatch is represents the patch request for the security
// settings of a device.
// SecuritySettingsPatch is represents the patch request for the security settings of a device.
type SecuritySettingsPatch struct {
*SecuritySettingsPatchProperties `json:"properties,omitempty"`
}
// SecuritySettingsPatchProperties is the properties of the security settings
// patch.
// SecuritySettingsPatchProperties is the properties of the security settings patch.
type SecuritySettingsPatchProperties struct {
RemoteManagementSettings *RemoteManagementSettingsPatch `json:"remoteManagementSettings,omitempty"`
DeviceAdminPassword *AsymmetricEncryptedSecret `json:"deviceAdminPassword,omitempty"`
@@ -1757,8 +1644,7 @@ type SecuritySettingsPatchProperties struct {
CloudApplianceSettings *CloudApplianceSettings `json:"cloudApplianceSettings,omitempty"`
}
// SecuritySettingsProperties is the properties of security settings of a
// device.
// SecuritySettingsProperties is the properties of security settings of a device.
type SecuritySettingsProperties struct {
RemoteManagementSettings *RemoteManagementSettings `json:"remoteManagementSettings,omitempty"`
ChapSettings *ChapSettings `json:"chapSettings,omitempty"`
@@ -1779,15 +1665,13 @@ type StorageAccountCredential struct {
*StorageAccountCredentialProperties `json:"properties,omitempty"`
}
// StorageAccountCredentialList is the collection of storage account credential
// entities.
// StorageAccountCredentialList is the collection of storage account credential entities.
type StorageAccountCredentialList struct {
autorest.Response `json:"-"`
Value *[]StorageAccountCredential `json:"value,omitempty"`
}
// StorageAccountCredentialProperties is the storage account credential
// properties.
// StorageAccountCredentialProperties is the storage account credential properties.
type StorageAccountCredentialProperties struct {
EndPoint *string `json:"endPoint,omitempty"`
SslStatus SslStatus `json:"sslStatus,omitempty"`
@@ -1795,8 +1679,7 @@ type StorageAccountCredentialProperties struct {
VolumesCount *int32 `json:"volumesCount,omitempty"`
}
// SymmetricEncryptedSecret is represents the secrets encrypted using Symmetric
// Encryption Key.
// SymmetricEncryptedSecret is represents the secrets encrypted using Symmetric Encryption Key.
type SymmetricEncryptedSecret struct {
autorest.Response `json:"-"`
Value *string `json:"value,omitempty"`
@@ -1804,16 +1687,15 @@ type SymmetricEncryptedSecret struct {
EncryptionAlgorithm EncryptionAlgorithm `json:"encryptionAlgorithm,omitempty"`
}
// TargetEligibilityErrorMessage is the error/warning message due to which the
// device is ineligible as a failover target device.
// TargetEligibilityErrorMessage is the error/warning message due to which the device is ineligible as a failover
// target device.
type TargetEligibilityErrorMessage struct {
Message *string `json:"message,omitempty"`
Resolution *string `json:"resolution,omitempty"`
ResultCode TargetEligibilityResultCode `json:"resultCode,omitempty"`
}
// TargetEligibilityResult is the eligibility result of device, as a failover
// target device.
// TargetEligibilityResult is the eligibility result of device, as a failover target device.
type TargetEligibilityResult struct {
EligibilityStatus TargetEligibilityStatus `json:"eligibilityStatus,omitempty"`
Messages *[]TargetEligibilityErrorMessage `json:"messages,omitempty"`
@@ -1890,8 +1772,8 @@ type VolumeContainer struct {
*VolumeContainerProperties `json:"properties,omitempty"`
}
// VolumeContainerFailoverMetadata is the metadata of the volume container,
// that is being considered as part of a failover set.
// VolumeContainerFailoverMetadata is the metadata of the volume container, that is being considered as part of a
// failover set.
type VolumeContainerFailoverMetadata struct {
VolumeContainerID *string `json:"volumeContainerId,omitempty"`
Volumes *[]VolumeFailoverMetadata `json:"volumes,omitempty"`
@@ -1915,8 +1797,7 @@ type VolumeContainerProperties struct {
TotalCloudStorageUsageInBytes *int64 `json:"totalCloudStorageUsageInBytes,omitempty"`
}
// VolumeFailoverMetadata is the metadata of a volume that has valid cloud
// snapshot.
// VolumeFailoverMetadata is the metadata of a volume that has valid cloud snapshot.
type VolumeFailoverMetadata struct {
VolumeID *string `json:"volumeId,omitempty"`
VolumeType VolumeType `json:"volumeType,omitempty"`
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,8 +23,7 @@ import (
"net/http"
)
// OperationsClient is the client for the Operations methods of the
// Storsimple8000series service.
// OperationsClient is the client for the Operations methods of the Storsimple8000series service.
type OperationsClient struct {
ManagementClient
}
@@ -35,14 +33,12 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient
// client.
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// List lists all of the available REST API operations of the
// Microsoft.Storsimple provider
// List lists all of the available REST API operations of the Microsoft.Storsimple provider
func (client OperationsClient) List() (result AvailableProviderOperationList, err error) {
req, err := client.ListPreparer()
if err != nil {
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,32 +24,28 @@ import (
"net/http"
)
// StorageAccountCredentialsClient is the client for the
// StorageAccountCredentials methods of the Storsimple8000series service.
// StorageAccountCredentialsClient is the client for the StorageAccountCredentials methods of the Storsimple8000series
// service.
type StorageAccountCredentialsClient struct {
ManagementClient
}
// NewStorageAccountCredentialsClient creates an instance of the
// StorageAccountCredentialsClient client.
// NewStorageAccountCredentialsClient creates an instance of the StorageAccountCredentialsClient client.
func NewStorageAccountCredentialsClient(subscriptionID string) StorageAccountCredentialsClient {
return NewStorageAccountCredentialsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewStorageAccountCredentialsClientWithBaseURI creates an instance of the
// StorageAccountCredentialsClient client.
// NewStorageAccountCredentialsClientWithBaseURI creates an instance of the StorageAccountCredentialsClient client.
func NewStorageAccountCredentialsClientWithBaseURI(baseURI string, subscriptionID string) StorageAccountCredentialsClient {
return StorageAccountCredentialsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates the storage account credential. This
// method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
// CreateOrUpdate creates or updates the storage account credential. This method may poll for completion. Polling can
// be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
//
// storageAccountCredentialName is the storage account credential name.
// parameters is the storage account credential to be added or updated.
// resourceGroupName is the resource group name managerName is the manager name
// storageAccountCredentialName is the storage account credential name. parameters is the storage account credential to
// be added or updated. resourceGroupName is the resource group name managerName is the manager name
func (client StorageAccountCredentialsClient) CreateOrUpdate(storageAccountCredentialName string, parameters StorageAccountCredential, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan StorageAccountCredential, <-chan error) {
resultChan := make(chan StorageAccountCredential, 1)
errChan := make(chan error, 1)
@@ -147,13 +142,11 @@ func (client StorageAccountCredentialsClient) CreateOrUpdateResponder(resp *http
return
}
// Delete deletes the storage account credential. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// Delete deletes the storage account credential. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// storageAccountCredentialName is the name of the storage account credential.
// resourceGroupName is the resource group name managerName is the manager name
// storageAccountCredentialName is the name of the storage account credential. resourceGroupName is the resource group
// name managerName is the manager name
func (client StorageAccountCredentialsClient) Delete(storageAccountCredentialName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -243,9 +236,8 @@ func (client StorageAccountCredentialsClient) DeleteResponder(resp *http.Respons
// Get gets the properties of the specified storage account credential name.
//
// storageAccountCredentialName is the name of storage account credential to be
// fetched. resourceGroupName is the resource group name managerName is the
// manager name
// storageAccountCredentialName is the name of storage account credential to be fetched. resourceGroupName is the
// resource group name managerName is the manager name
func (client StorageAccountCredentialsClient) Get(storageAccountCredentialName string, resourceGroupName string, managerName string) (result StorageAccountCredential, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -14,16 +14,15 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/v10.1.0-beta arm-storsimple8000series/2017-06-01"
return "Azure-SDK-For-Go/v11.0.0-beta arm-storsimple8000series/2017-06-01"
}
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return "v10.1.0-beta"
return "v11.0.0-beta"
}
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,32 +24,27 @@ import (
"net/http"
)
// VolumeContainersClient is the client for the VolumeContainers methods of the
// Storsimple8000series service.
// VolumeContainersClient is the client for the VolumeContainers methods of the Storsimple8000series service.
type VolumeContainersClient struct {
ManagementClient
}
// NewVolumeContainersClient creates an instance of the VolumeContainersClient
// client.
// NewVolumeContainersClient creates an instance of the VolumeContainersClient client.
func NewVolumeContainersClient(subscriptionID string) VolumeContainersClient {
return NewVolumeContainersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewVolumeContainersClientWithBaseURI creates an instance of the
// VolumeContainersClient client.
// NewVolumeContainersClientWithBaseURI creates an instance of the VolumeContainersClient client.
func NewVolumeContainersClientWithBaseURI(baseURI string, subscriptionID string) VolumeContainersClient {
return VolumeContainersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates the volume container. This method may poll
// for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or updates the volume container. This method may poll for completion. Polling can be canceled
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// deviceName is the device name volumeContainerName is the name of the volume
// container. parameters is the volume container to be added or updated.
// resourceGroupName is the resource group name managerName is the manager name
// deviceName is the device name volumeContainerName is the name of the volume container. parameters is the volume
// container to be added or updated. resourceGroupName is the resource group name managerName is the manager name
func (client VolumeContainersClient) CreateOrUpdate(deviceName string, volumeContainerName string, parameters VolumeContainer, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan VolumeContainer, <-chan error) {
resultChan := make(chan VolumeContainer, 1)
errChan := make(chan error, 1)
@@ -148,13 +142,11 @@ func (client VolumeContainersClient) CreateOrUpdateResponder(resp *http.Response
return
}
// Delete deletes the volume container. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Delete deletes the volume container. This method may poll for completion. Polling can be canceled by passing the
// cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name volumeContainerName is the name of the volume
// container. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name volumeContainerName is the name of the volume container. resourceGroupName is the
// resource group name managerName is the manager name
func (client VolumeContainersClient) Delete(deviceName string, volumeContainerName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -245,9 +237,8 @@ func (client VolumeContainersClient) DeleteResponder(resp *http.Response) (resul
// Get gets the properties of the specified volume container name.
//
// deviceName is the device name volumeContainerName is the name of the volume
// container. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name volumeContainerName is the name of the volume container. resourceGroupName is the
// resource group name managerName is the manager name
func (client VolumeContainersClient) Get(deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result VolumeContainer, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -321,8 +312,7 @@ func (client VolumeContainersClient) GetResponder(resp *http.Response) (result V
// ListByDevice gets all the volume containers in a device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client VolumeContainersClient) ListByDevice(deviceName string, resourceGroupName string, managerName string) (result VolumeContainerList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -393,12 +383,10 @@ func (client VolumeContainersClient) ListByDeviceResponder(resp *http.Response)
return
}
// ListMetricDefinition gets the metric definitions for the specified volume
// container.
// ListMetricDefinition gets the metric definitions for the specified volume container.
//
// deviceName is the device name volumeContainerName is the volume container
// name. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name volumeContainerName is the volume container name. resourceGroupName is the resource
// group name managerName is the manager name
func (client VolumeContainersClient) ListMetricDefinition(deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -472,9 +460,8 @@ func (client VolumeContainersClient) ListMetricDefinitionResponder(resp *http.Re
// ListMetrics gets the metrics for the specified volume container.
//
// deviceName is the device name volumeContainerName is the volume container
// name. resourceGroupName is the resource group name managerName is the
// manager name filter is oData Filter options
// deviceName is the device name volumeContainerName is the volume container name. resourceGroupName is the resource
// group name managerName is the manager name filter is oData Filter options
func (client VolumeContainersClient) ListMetrics(deviceName string, volumeContainerName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
+20 -32
View File
@@ -14,9 +14,8 @@ package storsimple8000series
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,8 +24,7 @@ import (
"net/http"
)
// VolumesClient is the client for the Volumes methods of the
// Storsimple8000series service.
// VolumesClient is the client for the Volumes methods of the Storsimple8000series service.
type VolumesClient struct {
ManagementClient
}
@@ -41,14 +39,11 @@ func NewVolumesClientWithBaseURI(baseURI string, subscriptionID string) VolumesC
return VolumesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates the volume. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// CreateOrUpdate creates or updates the volume. This method may poll for completion. Polling can be canceled by
// passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name volumeContainerName is the volume container
// name. volumeName is the volume name. parameters is volume to be created or
// updated. resourceGroupName is the resource group name managerName is the
// deviceName is the device name volumeContainerName is the volume container name. volumeName is the volume name.
// parameters is volume to be created or updated. resourceGroupName is the resource group name managerName is the
// manager name
func (client VolumesClient) CreateOrUpdate(deviceName string, volumeContainerName string, volumeName string, parameters Volume, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan Volume, <-chan error) {
resultChan := make(chan Volume, 1)
@@ -147,13 +142,11 @@ func (client VolumesClient) CreateOrUpdateResponder(resp *http.Response) (result
return
}
// Delete deletes the volume. This method may poll for completion. Polling can
// be canceled by passing the cancel channel argument. The channel will be used
// to cancel polling and any outstanding HTTP requests.
// Delete deletes the volume. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// deviceName is the device name volumeContainerName is the volume container
// name. volumeName is the volume name. resourceGroupName is the resource group
// name managerName is the manager name
// deviceName is the device name volumeContainerName is the volume container name. volumeName is the volume name.
// resourceGroupName is the resource group name managerName is the manager name
func (client VolumesClient) Delete(deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -245,9 +238,8 @@ func (client VolumesClient) DeleteResponder(resp *http.Response) (result autores
// Get returns the properties of the specified volume name.
//
// deviceName is the device name volumeContainerName is the volume container
// name. volumeName is the volume name. resourceGroupName is the resource group
// name managerName is the manager name
// deviceName is the device name volumeContainerName is the volume container name. volumeName is the volume name.
// resourceGroupName is the resource group name managerName is the manager name
func (client VolumesClient) Get(deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (result Volume, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -322,8 +314,7 @@ func (client VolumesClient) GetResponder(resp *http.Response) (result Volume, er
// ListByDevice retrieves all the volumes in a device.
//
// deviceName is the device name resourceGroupName is the resource group name
// managerName is the manager name
// deviceName is the device name resourceGroupName is the resource group name managerName is the manager name
func (client VolumesClient) ListByDevice(deviceName string, resourceGroupName string, managerName string) (result VolumeList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -396,9 +387,8 @@ func (client VolumesClient) ListByDeviceResponder(resp *http.Response) (result V
// ListByVolumeContainer retrieves all the volumes in a volume container.
//
// deviceName is the device name volumeContainerName is the volume container
// name. resourceGroupName is the resource group name managerName is the
// manager name
// deviceName is the device name volumeContainerName is the volume container name. resourceGroupName is the resource
// group name managerName is the manager name
func (client VolumesClient) ListByVolumeContainer(deviceName string, volumeContainerName string, resourceGroupName string, managerName string) (result VolumeList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -472,9 +462,8 @@ func (client VolumesClient) ListByVolumeContainerResponder(resp *http.Response)
// ListMetricDefinition gets the metric definitions for the specified volume.
//
// deviceName is the device name volumeContainerName is the volume container
// name. volumeName is the volume name. resourceGroupName is the resource group
// name managerName is the manager name
// deviceName is the device name volumeContainerName is the volume container name. volumeName is the volume name.
// resourceGroupName is the resource group name managerName is the manager name
func (client VolumesClient) ListMetricDefinition(deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string) (result MetricDefinitionList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,
@@ -549,9 +538,8 @@ func (client VolumesClient) ListMetricDefinitionResponder(resp *http.Response) (
// ListMetrics gets the metrics for the specified volume.
//
// deviceName is the device name volumeContainerName is the volume container
// name. volumeName is the volume name. resourceGroupName is the resource group
// name managerName is the manager name filter is oData Filter options
// deviceName is the device name volumeContainerName is the volume container name. volumeName is the volume name.
// resourceGroupName is the resource group name managerName is the manager name filter is oData Filter options
func (client VolumesClient) ListMetrics(deviceName string, volumeContainerName string, volumeName string, resourceGroupName string, managerName string, filter string) (result MetricList, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: managerName,