armstorsimple1200series

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 15 Imported by: 1

README

Azure Storsimple1200series Module for Go

PkgGoDev

The armstorsimple1200series module provides operations for working with Azure Storsimple1200series.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Storsimple1200series module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Storsimple1200series. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Storsimple1200series module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armstorsimple1200series.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armstorsimple1200series.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewIscsiDisksClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Storsimple1200series label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlRecord

type AccessControlRecord struct {
	// REQUIRED; Properties of AccessControlRecord
	Properties *AccessControlRecordProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

AccessControlRecord - The access control record

func (AccessControlRecord) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AccessControlRecord.

func (*AccessControlRecord) UnmarshalJSON added in v1.1.0

func (a *AccessControlRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccessControlRecord.

type AccessControlRecordList

type AccessControlRecordList struct {
	// REQUIRED; The value.
	Value []*AccessControlRecord
}

AccessControlRecordList - Collection of AccessControlRecords

func (AccessControlRecordList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AccessControlRecordList.

func (*AccessControlRecordList) UnmarshalJSON added in v1.1.0

func (a *AccessControlRecordList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccessControlRecordList.

type AccessControlRecordProperties

type AccessControlRecordProperties struct {
	// REQUIRED; The Iscsi initiator name (IQN)
	InitiatorName *string
}

AccessControlRecordProperties - Properties of access control record

func (AccessControlRecordProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AccessControlRecordProperties.

func (*AccessControlRecordProperties) UnmarshalJSON added in v1.1.0

func (a *AccessControlRecordProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccessControlRecordProperties.

type AccessControlRecordsClient

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

AccessControlRecordsClient contains the methods for the AccessControlRecords group. Don't use this type directly, use NewAccessControlRecordsClient() instead.

func NewAccessControlRecordsClient

func NewAccessControlRecordsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccessControlRecordsClient, error)

NewAccessControlRecordsClient creates a new instance of AccessControlRecordsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AccessControlRecordsClient) BeginCreateOrUpdate

func (client *AccessControlRecordsClient) BeginCreateOrUpdate(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string, accessControlRecord AccessControlRecord, options *AccessControlRecordsClientBeginCreateOrUpdateOptions) (*runtime.Poller[AccessControlRecordsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or Updates an access control record. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • accessControlRecordName - The name of the access control record.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • accessControlRecord - The access control record to be added or updated.
  • options - AccessControlRecordsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccessControlRecordsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAccessControlRecordsClient().BeginCreateOrUpdate(ctx, "AcrForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.AccessControlRecord{
		Name: to.Ptr("AcrForSDKTest"),
		Properties: &armstorsimple1200series.AccessControlRecordProperties{
			InitiatorName: to.Ptr("iqn.2017-06.com.contoso:ForTest"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AccessControlRecord = armstorsimple1200series.AccessControlRecord{
	// 	Name: to.Ptr("AcrForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/accessControlRecords"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/accessControlRecords/AcrForSDKTest"),
	// 	Properties: &armstorsimple1200series.AccessControlRecordProperties{
	// 		InitiatorName: to.Ptr("iqn.2017-06.com.contoso:ForTest"),
	// 	},
	// }
}
Output:

func (*AccessControlRecordsClient) BeginDelete

func (client *AccessControlRecordsClient) BeginDelete(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string, options *AccessControlRecordsClientBeginDeleteOptions) (*runtime.Poller[AccessControlRecordsClientDeleteResponse], error)

BeginDelete - Deletes the access control record. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • accessControlRecordName - The name of the access control record to delete.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - AccessControlRecordsClientBeginDeleteOptions contains the optional parameters for the AccessControlRecordsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAccessControlRecordsClient().BeginDelete(ctx, "AcrForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*AccessControlRecordsClient) Get

func (client *AccessControlRecordsClient) Get(ctx context.Context, accessControlRecordName string, resourceGroupName string, managerName string, options *AccessControlRecordsClientGetOptions) (AccessControlRecordsClientGetResponse, error)

Get - Returns the properties of the specified access control record name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • accessControlRecordName - Name of access control record to be fetched.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - AccessControlRecordsClientGetOptions contains the optional parameters for the AccessControlRecordsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAccessControlRecordsClient().Get(ctx, "AcrForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AccessControlRecord = armstorsimple1200series.AccessControlRecord{
	// 	Name: to.Ptr("AcrForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/accessControlRecords"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/accessControlRecords/AcrForSDKTest"),
	// 	Properties: &armstorsimple1200series.AccessControlRecordProperties{
	// 		InitiatorName: to.Ptr("iqn.2017-06.com.contoso:ForTest"),
	// 	},
	// }
}
Output:

func (*AccessControlRecordsClient) NewListByManagerPager

NewListByManagerPager - Retrieves all the access control records in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - AccessControlRecordsClientListByManagerOptions contains the optional parameters for the AccessControlRecordsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAccessControlRecordsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AccessControlRecordList = armstorsimple1200series.AccessControlRecordList{
		// 	Value: []*armstorsimple1200series.AccessControlRecord{
		// 	},
		// }
	}
}
Output:

type AccessControlRecordsClientBeginCreateOrUpdateOptions

type AccessControlRecordsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AccessControlRecordsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccessControlRecordsClient.BeginCreateOrUpdate method.

type AccessControlRecordsClientBeginDeleteOptions

type AccessControlRecordsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AccessControlRecordsClientBeginDeleteOptions contains the optional parameters for the AccessControlRecordsClient.BeginDelete method.

type AccessControlRecordsClientCreateOrUpdateResponse

type AccessControlRecordsClientCreateOrUpdateResponse struct {
	// The access control record
	AccessControlRecord
}

AccessControlRecordsClientCreateOrUpdateResponse contains the response from method AccessControlRecordsClient.BeginCreateOrUpdate.

type AccessControlRecordsClientDeleteResponse

type AccessControlRecordsClientDeleteResponse struct {
}

AccessControlRecordsClientDeleteResponse contains the response from method AccessControlRecordsClient.BeginDelete.

type AccessControlRecordsClientGetOptions

type AccessControlRecordsClientGetOptions struct {
}

AccessControlRecordsClientGetOptions contains the optional parameters for the AccessControlRecordsClient.Get method.

type AccessControlRecordsClientGetResponse

type AccessControlRecordsClientGetResponse struct {
	// The access control record
	AccessControlRecord
}

AccessControlRecordsClientGetResponse contains the response from method AccessControlRecordsClient.Get.

type AccessControlRecordsClientListByManagerOptions

type AccessControlRecordsClientListByManagerOptions struct {
}

AccessControlRecordsClientListByManagerOptions contains the optional parameters for the AccessControlRecordsClient.NewListByManagerPager method.

type AccessControlRecordsClientListByManagerResponse

type AccessControlRecordsClientListByManagerResponse struct {
	// Collection of AccessControlRecords
	AccessControlRecordList
}

AccessControlRecordsClientListByManagerResponse contains the response from method AccessControlRecordsClient.NewListByManagerPager.

type Alert

type Alert struct {
	// REQUIRED; Properties of alert
	Properties *AlertProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

Alert class

func (Alert) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Alert.

func (*Alert) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Alert.

type AlertEmailNotificationStatus

type AlertEmailNotificationStatus string

AlertEmailNotificationStatus - Value indicating whether user/admins will receive emails when an alert condition occurs on the system

const (
	AlertEmailNotificationStatusDisabled AlertEmailNotificationStatus = "Disabled"
	AlertEmailNotificationStatusEnabled  AlertEmailNotificationStatus = "Enabled"
)

func PossibleAlertEmailNotificationStatusValues

func PossibleAlertEmailNotificationStatusValues() []AlertEmailNotificationStatus

PossibleAlertEmailNotificationStatusValues returns the possible values for the AlertEmailNotificationStatus const type.

type AlertErrorDetails

type AlertErrorDetails struct {
	// Error code.
	ErrorCode *string

	// Error Message
	ErrorMessage *string

	// Number of occurrences.
	Occurences *int32
}

AlertErrorDetails - Error details for the alert

func (AlertErrorDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AlertErrorDetails.

func (*AlertErrorDetails) UnmarshalJSON added in v1.1.0

func (a *AlertErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertErrorDetails.

type AlertFilter

type AlertFilter struct {
	// UTC time on which the alert appeared
	AppearedOnTime *time.Time

	// Severity of the alert
	Severity *AlertSeverity

	// Source name of the alert
	SourceName *string

	// Source of the alert
	SourceType *AlertSourceType

	// Status of the alert
	Status *AlertStatus
}

AlertFilter - Filters that can be specified on the alert

func (AlertFilter) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AlertFilter.

func (*AlertFilter) UnmarshalJSON

func (a *AlertFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertFilter.

type AlertList

type AlertList struct {
	// REQUIRED; The value.
	Value []*Alert

	// Id of the next page of alerts
	NextLink *string
}

AlertList - Collection of Alerts

func (AlertList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AlertList.

func (*AlertList) UnmarshalJSON added in v1.1.0

func (a *AlertList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertList.

type AlertProperties

type AlertProperties struct {
	// REQUIRED; Type of the alert
	AlertType *string

	// REQUIRED; UTC time at which the alert appeared on the source
	AppearedAtSourceTime *time.Time

	// REQUIRED; UTC time at which the alert appeared
	AppearedAtTime *time.Time

	// REQUIRED; Device or Resource alert
	Scope *AlertScope

	// REQUIRED; Severity of the alert
	Severity *AlertSeverity

	// REQUIRED; Source at which the alert was cleared
	Source *AlertSource

	// REQUIRED; Current status of the alert
	Status *AlertStatus

	// REQUIRED; Title of the alert
	Title *string

	// UTC time at which the alert was cleared on the source
	ClearedAtSourceTime *time.Time

	// UTC time at which the alert got cleared
	ClearedAtTime *time.Time

	// Other information about the alert
	DetailedInformation map[string]*string

	// ErrorDetails of the alert
	ErrorDetails *AlertErrorDetails

	// Recommendation for acting on the alert
	Recommendation *string

	// Reason for resolving the alert
	ResolutionReason *string
}

AlertProperties - Properties of alert

func (AlertProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AlertProperties.

func (*AlertProperties) UnmarshalJSON

func (a *AlertProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertProperties.

type AlertScope

type AlertScope string

AlertScope - Device or Resource alert

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

func PossibleAlertScopeValues

func PossibleAlertScopeValues() []AlertScope

PossibleAlertScopeValues returns the possible values for the AlertScope const type.

type AlertSettings

type AlertSettings struct {
	// REQUIRED; Properties of AlertSettings
	Properties *AlertSettingsProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

AlertSettings on the device which represents how alerts will be processed

func (AlertSettings) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AlertSettings.

func (*AlertSettings) UnmarshalJSON added in v1.1.0

func (a *AlertSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertSettings.

type AlertSettingsProperties

type AlertSettingsProperties struct {
	// REQUIRED; Culture setting to be used while building alert emails. For eg: "en-US"
	AlertNotificationCulture *string

	// REQUIRED; Value indicating whether user/admins will receive emails when an alert condition occurs on the system
	EmailNotification *AlertEmailNotificationStatus

	// REQUIRED; Value indicating whether service owners will receive emails when an alert condition occurs on the system. Applicable
	// only if emailNotification flag is Enabled.
	NotificationToServiceOwners *ServiceOwnersAlertNotificationStatus

	// List of email addresses (apart from admin/co-admin of subscription) to whom the alert emails need to be sent
	AdditionalRecipientEmailList []*string
}

AlertSettingsProperties - Class containing the properties of AlertSettings

func (AlertSettingsProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AlertSettingsProperties.

func (*AlertSettingsProperties) UnmarshalJSON added in v1.1.0

func (a *AlertSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertSettingsProperties.

type AlertSeverity

type AlertSeverity string

AlertSeverity - Severity of the alert

const (
	AlertSeverityCritical      AlertSeverity = "Critical"
	AlertSeverityInformational AlertSeverity = "Informational"
	AlertSeverityWarning       AlertSeverity = "Warning"
)

func PossibleAlertSeverityValues

func PossibleAlertSeverityValues() []AlertSeverity

PossibleAlertSeverityValues returns the possible values for the AlertSeverity const type.

type AlertSource

type AlertSource struct {
	// Source type of the alert.
	AlertSourceType *AlertSourceType

	// Name of the source.
	Name *string

	// The time zone.
	TimeZone *string
}

AlertSource - source at which the alert can be raised

func (AlertSource) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AlertSource.

func (*AlertSource) UnmarshalJSON added in v1.1.0

func (a *AlertSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertSource.

type AlertSourceType

type AlertSourceType string

AlertSourceType - Source of the alert

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

func PossibleAlertSourceTypeValues

func PossibleAlertSourceTypeValues() []AlertSourceType

PossibleAlertSourceTypeValues returns the possible values for the AlertSourceType const type.

type AlertStatus

type AlertStatus string

AlertStatus - Status of the alert

const (
	AlertStatusActive  AlertStatus = "Active"
	AlertStatusCleared AlertStatus = "Cleared"
)

func PossibleAlertStatusValues

func PossibleAlertStatusValues() []AlertStatus

PossibleAlertStatusValues returns the possible values for the AlertStatus const type.

type AlertsClient

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

AlertsClient contains the methods for the Alerts group. Don't use this type directly, use NewAlertsClient() instead.

func NewAlertsClient

func NewAlertsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AlertsClient, error)

NewAlertsClient creates a new instance of AlertsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AlertsClient) Clear

func (client *AlertsClient) Clear(ctx context.Context, resourceGroupName string, managerName string, request ClearAlertRequest, options *AlertsClientClearOptions) (AlertsClientClearResponse, error)

Clear - Clear the alerts. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • request - The clear alert request.
  • options - AlertsClientClearOptions contains the optional parameters for the AlertsClient.Clear method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewAlertsClient().Clear(ctx, "ResourceGroupForSDKTest", "hManagerForSDKTest4", armstorsimple1200series.ClearAlertRequest{
		Alerts: []*string{
			to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hManagerForSDKTest4/devices/is2-hlmdhdgu1et/alerts/a1f3a945-74dc-4387-bf17-a4f226374833")},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*AlertsClient) NewListByManagerPager

func (client *AlertsClient) NewListByManagerPager(resourceGroupName string, managerName string, options *AlertsClientListByManagerOptions) *runtime.Pager[AlertsClientListByManagerResponse]

NewListByManagerPager - Retrieves all the alerts in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - AlertsClientListByManagerOptions contains the optional parameters for the AlertsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAlertsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hManagerForSDKTest4", &armstorsimple1200series.AlertsClientListByManagerOptions{Filter: to.Ptr("status%20eq%20'Active'%20and%20severity%20eq%20'Critical'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AlertList = armstorsimple1200series.AlertList{
		// 	Value: []*armstorsimple1200series.Alert{
		// 		{
		// 			Name: to.Ptr("a1f3a945-74dc-4387-bf17-a4f226374833"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/alerts"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hManagerForSDKTest4/devices/is2-hlmdhdgu1et/alerts/a1f3a945-74dc-4387-bf17-a4f226374833"),
		// 			Properties: &armstorsimple1200series.AlertProperties{
		// 				AlertType: to.Ptr("Cloud Connectivity"),
		// 				AppearedAtSourceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-02T04:08:12.914Z"); return t}()),
		// 				AppearedAtTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-02T04:08:12.914Z"); return t}()),
		// 				ClearedAtSourceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				ClearedAtTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DetailedInformation: map[string]*string{
		// 					"first observed": to.Ptr("1/1/0001 12:00:00 AM (UTC)"),
		// 					"last observed": to.Ptr("8/2/2018 4:08:12 AM (UTC)"),
		// 					"occurrences": to.Ptr("2"),
		// 				},
		// 				ErrorDetails: &armstorsimple1200series.AlertErrorDetails{
		// 					ErrorCode: to.Ptr(""),
		// 					ErrorMessage: to.Ptr(""),
		// 					Occurences: to.Ptr[int32](2),
		// 				},
		// 				Recommendation: to.Ptr("The StorSimple Device Manager service has not received a heartbeat from the virtual array. The virtual array may be offline. This could be due to one of the following reasons. <br/>\r\n	1. The virtual array may be turned off or paused on the hypervisor. In Hyper-V, your virtual array will be paused automatically when the volume that stores snapshots or virtual hard disks, runs out of available storage. The state of the virtual array is listed as <i>\"paused-critical\"</i> in Hyper-V Manager. Resolve this by creating additional space on the volume. If you still cannot connect, check the Hyper-V host or ESX server to ensure that the VM is healthy.<br/><br/>\r\n	2. The virtual array is not able to communicate with the StorSimple Device Manager service. In the local web UI of the virtual array, go to <b>Troubleshooting > Diagnostic tests</b> and click <b>Run diagnostic tests</b>. Resolve the reported issues. <br/> <br/>\r\n  If the issue persists, contact your network administrator."),
		// 				ResolutionReason: to.Ptr(""),
		// 				Scope: to.Ptr(armstorsimple1200series.AlertScopeDevice),
		// 				Severity: to.Ptr(armstorsimple1200series.AlertSeverityCritical),
		// 				Source: &armstorsimple1200series.AlertSource{
		// 					Name: to.Ptr("is2-hlmdhdgu1et"),
		// 					AlertSourceType: to.Ptr(armstorsimple1200series.AlertSourceTypeDevice),
		// 					TimeZone: to.Ptr("UTC"),
		// 				},
		// 				Status: to.Ptr(armstorsimple1200series.AlertStatusActive),
		// 				Title: to.Ptr("No device heartbeat received for 5 minutes."),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*AlertsClient) SendTestEmail

func (client *AlertsClient) SendTestEmail(ctx context.Context, deviceName string, resourceGroupName string, managerName string, request SendTestAlertEmailRequest, options *AlertsClientSendTestEmailOptions) (AlertsClientSendTestEmailResponse, error)

SendTestEmail - Sends a test alert email. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • request - The send test alert email request.
  • options - AlertsClientSendTestEmailOptions contains the optional parameters for the AlertsClient.SendTestEmail method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewAlertsClient().SendTestEmail(ctx, "is2-hlmdhdgu1et", "ResourceGroupForSDKTest", "hManagerForSDKTest4", armstorsimple1200series.SendTestAlertEmailRequest{
		EmailList: []*string{
			to.Ptr("testemailid@contoso.com")},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

type AlertsClientClearOptions

type AlertsClientClearOptions struct {
}

AlertsClientClearOptions contains the optional parameters for the AlertsClient.Clear method.

type AlertsClientClearResponse

type AlertsClientClearResponse struct {
}

AlertsClientClearResponse contains the response from method AlertsClient.Clear.

type AlertsClientListByManagerOptions

type AlertsClientListByManagerOptions struct {
	// OData Filter options
	Filter *string
}

AlertsClientListByManagerOptions contains the optional parameters for the AlertsClient.NewListByManagerPager method.

type AlertsClientListByManagerResponse

type AlertsClientListByManagerResponse struct {
	// Collection of Alerts
	AlertList
}

AlertsClientListByManagerResponse contains the response from method AlertsClient.NewListByManagerPager.

type AlertsClientSendTestEmailOptions

type AlertsClientSendTestEmailOptions struct {
}

AlertsClientSendTestEmailOptions contains the optional parameters for the AlertsClient.SendTestEmail method.

type AlertsClientSendTestEmailResponse

type AlertsClientSendTestEmailResponse struct {
}

AlertsClientSendTestEmailResponse contains the response from method AlertsClient.SendTestEmail.

type AsymmetricEncryptedSecret

type AsymmetricEncryptedSecret struct {
	// REQUIRED; Algorithm used to encrypt "Value"
	EncryptionAlgorithm *EncryptionAlgorithm

	// REQUIRED; The value of the secret itself. If the secret is in plaintext then EncryptionAlgorithm will be none and EncryptionCertThumbprint
	// will be null.
	Value *string

	// Thumbprint certificate that was used to encrypt "Value"
	EncryptionCertificateThumbprint *string
}

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

func (AsymmetricEncryptedSecret) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AsymmetricEncryptedSecret.

func (*AsymmetricEncryptedSecret) UnmarshalJSON added in v1.1.0

func (a *AsymmetricEncryptedSecret) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AsymmetricEncryptedSecret.

type AuthType

type AuthType string

AuthType - Specify the Authentication type

const (
	AuthTypeAccessControlService AuthType = "AccessControlService"
	AuthTypeAzureActiveDirectory AuthType = "AzureActiveDirectory"
	AuthTypeInvalid              AuthType = "Invalid"
)

func PossibleAuthTypeValues

func PossibleAuthTypeValues() []AuthType

PossibleAuthTypeValues returns the possible values for the AuthType const type.

type AvailableProviderOperation

type AvailableProviderOperation struct {
	// Gets or sets Display information Contains the localized display information for this particular operation/action
	Display *AvailableProviderOperationDisplay

	// Gets or sets the name of the operation being performed on this particular object Return value format: "{resourceProviderNamespace}/{resourceType}/{read|write|deletion|action}"
	// Eg:
	// Microsoft.StorSimple/managers/devices/fileServers/read Microsoft.StorSimple/managers/devices/alerts/clearAlerts/action
	Name *string

	// Gets or sets Origin The intended executor of the operation; governs the display of the operation in the RBAC UX and the
	// audit logs UX. Default value is “user,system”
	Origin *string

	// Gets or sets Properties Reserved for future use
	Properties any
}

AvailableProviderOperation - Class represents provider operation

func (AvailableProviderOperation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperation.

func (*AvailableProviderOperation) UnmarshalJSON added in v1.1.0

func (a *AvailableProviderOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperation.

type AvailableProviderOperationDisplay

type AvailableProviderOperationDisplay struct {
	// Gets or sets Description The localized friendly description for the operation, as it should be shown to the user. It should
	// be thorough, yet concise – it will be used in tool tips and detailed views.
	Description *string

	// Gets or sets Operation The localized friendly name for the operation, as it should be shown to the user. It should be concise
	// (to fit in drop downs) but clear (i.e. self-documenting). It should use
	// Title Casing and include the entity/resource to which it applies.
	Operation *string

	// Gets or sets Provider The localized friendly form of the resource provider name – it is expected to also include the publisher/company
	// responsible. It should use Title Casing and begin with
	// “Microsoft” for 1st party services.
	Provider *string

	// Gets or sets Resource The localized friendly form of the resource type related to this action/operation – it should match
	// the public documentation for the resource provider. It should use Title Casing
	// – for examples, please refer to the “name” section.
	Resource *string
}

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

func (AvailableProviderOperationDisplay) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperationDisplay.

func (*AvailableProviderOperationDisplay) UnmarshalJSON added in v1.1.0

func (a *AvailableProviderOperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperationDisplay.

type AvailableProviderOperations

type AvailableProviderOperations struct {
	// REQUIRED; The value.
	Value []*AvailableProviderOperation

	// The NextLink.
	NextLink *string
}

AvailableProviderOperations - Class for set of operations used for discovery of available provider operations.

func (AvailableProviderOperations) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperations.

func (*AvailableProviderOperations) UnmarshalJSON added in v1.1.0

func (a *AvailableProviderOperations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperations.

type AvailableProviderOperationsClient

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

AvailableProviderOperationsClient contains the methods for the AvailableProviderOperations group. Don't use this type directly, use NewAvailableProviderOperationsClient() instead.

func NewAvailableProviderOperationsClient

func NewAvailableProviderOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*AvailableProviderOperationsClient, error)

NewAvailableProviderOperationsClient creates a new instance of AvailableProviderOperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AvailableProviderOperationsClient) NewListPager

NewListPager - List of AvailableProviderOperations

Generated from API version 2016-10-01

  • options - AvailableProviderOperationsClientListOptions contains the optional parameters for the AvailableProviderOperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/OperationsList.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAvailableProviderOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AvailableProviderOperations = armstorsimple1200series.AvailableProviderOperations{
		// 	Value: []*armstorsimple1200series.AvailableProviderOperation{
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/certificates/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Update Resource Certificate operation updates the resource/vault credential certificate."),
		// 				Operation: to.Ptr("Update Resource Certificate"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/updateSummary/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Update Summary"),
		// 				Operation: to.Ptr("List Update Summary"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Update Summary"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/scanForUpdates/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Scan for updates in a device."),
		// 				Operation: to.Ptr("Scan Updates"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/download/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Dowload updates for a device."),
		// 				Operation: to.Ptr("Download Device Updates"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/install/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Install updates on a device."),
		// 				Operation: to.Ptr("Install Updates (1200 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/timeSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Time Settings"),
		// 				Operation: to.Ptr("List Time Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Time Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/alertSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Alert Settings"),
		// 				Operation: to.Ptr("List Alert Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Alert Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/networkSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Network Settings"),
		// 				Operation: to.Ptr("List Network Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Network Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/alertSettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Alert Settings"),
		// 				Operation: to.Ptr("Create or Update Alert Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Alert Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/securitySettings/update/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Update the security settings."),
		// 				Operation: to.Ptr("Update (1200 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Security Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Devices"),
		// 				Operation: to.Ptr("List Devices"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Devices"),
		// 				Operation: to.Ptr("Create or Update Devices"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Devices"),
		// 				Operation: to.Ptr("Delete Devices"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/deactivate/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deactivates a device."),
		// 				Operation: to.Ptr("Deactivate Device"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/publishSupportPackage/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Publish support package of a device for Microsoft Support troubleshooting."),
		// 				Operation: to.Ptr("Publish Support Package"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/failover/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Failover of the device."),
		// 				Operation: to.Ptr("Failover Device"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/shares/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Shares"),
		// 				Operation: to.Ptr("Create or Update Shares"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Shares (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/shares/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Shares"),
		// 				Operation: to.Ptr("List Shares"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Shares (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/shares/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Shares"),
		// 				Operation: to.Ptr("Delete Shares"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Shares (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/shares/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/shares/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/disks/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Disks"),
		// 				Operation: to.Ptr("List Disks"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Disks (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/disks/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Disks"),
		// 				Operation: to.Ptr("Create or Update Disks"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Disks (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/disks/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Disks"),
		// 				Operation: to.Ptr("Delete Disks"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Disks (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/disks/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/disks/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the iSCSI Servers"),
		// 				Operation: to.Ptr("List iSCSI Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("iSCSI Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the iSCSI Servers"),
		// 				Operation: to.Ptr("Create or Update iSCSI Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("iSCSI Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the iSCSI Servers"),
		// 				Operation: to.Ptr("Delete iSCSI Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("iSCSI Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/backup/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Take backup of an iSCSI server."),
		// 				Operation: to.Ptr("Take Backup"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("iSCSI Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiservers/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupScheduleGroups/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Backup Schedule Groups"),
		// 				Operation: to.Ptr("List Backup Schedule Groups"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Schedule Groups (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupScheduleGroups/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Backup Schedule Groups"),
		// 				Operation: to.Ptr("Create or Update Backup Schedule Groups"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Schedule Groups (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupScheduleGroups/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Backup Schedule Groups"),
		// 				Operation: to.Ptr("Delete Backup Schedule Groups"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Schedule Groups (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/alerts/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Alerts"),
		// 				Operation: to.Ptr("List Alerts"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Alerts"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/clearAlerts/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Clear all the alerts associated with the device manager."),
		// 				Operation: to.Ptr("Clears All Alerts"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/sendTestAlertEmail/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Send test alert email to configured email recipients."),
		// 				Operation: to.Ptr("Send Test Alert Email"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Storage Account Credentials"),
		// 				Operation: to.Ptr("Create or Update Storage Account Credentials"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Account Credentials"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Storage Account Credentials"),
		// 				Operation: to.Ptr("List Storage Account Credentials"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Account Credentials"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Storage Account Credentials"),
		// 				Operation: to.Ptr("Delete Storage Account Credentials"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Account Credentials"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/getActivationKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Get activation key for the device manager."),
		// 				Operation: to.Ptr("Get Activation Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/regenerateActivationKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Regenerate activation key for the device manager."),
		// 				Operation: to.Ptr("Regenerate Activation Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/regenarateRegistationCertificate/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Regenerate registration certificate for the device managers."),
		// 				Operation: to.Ptr("Regenerate Registration Certificate"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/encryptionSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Encryption Settings"),
		// 				Operation: to.Ptr("List Encryption Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Encryption Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/getEncryptionKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Get encryption key for the device manager."),
		// 				Operation: to.Ptr("Get Encryption Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Device Managers"),
		// 				Operation: to.Ptr("List Device Managers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Device Managers"),
		// 				Operation: to.Ptr("Delete Device Managers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Device Managers"),
		// 				Operation: to.Ptr("Create or Update Device Managers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/chapSettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Chap Settings"),
		// 				Operation: to.Ptr("Create or Update Chap Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Chap Settings (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/chapSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Chap Settings"),
		// 				Operation: to.Ptr("List Chap Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Chap Settings (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/chapSettings/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Chap Settings"),
		// 				Operation: to.Ptr("Delete Chap Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Chap Settings (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backups/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Backup Set"),
		// 				Operation: to.Ptr("List Backup Set"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Set"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backups/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Backup Set"),
		// 				Operation: to.Ptr("Delete Backup Set"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Set"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements/clone/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Clone a share or volume using a backup element."),
		// 				Operation: to.Ptr("Clone"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Elements (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageDomains/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Storage Domains"),
		// 				Operation: to.Ptr("List Storage Domains"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Domains (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageDomains/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Storage Domains"),
		// 				Operation: to.Ptr("Create or Update Storage Domains"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Domains (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageDomains/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Storage Domains"),
		// 				Operation: to.Ptr("Delete Storage Domains"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Domains (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/jobs/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Jobs"),
		// 				Operation: to.Ptr("List Jobs"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Jobs"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/accessControlRecords/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Access Control Records"),
		// 				Operation: to.Ptr("List Access Control Records"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Access Control Records"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/accessControlRecords/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the Access Control Records"),
		// 				Operation: to.Ptr("Create or Update Access Control Records"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Access Control Records"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/accessControlRecords/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the Access Control Records"),
		// 				Operation: to.Ptr("Delete Access Control Records"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Access Control Records"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the File Servers"),
		// 				Operation: to.Ptr("List File Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("File Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create or update the File Servers"),
		// 				Operation: to.Ptr("Create or Update File Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("File Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes the File Servers"),
		// 				Operation: to.Ptr("Delete File Servers"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("File Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/backup/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Take backup of an File Server."),
		// 				Operation: to.Ptr("Take Backup"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("File Servers (1200 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/fileservers/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Lists or gets the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/timeSettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Time Settings"),
		// 				Operation: to.Ptr("Creates or Updates Time Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Time Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/networkSettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Network Settings"),
		// 				Operation: to.Ptr("Creates or Updates Network Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Network Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/securitySettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Security Settings"),
		// 				Operation: to.Ptr("List Security Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Security Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/securitySettings/syncRemoteManagementCertificate/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Synchronize the remote management certificate for a device."),
		// 				Operation: to.Ptr("Synchronize Remote Management Certificate (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Security Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/securitySettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Security Settings"),
		// 				Operation: to.Ptr("Creates or Updates Security Settings"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Security Settings"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/configureDevice/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Configures a device"),
		// 				Operation: to.Ptr("Configure Device"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/installUpdates/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Installs updates on the devices"),
		// 				Operation: to.Ptr("Install Updates (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/listFailoverSets/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the failover sets for an existing device."),
		// 				Operation: to.Ptr("List Failover Sets"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/listFailoverTargets/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List failover targets of the devices"),
		// 				Operation: to.Ptr("List Failover Targets"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/listActivationKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Gets the activation key of the StorSimple Device Manager."),
		// 				Operation: to.Ptr("Gets Activation Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/listPublicEncryptionKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List public encryption keys of a StorSimple Device Manager."),
		// 				Operation: to.Ptr("List Public Encryption Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/publicEncryptionKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List public encryption key of the device manager"),
		// 				Operation: to.Ptr("List Public Encryption Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Devices"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/listPrivateEncryptionKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Gets private encryption key for a StorSimple Device Manager."),
		// 				Operation: to.Ptr("List Private Encryption Key"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials/listAccessKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List access keys of Storage Account Credentials"),
		// 				Operation: to.Ptr("List Access Keys"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Storage Account Credentials"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/jobs/cancel/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Cancel a running job"),
		// 				Operation: to.Ptr("Cancel Job"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Jobs"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Volume Containers (8000 Series Only)"),
		// 				Operation: to.Ptr("Creates or Updates Volume Containers (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volume Containers (8000 Series Only) (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Volume Containers (8000 Series Only)"),
		// 				Operation: to.Ptr("List Volume Containers (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volume Containers (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes an existing Volume Containers (8000 Series Only)"),
		// 				Operation: to.Ptr("Deletes Volume Containers (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volume Containers (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/listEncryptionKeys/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List encryption keys of Volume Containers"),
		// 				Operation: to.Ptr("List Encryption Keys"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volume Containers (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/rolloverEncryptionKey/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Rollover encryption keys of Volume Containers"),
		// 				Operation: to.Ptr("Rollover Encryption Keys"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volume Containers (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/volumes/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Volumes"),
		// 				Operation: to.Ptr("List Volumes"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volumes (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/volumes/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Volumes"),
		// 				Operation: to.Ptr("Creates or Updates Volumes"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volumes"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/volumes/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes an existing Volumes"),
		// 				Operation: to.Ptr("Deletes Volumes"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Volumes"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/volumes/metricsDefinitions/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Metrics Definitions"),
		// 				Operation: to.Ptr("List Metrics Definitions"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics Definitions"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/volumeContainers/volumes/metrics/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Metrics"),
		// 				Operation: to.Ptr("List Metrics"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Metrics"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/hardwareComponentGroups/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Hardware Component Groups"),
		// 				Operation: to.Ptr("List Hardware Component Groups"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Hardware Component Groups (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/hardwareComponentGroups/changeControllerPowerState/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Change controller power state of hardware component groups"),
		// 				Operation: to.Ptr("Change controller power state of hardware component groups"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Hardware Component Groups"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/bandwidthSettings/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Bandwidth Settings (8000 Series Only)"),
		// 				Operation: to.Ptr("List Bandwidth Settings (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Bandwidth Settings (8000 Series Only) (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/bandwidthSettings/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Bandwidth Settings (8000 Series Only)"),
		// 				Operation: to.Ptr("Creates or Updates Bandwidth Settings (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Bandwidth Settings (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/bandwidthSettings/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes an existing Bandwidth Settings (8000 Series Only)"),
		// 				Operation: to.Ptr("Deletes Bandwidth Settings (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Bandwidth Settings (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backups/restore/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Restore all the volumes from a backup set."),
		// 				Operation: to.Ptr("Restore from Backup Set"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Set"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/schedules/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Schedules"),
		// 				Operation: to.Ptr("Creates or Updates Schedules"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Schedules (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/schedules/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Schedules"),
		// 				Operation: to.Ptr("List Schedules"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Schedules"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/schedules/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes an existing Schedules"),
		// 				Operation: to.Ptr("Deletes Schedules"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Schedules"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Creates a new or updates Backup Polices (8000 Series Only)"),
		// 				Operation: to.Ptr("Creates or Updates Backup Polices (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Polices (8000 Series Only) (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Backup Polices (8000 Series Only)"),
		// 				Operation: to.Ptr("List Backup Polices (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Polices (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Deletes an existing Backup Polices (8000 Series Only)"),
		// 				Operation: to.Ptr("Deletes Backup Polices (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Polices (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/backupPolicies/backup/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Take a manual backup to create an on-demand backup of all the volumes protected by the policy."),
		// 				Operation: to.Ptr("Take Backup"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Backup Polices (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/import/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Import source configurations for migration"),
		// 				Operation: to.Ptr("Import Source Configurations"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only) (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/startMigrationEstimate/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Start a job to estimate the duration of the migration process."),
		// 				Operation: to.Ptr("Start Migration Estimate"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/startMigration/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Start migration using source configurations"),
		// 				Operation: to.Ptr("Start Migration"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/confirmMigration/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Confirms a successful migration and commit it."),
		// 				Operation: to.Ptr("Confirm Migration"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/fetchMigrationEstimate/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Fetch the status for the migration estimation job."),
		// 				Operation: to.Ptr("Fetch Migration Estimate"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/fetchMigrationStatus/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Fetch the status for the migration."),
		// 				Operation: to.Ptr("Fetch Migration Status"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/devices/migrationSourceConfigurations/fetchConfirmMigrationStatus/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Fetch the confirm status of migration."),
		// 				Operation: to.Ptr("Fetch Migration Confirm Status"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Migration Source Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/provisionCloudAppliance/action"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create a new cloud appliance."),
		// 				Operation: to.Ptr("Create Cloud Appliance (8000 Series Only)"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Device Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/managers/cloudApplianceConfigurations/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("List the Cloud Appliance Supported Configurations"),
		// 				Operation: to.Ptr("List Cloud Appliance Supported Configurations"),
		// 				Provider: to.Ptr("Microsoft StorSimple Device Manager"),
		// 				Resource: to.Ptr("Cloud Appliance Supported Configurations (8000 Series Only)"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("Create Vault operation creates an Azure resource of type 'vault'"),
		// 				Operation: to.Ptr("Create Vault"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Get Vault operation gets an object representing the Azure resource of type 'vault'"),
		// 				Operation: to.Ptr("Get Vault"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Delete Vault operation deletes the specified Azure resource of type 'vault'"),
		// 				Operation: to.Ptr("Delete Vault"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation/read"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Get Extended Info operation gets an object's Extended Info representing the Azure resource of type ?vault?"),
		// 				Operation: to.Ptr("Get Extended Info"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation/write"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Get Extended Info operation gets an object's Extended Info representing the Azure resource of type ?vault?"),
		// 				Operation: to.Ptr("Get Extended Info"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation/delete"),
		// 			Display: &armstorsimple1200series.AvailableProviderOperationDisplay{
		// 				Description: to.Ptr("The Get Extended Info operation gets an object's Extended Info representing the Azure resource of type ?vault?"),
		// 				Operation: to.Ptr("Get Extended Info"),
		// 				Provider: to.Ptr("Microsoft.StorSimple"),
		// 				Resource: to.Ptr("Managers"),
		// 			},
		// 			Origin: to.Ptr("user"),
		// 	}},
		// }
	}
}
Output:

type AvailableProviderOperationsClientListOptions

type AvailableProviderOperationsClientListOptions struct {
}

AvailableProviderOperationsClientListOptions contains the optional parameters for the AvailableProviderOperationsClient.NewListPager method.

type AvailableProviderOperationsClientListResponse

type AvailableProviderOperationsClientListResponse struct {
	// Class for set of operations used for discovery of available provider operations.
	AvailableProviderOperations
}

AvailableProviderOperationsClientListResponse contains the response from method AvailableProviderOperationsClient.NewListPager.

type Backup

type Backup struct {
	// REQUIRED; Properties of backup
	Properties *BackupProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

Backup - The backup.

func (Backup) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Backup.

func (*Backup) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Backup.

type BackupElement

type BackupElement struct {
	// REQUIRED; The Properties of backup element
	Properties *BackupElementProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

BackupElement - Class represents BackupElement

func (BackupElement) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupElement.

func (*BackupElement) UnmarshalJSON added in v1.1.0

func (b *BackupElement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupElement.

type BackupElementProperties

type BackupElementProperties struct {
	// REQUIRED; The data policy of backed up endpoint.
	DataPolicy *DataPolicy

	// REQUIRED; The name of the endpoint.
	EndpointName *string

	// REQUIRED; The size in bytes.
	SizeInBytes *int64
}

BackupElementProperties - The backup element properties

func (BackupElementProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupElementProperties.

func (*BackupElementProperties) UnmarshalJSON added in v1.1.0

func (b *BackupElementProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupElementProperties.

type BackupFilter

type BackupFilter struct {
	// Gets or sets CreatedTime
	CreatedTime *time.Time

	// Gets or sets InitiatedBy
	InitiatedBy *InitiatedBy
}

BackupFilter - Backup OData filter class

func (BackupFilter) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupFilter.

func (*BackupFilter) UnmarshalJSON

func (b *BackupFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupFilter.

type BackupList

type BackupList struct {
	// REQUIRED; The value.
	Value []*Backup

	// The NextLink.
	NextLink *string
}

BackupList - Collection of backups

func (BackupList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupList.

func (*BackupList) UnmarshalJSON added in v1.1.0

func (b *BackupList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupList.

type BackupProperties

type BackupProperties struct {
	// REQUIRED; The Device Identifier.
	DeviceID *string

	// REQUIRED; The backup elements.
	Elements []*BackupElement

	// REQUIRED; Indicates how the backup was initiated "Manual | Scheduled".
	InitiatedBy *InitiatedBy

	// REQUIRED; The backup size in bytes.
	SizeInBytes *int64

	// The time when the backup was created.
	CreatedTime *time.Time

	// The time when the backup will expire.
	ExpirationTime *time.Time

	// The path id of the target FileServer or IscsiServer for which the backup was taken.
	TargetID *string

	// Type of target, FileServer or IscsiServer
	TargetType *string
}

BackupProperties - Class represents Backup properties

func (BackupProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type BackupProperties.

func (*BackupProperties) UnmarshalJSON

func (b *BackupProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupProperties.

type BackupScheduleGroup

type BackupScheduleGroup struct {
	// REQUIRED; Properties of BackupScheduleGroup
	Properties *BackupScheduleGroupProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

BackupScheduleGroup - The Backup Schedule Group

func (BackupScheduleGroup) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupScheduleGroup.

func (*BackupScheduleGroup) UnmarshalJSON added in v1.1.0

func (b *BackupScheduleGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupScheduleGroup.

type BackupScheduleGroupList

type BackupScheduleGroupList struct {
	// REQUIRED; The value.
	Value []*BackupScheduleGroup
}

BackupScheduleGroupList - The list response of backup schedule groups

func (BackupScheduleGroupList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupScheduleGroupList.

func (*BackupScheduleGroupList) UnmarshalJSON added in v1.1.0

func (b *BackupScheduleGroupList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupScheduleGroupList.

type BackupScheduleGroupProperties

type BackupScheduleGroupProperties struct {
	// REQUIRED; The start time. When this field is specified we will generate Default GrandFather Father Son Backup Schedules.
	StartTime *Time
}

BackupScheduleGroupProperties - The Backup Schedule Group Properties

func (BackupScheduleGroupProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BackupScheduleGroupProperties.

func (*BackupScheduleGroupProperties) UnmarshalJSON added in v1.1.0

func (b *BackupScheduleGroupProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupScheduleGroupProperties.

type BackupScheduleGroupsClient

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

BackupScheduleGroupsClient contains the methods for the BackupScheduleGroups group. Don't use this type directly, use NewBackupScheduleGroupsClient() instead.

func NewBackupScheduleGroupsClient

func NewBackupScheduleGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupScheduleGroupsClient, error)

NewBackupScheduleGroupsClient creates a new instance of BackupScheduleGroupsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*BackupScheduleGroupsClient) BeginCreateOrUpdate

func (client *BackupScheduleGroupsClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string, scheduleGroup BackupScheduleGroup, options *BackupScheduleGroupsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BackupScheduleGroupsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or Updates the backup schedule Group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • scheduleGroupName - The name of the schedule group.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • scheduleGroup - The schedule group to be created
  • options - BackupScheduleGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupScheduleGroupsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewBackupScheduleGroupsClient().BeginCreateOrUpdate(ctx, "HSDK-4XY4FI2IVG", "BackupSchGroupForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.BackupScheduleGroup{
		Name: to.Ptr("BackupSchGroupForSDKTest"),
		Properties: &armstorsimple1200series.BackupScheduleGroupProperties{
			StartTime: &armstorsimple1200series.Time{
				Hour:   to.Ptr[int32](17),
				Minute: to.Ptr[int32](38),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.BackupScheduleGroup = armstorsimple1200series.BackupScheduleGroup{
	// 	Name: to.Ptr("BackupSchGroupForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/backupScheduleGroups"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest"),
	// 	Properties: &armstorsimple1200series.BackupScheduleGroupProperties{
	// 		StartTime: &armstorsimple1200series.Time{
	// 			Hour: to.Ptr[int32](17),
	// 			Minute: to.Ptr[int32](38),
	// 		},
	// 	},
	// }
}
Output:

func (*BackupScheduleGroupsClient) BeginDelete

func (client *BackupScheduleGroupsClient) BeginDelete(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string, options *BackupScheduleGroupsClientBeginDeleteOptions) (*runtime.Poller[BackupScheduleGroupsClientDeleteResponse], error)

BeginDelete - Deletes the backup schedule group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • scheduleGroupName - The name of the schedule group.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupScheduleGroupsClientBeginDeleteOptions contains the optional parameters for the BackupScheduleGroupsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewBackupScheduleGroupsClient().BeginDelete(ctx, "HSDK-DMNJB2PET0", "BackupSchGroupForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*BackupScheduleGroupsClient) Get

func (client *BackupScheduleGroupsClient) Get(ctx context.Context, deviceName string, scheduleGroupName string, resourceGroupName string, managerName string, options *BackupScheduleGroupsClientGetOptions) (BackupScheduleGroupsClientGetResponse, error)

Get - Returns the properties of the specified backup schedule group name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • scheduleGroupName - The name of the schedule group.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupScheduleGroupsClientGetOptions contains the optional parameters for the BackupScheduleGroupsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewBackupScheduleGroupsClient().Get(ctx, "HSDK-4XY4FI2IVG", "BackupSchGroupForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.BackupScheduleGroup = armstorsimple1200series.BackupScheduleGroup{
	// 	Name: to.Ptr("BackupSchGroupForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/backupScheduleGroups"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest"),
	// 	Properties: &armstorsimple1200series.BackupScheduleGroupProperties{
	// 		StartTime: &armstorsimple1200series.Time{
	// 			Hour: to.Ptr[int32](17),
	// 			Minute: to.Ptr[int32](38),
	// 		},
	// 	},
	// }
}
Output:

func (*BackupScheduleGroupsClient) NewListByDevicePager

func (client *BackupScheduleGroupsClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *BackupScheduleGroupsClientListByDeviceOptions) *runtime.Pager[BackupScheduleGroupsClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the backup schedule groups in a device.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupScheduleGroupsClientListByDeviceOptions contains the optional parameters for the BackupScheduleGroupsClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewBackupScheduleGroupsClient().NewListByDevicePager("HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.BackupScheduleGroupList = armstorsimple1200series.BackupScheduleGroupList{
		// 	Value: []*armstorsimple1200series.BackupScheduleGroup{
		// 	},
		// }
	}
}
Output:

type BackupScheduleGroupsClientBeginCreateOrUpdateOptions

type BackupScheduleGroupsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

BackupScheduleGroupsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupScheduleGroupsClient.BeginCreateOrUpdate method.

type BackupScheduleGroupsClientBeginDeleteOptions

type BackupScheduleGroupsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

BackupScheduleGroupsClientBeginDeleteOptions contains the optional parameters for the BackupScheduleGroupsClient.BeginDelete method.

type BackupScheduleGroupsClientCreateOrUpdateResponse

type BackupScheduleGroupsClientCreateOrUpdateResponse struct {
	// The Backup Schedule Group
	BackupScheduleGroup
}

BackupScheduleGroupsClientCreateOrUpdateResponse contains the response from method BackupScheduleGroupsClient.BeginCreateOrUpdate.

type BackupScheduleGroupsClientDeleteResponse

type BackupScheduleGroupsClientDeleteResponse struct {
}

BackupScheduleGroupsClientDeleteResponse contains the response from method BackupScheduleGroupsClient.BeginDelete.

type BackupScheduleGroupsClientGetOptions

type BackupScheduleGroupsClientGetOptions struct {
}

BackupScheduleGroupsClientGetOptions contains the optional parameters for the BackupScheduleGroupsClient.Get method.

type BackupScheduleGroupsClientGetResponse

type BackupScheduleGroupsClientGetResponse struct {
	// The Backup Schedule Group
	BackupScheduleGroup
}

BackupScheduleGroupsClientGetResponse contains the response from method BackupScheduleGroupsClient.Get.

type BackupScheduleGroupsClientListByDeviceOptions

type BackupScheduleGroupsClientListByDeviceOptions struct {
}

BackupScheduleGroupsClientListByDeviceOptions contains the optional parameters for the BackupScheduleGroupsClient.NewListByDevicePager method.

type BackupScheduleGroupsClientListByDeviceResponse

type BackupScheduleGroupsClientListByDeviceResponse struct {
	// The list response of backup schedule groups
	BackupScheduleGroupList
}

BackupScheduleGroupsClientListByDeviceResponse contains the response from method BackupScheduleGroupsClient.NewListByDevicePager.

type BackupsClient

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

BackupsClient contains the methods for the Backups group. Don't use this type directly, use NewBackupsClient() instead.

func NewBackupsClient

func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsClient, error)

NewBackupsClient creates a new instance of BackupsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*BackupsClient) BeginClone

func (client *BackupsClient) BeginClone(ctx context.Context, deviceName string, backupName string, elementName string, resourceGroupName string, managerName string, cloneRequest CloneRequest, options *BackupsClientBeginCloneOptions) (*runtime.Poller[BackupsClientCloneResponse], error)

BeginClone - Clones the given backup element to a new disk or share with given details. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • backupName - The backup name.
  • elementName - The backup element name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • cloneRequest - The clone request.
  • options - BackupsClientBeginCloneOptions contains the optional parameters for the BackupsClient.BeginClone method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewBackupsClient().BeginClone(ctx, "HSDK-4XY4FI2IVG", "58d33025-e837-41cc-b15f-7c85ced64aab", "2304968f-91af-4f59-8b79-31e321eee40e", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.CloneRequest{
		Properties: &armstorsimple1200series.CloneRequestProperties{
			NewEndpointName: to.Ptr("ClonedTieredFileShareForSDKTest"),
			Share: &armstorsimple1200series.FileShare{
				Name: to.Ptr("TieredFileShareForSDKTest"),
				Properties: &armstorsimple1200series.FileShareProperties{
					Description:                to.Ptr("Restore file Share"),
					AdminUser:                  to.Ptr("HSDK-4XY4FI2IVG\\StorSimpleAdmin"),
					DataPolicy:                 to.Ptr(armstorsimple1200series.DataPolicyTiered),
					MonitoringStatus:           to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
					ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
					ShareStatus:                to.Ptr(armstorsimple1200series.ShareStatusOnline),
				},
			},
			TargetAccessPointID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG"),
			TargetDeviceID:      to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*BackupsClient) BeginDelete

func (client *BackupsClient) BeginDelete(ctx context.Context, deviceName string, backupName string, resourceGroupName string, managerName string, options *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error)

BeginDelete - Deletes the backup. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • backupName - The backup name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewBackupsClient().BeginDelete(ctx, "HSDK-UGU4PITWNI", "315c3461-96ad-41bf-af0b-3a8be5113203", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*BackupsClient) NewListByDevicePager

func (client *BackupsClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *BackupsClientListByDeviceOptions) *runtime.Pager[BackupsClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the backups in a device. Can be used to get the backups for failover also.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupsClientListByDeviceOptions contains the optional parameters for the BackupsClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewBackupsClient().NewListByDevicePager("HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.BackupsClientListByDeviceOptions{ForFailover: nil,
		Filter: to.Ptr("initiatedBy%20eq%20'Manual'"),
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.BackupList = armstorsimple1200series.BackupList{
		// 	Value: []*armstorsimple1200series.Backup{
		// 		{
		// 			Name: to.Ptr("58d33025-e837-41cc-b15f-7c85ced64aab"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backups/58d33025-e837-41cc-b15f-7c85ced64aab"),
		// 			Properties: &armstorsimple1200series.BackupProperties{
		// 				CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T16:19:09.653Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg"),
		// 				Elements: []*armstorsimple1200series.BackupElement{
		// 					{
		// 						Name: to.Ptr("2304968f-91af-4f59-8b79-31e321eee40e"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backups/58d33025-e837-41cc-b15f-7c85ced64aab/elements/2304968f-91af-4f59-8b79-31e321eee40e"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyLocal),
		// 							EndpointName: to.Ptr("Auto-TestFileShare2"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("c5661246-17b7-4daf-a82a-6cc86c68a1dc"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backups/58d33025-e837-41cc-b15f-7c85ced64aab/elements/c5661246-17b7-4daf-a82a-6cc86c68a1dc"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestFileShare1"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 				}},
		// 				ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()),
		// 				InitiatedBy: to.Ptr(armstorsimple1200series.InitiatedByManual),
		// 				SizeInBytes: to.Ptr[int64](1073741824000),
		// 				TargetID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG"),
		// 				TargetType: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*BackupsClient) NewListByManagerPager

func (client *BackupsClient) NewListByManagerPager(resourceGroupName string, managerName string, options *BackupsClientListByManagerOptions) *runtime.Pager[BackupsClientListByManagerResponse]

NewListByManagerPager - Retrieves all the backups in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - BackupsClientListByManagerOptions contains the optional parameters for the BackupsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewBackupsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.BackupsClientListByManagerOptions{Filter: to.Ptr("createdTime%20ge%20'2018-08-10T17:30:03Z'%20and%20createdTime%20le%20'2018-08-14T17:30:03Z'%20and%20initiatedBy%20eq%20'Manual'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.BackupList = armstorsimple1200series.BackupList{
		// 	Value: []*armstorsimple1200series.Backup{
		// 		{
		// 			Name: to.Ptr("315c3461-96ad-41bf-af0b-3a8be5113203"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/315c3461-96ad-41bf-af0b-3a8be5113203"),
		// 			Properties: &armstorsimple1200series.BackupProperties{
		// 				CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T14:34:52.414Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI"),
		// 				Elements: []*armstorsimple1200series.BackupElement{
		// 					{
		// 						Name: to.Ptr("f3fa955c-e20e-46fd-a71e-c0f0491db14b"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/315c3461-96ad-41bf-af0b-3a8be5113203/elements/f3fa955c-e20e-46fd-a71e-c0f0491db14b"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestIscsiDisk2"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("9ba7098e-0fc8-43de-b39b-a4228dd3bbde"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/315c3461-96ad-41bf-af0b-3a8be5113203/elements/9ba7098e-0fc8-43de-b39b-a4228dd3bbde"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestIscsiDisk1"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 				}},
		// 				ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()),
		// 				InitiatedBy: to.Ptr(armstorsimple1200series.InitiatedByManual),
		// 				SizeInBytes: to.Ptr[int64](1073741824000),
		// 				TargetID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/iscsiServers/HSDK-UGU4PITWNI"),
		// 				TargetType: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("cce3a13c-b37e-4db1-bb78-444cc85be33d"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/cce3a13c-b37e-4db1-bb78-444cc85be33d"),
		// 			Properties: &armstorsimple1200series.BackupProperties{
		// 				CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-12T14:02:13.067Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI"),
		// 				Elements: []*armstorsimple1200series.BackupElement{
		// 					{
		// 						Name: to.Ptr("bebfaa5b-b02f-4f14-bf3f-83a0abdff090"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/cce3a13c-b37e-4db1-bb78-444cc85be33d/elements/bebfaa5b-b02f-4f14-bf3f-83a0abdff090"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("ClonedTieredIscsiDiskForSDKTest"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("8e065d31-0571-43cc-a134-4855603bc222"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/cce3a13c-b37e-4db1-bb78-444cc85be33d/elements/8e065d31-0571-43cc-a134-4855603bc222"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestIscsiDisk2"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("e4a4b2c8-0252-488c-8909-f7bc67474b62"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/backups/cce3a13c-b37e-4db1-bb78-444cc85be33d/elements/e4a4b2c8-0252-488c-8909-f7bc67474b62"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestIscsiDisk1"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 				}},
		// 				ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()),
		// 				InitiatedBy: to.Ptr(armstorsimple1200series.InitiatedByManual),
		// 				SizeInBytes: to.Ptr[int64](1610612736000),
		// 				TargetID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI/iscsiServers/HSDK-UGU4PITWNI"),
		// 				TargetType: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("899222aa-1340-4090-a8b1-7436e2b859d3"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/899222aa-1340-4090-a8b1-7436e2b859d3"),
		// 			Properties: &armstorsimple1200series.BackupProperties{
		// 				CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-12T14:34:24.398Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0"),
		// 				Elements: []*armstorsimple1200series.BackupElement{
		// 					{
		// 						Name: to.Ptr("ac877a33-cce2-4107-a3f5-b00e0af43bd8"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/899222aa-1340-4090-a8b1-7436e2b859d3/elements/ac877a33-cce2-4107-a3f5-b00e0af43bd8"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyLocal),
		// 							EndpointName: to.Ptr("Auto-TestFileShare2"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("6c5afd0b-5b1f-47c5-a37e-eab0812cfdf3"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/899222aa-1340-4090-a8b1-7436e2b859d3/elements/6c5afd0b-5b1f-47c5-a37e-eab0812cfdf3"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("ClonedTieredFileShareForSDKTest"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("6565f0f0-97d2-427f-8e44-fc43c4558234"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/899222aa-1340-4090-a8b1-7436e2b859d3/elements/6565f0f0-97d2-427f-8e44-fc43c4558234"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestFileShare1"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 				}},
		// 				ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()),
		// 				InitiatedBy: to.Ptr(armstorsimple1200series.InitiatedByManual),
		// 				SizeInBytes: to.Ptr[int64](1610612736000),
		// 				TargetID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/fileServers/HSDK-DMNJB2PET0"),
		// 				TargetType: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("a4ec37c8-7e5e-4483-88ec-9b37fdd686ff"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/a4ec37c8-7e5e-4483-88ec-9b37fdd686ff"),
		// 			Properties: &armstorsimple1200series.BackupProperties{
		// 				CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-12T13:40:04.590Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0"),
		// 				Elements: []*armstorsimple1200series.BackupElement{
		// 					{
		// 						Name: to.Ptr("14e4f48f-e3fe-40cd-a3f4-5b226da83278"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/a4ec37c8-7e5e-4483-88ec-9b37fdd686ff/elements/14e4f48f-e3fe-40cd-a3f4-5b226da83278"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyLocal),
		// 							EndpointName: to.Ptr("Auto-TestFileShare2"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("bb6ec523-f18c-4123-8e44-ce1e83db1ab1"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/a4ec37c8-7e5e-4483-88ec-9b37fdd686ff/elements/bb6ec523-f18c-4123-8e44-ce1e83db1ab1"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("ClonedTieredFileShareForSDKTest"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 					},
		// 					{
		// 						Name: to.Ptr("dea75831-c6bf-4ae9-9f6f-3b6eae680db5"),
		// 						Type: to.Ptr("Microsoft.StorSimple/managers/devices/backups/elements"),
		// 						ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/backups/a4ec37c8-7e5e-4483-88ec-9b37fdd686ff/elements/dea75831-c6bf-4ae9-9f6f-3b6eae680db5"),
		// 						Properties: &armstorsimple1200series.BackupElementProperties{
		// 							DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 							EndpointName: to.Ptr("Auto-TestFileShare1"),
		// 							SizeInBytes: to.Ptr[int64](536870912000),
		// 						},
		// 				}},
		// 				ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()),
		// 				InitiatedBy: to.Ptr(armstorsimple1200series.InitiatedByManual),
		// 				SizeInBytes: to.Ptr[int64](1610612736000),
		// 				TargetID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0/fileServers/HSDK-DMNJB2PET0"),
		// 				TargetType: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type BackupsClientBeginCloneOptions

type BackupsClientBeginCloneOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

BackupsClientBeginCloneOptions contains the optional parameters for the BackupsClient.BeginClone method.

type BackupsClientBeginDeleteOptions

type BackupsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.

type BackupsClientCloneResponse

type BackupsClientCloneResponse struct {
}

BackupsClientCloneResponse contains the response from method BackupsClient.BeginClone.

type BackupsClientDeleteResponse

type BackupsClientDeleteResponse struct {
}

BackupsClientDeleteResponse contains the response from method BackupsClient.BeginDelete.

type BackupsClientListByDeviceOptions

type BackupsClientListByDeviceOptions struct {
	// OData Filter options
	Filter *string

	// Set to true if you need backups which can be used for failover.
	ForFailover *bool
}

BackupsClientListByDeviceOptions contains the optional parameters for the BackupsClient.NewListByDevicePager method.

type BackupsClientListByDeviceResponse

type BackupsClientListByDeviceResponse struct {
	// Collection of backups
	BackupList
}

BackupsClientListByDeviceResponse contains the response from method BackupsClient.NewListByDevicePager.

type BackupsClientListByManagerOptions

type BackupsClientListByManagerOptions struct {
	// OData Filter options
	Filter *string
}

BackupsClientListByManagerOptions contains the optional parameters for the BackupsClient.NewListByManagerPager method.

type BackupsClientListByManagerResponse

type BackupsClientListByManagerResponse struct {
	// Collection of backups
	BackupList
}

BackupsClientListByManagerResponse contains the response from method BackupsClient.NewListByManagerPager.

type BaseModel

type BaseModel struct {
	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

BaseModel - Base class for models

func (BaseModel) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type BaseModel.

func (*BaseModel) UnmarshalJSON added in v1.1.0

func (b *BaseModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BaseModel.

type ChapProperties

type ChapProperties struct {
	// REQUIRED; The chap password.
	Password *AsymmetricEncryptedSecret
}

ChapProperties - Chap properties

func (ChapProperties) MarshalJSON added in v1.1.0

func (c ChapProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ChapProperties.

func (*ChapProperties) UnmarshalJSON added in v1.1.0

func (c *ChapProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ChapProperties.

type ChapSettings

type ChapSettings struct {
	// REQUIRED; Chap properties
	Properties *ChapProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

ChapSettings - Challenge-Handshake Authentication Protocol (CHAP) setting

func (ChapSettings) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ChapSettings.

func (*ChapSettings) UnmarshalJSON added in v1.1.0

func (c *ChapSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ChapSettings.

type ChapSettingsClient

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

ChapSettingsClient contains the methods for the ChapSettings group. Don't use this type directly, use NewChapSettingsClient() instead.

func NewChapSettingsClient

func NewChapSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ChapSettingsClient, error)

NewChapSettingsClient creates a new instance of ChapSettingsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ChapSettingsClient) BeginCreateOrUpdate

func (client *ChapSettingsClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string, chapSetting ChapSettings, options *ChapSettingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ChapSettingsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the chap setting. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • chapUserName - The chap user name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • chapSetting - The chap setting to be added or updated.
  • options - ChapSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for the ChapSettingsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewChapSettingsClient().BeginCreateOrUpdate(ctx, "HSDK-WSJQERQW3F", "ChapSettingForSDK", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.ChapSettings{
		Name: to.Ptr("ChapSettingForSDK"),
		Properties: &armstorsimple1200series.ChapProperties{
			Password: &armstorsimple1200series.AsymmetricEncryptedSecret{
				EncryptionAlgorithm:             to.Ptr(armstorsimple1200series.EncryptionAlgorithmRSAESPKCS1V15),
				EncryptionCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
				Value:                           to.Ptr("<value>"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ChapSettings = armstorsimple1200series.ChapSettings{
	// 	Name: to.Ptr("ChapSettingForSDK"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/chapSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK"),
	// 	Properties: &armstorsimple1200series.ChapProperties{
	// 		Password: &armstorsimple1200series.AsymmetricEncryptedSecret{
	// 			EncryptionAlgorithm: to.Ptr(armstorsimple1200series.EncryptionAlgorithmRSAESPKCS1V15),
	// 			EncryptionCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
	// 			Value: to.Ptr("<value>"),
	// 		},
	// 	},
	// }
}
Output:

func (*ChapSettingsClient) BeginDelete

func (client *ChapSettingsClient) BeginDelete(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string, options *ChapSettingsClientBeginDeleteOptions) (*runtime.Poller[ChapSettingsClientDeleteResponse], error)

BeginDelete - Deletes the chap setting. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • chapUserName - The chap user name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ChapSettingsClientBeginDeleteOptions contains the optional parameters for the ChapSettingsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewChapSettingsClient().BeginDelete(ctx, "HSDK-WSJQERQW3F", "ChapSettingForSDKForDelete", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ChapSettingsClient) Get

func (client *ChapSettingsClient) Get(ctx context.Context, deviceName string, chapUserName string, resourceGroupName string, managerName string, options *ChapSettingsClientGetOptions) (ChapSettingsClientGetResponse, error)

Get - Returns the properties of the specified chap setting name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • chapUserName - The user name of chap to be fetched.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ChapSettingsClientGetOptions contains the optional parameters for the ChapSettingsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewChapSettingsClient().Get(ctx, "HSDK-WSJQERQW3F", "ChapSettingForSDK", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ChapSettings = armstorsimple1200series.ChapSettings{
	// 	Name: to.Ptr("ChapSettingForSDK"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/chapSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK"),
	// 	Properties: &armstorsimple1200series.ChapProperties{
	// 		Password: &armstorsimple1200series.AsymmetricEncryptedSecret{
	// 			EncryptionAlgorithm: to.Ptr(armstorsimple1200series.EncryptionAlgorithmRSAESPKCS1V15),
	// 			EncryptionCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
	// 			Value: to.Ptr("<value>"),
	// 		},
	// 	},
	// }
}
Output:

func (*ChapSettingsClient) NewListByDevicePager

func (client *ChapSettingsClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *ChapSettingsClientListByDeviceOptions) *runtime.Pager[ChapSettingsClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the chap settings in a device.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ChapSettingsClientListByDeviceOptions contains the optional parameters for the ChapSettingsClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewChapSettingsClient().NewListByDevicePager("HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ChapSettingsList = armstorsimple1200series.ChapSettingsList{
		// 	Value: []*armstorsimple1200series.ChapSettings{
		// 	},
		// }
	}
}
Output:

type ChapSettingsClientBeginCreateOrUpdateOptions

type ChapSettingsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ChapSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for the ChapSettingsClient.BeginCreateOrUpdate method.

type ChapSettingsClientBeginDeleteOptions

type ChapSettingsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ChapSettingsClientBeginDeleteOptions contains the optional parameters for the ChapSettingsClient.BeginDelete method.

type ChapSettingsClientCreateOrUpdateResponse

type ChapSettingsClientCreateOrUpdateResponse struct {
	// Challenge-Handshake Authentication Protocol (CHAP) setting
	ChapSettings
}

ChapSettingsClientCreateOrUpdateResponse contains the response from method ChapSettingsClient.BeginCreateOrUpdate.

type ChapSettingsClientDeleteResponse

type ChapSettingsClientDeleteResponse struct {
}

ChapSettingsClientDeleteResponse contains the response from method ChapSettingsClient.BeginDelete.

type ChapSettingsClientGetOptions

type ChapSettingsClientGetOptions struct {
}

ChapSettingsClientGetOptions contains the optional parameters for the ChapSettingsClient.Get method.

type ChapSettingsClientGetResponse

type ChapSettingsClientGetResponse struct {
	// Challenge-Handshake Authentication Protocol (CHAP) setting
	ChapSettings
}

ChapSettingsClientGetResponse contains the response from method ChapSettingsClient.Get.

type ChapSettingsClientListByDeviceOptions

type ChapSettingsClientListByDeviceOptions struct {
}

ChapSettingsClientListByDeviceOptions contains the optional parameters for the ChapSettingsClient.NewListByDevicePager method.

type ChapSettingsClientListByDeviceResponse

type ChapSettingsClientListByDeviceResponse struct {
	// Collection of Chap setting entities
	ChapSettingsList
}

ChapSettingsClientListByDeviceResponse contains the response from method ChapSettingsClient.NewListByDevicePager.

type ChapSettingsList

type ChapSettingsList struct {
	// REQUIRED; The chap settings entity collection
	Value []*ChapSettings
}

ChapSettingsList - Collection of Chap setting entities

func (ChapSettingsList) MarshalJSON added in v1.1.0

func (c ChapSettingsList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ChapSettingsList.

func (*ChapSettingsList) UnmarshalJSON added in v1.1.0

func (c *ChapSettingsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ChapSettingsList.

type ClearAlertRequest

type ClearAlertRequest struct {
	// REQUIRED; List of alert Ids to be cleared
	Alerts []*string

	// Resolution message while clearing the request
	ResolutionMessage *string
}

ClearAlertRequest - Request for clearing the alert

func (ClearAlertRequest) MarshalJSON

func (c ClearAlertRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClearAlertRequest.

func (*ClearAlertRequest) UnmarshalJSON added in v1.1.0

func (c *ClearAlertRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClearAlertRequest.

type ClientFactory added in v1.1.0

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

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v1.1.0

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewAccessControlRecordsClient added in v1.1.0

func (c *ClientFactory) NewAccessControlRecordsClient() *AccessControlRecordsClient

NewAccessControlRecordsClient creates a new instance of AccessControlRecordsClient.

func (*ClientFactory) NewAlertsClient added in v1.1.0

func (c *ClientFactory) NewAlertsClient() *AlertsClient

NewAlertsClient creates a new instance of AlertsClient.

func (*ClientFactory) NewAvailableProviderOperationsClient added in v1.1.0

func (c *ClientFactory) NewAvailableProviderOperationsClient() *AvailableProviderOperationsClient

NewAvailableProviderOperationsClient creates a new instance of AvailableProviderOperationsClient.

func (*ClientFactory) NewBackupScheduleGroupsClient added in v1.1.0

func (c *ClientFactory) NewBackupScheduleGroupsClient() *BackupScheduleGroupsClient

NewBackupScheduleGroupsClient creates a new instance of BackupScheduleGroupsClient.

func (*ClientFactory) NewBackupsClient added in v1.1.0

func (c *ClientFactory) NewBackupsClient() *BackupsClient

NewBackupsClient creates a new instance of BackupsClient.

func (*ClientFactory) NewChapSettingsClient added in v1.1.0

func (c *ClientFactory) NewChapSettingsClient() *ChapSettingsClient

NewChapSettingsClient creates a new instance of ChapSettingsClient.

func (*ClientFactory) NewDevicesClient added in v1.1.0

func (c *ClientFactory) NewDevicesClient() *DevicesClient

NewDevicesClient creates a new instance of DevicesClient.

func (*ClientFactory) NewFileServersClient added in v1.1.0

func (c *ClientFactory) NewFileServersClient() *FileServersClient

NewFileServersClient creates a new instance of FileServersClient.

func (*ClientFactory) NewFileSharesClient added in v1.1.0

func (c *ClientFactory) NewFileSharesClient() *FileSharesClient

NewFileSharesClient creates a new instance of FileSharesClient.

func (*ClientFactory) NewIscsiDisksClient added in v1.1.0

func (c *ClientFactory) NewIscsiDisksClient() *IscsiDisksClient

NewIscsiDisksClient creates a new instance of IscsiDisksClient.

func (*ClientFactory) NewIscsiServersClient added in v1.1.0

func (c *ClientFactory) NewIscsiServersClient() *IscsiServersClient

NewIscsiServersClient creates a new instance of IscsiServersClient.

func (*ClientFactory) NewJobsClient added in v1.1.0

func (c *ClientFactory) NewJobsClient() *JobsClient

NewJobsClient creates a new instance of JobsClient.

func (*ClientFactory) NewManagersClient added in v1.1.0

func (c *ClientFactory) NewManagersClient() *ManagersClient

NewManagersClient creates a new instance of ManagersClient.

func (*ClientFactory) NewStorageAccountCredentialsClient added in v1.1.0

func (c *ClientFactory) NewStorageAccountCredentialsClient() *StorageAccountCredentialsClient

NewStorageAccountCredentialsClient creates a new instance of StorageAccountCredentialsClient.

func (*ClientFactory) NewStorageDomainsClient added in v1.1.0

func (c *ClientFactory) NewStorageDomainsClient() *StorageDomainsClient

NewStorageDomainsClient creates a new instance of StorageDomainsClient.

type CloneRequest

type CloneRequest struct {
	// REQUIRED; CloneJob Properties are encapsulated in this object.
	Properties *CloneRequestProperties
}

CloneRequest - Clone Job Request Model.

func (CloneRequest) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type CloneRequest.

func (*CloneRequest) UnmarshalJSON added in v1.1.0

func (c *CloneRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloneRequest.

type CloneRequestProperties

type CloneRequestProperties struct {
	// REQUIRED; Name of new endpoint which will created as part of clone job.
	NewEndpointName *string

	// REQUIRED; Access point Id on which clone job will performed.
	TargetAccessPointID *string

	// REQUIRED; DeviceId of the device which will act as the Clone target
	TargetDeviceID *string

	// Disk Object
	Disk *ISCSIDisk

	// Share Object.
	Share *FileShare
}

CloneRequestProperties - Properties of CloneRequest

func (CloneRequestProperties) MarshalJSON added in v1.1.0

func (c CloneRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloneRequestProperties.

func (*CloneRequestProperties) UnmarshalJSON added in v1.1.0

func (c *CloneRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloneRequestProperties.

type CloudType

type CloudType string

CloudType - The cloud service provider

const (
	CloudTypeAzure     CloudType = "Azure"
	CloudTypeHP        CloudType = "HP"
	CloudTypeOpenStack CloudType = "OpenStack"
	CloudTypeS3        CloudType = "S3"
	CloudTypeS3RRS     CloudType = "S3_RRS"
)

func PossibleCloudTypeValues

func PossibleCloudTypeValues() []CloudType

PossibleCloudTypeValues returns the possible values for the CloudType const type.

type ContractVersions

type ContractVersions string

ContractVersions - Gets ContractVersion

const (
	ContractVersionsInvalidVersion ContractVersions = "InvalidVersion"
	ContractVersionsV201109        ContractVersions = "V2011_09"
	ContractVersionsV201202        ContractVersions = "V2012_02"
	ContractVersionsV201205        ContractVersions = "V2012_05"
	ContractVersionsV201212        ContractVersions = "V2012_12"
	ContractVersionsV201304        ContractVersions = "V2013_04"
	ContractVersionsV201310        ContractVersions = "V2013_10"
	ContractVersionsV201311        ContractVersions = "V2013_11"
	ContractVersionsV201404        ContractVersions = "V2014_04"
	ContractVersionsV201406        ContractVersions = "V2014_06"
	ContractVersionsV201407        ContractVersions = "V2014_07"
	ContractVersionsV201409        ContractVersions = "V2014_09"
	ContractVersionsV201410        ContractVersions = "V2014_10"
	ContractVersionsV201412        ContractVersions = "V2014_12"
	ContractVersionsV201501        ContractVersions = "V2015_01"
	ContractVersionsV201502        ContractVersions = "V2015_02"
	ContractVersionsV201504        ContractVersions = "V2015_04"
	ContractVersionsV201505        ContractVersions = "V2015_05"
	ContractVersionsV201506        ContractVersions = "V2015_06"
	ContractVersionsV201507        ContractVersions = "V2015_07"
	ContractVersionsV201508        ContractVersions = "V2015_08"
	ContractVersionsV201510        ContractVersions = "V2015_10"
	ContractVersionsV201512        ContractVersions = "V2015_12"
	ContractVersionsV201601        ContractVersions = "V2016_01"
	ContractVersionsV201602        ContractVersions = "V2016_02"
	ContractVersionsV201604        ContractVersions = "V2016_04"
	ContractVersionsV201605        ContractVersions = "V2016_05"
	ContractVersionsV201607        ContractVersions = "V2016_07"
	ContractVersionsV201608        ContractVersions = "V2016_08"
)

func PossibleContractVersionsValues

func PossibleContractVersionsValues() []ContractVersions

PossibleContractVersionsValues returns the possible values for the ContractVersions const type.

type DataPolicy

type DataPolicy string

DataPolicy - The data policy of backed up endpoint.

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

func PossibleDataPolicyValues

func PossibleDataPolicyValues() []DataPolicy

PossibleDataPolicyValues returns the possible values for the DataPolicy const type.

type Device

type Device struct {
	// Collection of properties for the device
	Properties *DeviceProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

Device - Represents a StorSimple device object along with its properties

func (Device) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Device.

func (*Device) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Device.

type DeviceConfigurationStatus

type DeviceConfigurationStatus string

DeviceConfigurationStatus - "Complete" if the device has been successfully registered as File/IscsiServer and the creation of share/volume is complete, "Pending" if the device is only registered but the creation of share/volume is complete is still pending

const (
	DeviceConfigurationStatusComplete DeviceConfigurationStatus = "Complete"
	DeviceConfigurationStatusPending  DeviceConfigurationStatus = "Pending"
)

func PossibleDeviceConfigurationStatusValues

func PossibleDeviceConfigurationStatusValues() []DeviceConfigurationStatus

PossibleDeviceConfigurationStatusValues returns the possible values for the DeviceConfigurationStatus const type.

type DeviceDetails

type DeviceDetails struct {
	// Local pending storage available on the device in bytes
	AvailableLocalStorageInBytes *int64

	// Total pending available storage on the device in bytes
	AvailableStorageInBytes *int64

	// Total number of endpoints that are currently on the device ( i.e. number of shares on FileServer or number of volumes on
	// IscsiServer)
	EndpointCount *int32

	// Storage in bytes that has been provisioned locally on the device
	ProvisionedLocalStorageInBytes *int64

	// Storage in bytes that has been provisioned on the device including both local and cloud
	ProvisionedStorageInBytes *int64

	// Total size taken up by backups in bytes
	TotalBackupSizeInBytes *int64

	// Total local storage capacity in device in bytes.
	TotalLocalStorageInBytes *int64

	// Total storage available on the device in bytes.
	TotalStorageInBytes *int64

	// Local Storage that is being currently used in bytes
	UsingLocalStorageInBytes *int64

	// Storage that is being currently used in bytes including both local and cloud
	UsingStorageInBytes *int64
}

DeviceDetails - Class containing more granular details about the device

func (DeviceDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type DeviceDetails.

func (*DeviceDetails) UnmarshalJSON added in v1.1.0

func (d *DeviceDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeviceDetails.

type DeviceList

type DeviceList struct {
	// REQUIRED; The value.
	Value []*Device
}

DeviceList - Collection of Devices

func (DeviceList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type DeviceList.

func (*DeviceList) UnmarshalJSON added in v1.1.0

func (d *DeviceList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeviceList.

type DeviceOperation

type DeviceOperation string
const (
	DeviceOperationBrowsable         DeviceOperation = "Browsable"
	DeviceOperationDRSource          DeviceOperation = "DRSource"
	DeviceOperationDRTarget          DeviceOperation = "DRTarget"
	DeviceOperationDeactivate        DeviceOperation = "Deactivate"
	DeviceOperationDelete            DeviceOperation = "Delete"
	DeviceOperationDeleteWithWarning DeviceOperation = "DeleteWithWarning"
	DeviceOperationNone              DeviceOperation = "None"
	DeviceOperationReadOnlyForDR     DeviceOperation = "ReadOnlyForDR"
)

func PossibleDeviceOperationValues

func PossibleDeviceOperationValues() []DeviceOperation

PossibleDeviceOperationValues returns the possible values for the DeviceOperation const type.

type DevicePatch

type DevicePatch struct {
	// Short description given for the device
	DeviceDescription *string
}

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

func (DevicePatch) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DevicePatch.

func (*DevicePatch) UnmarshalJSON added in v1.1.0

func (d *DevicePatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DevicePatch.

type DeviceProperties

type DeviceProperties struct {
	// The UTC time at which the device was activated
	ActivationTime *time.Time

	// Operations that are allowed on the device based on its current state
	AllowedDeviceOperations []*DeviceOperation

	// Language culture setting on the device. For eg: "en-US"
	Culture *string

	// subclass containing more storage-related information about the device. This field will be populated only if the get call
	// is made with $expand = details.
	Details *DeviceDetails

	// Device can be configured either as FileServer or IscsiServer
	DeviceCapabilities []*SupportedDeviceCapabilities

	// "Complete" if the device has been successfully registered as File/IscsiServer and the creation of share/volume is complete,
	// "Pending" if the device is only registered but the creation of share/volume
	// is complete is still pending
	DeviceConfigurationStatus *DeviceConfigurationStatus

	// Short description given for the device
	DeviceDescription *string

	// Version number of the software running on the device
	DeviceSoftwareVersion *string

	// Fully qualified name of the domain to which the device is attached
	DomainName *string

	// Friendly name for the software version
	FriendlySoftwareName *string

	// Name of the device model
	ModelDescription *string

	// Current status of the device
	Status *DeviceStatus

	// Type of the device
	Type *DeviceType
}

DeviceProperties - Encases all the properties of the Device

func (DeviceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DeviceProperties.

func (*DeviceProperties) UnmarshalJSON

func (d *DeviceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeviceProperties.

type DeviceStatus

type DeviceStatus string

DeviceStatus - Current status of the device

const (
	DeviceStatusCreating          DeviceStatus = "Creating"
	DeviceStatusDeactivated       DeviceStatus = "Deactivated"
	DeviceStatusDeactivating      DeviceStatus = "Deactivating"
	DeviceStatusDeleted           DeviceStatus = "Deleted"
	DeviceStatusMaintenanceMode   DeviceStatus = "MaintenanceMode"
	DeviceStatusOffline           DeviceStatus = "Offline"
	DeviceStatusOnline            DeviceStatus = "Online"
	DeviceStatusProvisioning      DeviceStatus = "Provisioning"
	DeviceStatusReadyToSetup      DeviceStatus = "ReadyToSetup"
	DeviceStatusRequiresAttention DeviceStatus = "RequiresAttention"
	DeviceStatusUnknown           DeviceStatus = "Unknown"
)

func PossibleDeviceStatusValues

func PossibleDeviceStatusValues() []DeviceStatus

PossibleDeviceStatusValues returns the possible values for the DeviceStatus const type.

type DeviceType

type DeviceType string

DeviceType - Type of the device

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

func PossibleDeviceTypeValues

func PossibleDeviceTypeValues() []DeviceType

PossibleDeviceTypeValues returns the possible values for the DeviceType const type.

type DevicesClient

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

DevicesClient contains the methods for the Devices group. Don't use this type directly, use NewDevicesClient() instead.

func NewDevicesClient

func NewDevicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DevicesClient, error)

NewDevicesClient creates a new instance of DevicesClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DevicesClient) BeginCreateOrUpdateAlertSettings

func (client *DevicesClient) BeginCreateOrUpdateAlertSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string, alertSettings AlertSettings, options *DevicesClientBeginCreateOrUpdateAlertSettingsOptions) (*runtime.Poller[DevicesClientCreateOrUpdateAlertSettingsResponse], error)

BeginCreateOrUpdateAlertSettings - Creates or updates the alert settings If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • alertSettings - The alert settings.
  • options - DevicesClientBeginCreateOrUpdateAlertSettingsOptions contains the optional parameters for the DevicesClient.BeginCreateOrUpdateAlertSettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginCreateOrUpdateAlertSettings(ctx, "HSDK-T4ZA3EAJFR", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.AlertSettings{
		Name: to.Ptr("default"),
		Properties: &armstorsimple1200series.AlertSettingsProperties{
			AdditionalRecipientEmailList: []*string{
				to.Ptr("testuser@abc.com")},
			AlertNotificationCulture:    to.Ptr("en-US"),
			EmailNotification:           to.Ptr(armstorsimple1200series.AlertEmailNotificationStatusEnabled),
			NotificationToServiceOwners: to.Ptr(armstorsimple1200series.ServiceOwnersAlertNotificationStatusDisabled),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AlertSettings = armstorsimple1200series.AlertSettings{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/alertSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-T4ZA3EAJFR/alertSettings/default"),
	// 	Properties: &armstorsimple1200series.AlertSettingsProperties{
	// 		AdditionalRecipientEmailList: []*string{
	// 			to.Ptr("testuser@abc.com")},
	// 			AlertNotificationCulture: to.Ptr("en-US"),
	// 			EmailNotification: to.Ptr(armstorsimple1200series.AlertEmailNotificationStatusEnabled),
	// 			NotificationToServiceOwners: to.Ptr(armstorsimple1200series.ServiceOwnersAlertNotificationStatusDisabled),
	// 		},
	// 	}
}
Output:

func (*DevicesClient) BeginCreateOrUpdateSecuritySettings

func (client *DevicesClient) BeginCreateOrUpdateSecuritySettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string, securitySettings SecuritySettings, options *DevicesClientBeginCreateOrUpdateSecuritySettingsOptions) (*runtime.Poller[DevicesClientCreateOrUpdateSecuritySettingsResponse], error)

BeginCreateOrUpdateSecuritySettings - Creates or updates the security settings. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • securitySettings - The security settings.
  • options - DevicesClientBeginCreateOrUpdateSecuritySettingsOptions contains the optional parameters for the DevicesClient.BeginCreateOrUpdateSecuritySettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginCreateOrUpdateSecuritySettings(ctx, "HSDK-T4ZA3EAJFR", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.SecuritySettings{
		Properties: &armstorsimple1200series.SecuritySettingsProperties{
			DeviceAdminPassword: &armstorsimple1200series.AsymmetricEncryptedSecret{
				EncryptionAlgorithm:             to.Ptr(armstorsimple1200series.EncryptionAlgorithmRSAESPKCS1V15),
				EncryptionCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
				Value:                           to.Ptr("<value>"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginDeactivate

func (client *DevicesClient) BeginDeactivate(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientBeginDeactivateOptions) (*runtime.Poller[DevicesClientDeactivateResponse], error)

BeginDeactivate - Deactivates the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientBeginDeactivateOptions contains the optional parameters for the DevicesClient.BeginDeactivate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginDeactivate(ctx, "SDK-DELETE", "ResourceGroupForSDKTest", "ManagerForDeleteOperation", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginDelete

func (client *DevicesClient) BeginDelete(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientBeginDeleteOptions) (*runtime.Poller[DevicesClientDeleteResponse], error)

BeginDelete - Deletes the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientBeginDeleteOptions contains the optional parameters for the DevicesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginDelete(ctx, "SDK-DELETE", "ResourceGroupForSDKTest", "ManagerForDeleteOperation", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginDownloadUpdates

func (client *DevicesClient) BeginDownloadUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientBeginDownloadUpdatesOptions) (*runtime.Poller[DevicesClientDownloadUpdatesResponse], error)

BeginDownloadUpdates - Downloads updates on the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientBeginDownloadUpdatesOptions contains the optional parameters for the DevicesClient.BeginDownloadUpdates method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginDownloadUpdates(ctx, "sugattdeviceforSDK", "ResourceGroupForSDKTest", "ManagerForSDKTest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginFailover

func (client *DevicesClient) BeginFailover(ctx context.Context, deviceName string, resourceGroupName string, managerName string, failoverRequest FailoverRequest, options *DevicesClientBeginFailoverOptions) (*runtime.Poller[DevicesClientFailoverResponse], error)

BeginFailover - Fails over the device to another device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • failoverRequest - The failover request.
  • options - DevicesClientBeginFailoverOptions contains the optional parameters for the DevicesClient.BeginFailover method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginFailover(ctx, "HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.FailoverRequest{
		AccesspointIDs: []*string{
			to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF")},
		KeepSourceDevice: to.Ptr(true),
		SkipValidation:   to.Ptr(true),
		TargetDeviceID:   to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginInstallUpdates

func (client *DevicesClient) BeginInstallUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientBeginInstallUpdatesOptions) (*runtime.Poller[DevicesClientInstallUpdatesResponse], error)

BeginInstallUpdates - Installs the updates on the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientBeginInstallUpdatesOptions contains the optional parameters for the DevicesClient.BeginInstallUpdates method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginInstallUpdates(ctx, "sugattdeviceforSDK", "ResourceGroupForSDKTest", "ManagerForSDKTest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) BeginPatch

func (client *DevicesClient) BeginPatch(ctx context.Context, deviceName string, resourceGroupName string, managerName string, devicePatch DevicePatch, options *DevicesClientBeginPatchOptions) (*runtime.Poller[DevicesClientPatchResponse], error)

BeginPatch - Patches the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device Name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • devicePatch - Patch representation of the device.
  • options - DevicesClientBeginPatchOptions contains the optional parameters for the DevicesClient.BeginPatch method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginPatch(ctx, "HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.DevicePatch{
		DeviceDescription: to.Ptr("NewDescription8/14/2018 2:30:34 PM"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Device = armstorsimple1200series.Device{
	// 	Name: to.Ptr("HSDK-UGU4PITWNI"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
	// 	Properties: &armstorsimple1200series.DeviceProperties{
	// 		Type: to.Ptr(armstorsimple1200series.DeviceTypeSeries9000OnPremVirtualAppliance),
	// 		ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T10:59:26.165Z"); return t}()),
	// 		AllowedDeviceOperations: []*armstorsimple1200series.DeviceOperation{
	// 			to.Ptr(armstorsimple1200series.DeviceOperationDeactivate),
	// 			to.Ptr(armstorsimple1200series.DeviceOperationBrowsable)},
	// 			Culture: to.Ptr("en-US"),
	// 			DeviceCapabilities: []*armstorsimple1200series.SupportedDeviceCapabilities{
	// 				to.Ptr(armstorsimple1200series.SupportedDeviceCapabilitiesFileServer)},
	// 				DeviceConfigurationStatus: to.Ptr(armstorsimple1200series.DeviceConfigurationStatusComplete),
	// 				DeviceSoftwareVersion: to.Ptr("10.0.10296.0"),
	// 				DomainName: to.Ptr("fareast.corp.microsoft.com"),
	// 				ModelDescription: to.Ptr("1200"),
	// 				Status: to.Ptr(armstorsimple1200series.DeviceStatusOnline),
	// 			},
	// 		}
}
Output:

func (*DevicesClient) BeginScanForUpdates

func (client *DevicesClient) BeginScanForUpdates(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientBeginScanForUpdatesOptions) (*runtime.Poller[DevicesClientScanForUpdatesResponse], error)

BeginScanForUpdates - Scans for updates on the device. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientBeginScanForUpdatesOptions contains the optional parameters for the DevicesClient.BeginScanForUpdates method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDevicesClient().BeginScanForUpdates(ctx, "HBVT-02X525X2W0", "ResourceGroupForSDKTest", "hManagerForSDKTest4", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*DevicesClient) Get

func (client *DevicesClient) Get(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientGetOptions) (DevicesClientGetResponse, error)

Get - Returns the properties of the specified device name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientGetOptions contains the optional parameters for the DevicesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDevicesClient().Get(ctx, "HSDK-ARCSX4MVKZ", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.DevicesClientGetOptions{Expand: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Device = armstorsimple1200series.Device{
	// 	Name: to.Ptr("HSDK-ARCSX4MVKZ"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
	// 	Properties: &armstorsimple1200series.DeviceProperties{
	// 		Type: to.Ptr(armstorsimple1200series.DeviceTypeSeries9000OnPremVirtualAppliance),
	// 		ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T10:59:26.165Z"); return t}()),
	// 		AllowedDeviceOperations: []*armstorsimple1200series.DeviceOperation{
	// 			to.Ptr(armstorsimple1200series.DeviceOperationDeactivate),
	// 			to.Ptr(armstorsimple1200series.DeviceOperationBrowsable)},
	// 			Culture: to.Ptr("en-US"),
	// 			DeviceCapabilities: []*armstorsimple1200series.SupportedDeviceCapabilities{
	// 				to.Ptr(armstorsimple1200series.SupportedDeviceCapabilitiesFileServer)},
	// 				DeviceConfigurationStatus: to.Ptr(armstorsimple1200series.DeviceConfigurationStatusComplete),
	// 				DeviceSoftwareVersion: to.Ptr("10.0.10296.0"),
	// 				DomainName: to.Ptr("fareast.corp.microsoft.com"),
	// 				ModelDescription: to.Ptr("1200"),
	// 				Status: to.Ptr(armstorsimple1200series.DeviceStatusOnline),
	// 			},
	// 		}
}
Output:

func (*DevicesClient) GetAlertSettings

func (client *DevicesClient) GetAlertSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientGetAlertSettingsOptions) (DevicesClientGetAlertSettingsResponse, error)

GetAlertSettings - Returns the alert settings of the specified device name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientGetAlertSettingsOptions contains the optional parameters for the DevicesClient.GetAlertSettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetAlertSettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDevicesClient().GetAlertSettings(ctx, "HSDK-T4ZA3EAJFR", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AlertSettings = armstorsimple1200series.AlertSettings{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/alertSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-T4ZA3EAJFR/alertSettings/default"),
	// 	Properties: &armstorsimple1200series.AlertSettingsProperties{
	// 		AdditionalRecipientEmailList: []*string{
	// 			to.Ptr("testuser@abc.com")},
	// 			AlertNotificationCulture: to.Ptr("en-US"),
	// 			EmailNotification: to.Ptr(armstorsimple1200series.AlertEmailNotificationStatusEnabled),
	// 			NotificationToServiceOwners: to.Ptr(armstorsimple1200series.ServiceOwnersAlertNotificationStatusDisabled),
	// 		},
	// 	}
}
Output:

func (*DevicesClient) GetNetworkSettings

func (client *DevicesClient) GetNetworkSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientGetNetworkSettingsOptions) (DevicesClientGetNetworkSettingsResponse, error)

GetNetworkSettings - Returns the network settings of the specified device name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientGetNetworkSettingsOptions contains the optional parameters for the DevicesClient.GetNetworkSettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetNetworkSettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDevicesClient().GetNetworkSettings(ctx, "HSDK-T4ZA3EAJFR", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.NetworkSettings = armstorsimple1200series.NetworkSettings{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/networkSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-T4ZA3EAJFR/networkSettings/default"),
	// 	Properties: &armstorsimple1200series.NetworkSettingsProperties{
	// 		NodeNetworks: []*armstorsimple1200series.NodeNetwork{
	// 			{
	// 				NetworkAdapters: []*armstorsimple1200series.NetworkAdapter{
	// 					{
	// 						DhcpStatus: to.Ptr(armstorsimple1200series.DhcpStatusEnabled),
	// 						IPv4Info: &armstorsimple1200series.IPConfig{
	// 							Gateway: to.Ptr("10.60.145.1"),
	// 							IPAddress: to.Ptr("10.60.145.5"),
	// 							PrefixLength: to.Ptr[int32](26),
	// 						},
	// 						LinkSpeed: to.Ptr[int64](868993459200),
	// 						NetworkAdapterName: to.Ptr("Ethernet"),
	// 				}},
	// 		}},
	// 		PrimaryDNSServer: to.Ptr("10.50.50.50"),
	// 		SecondaryDNSServer: to.Ptr("10.50.10.50"),
	// 	},
	// }
}
Output:

func (*DevicesClient) GetTimeSettings

func (client *DevicesClient) GetTimeSettings(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientGetTimeSettingsOptions) (DevicesClientGetTimeSettingsResponse, error)

GetTimeSettings - Returns the time settings of the specified device name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientGetTimeSettingsOptions contains the optional parameters for the DevicesClient.GetTimeSettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetTimeSettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDevicesClient().GetTimeSettings(ctx, "HSDK-T4ZA3EAJFR", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.TimeSettings = armstorsimple1200series.TimeSettings{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/timeSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-T4ZA3EAJFR/timeSettings/default"),
	// 	Properties: &armstorsimple1200series.TimeSettingsProperties{
	// 		PrimaryTimeServer: to.Ptr("time.windows.com"),
	// 		TimeZone: to.Ptr("(UTC) Coordinated Universal Time"),
	// 	},
	// }
}
Output:

func (*DevicesClient) GetUpdateSummary

func (client *DevicesClient) GetUpdateSummary(ctx context.Context, deviceName string, resourceGroupName string, managerName string, options *DevicesClientGetUpdateSummaryOptions) (DevicesClientGetUpdateSummaryResponse, error)

GetUpdateSummary - Returns the update summary of the specified device name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientGetUpdateSummaryOptions contains the optional parameters for the DevicesClient.GetUpdateSummary method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetUpdateSummary.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDevicesClient().GetUpdateSummary(ctx, "HBVT-02X525X2W0", "ResourceGroupForSDKTest", "hManagerForSDKTest4", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Updates = armstorsimple1200series.Updates{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/updateSummary"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hManagerForSDKTest4/devices/HBVT-02X525X2W0/updateSummary/default"),
	// 	Properties: &armstorsimple1200series.UpdatesProperties{
	// 		DeviceLastScannedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-02T05:46:21.681Z"); return t}()),
	// 		DeviceVersion: to.Ptr("10.0.10296.0"),
	// 		InProgressDownloadJobID: to.Ptr(""),
	// 		InProgressInstallJobID: to.Ptr(""),
	// 		LastCompletedScanTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-02T05:46:22.368Z"); return t}()),
	// 		RebootRequiredForInstall: to.Ptr(false),
	// 		RegularUpdatesAvailable: to.Ptr(false),
	// 		Status: to.Ptr(armstorsimple1200series.UpdateOperationIdle),
	// 		TotalItemsPendingForDownload: to.Ptr[int32](0),
	// 		TotalItemsPendingForInstall: to.Ptr[int32](0),
	// 	},
	// }
}
Output:

func (*DevicesClient) NewListByManagerPager

func (client *DevicesClient) NewListByManagerPager(resourceGroupName string, managerName string, options *DevicesClientListByManagerOptions) *runtime.Pager[DevicesClientListByManagerResponse]

NewListByManagerPager - Retrieves all the devices in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientListByManagerOptions contains the optional parameters for the DevicesClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDevicesClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.DevicesClientListByManagerOptions{Expand: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DeviceList = armstorsimple1200series.DeviceList{
		// 	Value: []*armstorsimple1200series.Device{
		// 		{
		// 			Name: to.Ptr("HSDK-4XY4FI2IVG"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg"),
		// 			Properties: &armstorsimple1200series.DeviceProperties{
		// 				Type: to.Ptr(armstorsimple1200series.DeviceTypeSeries9000OnPremVirtualAppliance),
		// 				ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T09:47:59.828Z"); return t}()),
		// 				AllowedDeviceOperations: []*armstorsimple1200series.DeviceOperation{
		// 					to.Ptr(armstorsimple1200series.DeviceOperationDelete),
		// 					to.Ptr(armstorsimple1200series.DeviceOperationDRTarget),
		// 					to.Ptr(armstorsimple1200series.DeviceOperationBrowsable)},
		// 					Culture: to.Ptr("en-US"),
		// 					DeviceCapabilities: []*armstorsimple1200series.SupportedDeviceCapabilities{
		// 						to.Ptr(armstorsimple1200series.SupportedDeviceCapabilitiesFileServer)},
		// 						DeviceConfigurationStatus: to.Ptr(armstorsimple1200series.DeviceConfigurationStatusPending),
		// 						DeviceSoftwareVersion: to.Ptr("10.0.10296.0"),
		// 						DomainName: to.Ptr("fareast.corp.microsoft.com"),
		// 						ModelDescription: to.Ptr("1200"),
		// 						Status: to.Ptr(armstorsimple1200series.DeviceStatusReadyToSetup),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*DevicesClient) NewListFailoverTargetPager

func (client *DevicesClient) NewListFailoverTargetPager(deviceName string, resourceGroupName string, managerName string, options *DevicesClientListFailoverTargetOptions) *runtime.Pager[DevicesClientListFailoverTargetResponse]

NewListFailoverTargetPager - Retrieves all the devices which can be used as failover targets for the given device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientListFailoverTargetOptions contains the optional parameters for the DevicesClient.NewListFailoverTargetPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListFailoverTarget.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDevicesClient().NewListFailoverTargetPager("HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.DevicesClientListFailoverTargetOptions{Expand: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DeviceList = armstorsimple1200series.DeviceList{
		// 	Value: []*armstorsimple1200series.Device{
		// 		{
		// 			Name: to.Ptr("HSDK-DMNJB2PET0"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-DMNJB2PET0"),
		// 			Properties: &armstorsimple1200series.DeviceProperties{
		// 				Type: to.Ptr(armstorsimple1200series.DeviceTypeSeries9000OnPremVirtualAppliance),
		// 				ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T14:42:31.060Z"); return t}()),
		// 				AllowedDeviceOperations: []*armstorsimple1200series.DeviceOperation{
		// 					to.Ptr(armstorsimple1200series.DeviceOperationDelete),
		// 					to.Ptr(armstorsimple1200series.DeviceOperationDRTarget),
		// 					to.Ptr(armstorsimple1200series.DeviceOperationBrowsable)},
		// 					Culture: to.Ptr("en-US"),
		// 					DeviceCapabilities: []*armstorsimple1200series.SupportedDeviceCapabilities{
		// 						to.Ptr(armstorsimple1200series.SupportedDeviceCapabilitiesFileServer)},
		// 						DeviceConfigurationStatus: to.Ptr(armstorsimple1200series.DeviceConfigurationStatusPending),
		// 						DeviceSoftwareVersion: to.Ptr("10.0.10296.0"),
		// 						DomainName: to.Ptr("fareast.corp.microsoft.com"),
		// 						ModelDescription: to.Ptr("1200"),
		// 						Status: to.Ptr(armstorsimple1200series.DeviceStatusReadyToSetup),
		// 					},
		// 				},
		// 				{
		// 					Name: to.Ptr("HSDK-YYMYCY4NK0"),
		// 					Type: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 					ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-YYMYCY4NK0"),
		// 					Properties: &armstorsimple1200series.DeviceProperties{
		// 						Type: to.Ptr(armstorsimple1200series.DeviceTypeSeries9000OnPremVirtualAppliance),
		// 						ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T15:19:40.825Z"); return t}()),
		// 						AllowedDeviceOperations: []*armstorsimple1200series.DeviceOperation{
		// 							to.Ptr(armstorsimple1200series.DeviceOperationDelete),
		// 							to.Ptr(armstorsimple1200series.DeviceOperationDRTarget),
		// 							to.Ptr(armstorsimple1200series.DeviceOperationBrowsable)},
		// 							Culture: to.Ptr("en-US"),
		// 							DeviceCapabilities: []*armstorsimple1200series.SupportedDeviceCapabilities{
		// 								to.Ptr(armstorsimple1200series.SupportedDeviceCapabilitiesFileServer)},
		// 								DeviceConfigurationStatus: to.Ptr(armstorsimple1200series.DeviceConfigurationStatusPending),
		// 								DeviceSoftwareVersion: to.Ptr("10.0.10296.0"),
		// 								DomainName: to.Ptr("fareast.corp.microsoft.com"),
		// 								ModelDescription: to.Ptr("1200"),
		// 								Status: to.Ptr(armstorsimple1200series.DeviceStatusReadyToSetup),
		// 							},
		// 					}},
		// 				}
	}
}
Output:

func (*DevicesClient) NewListMetricDefinitionPager

func (client *DevicesClient) NewListMetricDefinitionPager(deviceName string, resourceGroupName string, managerName string, options *DevicesClientListMetricDefinitionOptions) *runtime.Pager[DevicesClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definition of all metrics aggregated at device.

Generated from API version 2016-10-01

  • deviceName - The name of the appliance.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientListMetricDefinitionOptions contains the optional parameters for the DevicesClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDevicesClient().NewListMetricDefinitionPager("HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Device"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("P1D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P3M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 		},
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Device"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("P1D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P3M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*DevicesClient) NewListMetricsPager

func (client *DevicesClient) NewListMetricsPager(deviceName string, resourceGroupName string, managerName string, options *DevicesClientListMetricsOptions) *runtime.Pager[DevicesClientListMetricsResponse]

NewListMetricsPager - Retrieves the device metrics.

Generated from API version 2016-10-01

  • deviceName - The name of the appliance.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - DevicesClientListMetricsOptions contains the optional parameters for the DevicesClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDevicesClient().NewListMetricsPager("HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.DevicesClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-10T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Device"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("01:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T17:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T16:00:00.000Z"); return t}()),
		// 			}},
		// 		},
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Device"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("01:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T16:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T17:00:00.000Z"); return t}()),
		// 			}},
		// 	}},
		// }
	}
}
Output:

type DevicesClientBeginCreateOrUpdateAlertSettingsOptions

type DevicesClientBeginCreateOrUpdateAlertSettingsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginCreateOrUpdateAlertSettingsOptions contains the optional parameters for the DevicesClient.BeginCreateOrUpdateAlertSettings method.

type DevicesClientBeginCreateOrUpdateSecuritySettingsOptions

type DevicesClientBeginCreateOrUpdateSecuritySettingsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginCreateOrUpdateSecuritySettingsOptions contains the optional parameters for the DevicesClient.BeginCreateOrUpdateSecuritySettings method.

type DevicesClientBeginDeactivateOptions

type DevicesClientBeginDeactivateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginDeactivateOptions contains the optional parameters for the DevicesClient.BeginDeactivate method.

type DevicesClientBeginDeleteOptions

type DevicesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginDeleteOptions contains the optional parameters for the DevicesClient.BeginDelete method.

type DevicesClientBeginDownloadUpdatesOptions

type DevicesClientBeginDownloadUpdatesOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginDownloadUpdatesOptions contains the optional parameters for the DevicesClient.BeginDownloadUpdates method.

type DevicesClientBeginFailoverOptions

type DevicesClientBeginFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginFailoverOptions contains the optional parameters for the DevicesClient.BeginFailover method.

type DevicesClientBeginInstallUpdatesOptions

type DevicesClientBeginInstallUpdatesOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginInstallUpdatesOptions contains the optional parameters for the DevicesClient.BeginInstallUpdates method.

type DevicesClientBeginPatchOptions

type DevicesClientBeginPatchOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginPatchOptions contains the optional parameters for the DevicesClient.BeginPatch method.

type DevicesClientBeginScanForUpdatesOptions

type DevicesClientBeginScanForUpdatesOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DevicesClientBeginScanForUpdatesOptions contains the optional parameters for the DevicesClient.BeginScanForUpdates method.

type DevicesClientCreateOrUpdateAlertSettingsResponse

type DevicesClientCreateOrUpdateAlertSettingsResponse struct {
	// AlertSettings on the device which represents how alerts will be processed
	AlertSettings
}

DevicesClientCreateOrUpdateAlertSettingsResponse contains the response from method DevicesClient.BeginCreateOrUpdateAlertSettings.

type DevicesClientCreateOrUpdateSecuritySettingsResponse

type DevicesClientCreateOrUpdateSecuritySettingsResponse struct {
}

DevicesClientCreateOrUpdateSecuritySettingsResponse contains the response from method DevicesClient.BeginCreateOrUpdateSecuritySettings.

type DevicesClientDeactivateResponse

type DevicesClientDeactivateResponse struct {
}

DevicesClientDeactivateResponse contains the response from method DevicesClient.BeginDeactivate.

type DevicesClientDeleteResponse

type DevicesClientDeleteResponse struct {
}

DevicesClientDeleteResponse contains the response from method DevicesClient.BeginDelete.

type DevicesClientDownloadUpdatesResponse

type DevicesClientDownloadUpdatesResponse struct {
}

DevicesClientDownloadUpdatesResponse contains the response from method DevicesClient.BeginDownloadUpdates.

type DevicesClientFailoverResponse

type DevicesClientFailoverResponse struct {
}

DevicesClientFailoverResponse contains the response from method DevicesClient.BeginFailover.

type DevicesClientGetAlertSettingsOptions

type DevicesClientGetAlertSettingsOptions struct {
}

DevicesClientGetAlertSettingsOptions contains the optional parameters for the DevicesClient.GetAlertSettings method.

type DevicesClientGetAlertSettingsResponse

type DevicesClientGetAlertSettingsResponse struct {
	// AlertSettings on the device which represents how alerts will be processed
	AlertSettings
}

DevicesClientGetAlertSettingsResponse contains the response from method DevicesClient.GetAlertSettings.

type DevicesClientGetNetworkSettingsOptions

type DevicesClientGetNetworkSettingsOptions struct {
}

DevicesClientGetNetworkSettingsOptions contains the optional parameters for the DevicesClient.GetNetworkSettings method.

type DevicesClientGetNetworkSettingsResponse

type DevicesClientGetNetworkSettingsResponse struct {
	// The NetworkSettings of a device
	NetworkSettings
}

DevicesClientGetNetworkSettingsResponse contains the response from method DevicesClient.GetNetworkSettings.

type DevicesClientGetOptions

type DevicesClientGetOptions struct {
	// Specify $expand=details to populate additional fields related to the device.
	Expand *string
}

DevicesClientGetOptions contains the optional parameters for the DevicesClient.Get method.

type DevicesClientGetResponse

type DevicesClientGetResponse struct {
	// Represents a StorSimple device object along with its properties
	Device
}

DevicesClientGetResponse contains the response from method DevicesClient.Get.

type DevicesClientGetTimeSettingsOptions

type DevicesClientGetTimeSettingsOptions struct {
}

DevicesClientGetTimeSettingsOptions contains the optional parameters for the DevicesClient.GetTimeSettings method.

type DevicesClientGetTimeSettingsResponse

type DevicesClientGetTimeSettingsResponse struct {
	// The TimeSettings of a device
	TimeSettings
}

DevicesClientGetTimeSettingsResponse contains the response from method DevicesClient.GetTimeSettings.

type DevicesClientGetUpdateSummaryOptions

type DevicesClientGetUpdateSummaryOptions struct {
}

DevicesClientGetUpdateSummaryOptions contains the optional parameters for the DevicesClient.GetUpdateSummary method.

type DevicesClientGetUpdateSummaryResponse

type DevicesClientGetUpdateSummaryResponse struct {
	// The updates profile
	Updates
}

DevicesClientGetUpdateSummaryResponse contains the response from method DevicesClient.GetUpdateSummary.

type DevicesClientInstallUpdatesResponse

type DevicesClientInstallUpdatesResponse struct {
}

DevicesClientInstallUpdatesResponse contains the response from method DevicesClient.BeginInstallUpdates.

type DevicesClientListByManagerOptions

type DevicesClientListByManagerOptions struct {
	// Specify $expand=details to populate additional fields related to the device.
	Expand *string
}

DevicesClientListByManagerOptions contains the optional parameters for the DevicesClient.NewListByManagerPager method.

type DevicesClientListByManagerResponse

type DevicesClientListByManagerResponse struct {
	// Collection of Devices
	DeviceList
}

DevicesClientListByManagerResponse contains the response from method DevicesClient.NewListByManagerPager.

type DevicesClientListFailoverTargetOptions

type DevicesClientListFailoverTargetOptions struct {
	// Specify $expand=details to populate additional fields related to the device.
	Expand *string
}

DevicesClientListFailoverTargetOptions contains the optional parameters for the DevicesClient.NewListFailoverTargetPager method.

type DevicesClientListFailoverTargetResponse

type DevicesClientListFailoverTargetResponse struct {
	// Collection of Devices
	DeviceList
}

DevicesClientListFailoverTargetResponse contains the response from method DevicesClient.NewListFailoverTargetPager.

type DevicesClientListMetricDefinitionOptions

type DevicesClientListMetricDefinitionOptions struct {
}

DevicesClientListMetricDefinitionOptions contains the optional parameters for the DevicesClient.NewListMetricDefinitionPager method.

type DevicesClientListMetricDefinitionResponse

type DevicesClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

DevicesClientListMetricDefinitionResponse contains the response from method DevicesClient.NewListMetricDefinitionPager.

type DevicesClientListMetricsOptions

type DevicesClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

DevicesClientListMetricsOptions contains the optional parameters for the DevicesClient.NewListMetricsPager method.

type DevicesClientListMetricsResponse

type DevicesClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

DevicesClientListMetricsResponse contains the response from method DevicesClient.NewListMetricsPager.

type DevicesClientPatchResponse

type DevicesClientPatchResponse struct {
	// Represents a StorSimple device object along with its properties
	Device
}

DevicesClientPatchResponse contains the response from method DevicesClient.BeginPatch.

type DevicesClientScanForUpdatesResponse

type DevicesClientScanForUpdatesResponse struct {
}

DevicesClientScanForUpdatesResponse contains the response from method DevicesClient.BeginScanForUpdates.

type DhcpStatus

type DhcpStatus string

DhcpStatus - Represents state of DHCP.

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

func PossibleDhcpStatusValues

func PossibleDhcpStatusValues() []DhcpStatus

PossibleDhcpStatusValues returns the possible values for the DhcpStatus const type.

type DiskStatus

type DiskStatus string

DiskStatus - The disk status.

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

func PossibleDiskStatusValues

func PossibleDiskStatusValues() []DiskStatus

PossibleDiskStatusValues returns the possible values for the DiskStatus const type.

type DownloadPhase

type DownloadPhase string

DownloadPhase - The download phase.

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

func PossibleDownloadPhaseValues

func PossibleDownloadPhaseValues() []DownloadPhase

PossibleDownloadPhaseValues returns the possible values for the DownloadPhase const type.

type EncryptionAlgorithm

type EncryptionAlgorithm string

EncryptionAlgorithm - Algorithm used to encrypt "Value"

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

func PossibleEncryptionAlgorithmValues

func PossibleEncryptionAlgorithmValues() []EncryptionAlgorithm

PossibleEncryptionAlgorithmValues returns the possible values for the EncryptionAlgorithm const type.

type EncryptionSettings

type EncryptionSettings struct {
	// REQUIRED; Properties of the EncryptionSettings.
	Properties *EncryptionSettingsProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

EncryptionSettings - The EncryptionSettings

func (EncryptionSettings) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type EncryptionSettings.

func (*EncryptionSettings) UnmarshalJSON added in v1.1.0

func (e *EncryptionSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSettings.

type EncryptionSettingsProperties

type EncryptionSettingsProperties struct {
	// REQUIRED; The encryption status which indicates if encryption is enabled or not.
	EncryptionStatus *EncryptionStatus

	// REQUIRED; The key rollover status which indicates if key rollover is required or not. If secrets encryption has been upgraded,
	// then it requires key rollover.
	KeyRolloverStatus *KeyRolloverStatus
}

EncryptionSettingsProperties - The properties of EncryptionSettings

func (EncryptionSettingsProperties) MarshalJSON added in v1.1.0

func (e EncryptionSettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionSettingsProperties.

func (*EncryptionSettingsProperties) UnmarshalJSON added in v1.1.0

func (e *EncryptionSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionSettingsProperties.

type EncryptionStatus

type EncryptionStatus string

EncryptionStatus - The encryption status which indicates if encryption is enabled or not.

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

func PossibleEncryptionStatusValues

func PossibleEncryptionStatusValues() []EncryptionStatus

PossibleEncryptionStatusValues returns the possible values for the EncryptionStatus const type.

type Error

type Error struct {
	// REQUIRED
	ErrorCode *string

	// REQUIRED
	Message *Message
	Values  []*Item
}

func (Error) MarshalJSON added in v1.1.0

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON added in v1.1.0

func (e *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type FailoverRequest

type FailoverRequest struct {
	AccesspointIDs   []*string
	KeepSourceDevice *bool
	SkipValidation   *bool
	TargetDeviceID   *string
}

FailoverRequest - The Failover request object.

func (FailoverRequest) MarshalJSON

func (f FailoverRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FailoverRequest.

func (*FailoverRequest) UnmarshalJSON added in v1.1.0

func (f *FailoverRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FailoverRequest.

type FileServer

type FileServer struct {
	// REQUIRED; The properties.
	Properties *FileServerProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

FileServer - The file server.

func (FileServer) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type FileServer.

func (*FileServer) UnmarshalJSON added in v1.1.0

func (f *FileServer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileServer.

type FileServerList

type FileServerList struct {
	// REQUIRED; The value.
	Value []*FileServer
}

FileServerList - Collection of file servers

func (FileServerList) MarshalJSON added in v1.1.0

func (f FileServerList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileServerList.

func (*FileServerList) UnmarshalJSON added in v1.1.0

func (f *FileServerList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileServerList.

type FileServerProperties

type FileServerProperties struct {
	// REQUIRED; The backup policy id.
	BackupScheduleGroupID *string

	// REQUIRED; Domain of the file server
	DomainName *string

	// REQUIRED; The storage domain id.
	StorageDomainID *string

	// The description of the file server
	Description *string
}

FileServerProperties - The file server properties.

func (FileServerProperties) MarshalJSON added in v1.1.0

func (f FileServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileServerProperties.

func (*FileServerProperties) UnmarshalJSON added in v1.1.0

func (f *FileServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileServerProperties.

type FileServersClient

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

FileServersClient contains the methods for the FileServers group. Don't use this type directly, use NewFileServersClient() instead.

func NewFileServersClient

func NewFileServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileServersClient, error)

NewFileServersClient creates a new instance of FileServersClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FileServersClient) BeginBackupNow

func (client *FileServersClient) BeginBackupNow(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileServersClientBeginBackupNowOptions) (*runtime.Poller[FileServersClientBackupNowResponse], error)

BeginBackupNow - Backup the file server now. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientBeginBackupNowOptions contains the optional parameters for the FileServersClient.BeginBackupNow method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFileServersClient().BeginBackupNow(ctx, "HSDK-4XY4FI2IVG", "HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FileServersClient) BeginCreateOrUpdate

func (client *FileServersClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, fileServer FileServer, options *FileServersClientBeginCreateOrUpdateOptions) (*runtime.Poller[FileServersClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the file server. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • fileServer - The file server.
  • options - FileServersClientBeginCreateOrUpdateOptions contains the optional parameters for the FileServersClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFileServersClient().BeginCreateOrUpdate(ctx, "HSDK-4XY4FI2IVG", "HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.FileServer{
		Name: to.Ptr("HSDK-4XY4FI2IVG"),
		Properties: &armstorsimple1200series.FileServerProperties{
			Description:           to.Ptr("Demo FileServer for SDK Test"),
			BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest"),
			DomainName:            to.Ptr("fareast.corp.microsoft.com"),
			StorageDomainID:       to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileServer = armstorsimple1200series.FileServer{
	// 	Name: to.Ptr("HSDK-4XY4FI2IVG"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG"),
	// 	Properties: &armstorsimple1200series.FileServerProperties{
	// 		Description: to.Ptr("Demo FileServer for SDK Test"),
	// 		BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest"),
	// 		DomainName: to.Ptr("fareast.corp.microsoft.com"),
	// 		StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"),
	// 	},
	// }
}
Output:

func (*FileServersClient) BeginDelete

func (client *FileServersClient) BeginDelete(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileServersClientBeginDeleteOptions) (*runtime.Poller[FileServersClientDeleteResponse], error)

BeginDelete - Deletes the file server. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientBeginDeleteOptions contains the optional parameters for the FileServersClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFileServersClient().BeginDelete(ctx, "HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FileServersClient) Get

func (client *FileServersClient) Get(ctx context.Context, deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileServersClientGetOptions) (FileServersClientGetResponse, error)

Get - Returns the properties of the specified file server name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientGetOptions contains the optional parameters for the FileServersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFileServersClient().Get(ctx, "HSDK-4XY4FI2IVG", "HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileServer = armstorsimple1200series.FileServer{
	// 	Name: to.Ptr("HSDK-4XY4FI2IVG"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG"),
	// 	Properties: &armstorsimple1200series.FileServerProperties{
	// 		Description: to.Ptr("Demo FileServer for SDK Test"),
	// 		BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest"),
	// 		DomainName: to.Ptr("fareast.corp.microsoft.com"),
	// 		StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"),
	// 	},
	// }
}
Output:

func (*FileServersClient) NewListByDevicePager

func (client *FileServersClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *FileServersClientListByDeviceOptions) *runtime.Pager[FileServersClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the file servers in a device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientListByDeviceOptions contains the optional parameters for the FileServersClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileServersClient().NewListByDevicePager("HSDK-DMNJB2PET0", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FileServerList = armstorsimple1200series.FileServerList{
		// 	Value: []*armstorsimple1200series.FileServer{
		// 	},
		// }
	}
}
Output:

func (*FileServersClient) NewListByManagerPager

func (client *FileServersClient) NewListByManagerPager(resourceGroupName string, managerName string, options *FileServersClientListByManagerOptions) *runtime.Pager[FileServersClientListByManagerResponse]

NewListByManagerPager - Retrieves all the file servers in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientListByManagerOptions contains the optional parameters for the FileServersClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileServersClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FileServerList = armstorsimple1200series.FileServerList{
		// 	Value: []*armstorsimple1200series.FileServer{
		// 		{
		// 			Name: to.Ptr("HSDK-ARCSX4MVKZ"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/fileServers/HSDK-ARCSX4MVKZ"),
		// 			Properties: &armstorsimple1200series.FileServerProperties{
		// 				BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/backupScheduleGroups/Default-HSDK-ARCSX4MVKZ-BackupScheduleGroup"),
		// 				DomainName: to.Ptr("fareast.corp.microsoft.com"),
		// 				StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-ARCSX4MVKZ-StorageDomain"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FileServersClient) NewListMetricDefinitionPager

func (client *FileServersClient) NewListMetricDefinitionPager(deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileServersClientListMetricDefinitionOptions) *runtime.Pager[FileServersClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definitions of all metrics aggregated at the file server.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • fileServerName - The name of the file server.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientListMetricDefinitionOptions contains the optional parameters for the FileServersClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileServersClient().NewListMetricDefinitionPager("HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("FileServer"),
		// 					Value: to.Ptr("HSDK-DMNJB2PET0"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("PT6H"),
		// 					TimeGrain: to.Ptr("PT1M"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-DMNJB2PET0/fileservers/HSDK-DMNJB2PET0"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*FileServersClient) NewListMetricsPager

func (client *FileServersClient) NewListMetricsPager(deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileServersClientListMetricsOptions) *runtime.Pager[FileServersClientListMetricsResponse]

NewListMetricsPager - Gets the file server metrics.

Generated from API version 2016-10-01

  • deviceName - The name of the device.
  • fileServerName - The name of the file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileServersClientListMetricsOptions contains the optional parameters for the FileServersClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileServersClient().NewListMetricsPager("HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.FileServersClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-10T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("FileServer"),
		// 					Value: to.Ptr("HSDK-DMNJB2PET0"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-DMNJB2PET0/fileservers/HSDK-DMNJB2PET0"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 			},
		// 	}},
		// }
	}
}
Output:

type FileServersClientBackupNowResponse

type FileServersClientBackupNowResponse struct {
}

FileServersClientBackupNowResponse contains the response from method FileServersClient.BeginBackupNow.

type FileServersClientBeginBackupNowOptions

type FileServersClientBeginBackupNowOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FileServersClientBeginBackupNowOptions contains the optional parameters for the FileServersClient.BeginBackupNow method.

type FileServersClientBeginCreateOrUpdateOptions

type FileServersClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FileServersClientBeginCreateOrUpdateOptions contains the optional parameters for the FileServersClient.BeginCreateOrUpdate method.

type FileServersClientBeginDeleteOptions

type FileServersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FileServersClientBeginDeleteOptions contains the optional parameters for the FileServersClient.BeginDelete method.

type FileServersClientCreateOrUpdateResponse

type FileServersClientCreateOrUpdateResponse struct {
	// The file server.
	FileServer
}

FileServersClientCreateOrUpdateResponse contains the response from method FileServersClient.BeginCreateOrUpdate.

type FileServersClientDeleteResponse

type FileServersClientDeleteResponse struct {
}

FileServersClientDeleteResponse contains the response from method FileServersClient.BeginDelete.

type FileServersClientGetOptions

type FileServersClientGetOptions struct {
}

FileServersClientGetOptions contains the optional parameters for the FileServersClient.Get method.

type FileServersClientGetResponse

type FileServersClientGetResponse struct {
	// The file server.
	FileServer
}

FileServersClientGetResponse contains the response from method FileServersClient.Get.

type FileServersClientListByDeviceOptions

type FileServersClientListByDeviceOptions struct {
}

FileServersClientListByDeviceOptions contains the optional parameters for the FileServersClient.NewListByDevicePager method.

type FileServersClientListByDeviceResponse

type FileServersClientListByDeviceResponse struct {
	// Collection of file servers
	FileServerList
}

FileServersClientListByDeviceResponse contains the response from method FileServersClient.NewListByDevicePager.

type FileServersClientListByManagerOptions

type FileServersClientListByManagerOptions struct {
}

FileServersClientListByManagerOptions contains the optional parameters for the FileServersClient.NewListByManagerPager method.

type FileServersClientListByManagerResponse

type FileServersClientListByManagerResponse struct {
	// Collection of file servers
	FileServerList
}

FileServersClientListByManagerResponse contains the response from method FileServersClient.NewListByManagerPager.

type FileServersClientListMetricDefinitionOptions

type FileServersClientListMetricDefinitionOptions struct {
}

FileServersClientListMetricDefinitionOptions contains the optional parameters for the FileServersClient.NewListMetricDefinitionPager method.

type FileServersClientListMetricDefinitionResponse

type FileServersClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

FileServersClientListMetricDefinitionResponse contains the response from method FileServersClient.NewListMetricDefinitionPager.

type FileServersClientListMetricsOptions

type FileServersClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

FileServersClientListMetricsOptions contains the optional parameters for the FileServersClient.NewListMetricsPager method.

type FileServersClientListMetricsResponse

type FileServersClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

FileServersClientListMetricsResponse contains the response from method FileServersClient.NewListMetricsPager.

type FileShare

type FileShare struct {
	// REQUIRED; The properties.
	Properties *FileShareProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

FileShare - The File Share.

func (FileShare) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type FileShare.

func (*FileShare) UnmarshalJSON added in v1.1.0

func (f *FileShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileShare.

type FileShareList

type FileShareList struct {
	// REQUIRED; The value.
	Value []*FileShare
}

FileShareList - Collection of file shares

func (FileShareList) MarshalJSON added in v1.1.0

func (f FileShareList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShareList.

func (*FileShareList) UnmarshalJSON added in v1.1.0

func (f *FileShareList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileShareList.

type FileShareProperties

type FileShareProperties struct {
	// REQUIRED; The user/group who will have full permission in this share. Active directory email address. Example: xyz@contoso.com
	// or Contoso\xyz.
	AdminUser *string

	// REQUIRED; The data policy
	DataPolicy *DataPolicy

	// REQUIRED; The monitoring status
	MonitoringStatus *MonitoringStatus

	// REQUIRED; The total provisioned capacity in Bytes
	ProvisionedCapacityInBytes *int64

	// REQUIRED; The Share Status
	ShareStatus *ShareStatus

	// Description for file share
	Description *string

	// READ-ONLY; The local used capacity in Bytes.
	LocalUsedCapacityInBytes *int64

	// READ-ONLY; The used capacity in Bytes.
	UsedCapacityInBytes *int64
}

FileShareProperties - The File Share.

func (FileShareProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type FileShareProperties.

func (*FileShareProperties) UnmarshalJSON added in v1.1.0

func (f *FileShareProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties.

type FileSharesClient

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

FileSharesClient contains the methods for the FileShares group. Don't use this type directly, use NewFileSharesClient() instead.

func NewFileSharesClient

func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileSharesClient, error)

NewFileSharesClient creates a new instance of FileSharesClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FileSharesClient) BeginCreateOrUpdate

func (client *FileSharesClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, fileShare FileShare, options *FileSharesClientBeginCreateOrUpdateOptions) (*runtime.Poller[FileSharesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the file share. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • shareName - The file share name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • fileShare - The file share.
  • options - FileSharesClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSharesClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFileSharesClient().BeginCreateOrUpdate(ctx, "HSDK-4XY4FI2IVG", "HSDK-4XY4FI2IVG", "Auto-TestFileShare1", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.FileShare{
		Name: to.Ptr("Auto-TestFileShare1"),
		Properties: &armstorsimple1200series.FileShareProperties{
			Description:                to.Ptr("Demo FileShare for SDK Test Tiered"),
			AdminUser:                  to.Ptr("fareast\\idcdlslb"),
			DataPolicy:                 to.Ptr(armstorsimple1200series.DataPolicyTiered),
			MonitoringStatus:           to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
			ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
			ShareStatus:                to.Ptr(armstorsimple1200series.ShareStatusOnline),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileShare = armstorsimple1200series.FileShare{
	// 	Name: to.Ptr("Auto-TestFileShare1"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG/shares/Auto-TestFileShare1"),
	// 	Properties: &armstorsimple1200series.FileShareProperties{
	// 		Description: to.Ptr("Demo FileShare for SDK Test Tiered"),
	// 		AdminUser: to.Ptr("fareast\\idcdlslb"),
	// 		DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
	// 		LocalUsedCapacityInBytes: to.Ptr[int64](0),
	// 		MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
	// 		ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
	// 		ShareStatus: to.Ptr(armstorsimple1200series.ShareStatusOnline),
	// 		UsedCapacityInBytes: to.Ptr[int64](0),
	// 	},
	// }
}
Output:

func (*FileSharesClient) BeginDelete

func (client *FileSharesClient) BeginDelete(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, options *FileSharesClientBeginDeleteOptions) (*runtime.Poller[FileSharesClientDeleteResponse], error)

BeginDelete - Deletes the file share. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • shareName - The file share Name
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientBeginDeleteOptions contains the optional parameters for the FileSharesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewFileSharesClient().BeginDelete(ctx, "HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "Auto-TestFileShare2", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*FileSharesClient) Get

func (client *FileSharesClient) Get(ctx context.Context, deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, options *FileSharesClientGetOptions) (FileSharesClientGetResponse, error)

Get - Returns the properties of the specified file share name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • shareName - The file share name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientGetOptions contains the optional parameters for the FileSharesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFileSharesClient().Get(ctx, "HSDK-4XY4FI2IVG", "HSDK-4XY4FI2IVG", "Auto-TestFileShare1", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileShare = armstorsimple1200series.FileShare{
	// 	Name: to.Ptr("Auto-TestFileShare1"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG/shares/Auto-TestFileShare1"),
	// 	Properties: &armstorsimple1200series.FileShareProperties{
	// 		Description: to.Ptr("Demo FileShare for SDK Test Tiered"),
	// 		AdminUser: to.Ptr("fareast\\idcdlslb"),
	// 		DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
	// 		LocalUsedCapacityInBytes: to.Ptr[int64](0),
	// 		MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
	// 		ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
	// 		ShareStatus: to.Ptr(armstorsimple1200series.ShareStatusOnline),
	// 		UsedCapacityInBytes: to.Ptr[int64](0),
	// 	},
	// }
}
Output:

func (*FileSharesClient) NewListByDevicePager

func (client *FileSharesClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *FileSharesClientListByDeviceOptions) *runtime.Pager[FileSharesClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the file shares in a device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientListByDeviceOptions contains the optional parameters for the FileSharesClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileSharesClient().NewListByDevicePager("HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FileShareList = armstorsimple1200series.FileShareList{
		// 	Value: []*armstorsimple1200series.FileShare{
		// 		{
		// 			Name: to.Ptr("Auto-TestFileShare2"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG/shares/Auto-TestFileShare2"),
		// 			Properties: &armstorsimple1200series.FileShareProperties{
		// 				Description: to.Ptr("Demo FileShare for SDK Test Local"),
		// 				AdminUser: to.Ptr("fareast\\idcdlslb"),
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyLocal),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				ShareStatus: to.Ptr(armstorsimple1200series.ShareStatusOnline),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Auto-TestFileShare1"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG/shares/Auto-TestFileShare1"),
		// 			Properties: &armstorsimple1200series.FileShareProperties{
		// 				Description: to.Ptr("Updated: Demo FileShare for SDK Test Tiered"),
		// 				AdminUser: to.Ptr("fareast\\idcdlslb"),
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				ShareStatus: to.Ptr(armstorsimple1200series.ShareStatusOffline),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FileSharesClient) NewListByFileServerPager

func (client *FileSharesClient) NewListByFileServerPager(deviceName string, fileServerName string, resourceGroupName string, managerName string, options *FileSharesClientListByFileServerOptions) *runtime.Pager[FileSharesClientListByFileServerResponse]

NewListByFileServerPager - Retrieves all the file shares in a file server.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientListByFileServerOptions contains the optional parameters for the FileSharesClient.NewListByFileServerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListByFileServer.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileSharesClient().NewListByFileServerPager("HSDK-ARCSX4MVKZ", "HSDK-ARCSX4MVKZ", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FileShareList = armstorsimple1200series.FileShareList{
		// 	Value: []*armstorsimple1200series.FileShare{
		// 		{
		// 			Name: to.Ptr("TieredFileShareForSDKTest"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/fileServers/HSDK-ARCSX4MVKZ/shares/TieredFileShareForSDKTest"),
		// 			Properties: &armstorsimple1200series.FileShareProperties{
		// 				Description: to.Ptr("Demo FileShare for SDK Test Tiered"),
		// 				AdminUser: to.Ptr("fareast\\idcdlslb"),
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](174063616),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				ShareStatus: to.Ptr(armstorsimple1200series.ShareStatusOnline),
		// 				UsedCapacityInBytes: to.Ptr[int64](174063616),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FileSharesClient) NewListMetricDefinitionPager

func (client *FileSharesClient) NewListMetricDefinitionPager(deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, options *FileSharesClientListMetricDefinitionOptions) *runtime.Pager[FileSharesClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definitions of all metrics aggregated at the file share.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • shareName - The file share name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientListMetricDefinitionOptions contains the optional parameters for the FileSharesClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileSharesClient().NewListMetricDefinitionPager("HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "Auto-TestFileShare2", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Share"),
		// 					Value: to.Ptr("Auto-TestFileShare2"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("PT6H"),
		// 					TimeGrain: to.Ptr("PT1M"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-DMNJB2PET0/fileservers/HSDK-DMNJB2PET0/shares/Auto-TestFileShare2"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*FileSharesClient) NewListMetricsPager

func (client *FileSharesClient) NewListMetricsPager(deviceName string, fileServerName string, shareName string, resourceGroupName string, managerName string, options *FileSharesClientListMetricsOptions) *runtime.Pager[FileSharesClientListMetricsResponse]

NewListMetricsPager - Gets the file share metrics

Generated from API version 2016-10-01

  • deviceName - The device name.
  • fileServerName - The file server name.
  • shareName - The file share name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - FileSharesClientListMetricsOptions contains the optional parameters for the FileSharesClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFileSharesClient().NewListMetricsPager("HSDK-DMNJB2PET0", "HSDK-DMNJB2PET0", "Auto-TestFileShare2", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.FileSharesClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-10T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/fileServers/shares/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Share"),
		// 					Value: to.Ptr("Auto-TestFileShare2"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-DMNJB2PET0/fileservers/HSDK-DMNJB2PET0/shares/Auto-TestFileShare2"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 			},
		// 	}},
		// }
	}
}
Output:

type FileSharesClientBeginCreateOrUpdateOptions

type FileSharesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FileSharesClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSharesClient.BeginCreateOrUpdate method.

type FileSharesClientBeginDeleteOptions

type FileSharesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

FileSharesClientBeginDeleteOptions contains the optional parameters for the FileSharesClient.BeginDelete method.

type FileSharesClientCreateOrUpdateResponse

type FileSharesClientCreateOrUpdateResponse struct {
	// The File Share.
	FileShare
}

FileSharesClientCreateOrUpdateResponse contains the response from method FileSharesClient.BeginCreateOrUpdate.

type FileSharesClientDeleteResponse

type FileSharesClientDeleteResponse struct {
}

FileSharesClientDeleteResponse contains the response from method FileSharesClient.BeginDelete.

type FileSharesClientGetOptions

type FileSharesClientGetOptions struct {
}

FileSharesClientGetOptions contains the optional parameters for the FileSharesClient.Get method.

type FileSharesClientGetResponse

type FileSharesClientGetResponse struct {
	// The File Share.
	FileShare
}

FileSharesClientGetResponse contains the response from method FileSharesClient.Get.

type FileSharesClientListByDeviceOptions

type FileSharesClientListByDeviceOptions struct {
}

FileSharesClientListByDeviceOptions contains the optional parameters for the FileSharesClient.NewListByDevicePager method.

type FileSharesClientListByDeviceResponse

type FileSharesClientListByDeviceResponse struct {
	// Collection of file shares
	FileShareList
}

FileSharesClientListByDeviceResponse contains the response from method FileSharesClient.NewListByDevicePager.

type FileSharesClientListByFileServerOptions

type FileSharesClientListByFileServerOptions struct {
}

FileSharesClientListByFileServerOptions contains the optional parameters for the FileSharesClient.NewListByFileServerPager method.

type FileSharesClientListByFileServerResponse

type FileSharesClientListByFileServerResponse struct {
	// Collection of file shares
	FileShareList
}

FileSharesClientListByFileServerResponse contains the response from method FileSharesClient.NewListByFileServerPager.

type FileSharesClientListMetricDefinitionOptions

type FileSharesClientListMetricDefinitionOptions struct {
}

FileSharesClientListMetricDefinitionOptions contains the optional parameters for the FileSharesClient.NewListMetricDefinitionPager method.

type FileSharesClientListMetricDefinitionResponse

type FileSharesClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

FileSharesClientListMetricDefinitionResponse contains the response from method FileSharesClient.NewListMetricDefinitionPager.

type FileSharesClientListMetricsOptions

type FileSharesClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

FileSharesClientListMetricsOptions contains the optional parameters for the FileSharesClient.NewListMetricsPager method.

type FileSharesClientListMetricsResponse

type FileSharesClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

FileSharesClientListMetricsResponse contains the response from method FileSharesClient.NewListMetricsPager.

type IPConfig

type IPConfig struct {
	// REQUIRED; The gateway of the network adapter.
	Gateway *string

	// REQUIRED; The IP address of the network adapter, either ipv4 or ipv6.
	IPAddress *string

	// The prefix length of the network adapter.
	PrefixLength *int32
}

IPConfig - Details related to the IP address configuration

func (IPConfig) MarshalJSON added in v1.1.0

func (i IPConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IPConfig.

func (*IPConfig) UnmarshalJSON added in v1.1.0

func (i *IPConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IPConfig.

type ISCSIDisk

type ISCSIDisk struct {
	// REQUIRED; The properties.
	Properties *ISCSIDiskProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

ISCSIDisk - The iSCSI disk.

func (ISCSIDisk) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ISCSIDisk.

func (*ISCSIDisk) UnmarshalJSON added in v1.1.0

func (i *ISCSIDisk) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIDisk.

type ISCSIDiskList

type ISCSIDiskList struct {
	// REQUIRED; The value.
	Value []*ISCSIDisk
}

ISCSIDiskList - Collection of Iscsi disk

func (ISCSIDiskList) MarshalJSON added in v1.1.0

func (i ISCSIDiskList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ISCSIDiskList.

func (*ISCSIDiskList) UnmarshalJSON added in v1.1.0

func (i *ISCSIDiskList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIDiskList.

type ISCSIDiskProperties

type ISCSIDiskProperties struct {
	// REQUIRED; The access control records.
	AccessControlRecords []*string

	// REQUIRED; The data policy.
	DataPolicy *DataPolicy

	// REQUIRED; The disk status.
	DiskStatus *DiskStatus

	// REQUIRED; The monitoring.
	MonitoringStatus *MonitoringStatus

	// REQUIRED; The provisioned capacity in bytes.
	ProvisionedCapacityInBytes *int64

	// The description.
	Description *string

	// READ-ONLY; The local used capacity in bytes.
	LocalUsedCapacityInBytes *int64

	// READ-ONLY; The used capacity in bytes.
	UsedCapacityInBytes *int64
}

ISCSIDiskProperties - The iSCSI disk properties.

func (ISCSIDiskProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ISCSIDiskProperties.

func (*ISCSIDiskProperties) UnmarshalJSON added in v1.1.0

func (i *ISCSIDiskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIDiskProperties.

type ISCSIServer

type ISCSIServer struct {
	// REQUIRED; The properties.
	Properties *ISCSIServerProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

ISCSIServer - The iSCSI server.

func (ISCSIServer) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ISCSIServer.

func (*ISCSIServer) UnmarshalJSON added in v1.1.0

func (i *ISCSIServer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIServer.

type ISCSIServerList

type ISCSIServerList struct {
	// REQUIRED; The value.
	Value []*ISCSIServer
}

ISCSIServerList - Collection of Iscsi servers

func (ISCSIServerList) MarshalJSON added in v1.1.0

func (i ISCSIServerList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ISCSIServerList.

func (*ISCSIServerList) UnmarshalJSON added in v1.1.0

func (i *ISCSIServerList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIServerList.

type ISCSIServerProperties

type ISCSIServerProperties struct {
	// REQUIRED; The backup policy id.
	BackupScheduleGroupID *string

	// REQUIRED; The storage domain id.
	StorageDomainID *string

	// The chap id.
	ChapID *string

	// The description.
	Description *string

	// The reverse chap id.
	ReverseChapID *string
}

ISCSIServerProperties - The iSCSI server properties.

func (ISCSIServerProperties) MarshalJSON added in v1.1.0

func (i ISCSIServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ISCSIServerProperties.

func (*ISCSIServerProperties) UnmarshalJSON added in v1.1.0

func (i *ISCSIServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ISCSIServerProperties.

type InitiatedBy

type InitiatedBy string

InitiatedBy - Gets or sets InitiatedBy

const (
	InitiatedByManual    InitiatedBy = "Manual"
	InitiatedByScheduled InitiatedBy = "Scheduled"
)

func PossibleInitiatedByValues

func PossibleInitiatedByValues() []InitiatedBy

PossibleInitiatedByValues returns the possible values for the InitiatedBy const type.

type IscsiDisksClient

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

IscsiDisksClient contains the methods for the IscsiDisks group. Don't use this type directly, use NewIscsiDisksClient() instead.

func NewIscsiDisksClient

func NewIscsiDisksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IscsiDisksClient, error)

NewIscsiDisksClient creates a new instance of IscsiDisksClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*IscsiDisksClient) BeginCreateOrUpdate

func (client *IscsiDisksClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, iscsiDisk ISCSIDisk, options *IscsiDisksClientBeginCreateOrUpdateOptions) (*runtime.Poller[IscsiDisksClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the iSCSI disk. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • diskName - The disk name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • iscsiDisk - The iSCSI disk.
  • options - IscsiDisksClientBeginCreateOrUpdateOptions contains the optional parameters for the IscsiDisksClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewIscsiDisksClient().BeginCreateOrUpdate(ctx, "HSDK-0NZI14MDTF", "HSDK-0NZI14MDTF", "Auto-TestIscsiDisk1", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.ISCSIDisk{
		Name: to.Ptr("Auto-TestIscsiDisk1"),
		Properties: &armstorsimple1200series.ISCSIDiskProperties{
			Description:                to.Ptr("Demo IscsiDisk for SDK Test Tiered"),
			AccessControlRecords:       []*string{},
			DataPolicy:                 to.Ptr(armstorsimple1200series.DataPolicyTiered),
			DiskStatus:                 to.Ptr(armstorsimple1200series.DiskStatusOnline),
			MonitoringStatus:           to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
			ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ISCSIDisk = armstorsimple1200series.ISCSIDisk{
	// 	Name: to.Ptr("Auto-TestIscsiDisk1"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk1"),
	// 	Properties: &armstorsimple1200series.ISCSIDiskProperties{
	// 		Description: to.Ptr("Demo IscsiDisk for SDK Test Tiered"),
	// 		AccessControlRecords: []*string{
	// 		},
	// 		DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
	// 		DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOnline),
	// 		LocalUsedCapacityInBytes: to.Ptr[int64](0),
	// 		MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
	// 		ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
	// 		UsedCapacityInBytes: to.Ptr[int64](0),
	// 	},
	// }
}
Output:

func (*IscsiDisksClient) BeginDelete

func (client *IscsiDisksClient) BeginDelete(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, options *IscsiDisksClientBeginDeleteOptions) (*runtime.Poller[IscsiDisksClientDeleteResponse], error)

BeginDelete - Deletes the iSCSI disk. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • diskName - The disk name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientBeginDeleteOptions contains the optional parameters for the IscsiDisksClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewIscsiDisksClient().BeginDelete(ctx, "HSDK-UGU4PITWNI", "HSDK-UGU4PITWNI", "ClonedTieredIscsiDiskForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*IscsiDisksClient) Get

func (client *IscsiDisksClient) Get(ctx context.Context, deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, options *IscsiDisksClientGetOptions) (IscsiDisksClientGetResponse, error)

Get - Returns the properties of the specified iSCSI disk name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • diskName - The disk name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientGetOptions contains the optional parameters for the IscsiDisksClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewIscsiDisksClient().Get(ctx, "HSDK-0NZI14MDTF", "HSDK-0NZI14MDTF", "Auto-TestIscsiDisk1", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ISCSIDisk = armstorsimple1200series.ISCSIDisk{
	// 	Name: to.Ptr("Auto-TestIscsiDisk1"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk1"),
	// 	Properties: &armstorsimple1200series.ISCSIDiskProperties{
	// 		Description: to.Ptr("Demo IscsiDisk for SDK Test Tiered"),
	// 		AccessControlRecords: []*string{
	// 		},
	// 		DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
	// 		DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOnline),
	// 		LocalUsedCapacityInBytes: to.Ptr[int64](0),
	// 		MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
	// 		ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
	// 		UsedCapacityInBytes: to.Ptr[int64](0),
	// 	},
	// }
}
Output:

func (*IscsiDisksClient) NewListByDevicePager

func (client *IscsiDisksClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *IscsiDisksClientListByDeviceOptions) *runtime.Pager[IscsiDisksClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the iSCSI disks in a device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientListByDeviceOptions contains the optional parameters for the IscsiDisksClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiDisksClient().NewListByDevicePager("HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ISCSIDiskList = armstorsimple1200series.ISCSIDiskList{
		// 	Value: []*armstorsimple1200series.ISCSIDisk{
		// 		{
		// 			Name: to.Ptr("Auto-TestIscsiDisk2"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk2"),
		// 			Properties: &armstorsimple1200series.ISCSIDiskProperties{
		// 				Description: to.Ptr("Demo IscsiDisk for SDK Test Tiered"),
		// 				AccessControlRecords: []*string{
		// 				},
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOnline),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Auto-TestIscsiDisk1"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk1"),
		// 			Properties: &armstorsimple1200series.ISCSIDiskProperties{
		// 				Description: to.Ptr("Updated: Demo IscsiDisk for SDK Test Tiered"),
		// 				AccessControlRecords: []*string{
		// 				},
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOffline),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*IscsiDisksClient) NewListByIscsiServerPager

func (client *IscsiDisksClient) NewListByIscsiServerPager(deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiDisksClientListByIscsiServerOptions) *runtime.Pager[IscsiDisksClientListByIscsiServerResponse]

NewListByIscsiServerPager - Retrieves all the disks in a iSCSI server.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientListByIscsiServerOptions contains the optional parameters for the IscsiDisksClient.NewListByIscsiServerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListByIscsiServer.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiDisksClient().NewListByIscsiServerPager("HSDK-0NZI14MDTF", "HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ISCSIDiskList = armstorsimple1200series.ISCSIDiskList{
		// 	Value: []*armstorsimple1200series.ISCSIDisk{
		// 		{
		// 			Name: to.Ptr("Auto-TestIscsiDisk2"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk2"),
		// 			Properties: &armstorsimple1200series.ISCSIDiskProperties{
		// 				Description: to.Ptr("Demo IscsiDisk for SDK Test Tiered"),
		// 				AccessControlRecords: []*string{
		// 				},
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOnline),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Auto-TestIscsiDisk1"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF/disks/Auto-TestIscsiDisk1"),
		// 			Properties: &armstorsimple1200series.ISCSIDiskProperties{
		// 				Description: to.Ptr("Updated: Demo IscsiDisk for SDK Test Tiered"),
		// 				AccessControlRecords: []*string{
		// 				},
		// 				DataPolicy: to.Ptr(armstorsimple1200series.DataPolicyTiered),
		// 				DiskStatus: to.Ptr(armstorsimple1200series.DiskStatusOffline),
		// 				LocalUsedCapacityInBytes: to.Ptr[int64](0),
		// 				MonitoringStatus: to.Ptr(armstorsimple1200series.MonitoringStatusEnabled),
		// 				ProvisionedCapacityInBytes: to.Ptr[int64](536870912000),
		// 				UsedCapacityInBytes: to.Ptr[int64](0),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*IscsiDisksClient) NewListMetricDefinitionPager

func (client *IscsiDisksClient) NewListMetricDefinitionPager(deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, options *IscsiDisksClientListMetricDefinitionOptions) *runtime.Pager[IscsiDisksClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definitions for all metric aggregated at the iSCSI disk.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • diskName - The iSCSI disk name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientListMetricDefinitionOptions contains the optional parameters for the IscsiDisksClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiDisksClient().NewListMetricDefinitionPager("HSDK-WSJQERQW3F", "HSDK-WSJQERQW3F", "TieredIscsiDiskForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Disk"),
		// 					Value: to.Ptr("TieredIscsiDiskForSDKTest"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("PT6H"),
		// 					TimeGrain: to.Ptr("PT1M"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-WSJQERQW3F/iscsiservers/HSDK-WSJQERQW3F/disks/TieredIscsiDiskForSDKTest"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*IscsiDisksClient) NewListMetricsPager

func (client *IscsiDisksClient) NewListMetricsPager(deviceName string, iscsiServerName string, diskName string, resourceGroupName string, managerName string, options *IscsiDisksClientListMetricsOptions) *runtime.Pager[IscsiDisksClientListMetricsResponse]

NewListMetricsPager - Gets the iSCSI disk metrics

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • diskName - The iSCSI disk name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiDisksClientListMetricsOptions contains the optional parameters for the IscsiDisksClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiDisksClient().NewListMetricsPager("HSDK-WSJQERQW3F", "HSDK-WSJQERQW3F", "TieredIscsiDiskForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.IscsiDisksClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-10T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/disks/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Disk"),
		// 					Value: to.Ptr("TieredIscsiDiskForSDKTest"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-WSJQERQW3F/iscsiservers/HSDK-WSJQERQW3F/disks/TieredIscsiDiskForSDKTest"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 			},
		// 	}},
		// }
	}
}
Output:

type IscsiDisksClientBeginCreateOrUpdateOptions

type IscsiDisksClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

IscsiDisksClientBeginCreateOrUpdateOptions contains the optional parameters for the IscsiDisksClient.BeginCreateOrUpdate method.

type IscsiDisksClientBeginDeleteOptions

type IscsiDisksClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

IscsiDisksClientBeginDeleteOptions contains the optional parameters for the IscsiDisksClient.BeginDelete method.

type IscsiDisksClientCreateOrUpdateResponse

type IscsiDisksClientCreateOrUpdateResponse struct {
	// The iSCSI disk.
	ISCSIDisk
}

IscsiDisksClientCreateOrUpdateResponse contains the response from method IscsiDisksClient.BeginCreateOrUpdate.

type IscsiDisksClientDeleteResponse

type IscsiDisksClientDeleteResponse struct {
}

IscsiDisksClientDeleteResponse contains the response from method IscsiDisksClient.BeginDelete.

type IscsiDisksClientGetOptions

type IscsiDisksClientGetOptions struct {
}

IscsiDisksClientGetOptions contains the optional parameters for the IscsiDisksClient.Get method.

type IscsiDisksClientGetResponse

type IscsiDisksClientGetResponse struct {
	// The iSCSI disk.
	ISCSIDisk
}

IscsiDisksClientGetResponse contains the response from method IscsiDisksClient.Get.

type IscsiDisksClientListByDeviceOptions

type IscsiDisksClientListByDeviceOptions struct {
}

IscsiDisksClientListByDeviceOptions contains the optional parameters for the IscsiDisksClient.NewListByDevicePager method.

type IscsiDisksClientListByDeviceResponse

type IscsiDisksClientListByDeviceResponse struct {
	// Collection of Iscsi disk
	ISCSIDiskList
}

IscsiDisksClientListByDeviceResponse contains the response from method IscsiDisksClient.NewListByDevicePager.

type IscsiDisksClientListByIscsiServerOptions

type IscsiDisksClientListByIscsiServerOptions struct {
}

IscsiDisksClientListByIscsiServerOptions contains the optional parameters for the IscsiDisksClient.NewListByIscsiServerPager method.

type IscsiDisksClientListByIscsiServerResponse

type IscsiDisksClientListByIscsiServerResponse struct {
	// Collection of Iscsi disk
	ISCSIDiskList
}

IscsiDisksClientListByIscsiServerResponse contains the response from method IscsiDisksClient.NewListByIscsiServerPager.

type IscsiDisksClientListMetricDefinitionOptions

type IscsiDisksClientListMetricDefinitionOptions struct {
}

IscsiDisksClientListMetricDefinitionOptions contains the optional parameters for the IscsiDisksClient.NewListMetricDefinitionPager method.

type IscsiDisksClientListMetricDefinitionResponse

type IscsiDisksClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

IscsiDisksClientListMetricDefinitionResponse contains the response from method IscsiDisksClient.NewListMetricDefinitionPager.

type IscsiDisksClientListMetricsOptions

type IscsiDisksClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

IscsiDisksClientListMetricsOptions contains the optional parameters for the IscsiDisksClient.NewListMetricsPager method.

type IscsiDisksClientListMetricsResponse

type IscsiDisksClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

IscsiDisksClientListMetricsResponse contains the response from method IscsiDisksClient.NewListMetricsPager.

type IscsiServersClient

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

IscsiServersClient contains the methods for the IscsiServers group. Don't use this type directly, use NewIscsiServersClient() instead.

func NewIscsiServersClient

func NewIscsiServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IscsiServersClient, error)

NewIscsiServersClient creates a new instance of IscsiServersClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*IscsiServersClient) BeginBackupNow

func (client *IscsiServersClient) BeginBackupNow(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiServersClientBeginBackupNowOptions) (*runtime.Poller[IscsiServersClientBackupNowResponse], error)

BeginBackupNow - Backup the iSCSI server now. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientBeginBackupNowOptions contains the optional parameters for the IscsiServersClient.BeginBackupNow method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewIscsiServersClient().BeginBackupNow(ctx, "HSDK-0NZI14MDTF", "HSDK-0NZI14MDTF", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*IscsiServersClient) BeginCreateOrUpdate

func (client *IscsiServersClient) BeginCreateOrUpdate(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string, iscsiServer ISCSIServer, options *IscsiServersClientBeginCreateOrUpdateOptions) (*runtime.Poller[IscsiServersClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the iSCSI server. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • iscsiServer - The iSCSI server.
  • options - IscsiServersClientBeginCreateOrUpdateOptions contains the optional parameters for the IscsiServersClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewIscsiServersClient().BeginCreateOrUpdate(ctx, "HSDK-WSJQERQW3F", "HSDK-WSJQERQW3F", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.ISCSIServer{
		Name: to.Ptr("HSDK-WSJQERQW3F"),
		Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
		ID:   to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/iscsiServers/HSDK-WSJQERQW3F"),
		Properties: &armstorsimple1200series.ISCSIServerProperties{
			BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/backupScheduleGroups/Default-HSDK-WSJQERQW3F-BackupScheduleGroup"),
			ChapID:                to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK"),
			ReverseChapID:         to.Ptr(""),
			StorageDomainID:       to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-WSJQERQW3F-StorageDomain"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ISCSIServer = armstorsimple1200series.ISCSIServer{
	// 	Name: to.Ptr("HSDK-WSJQERQW3F"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/iscsiServers/HSDK-WSJQERQW3F"),
	// 	Properties: &armstorsimple1200series.ISCSIServerProperties{
	// 		BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/backupScheduleGroups/Default-HSDK-WSJQERQW3F-BackupScheduleGroup"),
	// 		ChapID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK"),
	// 		ReverseChapID: to.Ptr(""),
	// 		StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-WSJQERQW3F-StorageDomain"),
	// 	},
	// }
}
Output:

func (*IscsiServersClient) BeginDelete

func (client *IscsiServersClient) BeginDelete(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiServersClientBeginDeleteOptions) (*runtime.Poller[IscsiServersClientDeleteResponse], error)

BeginDelete - Deletes the iSCSI server. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientBeginDeleteOptions contains the optional parameters for the IscsiServersClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewIscsiServersClient().BeginDelete(ctx, "HSDK-UGU4PITWNI", "HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*IscsiServersClient) Get

func (client *IscsiServersClient) Get(ctx context.Context, deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiServersClientGetOptions) (IscsiServersClientGetResponse, error)

Get - Returns the properties of the specified iSCSI server name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientGetOptions contains the optional parameters for the IscsiServersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewIscsiServersClient().Get(ctx, "HSDK-WSJQERQW3F", "HSDK-WSJQERQW3F", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ISCSIServer = armstorsimple1200series.ISCSIServer{
	// 	Name: to.Ptr("HSDK-WSJQERQW3F"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/iscsiServers/HSDK-WSJQERQW3F"),
	// 	Properties: &armstorsimple1200series.ISCSIServerProperties{
	// 		BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/backupScheduleGroups/Default-HSDK-WSJQERQW3F-BackupScheduleGroup"),
	// 		ChapID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK"),
	// 		ReverseChapID: to.Ptr(""),
	// 		StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-WSJQERQW3F-StorageDomain"),
	// 	},
	// }
}
Output:

func (*IscsiServersClient) NewListByDevicePager

func (client *IscsiServersClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *IscsiServersClientListByDeviceOptions) *runtime.Pager[IscsiServersClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the iSCSI in a device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientListByDeviceOptions contains the optional parameters for the IscsiServersClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiServersClient().NewListByDevicePager("HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ISCSIServerList = armstorsimple1200series.ISCSIServerList{
		// 	Value: []*armstorsimple1200series.ISCSIServer{
		// 	},
		// }
	}
}
Output:

func (*IscsiServersClient) NewListByManagerPager

func (client *IscsiServersClient) NewListByManagerPager(resourceGroupName string, managerName string, options *IscsiServersClientListByManagerOptions) *runtime.Pager[IscsiServersClientListByManagerResponse]

NewListByManagerPager - Retrieves all the iSCSI servers in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientListByManagerOptions contains the optional parameters for the IscsiServersClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiServersClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ISCSIServerList = armstorsimple1200series.ISCSIServerList{
		// 	Value: []*armstorsimple1200series.ISCSIServer{
		// 		{
		// 			Name: to.Ptr("HSDK-WSJQERQW3F"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/iscsiServers/HSDK-WSJQERQW3F"),
		// 			Properties: &armstorsimple1200series.ISCSIServerProperties{
		// 				BackupScheduleGroupID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/backupScheduleGroups/Default-HSDK-WSJQERQW3F-BackupScheduleGroup"),
		// 				ChapID: to.Ptr(""),
		// 				ReverseChapID: to.Ptr(""),
		// 				StorageDomainID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-WSJQERQW3F-StorageDomain"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*IscsiServersClient) NewListMetricDefinitionPager

func (client *IscsiServersClient) NewListMetricDefinitionPager(deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiServersClientListMetricDefinitionOptions) *runtime.Pager[IscsiServersClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definitions for all metrics aggregated at iSCSI server.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientListMetricDefinitionOptions contains the optional parameters for the IscsiServersClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiServersClient().NewListMetricDefinitionPager("HSDK-UGU4PITWNI", "HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("IscsiServer"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("PT6H"),
		// 					TimeGrain: to.Ptr("PT1M"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("PT1H"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI/iscsiservers/HSDK-UGU4PITWNI"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*IscsiServersClient) NewListMetricsPager

func (client *IscsiServersClient) NewListMetricsPager(deviceName string, iscsiServerName string, resourceGroupName string, managerName string, options *IscsiServersClientListMetricsOptions) *runtime.Pager[IscsiServersClientListMetricsResponse]

NewListMetricsPager - Gets the iSCSI server metrics

Generated from API version 2016-10-01

  • deviceName - The device name.
  • iscsiServerName - The iSCSI server name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - IscsiServersClientListMetricsOptions contains the optional parameters for the IscsiServersClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewIscsiServersClient().NewListMetricsPager("HSDK-UGU4PITWNI", "HSDK-UGU4PITWNI", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.IscsiServersClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-10T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/iscsiServers/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("IscsiServer"),
		// 					Value: to.Ptr("HSDK-UGU4PITWNI"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374/devices/HSDK-UGU4PITWNI/iscsiservers/HSDK-UGU4PITWNI"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 			},
		// 	}},
		// }
	}
}
Output:

type IscsiServersClientBackupNowResponse

type IscsiServersClientBackupNowResponse struct {
}

IscsiServersClientBackupNowResponse contains the response from method IscsiServersClient.BeginBackupNow.

type IscsiServersClientBeginBackupNowOptions

type IscsiServersClientBeginBackupNowOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

IscsiServersClientBeginBackupNowOptions contains the optional parameters for the IscsiServersClient.BeginBackupNow method.

type IscsiServersClientBeginCreateOrUpdateOptions

type IscsiServersClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

IscsiServersClientBeginCreateOrUpdateOptions contains the optional parameters for the IscsiServersClient.BeginCreateOrUpdate method.

type IscsiServersClientBeginDeleteOptions

type IscsiServersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

IscsiServersClientBeginDeleteOptions contains the optional parameters for the IscsiServersClient.BeginDelete method.

type IscsiServersClientCreateOrUpdateResponse

type IscsiServersClientCreateOrUpdateResponse struct {
	// The iSCSI server.
	ISCSIServer
}

IscsiServersClientCreateOrUpdateResponse contains the response from method IscsiServersClient.BeginCreateOrUpdate.

type IscsiServersClientDeleteResponse

type IscsiServersClientDeleteResponse struct {
}

IscsiServersClientDeleteResponse contains the response from method IscsiServersClient.BeginDelete.

type IscsiServersClientGetOptions

type IscsiServersClientGetOptions struct {
}

IscsiServersClientGetOptions contains the optional parameters for the IscsiServersClient.Get method.

type IscsiServersClientGetResponse

type IscsiServersClientGetResponse struct {
	// The iSCSI server.
	ISCSIServer
}

IscsiServersClientGetResponse contains the response from method IscsiServersClient.Get.

type IscsiServersClientListByDeviceOptions

type IscsiServersClientListByDeviceOptions struct {
}

IscsiServersClientListByDeviceOptions contains the optional parameters for the IscsiServersClient.NewListByDevicePager method.

type IscsiServersClientListByDeviceResponse

type IscsiServersClientListByDeviceResponse struct {
	// Collection of Iscsi servers
	ISCSIServerList
}

IscsiServersClientListByDeviceResponse contains the response from method IscsiServersClient.NewListByDevicePager.

type IscsiServersClientListByManagerOptions

type IscsiServersClientListByManagerOptions struct {
}

IscsiServersClientListByManagerOptions contains the optional parameters for the IscsiServersClient.NewListByManagerPager method.

type IscsiServersClientListByManagerResponse

type IscsiServersClientListByManagerResponse struct {
	// Collection of Iscsi servers
	ISCSIServerList
}

IscsiServersClientListByManagerResponse contains the response from method IscsiServersClient.NewListByManagerPager.

type IscsiServersClientListMetricDefinitionOptions

type IscsiServersClientListMetricDefinitionOptions struct {
}

IscsiServersClientListMetricDefinitionOptions contains the optional parameters for the IscsiServersClient.NewListMetricDefinitionPager method.

type IscsiServersClientListMetricDefinitionResponse

type IscsiServersClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

IscsiServersClientListMetricDefinitionResponse contains the response from method IscsiServersClient.NewListMetricDefinitionPager.

type IscsiServersClientListMetricsOptions

type IscsiServersClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

IscsiServersClientListMetricsOptions contains the optional parameters for the IscsiServersClient.NewListMetricsPager method.

type IscsiServersClientListMetricsResponse

type IscsiServersClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

IscsiServersClientListMetricsResponse contains the response from method IscsiServersClient.NewListMetricsPager.

type Item

type Item struct {
	// REQUIRED
	Key *string

	// REQUIRED
	Value *string
}

func (Item) MarshalJSON added in v1.1.0

func (i Item) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Item.

func (*Item) UnmarshalJSON added in v1.1.0

func (i *Item) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Item.

type Job

type Job struct {
	// REQUIRED; The percentage of the job that is already complete
	PercentComplete *int32

	// REQUIRED; Current status of the job
	Status *JobStatus

	// The UTC time at which the job completed
	EndTime *time.Time

	// The Error details.
	Error *JobErrorDetails

	// Other properties of the job
	Properties *JobProperties

	// The UTC time at which the job was started
	StartTime *time.Time

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

Job - The Job.

func (Job) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Job.

func (*Job) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type Job.

type JobErrorDetails

type JobErrorDetails struct {
	// REQUIRED; The code intended for programmatic access
	Code *string

	// REQUIRED; The message intended to describe the error in detail
	Message *string

	// The error details.
	ErrorDetails []*JobErrorItem
}

JobErrorDetails - The job error information containing List of JobErrorItem.

func (JobErrorDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type JobErrorDetails.

func (*JobErrorDetails) UnmarshalJSON added in v1.1.0

func (j *JobErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobErrorDetails.

type JobErrorItem

type JobErrorItem struct {
	// REQUIRED; The code intended for programmatic access
	Code *string

	// REQUIRED; The message intended to describe the error in detail
	Message *string

	// The recommended actions.
	Recommendations []*string
}

JobErrorItem - The job error items.

func (JobErrorItem) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type JobErrorItem.

func (*JobErrorItem) UnmarshalJSON added in v1.1.0

func (j *JobErrorItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobErrorItem.

type JobFilter

type JobFilter struct {
	// REQUIRED; The job type.
	JobType *JobType

	// REQUIRED; The job status.
	Status *JobStatus

	// The start time of the job.
	StartTime *time.Time
}

JobFilter - Filters that can be specified for the job

func (JobFilter) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type JobFilter.

func (*JobFilter) UnmarshalJSON

func (j *JobFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobFilter.

type JobList

type JobList struct {
	// REQUIRED; The value.
	Value []*Job

	// The NextLink.
	NextLink *string
}

JobList - Collection of jobs

func (JobList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type JobList.

func (*JobList) UnmarshalJSON added in v1.1.0

func (j *JobList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobList.

type JobProperties

type JobProperties struct {
	// REQUIRED; Type of the job
	JobType *JobType

	// The time of the backup used for the failover.
	BackupPointInTime *time.Time

	// The device id in which the job is currently running
	DeviceID *string

	// The download progress.
	DownloadProgress *UpdateDownloadProgress

	// The entity identifier for which the job ran.
	EntityID *string

	// The entity type for which the job ran.
	EntityType *string

	// The install progress.
	InstallProgress *UpdateInstallProgress

	// Represents whether the job is cancellable or not
	IsCancellable *bool

	// The job stages.
	JobStages []*JobStage

	// The source device identifier of the failover job.
	SourceDeviceID *string

	// stats properties for the job
	Stats *JobStats

	// Id of the object that is created by the job
	TargetID *string

	// The target type of the backup.
	TargetType *TargetType
}

JobProperties - properties for the job

func (JobProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type JobProperties.

func (*JobProperties) UnmarshalJSON

func (j *JobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobProperties.

type JobStage

type JobStage struct {
	// REQUIRED; The stage status.
	StageStatus *JobStatus

	// The details of the stage.
	Detail *string

	// The error code of the stage if any.
	ErrorCode *string

	// The message of the job stage.
	Message *string
}

JobStage - Contains details about the multiple job stages of a job

func (JobStage) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type JobStage.

func (*JobStage) UnmarshalJSON added in v1.1.0

func (j *JobStage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStage.

type JobStats

type JobStats struct {
	// Completed work item count.
	CompletedWorkItemCount *int32

	// The estimated time remaining.
	EstimatedTimeRemaining *int32

	// Total work item count.
	TotalWorkItemCount *int32
}

JobStats - Stats that are available for all jobs in common

func (JobStats) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type JobStats.

func (*JobStats) UnmarshalJSON added in v1.1.0

func (j *JobStats) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStats.

type JobStatus

type JobStatus string

JobStatus - Current status of the job

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

func PossibleJobStatusValues

func PossibleJobStatusValues() []JobStatus

PossibleJobStatusValues returns the possible values for the JobStatus const type.

type JobType

type JobType string

JobType - The job type.

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

func PossibleJobTypeValues

func PossibleJobTypeValues() []JobType

PossibleJobTypeValues returns the possible values for the JobType const type.

type JobsClient

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

JobsClient contains the methods for the Jobs group. Don't use this type directly, use NewJobsClient() instead.

func NewJobsClient

func NewJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobsClient, error)

NewJobsClient creates a new instance of JobsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*JobsClient) Get

func (client *JobsClient) Get(ctx context.Context, deviceName string, jobName string, resourceGroupName string, managerName string, options *JobsClientGetOptions) (JobsClientGetResponse, error)

Get - Returns the properties of the specified job name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • jobName - The job name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - JobsClientGetOptions contains the optional parameters for the JobsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewJobsClient().Get(ctx, "HSDK-ARCSX4MVKZ", "06c7ee19-35a2-4248-bf1b-408009b31b63", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Job = armstorsimple1200series.Job{
	// 	Name: to.Ptr("06c7ee19-35a2-4248-bf1b-408009b31b63"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/06c7ee19-35a2-4248-bf1b-408009b31b63"),
	// 	EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:39.969Z"); return t}()),
	// 	PercentComplete: to.Ptr[int32](100),
	// 	Properties: &armstorsimple1200series.JobProperties{
	// 		BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
	// 		EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
	// 		EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
	// 		IsCancellable: to.Ptr(false),
	// 		JobStages: []*armstorsimple1200series.JobStage{
	// 		},
	// 		JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
	// 		Stats: &armstorsimple1200series.JobStats{
	// 			CompletedWorkItemCount: to.Ptr[int32](0),
	// 			EstimatedTimeRemaining: to.Ptr[int32](0),
	// 			TotalWorkItemCount: to.Ptr[int32](0),
	// 		},
	// 		TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
	// 	},
	// 	StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:03.804Z"); return t}()),
	// 	Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
	// }
}
Output:

func (*JobsClient) NewListByDevicePager

func (client *JobsClient) NewListByDevicePager(deviceName string, resourceGroupName string, managerName string, options *JobsClientListByDeviceOptions) *runtime.Pager[JobsClientListByDeviceResponse]

NewListByDevicePager - Retrieves all the jobs in a device.

Generated from API version 2016-10-01

  • deviceName - The device name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - JobsClientListByDeviceOptions contains the optional parameters for the JobsClient.NewListByDevicePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsListByDevice.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewJobsClient().NewListByDevicePager("HSDK-ARCSX4MVKZ", "ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.JobsClientListByDeviceOptions{Filter: to.Ptr("jobType%20eq%20'Backup'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.JobList = armstorsimple1200series.JobList{
		// 	Value: []*armstorsimple1200series.Job{
		// 		{
		// 			Name: to.Ptr("06c7ee19-35a2-4248-bf1b-408009b31b63"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/06c7ee19-35a2-4248-bf1b-408009b31b63"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:39.969Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:03.804Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("1d2de9da-a07f-4d73-a05f-01dd5a173128"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/1d2de9da-a07f-4d73-a05f-01dd5a173128"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T12:01:27.773Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T12:00:48.719Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("285ee145-913e-4885-bc01-6c904b1621be"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/285ee145-913e-4885-bc01-6c904b1621be"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T13:08:30.952Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T13:07:51.054Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("4886495a-9c0f-41ad-af0e-6a590b077be1"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/4886495a-9c0f-41ad-af0e-6a590b077be1"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:51:26.333Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:50:49.839Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("57d1a3de-0174-47b6-8c8e-cbbb778316cd"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/57d1a3de-0174-47b6-8c8e-cbbb778316cd"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:53:26.667Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:52:50.181Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("6a645e88-9cf4-4e9b-8125-b5fdf71e8bee"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/6a645e88-9cf4-4e9b-8125-b5fdf71e8bee"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:48:07.972Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:47:31.902Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("70bddfae-689e-4ca8-9e32-8937fcf680e5"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/70bddfae-689e-4ca8-9e32-8937fcf680e5"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:45:52.808Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:45:17.229Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("c8053f2d-a5dc-4ecb-b2d0-be8f2db988e3"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/c8053f2d-a5dc-4ecb-b2d0-be8f2db988e3"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:07:57.731Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:07:23.195Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 	}},
		// }
	}
}
Output:

func (*JobsClient) NewListByManagerPager

func (client *JobsClient) NewListByManagerPager(resourceGroupName string, managerName string, options *JobsClientListByManagerOptions) *runtime.Pager[JobsClientListByManagerResponse]

NewListByManagerPager - Retrieves all the jobs in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - JobsClientListByManagerOptions contains the optional parameters for the JobsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewJobsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.JobsClientListByManagerOptions{Filter: to.Ptr("jobType%20eq%20'Backup'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.JobList = armstorsimple1200series.JobList{
		// 	Value: []*armstorsimple1200series.Job{
		// 		{
		// 			Name: to.Ptr("06c7ee19-35a2-4248-bf1b-408009b31b63"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/06c7ee19-35a2-4248-bf1b-408009b31b63"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:39.969Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:14:03.804Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("1d2de9da-a07f-4d73-a05f-01dd5a173128"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/1d2de9da-a07f-4d73-a05f-01dd5a173128"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T12:01:27.773Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T12:00:48.719Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("22e77027-18fc-4f9c-930c-0ac77b079562"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/22e77027-18fc-4f9c-930c-0ac77b079562"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2010-01-01T00:00:00.000Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](0),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T13:36:28.744Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusRunning),
		// 		},
		// 		{
		// 			Name: to.Ptr("285ee145-913e-4885-bc01-6c904b1621be"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/285ee145-913e-4885-bc01-6c904b1621be"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T13:08:30.952Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T13:07:51.054Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("4886495a-9c0f-41ad-af0e-6a590b077be1"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/4886495a-9c0f-41ad-af0e-6a590b077be1"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:51:26.333Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:50:49.839Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("57d1a3de-0174-47b6-8c8e-cbbb778316cd"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/57d1a3de-0174-47b6-8c8e-cbbb778316cd"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:53:26.667Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:52:50.181Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("6a645e88-9cf4-4e9b-8125-b5fdf71e8bee"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/6a645e88-9cf4-4e9b-8125-b5fdf71e8bee"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:48:07.972Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:47:31.902Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("70bddfae-689e-4ca8-9e32-8937fcf680e5"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/70bddfae-689e-4ca8-9e32-8937fcf680e5"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:45:52.808Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:45:17.229Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 		},
		// 		{
		// 			Name: to.Ptr("c8053f2d-a5dc-4ecb-b2d0-be8f2db988e3"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/devices/jobs"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ/jobs/c8053f2d-a5dc-4ecb-b2d0-be8f2db988e3"),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:07:57.731Z"); return t}()),
		// 			PercentComplete: to.Ptr[int32](100),
		// 			Properties: &armstorsimple1200series.JobProperties{
		// 				BackupPointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				DeviceID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-ARCSX4MVKZ"),
		// 				EntityType: to.Ptr("Microsoft.StorSimple/managers/devices"),
		// 				IsCancellable: to.Ptr(false),
		// 				JobStages: []*armstorsimple1200series.JobStage{
		// 				},
		// 				JobType: to.Ptr(armstorsimple1200series.JobTypeBackup),
		// 				Stats: &armstorsimple1200series.JobStats{
		// 					CompletedWorkItemCount: to.Ptr[int32](0),
		// 					EstimatedTimeRemaining: to.Ptr[int32](0),
		// 					TotalWorkItemCount: to.Ptr[int32](0),
		// 				},
		// 				TargetType: to.Ptr(armstorsimple1200series.TargetTypeFileServer),
		// 			},
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T11:07:23.195Z"); return t}()),
		// 			Status: to.Ptr(armstorsimple1200series.JobStatusSucceeded),
		// 	}},
		// }
	}
}
Output:

type JobsClientGetOptions

type JobsClientGetOptions struct {
}

JobsClientGetOptions contains the optional parameters for the JobsClient.Get method.

type JobsClientGetResponse

type JobsClientGetResponse struct {
	// The Job.
	Job
}

JobsClientGetResponse contains the response from method JobsClient.Get.

type JobsClientListByDeviceOptions

type JobsClientListByDeviceOptions struct {
	// OData Filter options
	Filter *string
}

JobsClientListByDeviceOptions contains the optional parameters for the JobsClient.NewListByDevicePager method.

type JobsClientListByDeviceResponse

type JobsClientListByDeviceResponse struct {
	// Collection of jobs
	JobList
}

JobsClientListByDeviceResponse contains the response from method JobsClient.NewListByDevicePager.

type JobsClientListByManagerOptions

type JobsClientListByManagerOptions struct {
	// OData Filter options
	Filter *string
}

JobsClientListByManagerOptions contains the optional parameters for the JobsClient.NewListByManagerPager method.

type JobsClientListByManagerResponse

type JobsClientListByManagerResponse struct {
	// Collection of jobs
	JobList
}

JobsClientListByManagerResponse contains the response from method JobsClient.NewListByManagerPager.

type KeyRolloverStatus

type KeyRolloverStatus string

KeyRolloverStatus - The key rollover status which indicates if key rollover is required or not. If secrets encryption has been upgraded, then it requires key rollover.

const (
	KeyRolloverStatusNotRequired KeyRolloverStatus = "NotRequired"
	KeyRolloverStatusRequired    KeyRolloverStatus = "Required"
)

func PossibleKeyRolloverStatusValues

func PossibleKeyRolloverStatusValues() []KeyRolloverStatus

PossibleKeyRolloverStatusValues returns the possible values for the KeyRolloverStatus const type.

type Manager

type Manager struct {
	// REQUIRED; The Geo location of the Manager
	Location *string

	// ETag of the Manager
	Etag *string

	// List of properties of the Manager
	Properties *ManagerProperties

	// Tags attached to the Manager
	Tags map[string]*string

	// READ-ONLY; The Resource Id
	ID *string

	// READ-ONLY; The Resource Name
	Name *string

	// READ-ONLY; The Resource type
	Type *string
}

Manager - The StorSimple Manager

func (Manager) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Manager.

func (*Manager) UnmarshalJSON added in v1.1.0

func (m *Manager) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Manager.

type ManagerExtendedInfo

type ManagerExtendedInfo struct {
	// REQUIRED; The extended info properties.
	Properties *ManagerExtendedInfoProperties

	// ETag of the Resource
	Etag *string

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

ManagerExtendedInfo - The extended info of the manager.

func (ManagerExtendedInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ManagerExtendedInfo.

func (*ManagerExtendedInfo) UnmarshalJSON added in v1.1.0

func (m *ManagerExtendedInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerExtendedInfo.

type ManagerExtendedInfoProperties

type ManagerExtendedInfoProperties struct {
	// REQUIRED; Represents the encryption algorithm used to encrypt the other keys. None - if EncryptionKey is saved in plain
	// text format. AlgorithmName - if encryption is used
	Algorithm *string

	// REQUIRED; Represents the CIK of the resource
	IntegrityKey *string

	// Represents the CEK of the resource
	EncryptionKey *string

	// Represents the Cert thumbprint that was used to encrypt the CEK
	EncryptionKeyThumbprint *string

	// Represents the portal thumbprint which can be used optionally to encrypt the entire data before storing it.
	PortalCertificateThumbprint *string

	// Represents the version of the ExtendedInfo object being persisted
	Version *string
}

ManagerExtendedInfoProperties - Properties of the ManagerExtendedInfo

func (ManagerExtendedInfoProperties) MarshalJSON added in v1.1.0

func (m ManagerExtendedInfoProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagerExtendedInfoProperties.

func (*ManagerExtendedInfoProperties) UnmarshalJSON added in v1.1.0

func (m *ManagerExtendedInfoProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerExtendedInfoProperties.

type ManagerIntrinsicSettings

type ManagerIntrinsicSettings struct {
	// REQUIRED; Refers to the type of the StorSimple Manager
	Type *ManagerType
}

ManagerIntrinsicSettings - Intrinsic settings which refers to the type of the StorSimple manager

func (ManagerIntrinsicSettings) MarshalJSON added in v1.1.0

func (m ManagerIntrinsicSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagerIntrinsicSettings.

func (*ManagerIntrinsicSettings) UnmarshalJSON added in v1.1.0

func (m *ManagerIntrinsicSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerIntrinsicSettings.

type ManagerList

type ManagerList struct {
	// REQUIRED; List of Managers
	Value []*Manager
}

ManagerList - List of StorSimple Managers under a particular resourceGroup

func (ManagerList) MarshalJSON added in v1.1.0

func (m ManagerList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagerList.

func (*ManagerList) UnmarshalJSON added in v1.1.0

func (m *ManagerList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerList.

type ManagerPatch

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

ManagerPatch - The StorSimple Manager patch.

func (ManagerPatch) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ManagerPatch.

func (*ManagerPatch) UnmarshalJSON added in v1.1.0

func (m *ManagerPatch) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerPatch.

type ManagerProperties

type ManagerProperties struct {
	// Specifies if the Manager is Garda or Helsinki
	CisIntrinsicSettings *ManagerIntrinsicSettings

	// Specifies the Sku
	SKU *ManagerSKU

	// READ-ONLY; Specifies the state of the resource as it is getting provisioned. Value of "Succeeded" means the Manager was
	// successfully created
	ProvisioningState *string
}

ManagerProperties - The properties of the Manager

func (ManagerProperties) MarshalJSON added in v1.1.0

func (m ManagerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagerProperties.

func (*ManagerProperties) UnmarshalJSON added in v1.1.0

func (m *ManagerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerProperties.

type ManagerSKU

type ManagerSKU struct {
	// CONSTANT; Refers to the sku name which should be "Standard"
	// Field has constant value "Standard", any specified value is ignored.
	Name *string
}

ManagerSKU - The Sku.

func (ManagerSKU) MarshalJSON added in v1.1.0

func (m ManagerSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagerSKU.

func (*ManagerSKU) UnmarshalJSON added in v1.1.0

func (m *ManagerSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagerSKU.

type ManagerType

type ManagerType string

ManagerType - Refers to the type of the StorSimple Manager

const (
	ManagerTypeGardaV1    ManagerType = "GardaV1"
	ManagerTypeHelsinkiV1 ManagerType = "HelsinkiV1"
)

func PossibleManagerTypeValues

func PossibleManagerTypeValues() []ManagerType

PossibleManagerTypeValues returns the possible values for the ManagerType const type.

type ManagersClient

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

ManagersClient contains the methods for the Managers group. Don't use this type directly, use NewManagersClient() instead.

func NewManagersClient

func NewManagersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagersClient, error)

NewManagersClient creates a new instance of ManagersClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ManagersClient) CreateExtendedInfo

func (client *ManagersClient) CreateExtendedInfo(ctx context.Context, resourceGroupName string, managerName string, managerExtendedInfo ManagerExtendedInfo, options *ManagersClientCreateExtendedInfoOptions) (ManagersClientCreateExtendedInfoResponse, error)

CreateExtendedInfo - Creates the extended info of the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • managerExtendedInfo - The manager extended information.
  • options - ManagersClientCreateExtendedInfoOptions contains the optional parameters for the ManagersClient.CreateExtendedInfo method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersCreateExtendedInfo.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().CreateExtendedInfo(ctx, "ResourceGroupForSDKTest", "ManagerForSDKTest2", armstorsimple1200series.ManagerExtendedInfo{
		Name: to.Ptr("vaultExtendedInfo"),
		Type: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation"),
		ID:   to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTestextendedInformation/vaultExtendedInfo"),
		Etag: to.Ptr("6531d5d7-3ced-4f78-83b6-804368f2ca0c"),
		Properties: &armstorsimple1200series.ManagerExtendedInfoProperties{
			Algorithm:    to.Ptr("SHA256"),
			IntegrityKey: to.Ptr("e6501980-7efe-4602-bb0e-3cb9a08a6003"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ManagerExtendedInfo = armstorsimple1200series.ManagerExtendedInfo{
	// 	Name: to.Ptr("vaultExtendedInfo"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/cleanupservice/providers/Microsoft.StorSimple/Managers/res-jem-helextendedInformation/vaultExtendedInfo"),
	// 	Etag: to.Ptr("e096714c-e3a4-49b5-828e-1d0320b38689"),
	// 	Properties: &armstorsimple1200series.ManagerExtendedInfoProperties{
	// 		Algorithm: to.Ptr("SHA256"),
	// 		IntegrityKey: to.Ptr("b40efdf9-cd98-4409-a669-6886ad4e6005"),
	// 	},
	// }
}
Output:

func (*ManagersClient) CreateOrUpdate

func (client *ManagersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managerName string, manager Manager, options *ManagersClientCreateOrUpdateOptions) (ManagersClientCreateOrUpdateResponse, error)

CreateOrUpdate - Creates or updates the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • manager - The manager.
  • options - ManagersClientCreateOrUpdateOptions contains the optional parameters for the ManagersClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().CreateOrUpdate(ctx, "ResourceGroupForSDKTest", "hManagerForSDKTest", armstorsimple1200series.Manager{
		Name:     to.Ptr("hManagerForSDKTest"),
		Location: to.Ptr("westus"),
		Properties: &armstorsimple1200series.ManagerProperties{
			CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
				Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
			},
			SKU: &armstorsimple1200series.ManagerSKU{
				Name: to.Ptr("Standard"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Manager = armstorsimple1200series.Manager{
	// 	Name: to.Ptr("hManagerForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTest"),
	// 	Location: to.Ptr("westus"),
	// 	Tags: map[string]*string{
	// 		"TagName": to.Ptr("Demo manager for SDK test"),
	// 	},
	// 	Etag: to.Ptr("W/\"datetime'2018-08-12T15%3A10%3A31.6040125Z'\""),
	// 	Properties: &armstorsimple1200series.ManagerProperties{
	// 		CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
	// 			Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
	// 		},
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 		SKU: &armstorsimple1200series.ManagerSKU{
	// 			Name: to.Ptr("Standard"),
	// 		},
	// 	},
	// }
}
Output:

func (*ManagersClient) Delete

func (client *ManagersClient) Delete(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientDeleteOptions) (ManagersClientDeleteResponse, error)

Delete - Deletes the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientDeleteOptions contains the optional parameters for the ManagersClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewManagersClient().Delete(ctx, "ResourceGroupForSDKTest", "ManagerForSDKTest2", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*ManagersClient) DeleteExtendedInfo

func (client *ManagersClient) DeleteExtendedInfo(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientDeleteExtendedInfoOptions) (ManagersClientDeleteExtendedInfoResponse, error)

DeleteExtendedInfo - Deletes the extended info of the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientDeleteExtendedInfoOptions contains the optional parameters for the ManagersClient.DeleteExtendedInfo method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewManagersClient().DeleteExtendedInfo(ctx, "ResourceGroupForSDKTest", "hManagerForSDKTest", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*ManagersClient) Get

func (client *ManagersClient) Get(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientGetOptions) (ManagersClientGetResponse, error)

Get - Returns the properties of the specified manager name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientGetOptions contains the optional parameters for the ManagersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().Get(ctx, "ResourceGroupForSDKTest", "hManagerForSDKTest", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Manager = armstorsimple1200series.Manager{
	// 	Name: to.Ptr("hManagerForSDKTest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTest"),
	// 	Location: to.Ptr("westus"),
	// 	Tags: map[string]*string{
	// 		"TagName": to.Ptr("Demo manager for SDK test"),
	// 	},
	// 	Etag: to.Ptr("W/\"datetime'2018-08-12T15%3A10%3A31.6040125Z'\""),
	// 	Properties: &armstorsimple1200series.ManagerProperties{
	// 		CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
	// 			Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
	// 		},
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 		SKU: &armstorsimple1200series.ManagerSKU{
	// 			Name: to.Ptr("Standard"),
	// 		},
	// 	},
	// }
}
Output:

func (*ManagersClient) GetEncryptionKey

func (client *ManagersClient) GetEncryptionKey(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientGetEncryptionKeyOptions) (ManagersClientGetEncryptionKeyResponse, error)

GetEncryptionKey - Returns the symmetric encryption key of the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientGetEncryptionKeyOptions contains the optional parameters for the ManagersClient.GetEncryptionKey method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetEncryptionKey.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().GetEncryptionKey(ctx, "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SymmetricEncryptedSecret = armstorsimple1200series.SymmetricEncryptedSecret{
	// 	EncryptionAlgorithm: to.Ptr(armstorsimple1200series.EncryptionAlgorithmAES256),
	// 	Value: to.Ptr("EAAAAEVOuLjZQYRnJxD6RjOyBWGYfyw8wqXci5WHh8QfS98ouU65SFHHVWs2MdD2KeND3ZFM989gwfMaOVwiSmdMvi30/VnoNZIu7rhGG6SKVhUSHfOSZyb2eUufvwPXNUKa/mhVPJ4SH1uHUHvG1bjWaFZ2ojo1ff7e0xQlifYWZQdSi6ScxzjI41EdIT7Hspp+xtU2y+8Q5ALDgASRdVHdHYRmSF1/uyDXoAU8spTLrm/Ug8X0cadt1w+pAX0fnx3PPyfsNRVsbWofLtm1CirKv2euA8TamgFz82/xI4vT1m2RopLFc2W6sXGeSESWK2fUlV6WLjTqPwGXSJ7ZQ5/QcIP08QC1Z3K7muemFtSx+sr8/kjQIufxjD/A7cTN77bpTBCU7l1GxmdPFMlZxsVrU23SXAdu4JWcw6KrdSlxjig6GBHCHqCtaocjpD46GkRiGye80JudJqroWz0F14X9eOa48He3K/HLZnRdmaNKHClzApW3hCZwiI1r0NhHi9mLn3Laiy920L+kLRDghRsps9gMpYbQFYNNnQMAnCdWQ36TUbQWqqqcLVpgxaKvzbsXpYzL6ntlztmIp9RZ+i2r9ZoGGg4kIkiUNhpSVZ8k05H49zc1fJKapVER1MbEKApVBiC9ck+TbNMjkzOHY39QBJK35EYz2qfkGPTIDrnpdK4GiBXEDnq9ERx0CHVz8qLIRn538pZp8jktHft5WvOWk0Zw31+lSPnLCX1qBfnqT6ulH08VozwJqidcb2fOfMJ8BRgYupP47RGUa6gdRMMUmS3KgDetX0qXaqO4krCQYsiA3PeQwuZWVGA3eeALUQsizDFS1+esWVP/z9HgJclv4ydHjrMTf+GyWVozGJui9zqMz3B2otWZmWcyWAe4iE9a2w7P1MLgGvSShhQSU7S54mR4QF7WOArpaYUqe4VoZdLaTHS9bVDBrjPbFrrjfQlYNt8CPN2KmpeGsdicNlCeq5JCG9Ys7rpjr1QM49V0yV6sfOgE8rYldebwtJGwDnuq09LrGAIfuzVQ59AjW6YScPBSNeCnsyk4bC1I1zDKdEhCHspR8/3w++dAMH3wZ6fCEbOLgTy06lHVPyKyINVcDY/TLbSz04v9gFySujzSrt1qCrL5aK4eGxsANlVVwxXIGlTcyH5MYlrnNCIToIrdfIqmkjTea9WJ4buaz3DAnDsA+4ai+3vYMwJakE2mRxW5YIQHNEgoaY460a5HRCmnjDvpAmQ6ICB7uR/JunfQ2Jc3PI889dY8YOfy8YWHqzbXMUN7eRWRTp6A1W6J2CFtKLflDu0t+ZGX4Pa27zK4pN6ml410hoYGjet3+O7bxL/z3aR9cOgmV6kMhboOhvMaj8V43zSiq9ONhZgDZmVzhwP4oaKP/O1uhWqwbhGVOeAk8hCHTiD3FUXlrJVm3IgUSn8lL5R82cwyol578BKernVBP5PT4vwyF1aWPaOyxx+kITBcALBmlQv3JanW5j9FkFP0gC5oy7KitEXYac132oe7HiOQ7t1TJCoem5kxK3bYLg=="),
	// 	ValueCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
	// }
}
Output:

func (*ManagersClient) GetEncryptionSettings

func (client *ManagersClient) GetEncryptionSettings(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientGetEncryptionSettingsOptions) (ManagersClientGetEncryptionSettingsResponse, error)

GetEncryptionSettings - Returns the encryption settings of the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientGetEncryptionSettingsOptions contains the optional parameters for the ManagersClient.GetEncryptionSettings method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetEncryptionSettings.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().GetEncryptionSettings(ctx, "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.EncryptionSettings = armstorsimple1200series.EncryptionSettings{
	// 	Name: to.Ptr("default"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/encryptionSettings"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/encryptionSettings/default"),
	// 	Properties: &armstorsimple1200series.EncryptionSettingsProperties{
	// 		EncryptionStatus: to.Ptr(armstorsimple1200series.EncryptionStatusEnabled),
	// 		KeyRolloverStatus: to.Ptr(armstorsimple1200series.KeyRolloverStatusNotRequired),
	// 	},
	// }
}
Output:

func (*ManagersClient) GetExtendedInfo

func (client *ManagersClient) GetExtendedInfo(ctx context.Context, resourceGroupName string, managerName string, options *ManagersClientGetExtendedInfoOptions) (ManagersClientGetExtendedInfoResponse, error)

GetExtendedInfo - Returns the extended information of the specified manager name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientGetExtendedInfoOptions contains the optional parameters for the ManagersClient.GetExtendedInfo method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetExtendedInfo.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().GetExtendedInfo(ctx, "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ManagerExtendedInfo = armstorsimple1200series.ManagerExtendedInfo{
	// 	Name: to.Ptr("vaultExtendedInfo"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hAzureSDKOperationsextendedInformation/vaultExtendedInfo"),
	// 	Etag: to.Ptr("72227c97-ecab-4f3d-8e89-7ab2e9681735"),
	// 	Properties: &armstorsimple1200series.ManagerExtendedInfoProperties{
	// 		Algorithm: to.Ptr("None"),
	// 		IntegrityKey: to.Ptr("84be7258-8d22-43ba-896a-074616e0a00c"),
	// 	},
	// }
}
Output:

func (*ManagersClient) NewListByResourceGroupPager

func (client *ManagersClient) NewListByResourceGroupPager(resourceGroupName string, options *ManagersClientListByResourceGroupOptions) *runtime.Pager[ManagersClientListByResourceGroupResponse]

NewListByResourceGroupPager - Retrieves all the managers in a resource group.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • options - ManagersClientListByResourceGroupOptions contains the optional parameters for the ManagersClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagersClient().NewListByResourceGroupPager("ResourceGroupForSDKTest", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ManagerList = armstorsimple1200series.ManagerList{
		// 	Value: []*armstorsimple1200series.Manager{
		// 		{
		// 			Name: to.Ptr("hManagerForSDKTest"),
		// 			Type: to.Ptr("Microsoft.StorSimple/Managers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTest"),
		// 			Location: to.Ptr("westus"),
		// 			Tags: map[string]*string{
		// 				"TagName": to.Ptr("Demo manager for SDK test"),
		// 			},
		// 			Etag: to.Ptr("W/\"datetime'2018-08-12T15%3A10%3A35.3685957Z'\""),
		// 			Properties: &armstorsimple1200series.ManagerProperties{
		// 				CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
		// 					Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
		// 				},
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 				SKU: &armstorsimple1200series.ManagerSKU{
		// 					Name: to.Ptr("Standard"),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("hAzureSDKOperations"),
		// 			Type: to.Ptr("Microsoft.StorSimple/Managers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hAzureSDKOperations"),
		// 			Location: to.Ptr("southeastasia"),
		// 			Etag: to.Ptr("W/\"datetime'2018-08-07T16%3A06%3A24.4590789Z'\""),
		// 			Properties: &armstorsimple1200series.ManagerProperties{
		// 				CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
		// 					Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
		// 				},
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 				SKU: &armstorsimple1200series.ManagerSKU{
		// 					Name: to.Ptr("Standard"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ManagersClient) NewListMetricDefinitionPager

func (client *ManagersClient) NewListMetricDefinitionPager(resourceGroupName string, managerName string, options *ManagersClientListMetricDefinitionOptions) *runtime.Pager[ManagersClientListMetricDefinitionResponse]

NewListMetricDefinitionPager - Retrieves metric definition of all metrics aggregated at manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientListMetricDefinitionOptions contains the optional parameters for the ManagersClient.NewListMetricDefinitionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListMetricDefinition.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagersClient().NewListMetricDefinitionPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricDefinitionList = armstorsimple1200series.MetricDefinitionList{
		// 	Value: []*armstorsimple1200series.MetricDefinition{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Manager"),
		// 					Value: to.Ptr("hAzureSDKOperations"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P3M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 		},
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/metricsDefinitions"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Manager"),
		// 					Value: to.Ptr("hAzureSDKOperations"),
		// 			}},
		// 			MetricAvailabilities: []*armstorsimple1200series.MetricAvailablity{
		// 				{
		// 					Retention: to.Ptr("P7D"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P3M"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 				},
		// 				{
		// 					Retention: to.Ptr("P1Y"),
		// 					TimeGrain: to.Ptr("P1D"),
		// 			}},
		// 			PrimaryAggregationType: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 	}},
		// }
	}
}
Output:

func (*ManagersClient) NewListMetricsPager

func (client *ManagersClient) NewListMetricsPager(resourceGroupName string, managerName string, options *ManagersClientListMetricsOptions) *runtime.Pager[ManagersClientListMetricsResponse]

NewListMetricsPager - Gets the manager metrics

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - ManagersClientListMetricsOptions contains the optional parameters for the ManagersClient.NewListMetricsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListMetrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagersClient().NewListMetricsPager("ResourceGroupForSDKTest", "hAzureSDKOperations", &armstorsimple1200series.ManagersClientListMetricsOptions{Filter: to.Ptr("startTime%20ge%20'2018-08-04T18:30:00Z'%20and%20endTime%20le%20'2018-08-11T18:30:00Z'")})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.MetricList = armstorsimple1200series.MetricList{
		// 	Value: []*armstorsimple1200series.Metrics{
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Primary Storage Used"),
		// 				Value: to.Ptr("HostUsedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Manager"),
		// 					Value: to.Ptr("hAzureSDKOperations"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-04T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-07T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](1107165184),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](1107165184),
		// 					Minimum: to.Ptr[float64](1107165184),
		// 					Sum: to.Ptr[float64](1107165184),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](928645120),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](928645120),
		// 					Minimum: to.Ptr[float64](928645120),
		// 					Sum: to.Ptr[float64](928645120),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-08T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](884342784),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](884342784),
		// 					Minimum: to.Ptr[float64](884342784),
		// 					Sum: to.Ptr[float64](884342784),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T00:00:00.000Z"); return t}()),
		// 			}},
		// 		},
		// 		{
		// 			Name: &armstorsimple1200series.MetricName{
		// 				LocalizedValue: to.Ptr("Cloud Storage Used"),
		// 				Value: to.Ptr("CloudConsumedStorage"),
		// 			},
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/metrics"),
		// 			Dimensions: []*armstorsimple1200series.MetricDimension{
		// 				{
		// 					Name: to.Ptr("Manager"),
		// 					Value: to.Ptr("hAzureSDKOperations"),
		// 			}},
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T18:30:00.000Z"); return t}()),
		// 			PrimaryAggregation: to.Ptr(armstorsimple1200series.MetricAggregationTypeAverage),
		// 			ResourceID: to.Ptr("https://pod01-cis2.sea.storsimple.windowsazure.com/managers/4239154091695873374"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-04T18:30:00.000Z"); return t}()),
		// 			TimeGrain: to.Ptr("1.00:00:00"),
		// 			Unit: to.Ptr(armstorsimple1200series.MetricUnitBytes),
		// 			Values: []*armstorsimple1200series.MetricData{
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-07T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](0),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](0),
		// 					Minimum: to.Ptr[float64](0),
		// 					Sum: to.Ptr[float64](0),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-08T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](298096),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](298096),
		// 					Minimum: to.Ptr[float64](298096),
		// 					Sum: to.Ptr[float64](298096),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-11T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](274728),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](274728),
		// 					Minimum: to.Ptr[float64](274728),
		// 					Sum: to.Ptr[float64](274728),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T00:00:00.000Z"); return t}()),
		// 				},
		// 				{
		// 					Average: to.Ptr[float64](231725),
		// 					Count: to.Ptr[int32](1),
		// 					Maximum: to.Ptr[float64](231725),
		// 					Minimum: to.Ptr[float64](231725),
		// 					Sum: to.Ptr[float64](231725),
		// 					TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T00:00:00.000Z"); return t}()),
		// 			}},
		// 	}},
		// }
	}
}
Output:

func (*ManagersClient) NewListPager

NewListPager - Retrieves all the managers in a subscription.

Generated from API version 2016-10-01

  • options - ManagersClientListOptions contains the optional parameters for the ManagersClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersList.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagersClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ManagerList = armstorsimple1200series.ManagerList{
		// 	Value: []*armstorsimple1200series.Manager{
		// 		{
		// 			Name: to.Ptr("AuTo1117160133591"),
		// 			Type: to.Ptr("Microsoft.StorSimple/Managers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/GroupForArmAutomation/providers/Microsoft.StorSimple/Managers/AuTo1117160133591"),
		// 			Location: to.Ptr("westus"),
		// 			Etag: to.Ptr("W/\"datetime'2017-03-22T09%3A58%3A03.0020106Z'\""),
		// 			Properties: &armstorsimple1200series.ManagerProperties{
		// 				CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
		// 					Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
		// 				},
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 				SKU: &armstorsimple1200series.ManagerSKU{
		// 					Name: to.Ptr("Standard"),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("GAuTosumanths-pc10227181824221"),
		// 			Type: to.Ptr("Microsoft.StorSimple/Managers"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/GroupForArmAutomation/providers/Microsoft.StorSimple/Managers/GAuTosumanths-pc10227181824221"),
		// 			Location: to.Ptr("westus"),
		// 			Etag: to.Ptr("W/\"datetime'2018-02-27T12%3A56%3A02.0580397Z'\""),
		// 			Properties: &armstorsimple1200series.ManagerProperties{
		// 				CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
		// 					Type: to.Ptr(armstorsimple1200series.ManagerTypeGardaV1),
		// 				},
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 				SKU: &armstorsimple1200series.ManagerSKU{
		// 					Name: to.Ptr("Standard"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ManagersClient) Update

func (client *ManagersClient) Update(ctx context.Context, resourceGroupName string, managerName string, parameters ManagerPatch, options *ManagersClientUpdateOptions) (ManagersClientUpdateResponse, error)

Update - Updates the StorSimple Manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • parameters - The manager update parameters.
  • options - ManagersClientUpdateOptions contains the optional parameters for the ManagersClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().Update(ctx, "ResourceGroupForSDKTest", "ManagerForSDKTest2", armstorsimple1200series.ManagerPatch{
		Tags: map[string]*string{
			"TagName": to.Ptr("ForSDKTest"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Manager = armstorsimple1200series.Manager{
	// 	Name: to.Ptr("ManagerForSDKTest2"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers"),
	// 	ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/ManagerForSDKTest2"),
	// 	Location: to.Ptr("westus"),
	// 	Tags: map[string]*string{
	// 		"TagName": to.Ptr("ForSDKTest"),
	// 	},
	// 	Etag: to.Ptr("W/\"datetime'2017-06-18T16%3A13%3A43.8476579Z'\""),
	// 	Properties: &armstorsimple1200series.ManagerProperties{
	// 		CisIntrinsicSettings: &armstorsimple1200series.ManagerIntrinsicSettings{
	// 			Type: to.Ptr(armstorsimple1200series.ManagerTypeHelsinkiV1),
	// 		},
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 		SKU: &armstorsimple1200series.ManagerSKU{
	// 			Name: to.Ptr("Standard"),
	// 		},
	// 	},
	// }
}
Output:

func (*ManagersClient) UpdateExtendedInfo

func (client *ManagersClient) UpdateExtendedInfo(ctx context.Context, resourceGroupName string, managerName string, ifMatch string, managerExtendedInfo ManagerExtendedInfo, options *ManagersClientUpdateExtendedInfoOptions) (ManagersClientUpdateExtendedInfoResponse, error)

UpdateExtendedInfo - Updates the extended info of the manager. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • ifMatch - Pass the ETag of ExtendedInfo fetched from GET call
  • managerExtendedInfo - The manager extended information.
  • options - ManagersClientUpdateExtendedInfoOptions contains the optional parameters for the ManagersClient.UpdateExtendedInfo method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUpdateExtendedInfo.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().UpdateExtendedInfo(ctx, "ResourceGroupForSDKTest", "hManagerForSDKTest", "6531d5d7-3ced-4f78-83b6-804368f2ca0c", armstorsimple1200series.ManagerExtendedInfo{
		Name: to.Ptr("vaultExtendedInfo"),
		Type: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation"),
		ID:   to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTestextendedInformation/vaultExtendedInfo"),
		Etag: to.Ptr("6531d5d7-3ced-4f78-83b6-804368f2ca0c"),
		Properties: &armstorsimple1200series.ManagerExtendedInfoProperties{
			Algorithm:    to.Ptr("SHA256"),
			IntegrityKey: to.Ptr("e6501980-7efe-4602-bb0e-3cb9a08a6003"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ManagerExtendedInfo = armstorsimple1200series.ManagerExtendedInfo{
	// 	Name: to.Ptr("vaultExtendedInfo"),
	// 	Type: to.Ptr("Microsoft.StorSimple/Managers/extendedInformation"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTestextendedInformation/vaultExtendedInfo"),
	// 	Etag: to.Ptr("85eaf93a-c415-49ad-a729-01934b3292dd"),
	// 	Properties: &armstorsimple1200series.ManagerExtendedInfoProperties{
	// 		Algorithm: to.Ptr("SHA256"),
	// 		IntegrityKey: to.Ptr("e6501980-7efe-4602-bb0e-3cb9a08a6003"),
	// 	},
	// }
}
Output:

func (*ManagersClient) UploadRegistrationCertificate

func (client *ManagersClient) UploadRegistrationCertificate(ctx context.Context, certificateName string, resourceGroupName string, managerName string, uploadCertificateRequestrequest UploadCertificateRequest, options *ManagersClientUploadRegistrationCertificateOptions) (ManagersClientUploadRegistrationCertificateResponse, error)

UploadRegistrationCertificate - Upload Vault Cred Certificate. Returns UploadCertificateResponse If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • certificateName - Certificate Name
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • uploadCertificateRequestrequest - UploadCertificateRequest Request
  • options - ManagersClientUploadRegistrationCertificateOptions contains the optional parameters for the ManagersClient.UploadRegistrationCertificate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUploadRegistrationCertificate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagersClient().UploadRegistrationCertificate(ctx, "windows", "ResourceGroupForSDKTest", "ManagerForSDKTest2", armstorsimple1200series.UploadCertificateRequest{
		ContractVersion: to.Ptr(armstorsimple1200series.ContractVersionsV201212),
		Properties: &armstorsimple1200series.RawCertificateData{
			AuthType:    to.Ptr(armstorsimple1200series.AuthTypeAzureActiveDirectory),
			Certificate: to.Ptr("MIIC3TCCAcWgAwIBAgIQEr0bAWD6wJtA4LIbZ9NtgzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE4MDkxMDE1MzY0MFoXDTE4MDkxMzE1NDY0MFowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANUsKkz2Z4fECKMyNeLb9v3pr1XF4dVe+MITDtgphjl81ng190Y0IHgCVnh4YjfplUSpMk/1xii0rI5AAPwoz3ze2qRPtnwCiTaoVLkUe6knNRPzrRvVXHB81J0/14MO0lwdByHhdccRcVJZPLt5724t4aQny82v2AayJdDDkBBWNlpcqPy6n3sygP00THMPP0O3sFqy924eHqoDj3qSw79/meaZBJt9S5odPuFoskxjHuI4lM6BmK1Ql7p8Wo9/GhTOIoMz81orKPHRDleLjutwL4mb6NnhI5rfT/MxnHD6m82c4YYqiZC3XiTyJWVCkWkp7PK92OdRp6FA87rdKDMCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBAIYlezVU68TuEblkn06vM5dfzSmHKJOQgW61nDlLnyKrmSJtzKZLCAswTE2VyJHwKNdZgW15coJFINjWBLWcLr0/GjNV4u3Z+UL3NhBFQd5xuMtKsIhuoscKtyk0JHQXpBvHNmOUCobfQfOBQfTVC7kmyWdtlGztFUVxD28s6S5gMb1FEWWN68NOOJ3/ZhaTbUEM54yw8Hk8/f0L/Zn/7BYHUyWWA3KStAaYn89C/ZFF+952ark2VaKGIjBRQzgrJEIR8dI4r46I3DoEfzGPESKvQPvVLhOX84RG0PLPOtnRbHBVew1Nh3HE9kgCubkPKK+NPWE9IHZPoRmOTWBe+zU="),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.UploadCertificateResponse = armstorsimple1200series.UploadCertificateResponse{
	// 	Name: to.Ptr("windows"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/certificates"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourcegroups/cleanupservice/providers/Microsoft.StorSimple/managers/res-jem-hel/certificates/windows"),
	// 	Properties: &armstorsimple1200series.ResourceCertificateAndAADDetails{
	// 		AADAuthority: to.Ptr("https://login.windows.net"),
	// 		AADTenantID: to.Ptr("625ad78b-e6ce-49ed-b9cd-29f4aa12d77e"),
	// 		AuthType: to.Ptr(armstorsimple1200series.AuthTypeAzureActiveDirectory),
	// 		AzureManagementEndpointAudience: to.Ptr("https://pod01-id1.wus.backup.windowsazure.com/restapi/"),
	// 		Certificate: to.Ptr("MIIC3TCCAcWgAwIBAgIQEr0bAWD6wJtA4LIbZ9NtgzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE4MDkxMDE1MzY0MFoXDTE4MDkxMzE1NDY0MFowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANUsKkz2Z4fECKMyNeLb9v3pr1XF4dVe+MITDtgphjl81ng190Y0IHgCVnh4YjfplUSpMk/1xii0rI5AAPwoz3ze2qRPtnwCiTaoVLkUe6knNRPzrRvVXHB81J0/14MO0lwdByHhdccRcVJZPLt5724t4aQny82v2AayJdDDkBBWNlpcqPy6n3sygP00THMPP0O3sFqy924eHqoDj3qSw79/meaZBJt9S5odPuFoskxjHuI4lM6BmK1Ql7p8Wo9/GhTOIoMz81orKPHRDleLjutwL4mb6NnhI5rfT/MxnHD6m82c4YYqiZC3XiTyJWVCkWkp7PK92OdRp6FA87rdKDMCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBAIYlezVU68TuEblkn06vM5dfzSmHKJOQgW61nDlLnyKrmSJtzKZLCAswTE2VyJHwKNdZgW15coJFINjWBLWcLr0/GjNV4u3Z+UL3NhBFQd5xuMtKsIhuoscKtyk0JHQXpBvHNmOUCobfQfOBQfTVC7kmyWdtlGztFUVxD28s6S5gMb1FEWWN68NOOJ3/ZhaTbUEM54yw8Hk8/f0L/Zn/7BYHUyWWA3KStAaYn89C/ZFF+952ark2VaKGIjBRQzgrJEIR8dI4r46I3DoEfzGPESKvQPvVLhOX84RG0PLPOtnRbHBVew1Nh3HE9kgCubkPKK+NPWE9IHZPoRmOTWBe+zU="),
	// 		FriendlyName: to.Ptr(""),
	// 		Issuer: to.Ptr("CN=Windows Azure Tools"),
	// 		ResourceID: to.Ptr[int64](5047111583862266000),
	// 		ServicePrincipalClientID: to.Ptr("a65f2051-51a3-4fa0-965e-76195bc73f4d"),
	// 		ServicePrincipalObjectID: to.Ptr("86d19f0e-82b7-49bf-a16e-1fbb4e5288d5"),
	// 		Subject: to.Ptr("CN=Windows Azure Tools"),
	// 		Thumbprint: to.Ptr("0526BD0123A52EABDB586AF0C080ABEEF3BB4240"),
	// 		ValidFrom: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-10T15:36:40.000Z"); return t}()),
	// 		ValidTo: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-13T15:46:40.000Z"); return t}()),
	// 	},
	// }
}
Output:

type ManagersClientCreateExtendedInfoOptions

type ManagersClientCreateExtendedInfoOptions struct {
}

ManagersClientCreateExtendedInfoOptions contains the optional parameters for the ManagersClient.CreateExtendedInfo method.

type ManagersClientCreateExtendedInfoResponse

type ManagersClientCreateExtendedInfoResponse struct {
	// The extended info of the manager.
	ManagerExtendedInfo
}

ManagersClientCreateExtendedInfoResponse contains the response from method ManagersClient.CreateExtendedInfo.

type ManagersClientCreateOrUpdateOptions

type ManagersClientCreateOrUpdateOptions struct {
}

ManagersClientCreateOrUpdateOptions contains the optional parameters for the ManagersClient.CreateOrUpdate method.

type ManagersClientCreateOrUpdateResponse

type ManagersClientCreateOrUpdateResponse struct {
	// The StorSimple Manager
	Manager
}

ManagersClientCreateOrUpdateResponse contains the response from method ManagersClient.CreateOrUpdate.

type ManagersClientDeleteExtendedInfoOptions

type ManagersClientDeleteExtendedInfoOptions struct {
}

ManagersClientDeleteExtendedInfoOptions contains the optional parameters for the ManagersClient.DeleteExtendedInfo method.

type ManagersClientDeleteExtendedInfoResponse

type ManagersClientDeleteExtendedInfoResponse struct {
}

ManagersClientDeleteExtendedInfoResponse contains the response from method ManagersClient.DeleteExtendedInfo.

type ManagersClientDeleteOptions

type ManagersClientDeleteOptions struct {
}

ManagersClientDeleteOptions contains the optional parameters for the ManagersClient.Delete method.

type ManagersClientDeleteResponse

type ManagersClientDeleteResponse struct {
}

ManagersClientDeleteResponse contains the response from method ManagersClient.Delete.

type ManagersClientGetEncryptionKeyOptions

type ManagersClientGetEncryptionKeyOptions struct {
}

ManagersClientGetEncryptionKeyOptions contains the optional parameters for the ManagersClient.GetEncryptionKey method.

type ManagersClientGetEncryptionKeyResponse

type ManagersClientGetEncryptionKeyResponse struct {
	// This class can be used as the Type for any secret entity represented as Value, ValueCertificateThumbprint, EncryptionAlgorithm.
	// In this case, "Value" is a secret and the "valueThumbprint" represents the certificate thumbprint of the value. The algorithm
	// field is mainly for future usage to potentially allow different entities encrypted using different algorithms.
	SymmetricEncryptedSecret
}

ManagersClientGetEncryptionKeyResponse contains the response from method ManagersClient.GetEncryptionKey.

type ManagersClientGetEncryptionSettingsOptions

type ManagersClientGetEncryptionSettingsOptions struct {
}

ManagersClientGetEncryptionSettingsOptions contains the optional parameters for the ManagersClient.GetEncryptionSettings method.

type ManagersClientGetEncryptionSettingsResponse

type ManagersClientGetEncryptionSettingsResponse struct {
	// The EncryptionSettings
	EncryptionSettings
}

ManagersClientGetEncryptionSettingsResponse contains the response from method ManagersClient.GetEncryptionSettings.

type ManagersClientGetExtendedInfoOptions

type ManagersClientGetExtendedInfoOptions struct {
}

ManagersClientGetExtendedInfoOptions contains the optional parameters for the ManagersClient.GetExtendedInfo method.

type ManagersClientGetExtendedInfoResponse

type ManagersClientGetExtendedInfoResponse struct {
	// The extended info of the manager.
	ManagerExtendedInfo
}

ManagersClientGetExtendedInfoResponse contains the response from method ManagersClient.GetExtendedInfo.

type ManagersClientGetOptions

type ManagersClientGetOptions struct {
}

ManagersClientGetOptions contains the optional parameters for the ManagersClient.Get method.

type ManagersClientGetResponse

type ManagersClientGetResponse struct {
	// The StorSimple Manager
	Manager
}

ManagersClientGetResponse contains the response from method ManagersClient.Get.

type ManagersClientListByResourceGroupOptions

type ManagersClientListByResourceGroupOptions struct {
}

ManagersClientListByResourceGroupOptions contains the optional parameters for the ManagersClient.NewListByResourceGroupPager method.

type ManagersClientListByResourceGroupResponse

type ManagersClientListByResourceGroupResponse struct {
	// List of StorSimple Managers under a particular resourceGroup
	ManagerList
}

ManagersClientListByResourceGroupResponse contains the response from method ManagersClient.NewListByResourceGroupPager.

type ManagersClientListMetricDefinitionOptions

type ManagersClientListMetricDefinitionOptions struct {
}

ManagersClientListMetricDefinitionOptions contains the optional parameters for the ManagersClient.NewListMetricDefinitionPager method.

type ManagersClientListMetricDefinitionResponse

type ManagersClientListMetricDefinitionResponse struct {
	// List of metric definition
	MetricDefinitionList
}

ManagersClientListMetricDefinitionResponse contains the response from method ManagersClient.NewListMetricDefinitionPager.

type ManagersClientListMetricsOptions

type ManagersClientListMetricsOptions struct {
	// OData Filter options
	Filter *string
}

ManagersClientListMetricsOptions contains the optional parameters for the ManagersClient.NewListMetricsPager method.

type ManagersClientListMetricsResponse

type ManagersClientListMetricsResponse struct {
	// Collection of metrics
	MetricList
}

ManagersClientListMetricsResponse contains the response from method ManagersClient.NewListMetricsPager.

type ManagersClientListOptions

type ManagersClientListOptions struct {
}

ManagersClientListOptions contains the optional parameters for the ManagersClient.NewListPager method.

type ManagersClientListResponse

type ManagersClientListResponse struct {
	// List of StorSimple Managers under a particular resourceGroup
	ManagerList
}

ManagersClientListResponse contains the response from method ManagersClient.NewListPager.

type ManagersClientUpdateExtendedInfoOptions

type ManagersClientUpdateExtendedInfoOptions struct {
}

ManagersClientUpdateExtendedInfoOptions contains the optional parameters for the ManagersClient.UpdateExtendedInfo method.

type ManagersClientUpdateExtendedInfoResponse

type ManagersClientUpdateExtendedInfoResponse struct {
	// The extended info of the manager.
	ManagerExtendedInfo
}

ManagersClientUpdateExtendedInfoResponse contains the response from method ManagersClient.UpdateExtendedInfo.

type ManagersClientUpdateOptions

type ManagersClientUpdateOptions struct {
}

ManagersClientUpdateOptions contains the optional parameters for the ManagersClient.Update method.

type ManagersClientUpdateResponse

type ManagersClientUpdateResponse struct {
	// The StorSimple Manager
	Manager
}

ManagersClientUpdateResponse contains the response from method ManagersClient.Update.

type ManagersClientUploadRegistrationCertificateOptions

type ManagersClientUploadRegistrationCertificateOptions struct {
}

ManagersClientUploadRegistrationCertificateOptions contains the optional parameters for the ManagersClient.UploadRegistrationCertificate method.

type ManagersClientUploadRegistrationCertificateResponse

type ManagersClientUploadRegistrationCertificateResponse struct {
	// Upload Certificate Response from IDM
	UploadCertificateResponse
}

ManagersClientUploadRegistrationCertificateResponse contains the response from method ManagersClient.UploadRegistrationCertificate.

type Message

type Message struct {
	Language *string
	Value    *string
}

func (Message) MarshalJSON added in v1.1.0

func (m Message) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Message.

func (*Message) UnmarshalJSON added in v1.1.0

func (m *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Message.

type MetricAggregationType

type MetricAggregationType string

MetricAggregationType - The metric aggregation type

const (
	MetricAggregationTypeAverage MetricAggregationType = "Average"
	MetricAggregationTypeLast    MetricAggregationType = "Last"
	MetricAggregationTypeMaximum MetricAggregationType = "Maximum"
	MetricAggregationTypeMinimum MetricAggregationType = "Minimum"
	MetricAggregationTypeNone    MetricAggregationType = "None"
	MetricAggregationTypeTotal   MetricAggregationType = "Total"
)

func PossibleMetricAggregationTypeValues

func PossibleMetricAggregationTypeValues() []MetricAggregationType

PossibleMetricAggregationTypeValues returns the possible values for the MetricAggregationType const type.

type MetricAvailablity

type MetricAvailablity struct {
	// REQUIRED; The retention period for the metric at the specified timegrain
	Retention *string

	// REQUIRED; The time grain, specifies the aggregation interval for the metric.
	TimeGrain *string
}

MetricAvailablity - Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain

func (MetricAvailablity) MarshalJSON added in v1.1.0

func (m MetricAvailablity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricAvailablity.

func (*MetricAvailablity) UnmarshalJSON added in v1.1.0

func (m *MetricAvailablity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricAvailablity.

type MetricData

type MetricData struct {
	// REQUIRED; The average of all sample for the given instance
	Average *float64

	// REQUIRED; The count of samples of the metric data available for the given instance
	Count *int32

	// REQUIRED; The maximum of all samples available
	Maximum *float64

	// REQUIRED; The minimum of all samples available
	Minimum *float64

	// REQUIRED; The sum of all the samples available in the given instance of time for the specific metric data
	Sum *float64

	// REQUIRED; The time when the metric data is fetched
	TimeStamp *time.Time
}

MetricData - The metric data.

func (MetricData) MarshalJSON added in v1.1.0

func (m MetricData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricData.

func (*MetricData) UnmarshalJSON

func (m *MetricData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricData.

type MetricDefinition

type MetricDefinition struct {
	// REQUIRED; The supported dimensions
	Dimensions []*MetricDimension

	// REQUIRED; The available metric granularities
	MetricAvailabilities []*MetricAvailablity

	// REQUIRED; The metric name
	Name *MetricName

	// REQUIRED; The metric aggregation type
	PrimaryAggregationType *MetricAggregationType

	// REQUIRED; The metric source id
	ResourceID *string

	// REQUIRED; The metric definition type
	Type *string

	// REQUIRED; The metric unit
	Unit *MetricUnit
}

MetricDefinition - Monitoring metric definition represents the metadata of the metrics.

func (MetricDefinition) MarshalJSON added in v1.1.0

func (m MetricDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricDefinition.

func (*MetricDefinition) UnmarshalJSON added in v1.1.0

func (m *MetricDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinition.

type MetricDefinitionList

type MetricDefinitionList struct {
	// REQUIRED; The list of metric definition
	Value []*MetricDefinition
}

MetricDefinitionList - List of metric definition

func (MetricDefinitionList) MarshalJSON added in v1.1.0

func (m MetricDefinitionList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricDefinitionList.

func (*MetricDefinitionList) UnmarshalJSON added in v1.1.0

func (m *MetricDefinitionList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinitionList.

type MetricDimension

type MetricDimension struct {
	// REQUIRED; Metric dimension name
	Name *string

	// REQUIRED; Metric dimension values
	Value *string
}

MetricDimension - Metric dimension

func (MetricDimension) MarshalJSON added in v1.1.0

func (m MetricDimension) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricDimension.

func (*MetricDimension) UnmarshalJSON added in v1.1.0

func (m *MetricDimension) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricDimension.

type MetricFilter

type MetricFilter struct {
	// endtime for fetching metrics
	EndTime *time.Time

	// filter for name property
	Name *MetricNameFilter

	// starttime for fetching metrics
	StartTime *time.Time

	// timegrain of the metrics
	TimeGrain *string
}

MetricFilter - class representing the filters to be passed while fetching metrics

func (MetricFilter) MarshalJSON added in v1.1.0

func (m MetricFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricFilter.

func (*MetricFilter) UnmarshalJSON

func (m *MetricFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricFilter.

type MetricList

type MetricList struct {
	// REQUIRED; The value.
	Value []*Metrics
}

MetricList - Collection of metrics

func (MetricList) MarshalJSON added in v1.1.0

func (m MetricList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricList.

func (*MetricList) UnmarshalJSON added in v1.1.0

func (m *MetricList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricList.

type MetricName

type MetricName struct {
	// REQUIRED; Localized name of the metric
	LocalizedValue *string

	// REQUIRED; Name of the metric
	Value *string
}

MetricName - The name of the metric

func (MetricName) MarshalJSON added in v1.1.0

func (m MetricName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricName.

func (*MetricName) UnmarshalJSON added in v1.1.0

func (m *MetricName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricName.

type MetricNameFilter

type MetricNameFilter struct {
	// The value.
	Value *string
}

MetricNameFilter - Class representing the name filter to be passed while fetching metrics

func (MetricNameFilter) MarshalJSON added in v1.1.0

func (m MetricNameFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricNameFilter.

func (*MetricNameFilter) UnmarshalJSON added in v1.1.0

func (m *MetricNameFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MetricNameFilter.

type MetricUnit

type MetricUnit string

MetricUnit - The metric unit

const (
	MetricUnitBytes          MetricUnit = "Bytes"
	MetricUnitBytesPerSecond MetricUnit = "BytesPerSecond"
	MetricUnitCount          MetricUnit = "Count"
	MetricUnitCountPerSecond MetricUnit = "CountPerSecond"
	MetricUnitPercent        MetricUnit = "Percent"
	MetricUnitSeconds        MetricUnit = "Seconds"
)

func PossibleMetricUnitValues

func PossibleMetricUnitValues() []MetricUnit

PossibleMetricUnitValues returns the possible values for the MetricUnit const type.

type Metrics

type Metrics struct {
	// REQUIRED; The Metric dimension which indicates the source of the metric
	Dimensions []*MetricDimension

	// REQUIRED; The metric end time
	EndTime *time.Time

	// REQUIRED; The name of the metrics
	Name *MetricName

	// REQUIRED; The metric aggregation type
	PrimaryAggregation *MetricAggregationType

	// REQUIRED; The id of metric source
	ResourceID *string

	// REQUIRED; The metric start time
	StartTime *time.Time

	// REQUIRED; The time grain, time grain indicates frequency of the metric data
	TimeGrain *string

	// REQUIRED; The Type of the metric data
	Type *string

	// REQUIRED; The unit of the metric data
	Unit *MetricUnit

	// REQUIRED; The metric data
	Values []*MetricData
}

Metrics - Monitoring metric

func (Metrics) MarshalJSON added in v1.1.0

func (m Metrics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Metrics.

func (*Metrics) UnmarshalJSON

func (m *Metrics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Metrics.

type MonitoringStatus

type MonitoringStatus string

MonitoringStatus - The monitoring status

const (
	MonitoringStatusDisabled MonitoringStatus = "Disabled"
	MonitoringStatusEnabled  MonitoringStatus = "Enabled"
)

func PossibleMonitoringStatusValues

func PossibleMonitoringStatusValues() []MonitoringStatus

PossibleMonitoringStatusValues returns the possible values for the MonitoringStatus const type.

type NetworkAdapter

type NetworkAdapter struct {
	// REQUIRED; Represents state of DHCP.
	DhcpStatus *DhcpStatus

	// REQUIRED; The name of the network adapter.
	NetworkAdapterName *string

	// The ipv4 configuration of the network adapter.
	IPv4Info *IPConfig

	// The ipv6 configuration of the network adapter.
	IPv6Info *IPConfig

	// The speed of the network adapter.
	LinkSpeed *int64
}

NetworkAdapter - Represents a networkAdapter in a particular node.

func (NetworkAdapter) MarshalJSON added in v1.1.0

func (n NetworkAdapter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkAdapter.

func (*NetworkAdapter) UnmarshalJSON added in v1.1.0

func (n *NetworkAdapter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkAdapter.

type NetworkSettings

type NetworkSettings struct {
	// REQUIRED; Properties of the given NetworkSettings.
	Properties *NetworkSettingsProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

NetworkSettings - The NetworkSettings of a device

func (NetworkSettings) MarshalJSON added in v1.1.0

func (n NetworkSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkSettings.

func (*NetworkSettings) UnmarshalJSON added in v1.1.0

func (n *NetworkSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSettings.

type NetworkSettingsProperties

type NetworkSettingsProperties struct {
	// REQUIRED; The NetworkAdapters under each node of the device.
	NodeNetworks []*NodeNetwork

	// REQUIRED; The Primary DNS server for the device
	PrimaryDNSServer *string

	// The secondary DNS server for the device
	SecondaryDNSServer *string
}

NetworkSettingsProperties - The properties of NetworkSettings

func (NetworkSettingsProperties) MarshalJSON

func (n NetworkSettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkSettingsProperties.

func (*NetworkSettingsProperties) UnmarshalJSON added in v1.1.0

func (n *NetworkSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSettingsProperties.

type NodeNetwork

type NodeNetwork struct {
	// REQUIRED; The array of network adapters in the node.
	NetworkAdapters []*NetworkAdapter
}

NodeNetwork - Represents a single node in a device.

func (NodeNetwork) MarshalJSON

func (n NodeNetwork) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NodeNetwork.

func (*NodeNetwork) UnmarshalJSON added in v1.1.0

func (n *NodeNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NodeNetwork.

type RawCertificateData

type RawCertificateData struct {
	// REQUIRED; Gets or sets the base64 encoded certificate raw data string
	Certificate *string

	// Specify the Authentication type
	AuthType *AuthType
}

RawCertificateData - Raw Certificate Data From IDM

func (RawCertificateData) MarshalJSON added in v1.1.0

func (r RawCertificateData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawCertificateData.

func (*RawCertificateData) UnmarshalJSON added in v1.1.0

func (r *RawCertificateData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawCertificateData.

type Resource

type Resource struct {
	// REQUIRED; The Geo location of the Manager
	Location *string

	// Tags attached to the Manager
	Tags map[string]*string

	// READ-ONLY; The Resource Id
	ID *string

	// READ-ONLY; The Resource Name
	Name *string

	// READ-ONLY; The Resource type
	Type *string
}

Resource - The Azure Resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v1.1.0

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceCertificateAndAADDetails

type ResourceCertificateAndAADDetails struct {
	// REQUIRED; AAD tenant authority
	AADAuthority *string

	// REQUIRED; AAD tenant Id
	AADTenantID *string

	// REQUIRED; Azure Management Endpoint Audience
	AzureManagementEndpointAudience *string

	// REQUIRED; Gets or sets the base64 encoded certificate raw data string
	Certificate *string

	// REQUIRED; Certificate friendly name
	FriendlyName *string

	// REQUIRED; Certificate issuer
	Issuer *string

	// REQUIRED; Gets or Sets the ResourceId
	ResourceID *int64

	// REQUIRED; AAD service principal clientId
	ServicePrincipalClientID *string

	// REQUIRED; AAD service principal ObjectId
	ServicePrincipalObjectID *string

	// REQUIRED; Certificate Subject Name
	Subject *string

	// REQUIRED; Certificate thumbprint
	Thumbprint *string

	// REQUIRED; Certificate Validity start Date time
	ValidFrom *time.Time

	// REQUIRED; Certificate Validity End Date time
	ValidTo *time.Time

	// Specify the Authentication type
	AuthType *AuthType
}

ResourceCertificateAndAADDetails - Resource Certificate And AAD Details from IDM

func (ResourceCertificateAndAADDetails) MarshalJSON

func (r ResourceCertificateAndAADDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceCertificateAndAADDetails.

func (*ResourceCertificateAndAADDetails) UnmarshalJSON

func (r *ResourceCertificateAndAADDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceCertificateAndAADDetails.

type SSLStatus

type SSLStatus string

SSLStatus - SSL needs to be enabled or not

const (
	SSLStatusDisabled SSLStatus = "Disabled"
	SSLStatusEnabled  SSLStatus = "Enabled"
)

func PossibleSSLStatusValues

func PossibleSSLStatusValues() []SSLStatus

PossibleSSLStatusValues returns the possible values for the SSLStatus const type.

type SecuritySettings

type SecuritySettings struct {
	// REQUIRED; Properties of the SecuritySettings.
	Properties *SecuritySettingsProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

SecuritySettings - The SecuritySettings of a device

func (SecuritySettings) MarshalJSON added in v1.1.0

func (s SecuritySettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SecuritySettings.

func (*SecuritySettings) UnmarshalJSON added in v1.1.0

func (s *SecuritySettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SecuritySettings.

type SecuritySettingsProperties

type SecuritySettingsProperties struct {
	// REQUIRED; Device administrator password as an encrypted string (encrypted using RSA PKCS #1) is used to log into the local
	// web UI of the device. Actual password could have at least 8 characters that are a
	// combination of uppercase, lowercase, numeric, and special characters
	DeviceAdminPassword *AsymmetricEncryptedSecret
}

SecuritySettingsProperties - The properties of SecuritySettings

func (SecuritySettingsProperties) MarshalJSON added in v1.1.0

func (s SecuritySettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SecuritySettingsProperties.

func (*SecuritySettingsProperties) UnmarshalJSON added in v1.1.0

func (s *SecuritySettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SecuritySettingsProperties.

type SendTestAlertEmailRequest

type SendTestAlertEmailRequest struct {
	// REQUIRED; List of emails to send the test alerts
	EmailList []*string
}

SendTestAlertEmailRequest - Request for sending test alert email

func (SendTestAlertEmailRequest) MarshalJSON

func (s SendTestAlertEmailRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SendTestAlertEmailRequest.

func (*SendTestAlertEmailRequest) UnmarshalJSON added in v1.1.0

func (s *SendTestAlertEmailRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SendTestAlertEmailRequest.

type ServiceOwnersAlertNotificationStatus

type ServiceOwnersAlertNotificationStatus string

ServiceOwnersAlertNotificationStatus - Value indicating whether service owners will receive emails when an alert condition occurs on the system. Applicable only if emailNotification flag is Enabled.

const (
	ServiceOwnersAlertNotificationStatusDisabled ServiceOwnersAlertNotificationStatus = "Disabled"
	ServiceOwnersAlertNotificationStatusEnabled  ServiceOwnersAlertNotificationStatus = "Enabled"
)

func PossibleServiceOwnersAlertNotificationStatusValues

func PossibleServiceOwnersAlertNotificationStatusValues() []ServiceOwnersAlertNotificationStatus

PossibleServiceOwnersAlertNotificationStatusValues returns the possible values for the ServiceOwnersAlertNotificationStatus const type.

type ShareStatus

type ShareStatus string

ShareStatus - The Share Status

const (
	ShareStatusOffline ShareStatus = "Offline"
	ShareStatusOnline  ShareStatus = "Online"
)

func PossibleShareStatusValues

func PossibleShareStatusValues() []ShareStatus

PossibleShareStatusValues returns the possible values for the ShareStatus const type.

type StorageAccountCredential

type StorageAccountCredential struct {
	// REQUIRED; Credential properties
	Properties *StorageAccountCredentialProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

StorageAccountCredential - The storage account credential

func (StorageAccountCredential) MarshalJSON added in v1.1.0

func (s StorageAccountCredential) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccountCredential.

func (*StorageAccountCredential) UnmarshalJSON added in v1.1.0

func (s *StorageAccountCredential) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountCredential.

type StorageAccountCredentialList

type StorageAccountCredentialList struct {
	// REQUIRED; The value.
	Value []*StorageAccountCredential
}

StorageAccountCredentialList - Collection of Storage account credential entities

func (StorageAccountCredentialList) MarshalJSON added in v1.1.0

func (s StorageAccountCredentialList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccountCredentialList.

func (*StorageAccountCredentialList) UnmarshalJSON added in v1.1.0

func (s *StorageAccountCredentialList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountCredentialList.

type StorageAccountCredentialProperties

type StorageAccountCredentialProperties struct {
	// REQUIRED; The cloud service provider
	CloudType *CloudType

	// REQUIRED; SSL needs to be enabled or not
	EnableSSL *SSLStatus

	// REQUIRED; The storage endpoint
	EndPoint *string

	// REQUIRED; The storage account login
	Login *string

	// The details of the storage account password
	AccessKey *AsymmetricEncryptedSecret

	// The storage account's geo location
	Location *string
}

StorageAccountCredentialProperties - Storage account properties

func (StorageAccountCredentialProperties) MarshalJSON added in v1.1.0

func (s StorageAccountCredentialProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccountCredentialProperties.

func (*StorageAccountCredentialProperties) UnmarshalJSON added in v1.1.0

func (s *StorageAccountCredentialProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountCredentialProperties.

type StorageAccountCredentialsClient

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

StorageAccountCredentialsClient contains the methods for the StorageAccountCredentials group. Don't use this type directly, use NewStorageAccountCredentialsClient() instead.

func NewStorageAccountCredentialsClient

func NewStorageAccountCredentialsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageAccountCredentialsClient, error)

NewStorageAccountCredentialsClient creates a new instance of StorageAccountCredentialsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*StorageAccountCredentialsClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Creates or updates the storage account credential If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • credentialName - The credential name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • storageAccount - The storage account credential to be added or updated.
  • options - StorageAccountCredentialsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageAccountCredentialsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewStorageAccountCredentialsClient().BeginCreateOrUpdate(ctx, "DummySacForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.StorageAccountCredential{
		Name: to.Ptr("DummySacForSDKTest"),
		Properties: &armstorsimple1200series.StorageAccountCredentialProperties{
			AccessKey: &armstorsimple1200series.AsymmetricEncryptedSecret{
				EncryptionAlgorithm:             to.Ptr(armstorsimple1200series.EncryptionAlgorithmRSAESPKCS1V15),
				EncryptionCertificateThumbprint: to.Ptr("D73DB57C4CDD6761E159F8D1E8A7D759424983FD"),
				Value:                           to.Ptr("Ev1tm0QBmpGGm4a58GkqLqx8veJEEgQtg5K3Jizpmy7JdSv9dlcRwk59THw6KIdMDlEHcS8mPyneBtOEQsh4wkcFB7qrmQz+KsRAyIhEm6bwPEm3qN8+aDDzNcXn/6vu/sqV0AP7zit9/s7SxXGxjKrz4zKnOy16/DbzRRmUHNO+HO6JUM0cUfHXTX0mEecbsXqBq0A8IEG8z+bJgXX1EhoGkzE6yVsObm4S1AcKrLiwWjqmSLji5Q8gGO+y4KTTmC3p45h5GHHXjJyOccHhySWDAffxnTzUD/sOoh+aD2VkAYrL3DdnkVzhAdfcZfVI4soONx7tYMloZIVsfW1M2Q=="),
			},
			CloudType: to.Ptr(armstorsimple1200series.CloudTypeAzure),
			EnableSSL: to.Ptr(armstorsimple1200series.SSLStatusEnabled),
			EndPoint:  to.Ptr("blob.core.windows.net"),
			Location:  to.Ptr("West US"),
			Login:     to.Ptr("SacForSDKTest"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.StorageAccountCredential = armstorsimple1200series.StorageAccountCredential{
	// 	Name: to.Ptr("sacforsdktest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest"),
	// 	Properties: &armstorsimple1200series.StorageAccountCredentialProperties{
	// 		CloudType: to.Ptr(armstorsimple1200series.CloudTypeAzure),
	// 		EnableSSL: to.Ptr(armstorsimple1200series.SSLStatusEnabled),
	// 		EndPoint: to.Ptr("blob.core.windows.net"),
	// 		Location: to.Ptr("West US"),
	// 		Login: to.Ptr("sacforsdktest"),
	// 	},
	// }
}
Output:

func (*StorageAccountCredentialsClient) BeginDelete

BeginDelete - Deletes the storage account credential If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • credentialName - The name of the storage account credential.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageAccountCredentialsClientBeginDeleteOptions contains the optional parameters for the StorageAccountCredentialsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewStorageAccountCredentialsClient().BeginDelete(ctx, "DummySacForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*StorageAccountCredentialsClient) Get

Get - Returns the properties of the specified storage account credential name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • credentialName - The name of storage account credential to be fetched.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageAccountCredentialsClientGetOptions contains the optional parameters for the StorageAccountCredentialsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewStorageAccountCredentialsClient().Get(ctx, "SacForSDKTest", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.StorageAccountCredential = armstorsimple1200series.StorageAccountCredential{
	// 	Name: to.Ptr("sacforsdktest"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest"),
	// 	Properties: &armstorsimple1200series.StorageAccountCredentialProperties{
	// 		CloudType: to.Ptr(armstorsimple1200series.CloudTypeAzure),
	// 		EnableSSL: to.Ptr(armstorsimple1200series.SSLStatusEnabled),
	// 		EndPoint: to.Ptr("blob.core.windows.net"),
	// 		Location: to.Ptr("West US"),
	// 		Login: to.Ptr("sacforsdktest"),
	// 	},
	// }
}
Output:

func (*StorageAccountCredentialsClient) NewListByManagerPager

NewListByManagerPager - Retrieves all the storage account credentials in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageAccountCredentialsClientListByManagerOptions contains the optional parameters for the StorageAccountCredentialsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewStorageAccountCredentialsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.StorageAccountCredentialList = armstorsimple1200series.StorageAccountCredentialList{
		// 	Value: []*armstorsimple1200series.StorageAccountCredential{
		// 		{
		// 			Name: to.Ptr("sacforsdktest"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/storageAccountCredentials"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest"),
		// 			Properties: &armstorsimple1200series.StorageAccountCredentialProperties{
		// 				CloudType: to.Ptr(armstorsimple1200series.CloudTypeAzure),
		// 				EnableSSL: to.Ptr(armstorsimple1200series.SSLStatusEnabled),
		// 				EndPoint: to.Ptr("blob.core.windows.net"),
		// 				Location: to.Ptr("West US"),
		// 				Login: to.Ptr("sacforsdktest"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type StorageAccountCredentialsClientBeginCreateOrUpdateOptions

type StorageAccountCredentialsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StorageAccountCredentialsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageAccountCredentialsClient.BeginCreateOrUpdate method.

type StorageAccountCredentialsClientBeginDeleteOptions

type StorageAccountCredentialsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StorageAccountCredentialsClientBeginDeleteOptions contains the optional parameters for the StorageAccountCredentialsClient.BeginDelete method.

type StorageAccountCredentialsClientCreateOrUpdateResponse

type StorageAccountCredentialsClientCreateOrUpdateResponse struct {
	// The storage account credential
	StorageAccountCredential
}

StorageAccountCredentialsClientCreateOrUpdateResponse contains the response from method StorageAccountCredentialsClient.BeginCreateOrUpdate.

type StorageAccountCredentialsClientDeleteResponse

type StorageAccountCredentialsClientDeleteResponse struct {
}

StorageAccountCredentialsClientDeleteResponse contains the response from method StorageAccountCredentialsClient.BeginDelete.

type StorageAccountCredentialsClientGetOptions

type StorageAccountCredentialsClientGetOptions struct {
}

StorageAccountCredentialsClientGetOptions contains the optional parameters for the StorageAccountCredentialsClient.Get method.

type StorageAccountCredentialsClientGetResponse

type StorageAccountCredentialsClientGetResponse struct {
	// The storage account credential
	StorageAccountCredential
}

StorageAccountCredentialsClientGetResponse contains the response from method StorageAccountCredentialsClient.Get.

type StorageAccountCredentialsClientListByManagerOptions

type StorageAccountCredentialsClientListByManagerOptions struct {
}

StorageAccountCredentialsClientListByManagerOptions contains the optional parameters for the StorageAccountCredentialsClient.NewListByManagerPager method.

type StorageAccountCredentialsClientListByManagerResponse

type StorageAccountCredentialsClientListByManagerResponse struct {
	// Collection of Storage account credential entities
	StorageAccountCredentialList
}

StorageAccountCredentialsClientListByManagerResponse contains the response from method StorageAccountCredentialsClient.NewListByManagerPager.

type StorageDomain

type StorageDomain struct {
	// REQUIRED; The properties.
	Properties *StorageDomainProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

StorageDomain - The storage domain.

func (StorageDomain) MarshalJSON added in v1.1.0

func (s StorageDomain) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageDomain.

func (*StorageDomain) UnmarshalJSON added in v1.1.0

func (s *StorageDomain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageDomain.

type StorageDomainList

type StorageDomainList struct {
	// REQUIRED; The value.
	Value []*StorageDomain
}

StorageDomainList - Collection of storage domains

func (StorageDomainList) MarshalJSON added in v1.1.0

func (s StorageDomainList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageDomainList.

func (*StorageDomainList) UnmarshalJSON added in v1.1.0

func (s *StorageDomainList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageDomainList.

type StorageDomainProperties

type StorageDomainProperties struct {
	// REQUIRED; The encryption status "Enabled | Disabled".
	EncryptionStatus *EncryptionStatus

	// REQUIRED; The storage account credentials.
	StorageAccountCredentialIDs []*string

	// The encryption key used to encrypt the data. This is a user secret.
	EncryptionKey *AsymmetricEncryptedSecret
}

StorageDomainProperties - The storage domain properties.

func (StorageDomainProperties) MarshalJSON

func (s StorageDomainProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageDomainProperties.

func (*StorageDomainProperties) UnmarshalJSON added in v1.1.0

func (s *StorageDomainProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageDomainProperties.

type StorageDomainsClient

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

StorageDomainsClient contains the methods for the StorageDomains group. Don't use this type directly, use NewStorageDomainsClient() instead.

func NewStorageDomainsClient

func NewStorageDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageDomainsClient, error)

NewStorageDomainsClient creates a new instance of StorageDomainsClient with the specified values.

  • subscriptionID - The subscription id
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*StorageDomainsClient) BeginCreateOrUpdate

func (client *StorageDomainsClient) BeginCreateOrUpdate(ctx context.Context, storageDomainName string, resourceGroupName string, managerName string, storageDomain StorageDomain, options *StorageDomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[StorageDomainsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates or updates the storage domain. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • storageDomainName - The storage domain name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • storageDomain - The storageDomain.
  • options - StorageDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageDomainsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewStorageDomainsClient().BeginCreateOrUpdate(ctx, "sd-fs-HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", armstorsimple1200series.StorageDomain{
		Name: to.Ptr("sd-fs-HSDK-4XY4FI2IVG"),
		Properties: &armstorsimple1200series.StorageDomainProperties{
			EncryptionStatus: to.Ptr(armstorsimple1200series.EncryptionStatusDisabled),
			StorageAccountCredentialIDs: []*string{
				to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.StorageDomain = armstorsimple1200series.StorageDomain{
	// 	Name: to.Ptr("sd-fs-HSDK-4XY4FI2IVG"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/storageDomains"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"),
	// 	Properties: &armstorsimple1200series.StorageDomainProperties{
	// 		EncryptionStatus: to.Ptr(armstorsimple1200series.EncryptionStatusDisabled),
	// 		StorageAccountCredentialIDs: []*string{
	// 			to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest")},
	// 		},
	// 	}
}
Output:

func (*StorageDomainsClient) BeginDelete

func (client *StorageDomainsClient) BeginDelete(ctx context.Context, storageDomainName string, resourceGroupName string, managerName string, options *StorageDomainsClientBeginDeleteOptions) (*runtime.Poller[StorageDomainsClientDeleteResponse], error)

BeginDelete - Deletes the storage domain. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • storageDomainName - The storage domain name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageDomainsClientBeginDeleteOptions contains the optional parameters for the StorageDomainsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsDelete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewStorageDomainsClient().BeginDelete(ctx, "sd-fs-HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*StorageDomainsClient) Get

func (client *StorageDomainsClient) Get(ctx context.Context, storageDomainName string, resourceGroupName string, managerName string, options *StorageDomainsClientGetOptions) (StorageDomainsClientGetResponse, error)

Get - Returns the properties of the specified storage domain name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2016-10-01

  • storageDomainName - The storage domain name.
  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageDomainsClientGetOptions contains the optional parameters for the StorageDomainsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsGet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewStorageDomainsClient().Get(ctx, "sd-fs-HSDK-4XY4FI2IVG", "ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.StorageDomain = armstorsimple1200series.StorageDomain{
	// 	Name: to.Ptr("sd-fs-HSDK-4XY4FI2IVG"),
	// 	Type: to.Ptr("Microsoft.StorSimple/managers/storageDomains"),
	// 	ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"),
	// 	Properties: &armstorsimple1200series.StorageDomainProperties{
	// 		EncryptionStatus: to.Ptr(armstorsimple1200series.EncryptionStatusDisabled),
	// 		StorageAccountCredentialIDs: []*string{
	// 			to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest")},
	// 		},
	// 	}
}
Output:

func (*StorageDomainsClient) NewListByManagerPager

func (client *StorageDomainsClient) NewListByManagerPager(resourceGroupName string, managerName string, options *StorageDomainsClientListByManagerOptions) *runtime.Pager[StorageDomainsClientListByManagerResponse]

NewListByManagerPager - Retrieves all the storage domains in a manager.

Generated from API version 2016-10-01

  • resourceGroupName - The resource group name
  • managerName - The manager name
  • options - StorageDomainsClientListByManagerOptions contains the optional parameters for the StorageDomainsClient.NewListByManagerPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsListByManager.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armstorsimple1200series.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewStorageDomainsClient().NewListByManagerPager("ResourceGroupForSDKTest", "hAzureSDKOperations", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.StorageDomainList = armstorsimple1200series.StorageDomainList{
		// 	Value: []*armstorsimple1200series.StorageDomain{
		// 		{
		// 			Name: to.Ptr("sd-fs-HSDK-T4ZA3EAJFR"),
		// 			Type: to.Ptr("Microsoft.StorSimple/managers/storageDomains"),
		// 			ID: to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-T4ZA3EAJFR"),
		// 			Properties: &armstorsimple1200series.StorageDomainProperties{
		// 				EncryptionStatus: to.Ptr(armstorsimple1200series.EncryptionStatusDisabled),
		// 				StorageAccountCredentialIDs: []*string{
		// 					to.Ptr("/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type StorageDomainsClientBeginCreateOrUpdateOptions

type StorageDomainsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StorageDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageDomainsClient.BeginCreateOrUpdate method.

type StorageDomainsClientBeginDeleteOptions

type StorageDomainsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StorageDomainsClientBeginDeleteOptions contains the optional parameters for the StorageDomainsClient.BeginDelete method.

type StorageDomainsClientCreateOrUpdateResponse

type StorageDomainsClientCreateOrUpdateResponse struct {
	// The storage domain.
	StorageDomain
}

StorageDomainsClientCreateOrUpdateResponse contains the response from method StorageDomainsClient.BeginCreateOrUpdate.

type StorageDomainsClientDeleteResponse

type StorageDomainsClientDeleteResponse struct {
}

StorageDomainsClientDeleteResponse contains the response from method StorageDomainsClient.BeginDelete.

type StorageDomainsClientGetOptions

type StorageDomainsClientGetOptions struct {
}

StorageDomainsClientGetOptions contains the optional parameters for the StorageDomainsClient.Get method.

type StorageDomainsClientGetResponse

type StorageDomainsClientGetResponse struct {
	// The storage domain.
	StorageDomain
}

StorageDomainsClientGetResponse contains the response from method StorageDomainsClient.Get.

type StorageDomainsClientListByManagerOptions

type StorageDomainsClientListByManagerOptions struct {
}

StorageDomainsClientListByManagerOptions contains the optional parameters for the StorageDomainsClient.NewListByManagerPager method.

type StorageDomainsClientListByManagerResponse

type StorageDomainsClientListByManagerResponse struct {
	// Collection of storage domains
	StorageDomainList
}

StorageDomainsClientListByManagerResponse contains the response from method StorageDomainsClient.NewListByManagerPager.

type SupportedDeviceCapabilities

type SupportedDeviceCapabilities string
const (
	SupportedDeviceCapabilitiesFileServer  SupportedDeviceCapabilities = "FileServer"
	SupportedDeviceCapabilitiesInvalid     SupportedDeviceCapabilities = "Invalid"
	SupportedDeviceCapabilitiesIscsiServer SupportedDeviceCapabilities = "IscsiServer"
)

func PossibleSupportedDeviceCapabilitiesValues

func PossibleSupportedDeviceCapabilitiesValues() []SupportedDeviceCapabilities

PossibleSupportedDeviceCapabilitiesValues returns the possible values for the SupportedDeviceCapabilities const type.

type SymmetricEncryptedSecret

type SymmetricEncryptedSecret struct {
	// REQUIRED; Algorithm used to encrypt "Value"
	EncryptionAlgorithm *EncryptionAlgorithm

	// REQUIRED; The value of the secret itself. If the secret is in plaintext or null then EncryptionAlgorithm will be none
	Value *string

	// Thumbprint cert that was used to encrypt "Value"
	ValueCertificateThumbprint *string
}

SymmetricEncryptedSecret - This class can be used as the Type for any secret entity represented as Value, ValueCertificateThumbprint, EncryptionAlgorithm. In this case, "Value" is a secret and the "valueThumbprint" represents the certificate thumbprint of the value. The algorithm field is mainly for future usage to potentially allow different entities encrypted using different algorithms.

func (SymmetricEncryptedSecret) MarshalJSON added in v1.1.0

func (s SymmetricEncryptedSecret) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SymmetricEncryptedSecret.

func (*SymmetricEncryptedSecret) UnmarshalJSON added in v1.1.0

func (s *SymmetricEncryptedSecret) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SymmetricEncryptedSecret.

type TargetType

type TargetType string

TargetType - The target type of the backup.

const (
	TargetTypeDiskServer TargetType = "DiskServer"
	TargetTypeFileServer TargetType = "FileServer"
)

func PossibleTargetTypeValues

func PossibleTargetTypeValues() []TargetType

PossibleTargetTypeValues returns the possible values for the TargetType const type.

type Time

type Time struct {
	// REQUIRED; The hour.
	Hour *int32

	// REQUIRED; The minute.
	Minute *int32
}

Time - The Time.

func (Time) MarshalJSON added in v1.1.0

func (t Time) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Time.

func (*Time) UnmarshalJSON added in v1.1.0

func (t *Time) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Time.

type TimeSettings

type TimeSettings struct {
	// REQUIRED; Properties of the TimeSettings.
	Properties *TimeSettingsProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

TimeSettings - The TimeSettings of a device

func (TimeSettings) MarshalJSON added in v1.1.0

func (t TimeSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TimeSettings.

func (*TimeSettings) UnmarshalJSON added in v1.1.0

func (t *TimeSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TimeSettings.

type TimeSettingsProperties

type TimeSettingsProperties struct {
	// REQUIRED; The primary Network Time Protocol (NTP) server name, like 'time.windows.com'.
	PrimaryTimeServer *string

	// REQUIRED; The timezone of device, like '(UTC -06:00) Central America'
	TimeZone *string

	// The secondary Network Time Protocol (NTP) server name, like 'time.contoso.com'. It's optional.
	SecondaryTimeServer *string
}

TimeSettingsProperties - The properties of TimeSettings

func (TimeSettingsProperties) MarshalJSON added in v1.1.0

func (t TimeSettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TimeSettingsProperties.

func (*TimeSettingsProperties) UnmarshalJSON added in v1.1.0

func (t *TimeSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TimeSettingsProperties.

type UpdateDownloadProgress

type UpdateDownloadProgress struct {
	// The download phase.
	DownloadPhase *DownloadPhase

	// Number of updates downloaded.
	NumberOfUpdatesDownloaded *int32

	// Number of updates to download.
	NumberOfUpdatesToDownload *int32

	// Percentage of completion.
	PercentComplete *int32

	// Total bytes downloaded.
	TotalBytesDownloaded *float64

	// Total bytes to download.
	TotalBytesToDownload *float64
}

UpdateDownloadProgress - details available during the download

func (UpdateDownloadProgress) MarshalJSON added in v1.1.0

func (u UpdateDownloadProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateDownloadProgress.

func (*UpdateDownloadProgress) UnmarshalJSON added in v1.1.0

func (u *UpdateDownloadProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateDownloadProgress.

type UpdateInstallProgress

type UpdateInstallProgress struct {
	// Number of updates installed.
	NumberOfUpdatesInstalled *int32

	// Number of updates to install.
	NumberOfUpdatesToInstall *int32

	// Percentage of completion.
	PercentComplete *int32
}

UpdateInstallProgress - Class representing the progress during installation of updates

func (UpdateInstallProgress) MarshalJSON added in v1.1.0

func (u UpdateInstallProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateInstallProgress.

func (*UpdateInstallProgress) UnmarshalJSON added in v1.1.0

func (u *UpdateInstallProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateInstallProgress.

type UpdateOperation

type UpdateOperation string

UpdateOperation - The current update operation.

const (
	UpdateOperationDownloading UpdateOperation = "Downloading"
	UpdateOperationIdle        UpdateOperation = "Idle"
	UpdateOperationInstalling  UpdateOperation = "Installing"
	UpdateOperationScanning    UpdateOperation = "Scanning"
)

func PossibleUpdateOperationValues

func PossibleUpdateOperationValues() []UpdateOperation

PossibleUpdateOperationValues returns the possible values for the UpdateOperation const type.

type Updates

type Updates struct {
	// Update properties.
	Properties *UpdatesProperties

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

Updates - The updates profile

func (Updates) MarshalJSON added in v1.1.0

func (u Updates) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Updates.

func (*Updates) UnmarshalJSON added in v1.1.0

func (u *Updates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Updates.

type UpdatesProperties

type UpdatesProperties struct {
	// The last time when the device did an update scan.
	DeviceLastScannedTime *time.Time

	// The current Device version.
	DeviceVersion *string

	// If a download is in progress, this field contains the JobId of that particular download job
	InProgressDownloadJobID *string

	// The time when the currently running download (if any) started
	InProgressDownloadJobStartedTime *time.Time

	// If an install is in progress, this field contains the JobId of that particular install job
	InProgressInstallJobID *string

	// The time when the currently running install (if any) started
	InProgressInstallJobStartedTime *time.Time

	// The time when the currently running scan (if any) started
	InProgressScanStartedTime *time.Time

	// The time when the last Download job was completed (success|cancelled|failed) on the device.
	LastCompletedDownloadJobTime *time.Time

	// The time when the last Install job was completed (success|cancelled|failed) on the device.
	LastCompletedInstallJobTime *time.Time

	// The time when the last scan job was completed (success|cancelled|failed) on the device.
	LastCompletedScanTime *time.Time

	// Set to true if RegularUpdatesAvailable is true and if at least one of the updateItems detected has needs a reboot to install.
	RebootRequiredForInstall *bool

	// Set to true if regular updates were detected for the current version of the device.
	RegularUpdatesAvailable *bool

	// The current update operation.
	Status *UpdateOperation

	// The total number of items pending for download.
	TotalItemsPendingForDownload *int32

	// The total number of items pending for install.
	TotalItemsPendingForInstall *int32
}

UpdatesProperties - Properties of the update profile

func (UpdatesProperties) MarshalJSON

func (u UpdatesProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdatesProperties.

func (*UpdatesProperties) UnmarshalJSON

func (u *UpdatesProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdatesProperties.

type UploadCertificateRequest

type UploadCertificateRequest struct {
	// REQUIRED; Raw Certificate Data From IDM
	Properties *RawCertificateData

	// READ-ONLY; Gets ContractVersion
	ContractVersion *ContractVersions
}

UploadCertificateRequest - Upload Certificate Request to IDM

func (UploadCertificateRequest) MarshalJSON added in v1.1.0

func (u UploadCertificateRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadCertificateRequest.

func (*UploadCertificateRequest) UnmarshalJSON added in v1.1.0

func (u *UploadCertificateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UploadCertificateRequest.

type UploadCertificateResponse

type UploadCertificateResponse struct {
	// REQUIRED; Resource Certificate And AAD Details from IDM
	Properties *ResourceCertificateAndAADDetails

	// READ-ONLY; The identifier.
	ID *string

	// READ-ONLY; The name.
	Name *string

	// READ-ONLY; The type.
	Type *string
}

UploadCertificateResponse - Upload Certificate Response from IDM

func (UploadCertificateResponse) MarshalJSON added in v1.1.0

func (u UploadCertificateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadCertificateResponse.

func (*UploadCertificateResponse) UnmarshalJSON added in v1.1.0

func (u *UploadCertificateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UploadCertificateResponse.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL