...

Package storagepool

import "github.com/Azure/azure-sdk-for-go/services/preview/storagepool/mgmt/2021-04-01-preview/storagepool"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagepool/armstoragepool(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagepool/armstoragepool). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package storagepool implements the Azure ARM Storagepool service API version 2021-04-01-preview.

Index ▾

Constants
func UserAgent() string
func Version() string
type ACL
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type CreatedByType
    func PossibleCreatedByTypeValues() []CreatedByType
type Disk
type DiskPool
    func (dp DiskPool) MarshalJSON() ([]byte, error)
    func (dp *DiskPool) UnmarshalJSON(body []byte) error
type DiskPoolCreate
    func (dpc DiskPoolCreate) MarshalJSON() ([]byte, error)
    func (dpc *DiskPoolCreate) UnmarshalJSON(body []byte) error
type DiskPoolCreateProperties
type DiskPoolListResult
    func (dplr DiskPoolListResult) IsEmpty() bool
    func (dplr DiskPoolListResult) MarshalJSON() ([]byte, error)
type DiskPoolListResultIterator
    func NewDiskPoolListResultIterator(page DiskPoolListResultPage) DiskPoolListResultIterator
    func (iter *DiskPoolListResultIterator) Next() error
    func (iter *DiskPoolListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter DiskPoolListResultIterator) NotDone() bool
    func (iter DiskPoolListResultIterator) Response() DiskPoolListResult
    func (iter DiskPoolListResultIterator) Value() DiskPool
type DiskPoolListResultPage
    func NewDiskPoolListResultPage(cur DiskPoolListResult, getNextPage func(context.Context, DiskPoolListResult) (DiskPoolListResult, error)) DiskPoolListResultPage
    func (page *DiskPoolListResultPage) Next() error
    func (page *DiskPoolListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page DiskPoolListResultPage) NotDone() bool
    func (page DiskPoolListResultPage) Response() DiskPoolListResult
    func (page DiskPoolListResultPage) Values() []DiskPool
type DiskPoolProperties
type DiskPoolTier
    func PossibleDiskPoolTierValues() []DiskPoolTier
type DiskPoolUpdate
    func (dpu DiskPoolUpdate) MarshalJSON() ([]byte, error)
    func (dpu *DiskPoolUpdate) UnmarshalJSON(body []byte) error
type DiskPoolUpdateProperties
type DiskPoolZoneInfo
type DiskPoolZoneListResult
    func (dpzlr DiskPoolZoneListResult) IsEmpty() bool
type DiskPoolZoneListResultIterator
    func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator
    func (iter *DiskPoolZoneListResultIterator) Next() error
    func (iter *DiskPoolZoneListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter DiskPoolZoneListResultIterator) NotDone() bool
    func (iter DiskPoolZoneListResultIterator) Response() DiskPoolZoneListResult
    func (iter DiskPoolZoneListResultIterator) Value() DiskPoolZoneInfo
type DiskPoolZoneListResultPage
    func NewDiskPoolZoneListResultPage(cur DiskPoolZoneListResult, getNextPage func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error)) DiskPoolZoneListResultPage
    func (page *DiskPoolZoneListResultPage) Next() error
    func (page *DiskPoolZoneListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page DiskPoolZoneListResultPage) NotDone() bool
    func (page DiskPoolZoneListResultPage) Response() DiskPoolZoneListResult
    func (page DiskPoolZoneListResultPage) Values() []DiskPoolZoneInfo
type DiskPoolZonesClient
    func NewDiskPoolZonesClient(subscriptionID string) DiskPoolZonesClient
    func NewDiskPoolZonesClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolZonesClient
    func (client DiskPoolZonesClient) List(ctx context.Context, location string) (result DiskPoolZoneListResultPage, err error)
    func (client DiskPoolZonesClient) ListComplete(ctx context.Context, location string) (result DiskPoolZoneListResultIterator, err error)
    func (client DiskPoolZonesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
    func (client DiskPoolZonesClient) ListResponder(resp *http.Response) (result DiskPoolZoneListResult, err error)
    func (client DiskPoolZonesClient) ListSender(req *http.Request) (*http.Response, error)
type DiskPoolsClient
    func NewDiskPoolsClient(subscriptionID string) DiskPoolsClient
    func NewDiskPoolsClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolsClient
    func (client DiskPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (result DiskPoolsCreateOrUpdateFuture, err error)
    func (client DiskPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (*http.Request, error)
    func (client DiskPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskPool, err error)
    func (client DiskPoolsClient) CreateOrUpdateSender(req *http.Request) (future DiskPoolsCreateOrUpdateFuture, err error)
    func (client DiskPoolsClient) Deallocate(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeallocateFuture, err error)
    func (client DiskPoolsClient) DeallocatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client DiskPoolsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error)
    func (client DiskPoolsClient) DeallocateSender(req *http.Request) (future DiskPoolsDeallocateFuture, err error)
    func (client DiskPoolsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeleteFuture, err error)
    func (client DiskPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client DiskPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client DiskPoolsClient) DeleteSender(req *http.Request) (future DiskPoolsDeleteFuture, err error)
    func (client DiskPoolsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPool, err error)
    func (client DiskPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client DiskPoolsClient) GetResponder(resp *http.Response) (result DiskPool, err error)
    func (client DiskPoolsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client DiskPoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskPoolListResultPage, err error)
    func (client DiskPoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskPoolListResultIterator, err error)
    func (client DiskPoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
    func (client DiskPoolsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskPoolListResult, err error)
    func (client DiskPoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
    func (client DiskPoolsClient) ListBySubscription(ctx context.Context) (result DiskPoolListResultPage, err error)
    func (client DiskPoolsClient) ListBySubscriptionComplete(ctx context.Context) (result DiskPoolListResultIterator, err error)
    func (client DiskPoolsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
    func (client DiskPoolsClient) ListBySubscriptionResponder(resp *http.Response) (result DiskPoolListResult, err error)
    func (client DiskPoolsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
    func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListPage, err error)
    func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListIterator, err error)
    func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result OutboundEnvironmentEndpointList, err error)
    func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error)
    func (client DiskPoolsClient) Start(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsStartFuture, err error)
    func (client DiskPoolsClient) StartPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client DiskPoolsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
    func (client DiskPoolsClient) StartSender(req *http.Request) (future DiskPoolsStartFuture, err error)
    func (client DiskPoolsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (result DiskPoolsUpdateFuture, err error)
    func (client DiskPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (*http.Request, error)
    func (client DiskPoolsClient) UpdateResponder(resp *http.Response) (result DiskPool, err error)
    func (client DiskPoolsClient) UpdateSender(req *http.Request) (future DiskPoolsUpdateFuture, err error)
type DiskPoolsCreateOrUpdateFuture
    func (future *DiskPoolsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
type DiskPoolsDeallocateFuture
    func (future *DiskPoolsDeallocateFuture) UnmarshalJSON(body []byte) error
type DiskPoolsDeleteFuture
    func (future *DiskPoolsDeleteFuture) UnmarshalJSON(body []byte) error
type DiskPoolsStartFuture
    func (future *DiskPoolsStartFuture) UnmarshalJSON(body []byte) error
type DiskPoolsUpdateFuture
    func (future *DiskPoolsUpdateFuture) UnmarshalJSON(body []byte) error
type EndpointDependency
type EndpointDetail
type Error
type ErrorAdditionalInfo
    func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
type ErrorResponse
    func (er ErrorResponse) MarshalJSON() ([]byte, error)
type IscsiLun
    func (il IscsiLun) MarshalJSON() ([]byte, error)
type IscsiTarget
    func (it IscsiTarget) MarshalJSON() ([]byte, error)
    func (it *IscsiTarget) UnmarshalJSON(body []byte) error
type IscsiTargetACLMode
    func PossibleIscsiTargetACLModeValues() []IscsiTargetACLMode
type IscsiTargetCreate
    func (itc IscsiTargetCreate) MarshalJSON() ([]byte, error)
    func (itc *IscsiTargetCreate) UnmarshalJSON(body []byte) error
type IscsiTargetCreateProperties
type IscsiTargetList
    func (itl IscsiTargetList) IsEmpty() bool
    func (itl IscsiTargetList) MarshalJSON() ([]byte, error)
type IscsiTargetListIterator
    func NewIscsiTargetListIterator(page IscsiTargetListPage) IscsiTargetListIterator
    func (iter *IscsiTargetListIterator) Next() error
    func (iter *IscsiTargetListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter IscsiTargetListIterator) NotDone() bool
    func (iter IscsiTargetListIterator) Response() IscsiTargetList
    func (iter IscsiTargetListIterator) Value() IscsiTarget
type IscsiTargetListPage
    func NewIscsiTargetListPage(cur IscsiTargetList, getNextPage func(context.Context, IscsiTargetList) (IscsiTargetList, error)) IscsiTargetListPage
    func (page *IscsiTargetListPage) Next() error
    func (page *IscsiTargetListPage) NextWithContext(ctx context.Context) (err error)
    func (page IscsiTargetListPage) NotDone() bool
    func (page IscsiTargetListPage) Response() IscsiTargetList
    func (page IscsiTargetListPage) Values() []IscsiTarget
type IscsiTargetProperties
type IscsiTargetUpdate
    func (itu IscsiTargetUpdate) MarshalJSON() ([]byte, error)
    func (itu *IscsiTargetUpdate) UnmarshalJSON(body []byte) error
type IscsiTargetUpdateProperties
type IscsiTargetsClient
    func NewIscsiTargetsClient(subscriptionID string) IscsiTargetsClient
    func NewIscsiTargetsClientWithBaseURI(baseURI string, subscriptionID string) IscsiTargetsClient
    func (client IscsiTargetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (result IscsiTargetsCreateOrUpdateFuture, err error)
    func (client IscsiTargetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (*http.Request, error)
    func (client IscsiTargetsClient) CreateOrUpdateResponder(resp *http.Response) (result IscsiTarget, err error)
    func (client IscsiTargetsClient) CreateOrUpdateSender(req *http.Request) (future IscsiTargetsCreateOrUpdateFuture, err error)
    func (client IscsiTargetsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTargetsDeleteFuture, err error)
    func (client IscsiTargetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)
    func (client IscsiTargetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client IscsiTargetsClient) DeleteSender(req *http.Request) (future IscsiTargetsDeleteFuture, err error)
    func (client IscsiTargetsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTarget, err error)
    func (client IscsiTargetsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)
    func (client IscsiTargetsClient) GetResponder(resp *http.Response) (result IscsiTarget, err error)
    func (client IscsiTargetsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client IscsiTargetsClient) ListByDiskPool(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListPage, err error)
    func (client IscsiTargetsClient) ListByDiskPoolComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListIterator, err error)
    func (client IscsiTargetsClient) ListByDiskPoolPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)
    func (client IscsiTargetsClient) ListByDiskPoolResponder(resp *http.Response) (result IscsiTargetList, err error)
    func (client IscsiTargetsClient) ListByDiskPoolSender(req *http.Request) (*http.Response, error)
    func (client IscsiTargetsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (result IscsiTargetsUpdateFuture, err error)
    func (client IscsiTargetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (*http.Request, error)
    func (client IscsiTargetsClient) UpdateResponder(resp *http.Response) (result IscsiTarget, err error)
    func (client IscsiTargetsClient) UpdateSender(req *http.Request) (future IscsiTargetsUpdateFuture, err error)
type IscsiTargetsCreateOrUpdateFuture
    func (future *IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
type IscsiTargetsDeleteFuture
    func (future *IscsiTargetsDeleteFuture) UnmarshalJSON(body []byte) error
type IscsiTargetsUpdateFuture
    func (future *IscsiTargetsUpdateFuture) UnmarshalJSON(body []byte) error
type OperationDisplay
type OperationListResult
type OperationalStatus
    func PossibleOperationalStatusValues() []OperationalStatus
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type OutboundEnvironmentEndpoint
type OutboundEnvironmentEndpointList
    func (oeel OutboundEnvironmentEndpointList) IsEmpty() bool
    func (oeel OutboundEnvironmentEndpointList) MarshalJSON() ([]byte, error)
type OutboundEnvironmentEndpointListIterator
    func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator
    func (iter *OutboundEnvironmentEndpointListIterator) Next() error
    func (iter *OutboundEnvironmentEndpointListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter OutboundEnvironmentEndpointListIterator) NotDone() bool
    func (iter OutboundEnvironmentEndpointListIterator) Response() OutboundEnvironmentEndpointList
    func (iter OutboundEnvironmentEndpointListIterator) Value() OutboundEnvironmentEndpoint
type OutboundEnvironmentEndpointListPage
    func NewOutboundEnvironmentEndpointListPage(cur OutboundEnvironmentEndpointList, getNextPage func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error)) OutboundEnvironmentEndpointListPage
    func (page *OutboundEnvironmentEndpointListPage) Next() error
    func (page *OutboundEnvironmentEndpointListPage) NextWithContext(ctx context.Context) (err error)
    func (page OutboundEnvironmentEndpointListPage) NotDone() bool
    func (page OutboundEnvironmentEndpointListPage) Response() OutboundEnvironmentEndpointList
    func (page OutboundEnvironmentEndpointListPage) Values() []OutboundEnvironmentEndpoint
type ProvisioningStates
    func PossibleProvisioningStatesValues() []ProvisioningStates
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type RPOperation
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type Sku
type SystemMetadata
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)

Package files

client.go diskpools.go diskpoolzones.go enums.go iscsitargets.go models.go operations.go version.go

Constants

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

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

type ACL

ACL access Control List (ACL) for an iSCSI Target; defines LUN masking policy

type ACL struct {
    // InitiatorIqn - iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
    InitiatorIqn *string `json:"initiatorIqn,omitempty"`
    // MappedLuns - List of LUN names mapped to the ACL.
    MappedLuns *[]string `json:"mappedLuns,omitempty"`
}

type BaseClient

BaseClient is the base client for Storagepool.

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

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CreatedByType

CreatedByType enumerates the values for created by type.

type CreatedByType string
const (
    // CreatedByTypeApplication ...
    CreatedByTypeApplication CreatedByType = "Application"
    // CreatedByTypeKey ...
    CreatedByTypeKey CreatedByType = "Key"
    // CreatedByTypeManagedIdentity ...
    CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    // CreatedByTypeUser ...
    CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type Disk

Disk azure Managed Disk to attach to the Disk Pool.

type Disk struct {
    // ID - Unique Azure Resource ID of the Managed Disk.
    ID *string `json:"id,omitempty"`
}

type DiskPool

DiskPool response for Disk Pool request.

type DiskPool struct {
    autorest.Response `json:"-"`
    // Sku - Determines the SKU of the Disk pool
    *Sku `json:"sku,omitempty"`
    // DiskPoolProperties - Properties of Disk Pool.
    *DiskPoolProperties `json:"properties,omitempty"`
    // SystemData - READ-ONLY; Resource metadata required by ARM RPC
    SystemData *SystemMetadata `json:"systemData,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives.
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (DiskPool) MarshalJSON

func (dp DiskPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPool.

func (*DiskPool) UnmarshalJSON

func (dp *DiskPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiskPool struct.

type DiskPoolCreate

DiskPoolCreate request payload for create or update Disk Pool request.

type DiskPoolCreate struct {
    // Sku - Determines the SKU of the Disk Pool
    Sku *Sku `json:"sku,omitempty"`
    // DiskPoolCreateProperties - Properties for Disk Pool create request.
    *DiskPoolCreateProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives.
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (DiskPoolCreate) MarshalJSON

func (dpc DiskPoolCreate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPoolCreate.

func (*DiskPoolCreate) UnmarshalJSON

func (dpc *DiskPoolCreate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiskPoolCreate struct.

type DiskPoolCreateProperties

DiskPoolCreateProperties properties for Disk Pool create or update request.

type DiskPoolCreateProperties struct {
    // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"].
    AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
    // Disks - List of Azure Managed Disks to attach to a Disk Pool.
    Disks *[]Disk `json:"disks,omitempty"`
    // SubnetID - Azure Resource ID of a Subnet for the Disk Pool.
    SubnetID *string `json:"subnetId,omitempty"`
    // AdditionalCapabilities - List of additional capabilities for a Disk Pool.
    AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"`
}

type DiskPoolListResult

DiskPoolListResult list of Disk Pools

type DiskPoolListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of Disk pool objects.
    Value *[]DiskPool `json:"value,omitempty"`
    // NextLink - READ-ONLY; URI to fetch the next section of the paginated response.
    NextLink *string `json:"nextLink,omitempty"`
}

func (DiskPoolListResult) IsEmpty

func (dplr DiskPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DiskPoolListResult) MarshalJSON

func (dplr DiskPoolListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPoolListResult.

type DiskPoolListResultIterator

DiskPoolListResultIterator provides access to a complete listing of DiskPool values.

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

func NewDiskPoolListResultIterator

func NewDiskPoolListResultIterator(page DiskPoolListResultPage) DiskPoolListResultIterator

Creates a new instance of the DiskPoolListResultIterator type.

func (*DiskPoolListResultIterator) Next

func (iter *DiskPoolListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskPoolListResultIterator) NextWithContext

func (iter *DiskPoolListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DiskPoolListResultIterator) NotDone

func (iter DiskPoolListResultIterator) NotDone() bool

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

func (DiskPoolListResultIterator) Response

func (iter DiskPoolListResultIterator) Response() DiskPoolListResult

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

func (DiskPoolListResultIterator) Value

func (iter DiskPoolListResultIterator) Value() DiskPool

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

type DiskPoolListResultPage

DiskPoolListResultPage contains a page of DiskPool values.

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

func NewDiskPoolListResultPage

func NewDiskPoolListResultPage(cur DiskPoolListResult, getNextPage func(context.Context, DiskPoolListResult) (DiskPoolListResult, error)) DiskPoolListResultPage

Creates a new instance of the DiskPoolListResultPage type.

func (*DiskPoolListResultPage) Next

func (page *DiskPoolListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskPoolListResultPage) NextWithContext

func (page *DiskPoolListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DiskPoolListResultPage) NotDone

func (page DiskPoolListResultPage) NotDone() bool

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

func (DiskPoolListResultPage) Response

func (page DiskPoolListResultPage) Response() DiskPoolListResult

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

func (DiskPoolListResultPage) Values

func (page DiskPoolListResultPage) Values() []DiskPool

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

type DiskPoolProperties

DiskPoolProperties disk Pool response properties.

type DiskPoolProperties struct {
    // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting'
    ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"`
    // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"].
    AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
    // Status - Operational status of the Disk Pool. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated'
    Status OperationalStatus `json:"status,omitempty"`
    // Disks - List of Azure Managed Disks to attach to a Disk Pool.
    Disks *[]Disk `json:"disks,omitempty"`
    // SubnetID - Azure Resource ID of a Subnet for the Disk Pool.
    SubnetID *string `json:"subnetId,omitempty"`
    // AdditionalCapabilities - List of additional capabilities for Disk Pool.
    AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"`
}

type DiskPoolTier

DiskPoolTier enumerates the values for disk pool tier.

type DiskPoolTier string
const (
    // DiskPoolTierBasic ...
    DiskPoolTierBasic DiskPoolTier = "Basic"
    // DiskPoolTierPremium ...
    DiskPoolTierPremium DiskPoolTier = "Premium"
    // DiskPoolTierStandard ...
    DiskPoolTierStandard DiskPoolTier = "Standard"
)

func PossibleDiskPoolTierValues

func PossibleDiskPoolTierValues() []DiskPoolTier

PossibleDiskPoolTierValues returns an array of possible values for the DiskPoolTier const type.

type DiskPoolUpdate

DiskPoolUpdate request payload for Update Disk Pool request.

type DiskPoolUpdate struct {
    // DiskPoolUpdateProperties - Properties for Disk Pool update request.
    *DiskPoolUpdateProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

func (DiskPoolUpdate) MarshalJSON

func (dpu DiskPoolUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPoolUpdate.

func (*DiskPoolUpdate) UnmarshalJSON

func (dpu *DiskPoolUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiskPoolUpdate struct.

type DiskPoolUpdateProperties

DiskPoolUpdateProperties properties for Disk Pool update request.

type DiskPoolUpdateProperties struct {
    // Disks - List of Azure Managed Disks to attach to a Disk Pool.
    Disks *[]Disk `json:"disks,omitempty"`
}

type DiskPoolZoneInfo

DiskPoolZoneInfo disk Pool Sku Details

type DiskPoolZoneInfo struct {
    // AvailabilityZones - Logical zone for Disk Pool resource; example: ["1"].
    AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
    // AdditionalCapabilities - List of additional capabilities for Disk Pool.
    AdditionalCapabilities *[]string `json:"additionalCapabilities,omitempty"`
    // Sku - Determines the SKU of VM deployed for Disk Pool
    Sku *Sku `json:"sku,omitempty"`
}

type DiskPoolZoneListResult

DiskPoolZoneListResult list Disk Pool skus operation response.

type DiskPoolZoneListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of Disk Pool Skus.
    Value *[]DiskPoolZoneInfo `json:"value,omitempty"`
    // NextLink - URI to fetch the next section of the paginated response.
    NextLink *string `json:"nextLink,omitempty"`
}

func (DiskPoolZoneListResult) IsEmpty

func (dpzlr DiskPoolZoneListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DiskPoolZoneListResultIterator

DiskPoolZoneListResultIterator provides access to a complete listing of DiskPoolZoneInfo values.

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

func NewDiskPoolZoneListResultIterator

func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator

Creates a new instance of the DiskPoolZoneListResultIterator type.

func (*DiskPoolZoneListResultIterator) Next

func (iter *DiskPoolZoneListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskPoolZoneListResultIterator) NextWithContext

func (iter *DiskPoolZoneListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DiskPoolZoneListResultIterator) NotDone

func (iter DiskPoolZoneListResultIterator) NotDone() bool

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

func (DiskPoolZoneListResultIterator) Response

func (iter DiskPoolZoneListResultIterator) Response() DiskPoolZoneListResult

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

func (DiskPoolZoneListResultIterator) Value

func (iter DiskPoolZoneListResultIterator) Value() DiskPoolZoneInfo

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

type DiskPoolZoneListResultPage

DiskPoolZoneListResultPage contains a page of DiskPoolZoneInfo values.

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

func NewDiskPoolZoneListResultPage

func NewDiskPoolZoneListResultPage(cur DiskPoolZoneListResult, getNextPage func(context.Context, DiskPoolZoneListResult) (DiskPoolZoneListResult, error)) DiskPoolZoneListResultPage

Creates a new instance of the DiskPoolZoneListResultPage type.

func (*DiskPoolZoneListResultPage) Next

func (page *DiskPoolZoneListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DiskPoolZoneListResultPage) NextWithContext

func (page *DiskPoolZoneListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DiskPoolZoneListResultPage) NotDone

func (page DiskPoolZoneListResultPage) NotDone() bool

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

func (DiskPoolZoneListResultPage) Response

func (page DiskPoolZoneListResultPage) Response() DiskPoolZoneListResult

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

func (DiskPoolZoneListResultPage) Values

func (page DiskPoolZoneListResultPage) Values() []DiskPoolZoneInfo

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

type DiskPoolZonesClient

DiskPoolZonesClient is the client for the DiskPoolZones methods of the Storagepool service.

type DiskPoolZonesClient struct {
    BaseClient
}

func NewDiskPoolZonesClient

func NewDiskPoolZonesClient(subscriptionID string) DiskPoolZonesClient

NewDiskPoolZonesClient creates an instance of the DiskPoolZonesClient client.

func NewDiskPoolZonesClientWithBaseURI

func NewDiskPoolZonesClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolZonesClient

NewDiskPoolZonesClientWithBaseURI creates an instance of the DiskPoolZonesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DiskPoolZonesClient) List

func (client DiskPoolZonesClient) List(ctx context.Context, location string) (result DiskPoolZoneListResultPage, err error)

List lists available Disk Pool Skus in an Azure location. Parameters: location - the location of the resource.

func (DiskPoolZonesClient) ListComplete

func (client DiskPoolZonesClient) ListComplete(ctx context.Context, location string) (result DiskPoolZoneListResultIterator, err error)

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

func (DiskPoolZonesClient) ListPreparer

func (client DiskPoolZonesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)

ListPreparer prepares the List request.

func (DiskPoolZonesClient) ListResponder

func (client DiskPoolZonesClient) ListResponder(resp *http.Response) (result DiskPoolZoneListResult, err error)

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

func (DiskPoolZonesClient) ListSender

func (client DiskPoolZonesClient) ListSender(req *http.Request) (*http.Response, error)

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

type DiskPoolsClient

DiskPoolsClient is the client for the DiskPools methods of the Storagepool service.

type DiskPoolsClient struct {
    BaseClient
}

func NewDiskPoolsClient

func NewDiskPoolsClient(subscriptionID string) DiskPoolsClient

NewDiskPoolsClient creates an instance of the DiskPoolsClient client.

func NewDiskPoolsClientWithBaseURI

func NewDiskPoolsClientWithBaseURI(baseURI string, subscriptionID string) DiskPoolsClient

NewDiskPoolsClientWithBaseURI creates an instance of the DiskPoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DiskPoolsClient) CreateOrUpdate

func (client DiskPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (result DiskPoolsCreateOrUpdateFuture, err error)

CreateOrUpdate create or Update Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. diskPoolCreatePayload - request payload for Disk Pool create operation

func (DiskPoolsClient) CreateOrUpdatePreparer

func (client DiskPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolCreatePayload DiskPoolCreate) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DiskPoolsClient) CreateOrUpdateResponder

func (client DiskPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskPool, err error)

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

func (DiskPoolsClient) CreateOrUpdateSender

func (client DiskPoolsClient) CreateOrUpdateSender(req *http.Request) (future DiskPoolsCreateOrUpdateFuture, err error)

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

func (DiskPoolsClient) Deallocate

func (client DiskPoolsClient) Deallocate(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeallocateFuture, err error)

Deallocate shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) DeallocatePreparer

func (client DiskPoolsClient) DeallocatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)

DeallocatePreparer prepares the Deallocate request.

func (DiskPoolsClient) DeallocateResponder

func (client DiskPoolsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error)

DeallocateResponder handles the response to the Deallocate request. The method always closes the http.Response Body.

func (DiskPoolsClient) DeallocateSender

func (client DiskPoolsClient) DeallocateSender(req *http.Request) (future DiskPoolsDeallocateFuture, err error)

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

func (DiskPoolsClient) Delete

func (client DiskPoolsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsDeleteFuture, err error)

Delete delete a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DiskPoolsClient) DeleteResponder

func (client DiskPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DiskPoolsClient) DeleteSender

func (client DiskPoolsClient) DeleteSender(req *http.Request) (future DiskPoolsDeleteFuture, err error)

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

func (DiskPoolsClient) Get

func (client DiskPoolsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPool, err error)

Get get a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DiskPoolsClient) GetResponder

func (client DiskPoolsClient) GetResponder(resp *http.Response) (result DiskPool, err error)

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

func (DiskPoolsClient) GetSender

func (client DiskPoolsClient) GetSender(req *http.Request) (*http.Response, error)

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

func (DiskPoolsClient) ListByResourceGroup

func (client DiskPoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskPoolListResultPage, err error)

ListByResourceGroup gets a list of DiskPools in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (DiskPoolsClient) ListByResourceGroupComplete

func (client DiskPoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskPoolListResultIterator, err error)

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

func (DiskPoolsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DiskPoolsClient) ListByResourceGroupResponder

func (client DiskPoolsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskPoolListResult, err error)

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

func (DiskPoolsClient) ListByResourceGroupSender

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

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

func (DiskPoolsClient) ListBySubscription

func (client DiskPoolsClient) ListBySubscription(ctx context.Context) (result DiskPoolListResultPage, err error)

ListBySubscription gets a list of Disk Pools in a subscription

func (DiskPoolsClient) ListBySubscriptionComplete

func (client DiskPoolsClient) ListBySubscriptionComplete(ctx context.Context) (result DiskPoolListResultIterator, err error)

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

func (DiskPoolsClient) ListBySubscriptionPreparer

func (client DiskPoolsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DiskPoolsClient) ListBySubscriptionResponder

func (client DiskPoolsClient) ListBySubscriptionResponder(resp *http.Response) (result DiskPoolListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (DiskPoolsClient) ListBySubscriptionSender

func (client DiskPoolsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints

func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListPage, err error)

ListOutboundNetworkDependenciesEndpoints gets the network endpoints of all outbound dependencies of a Disk Pool Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsComplete

func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result OutboundEnvironmentEndpointListIterator, err error)

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

func (DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsPreparer

func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)

ListOutboundNetworkDependenciesEndpointsPreparer prepares the ListOutboundNetworkDependenciesEndpoints request.

func (DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsResponder

func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result OutboundEnvironmentEndpointList, err error)

ListOutboundNetworkDependenciesEndpointsResponder handles the response to the ListOutboundNetworkDependenciesEndpoints request. The method always closes the http.Response Body.

func (DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsSender

func (client DiskPoolsClient) ListOutboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error)

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

func (DiskPoolsClient) Start

func (client DiskPoolsClient) Start(ctx context.Context, resourceGroupName string, diskPoolName string) (result DiskPoolsStartFuture, err error)

Start the operation to start a Disk Pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) StartPreparer

func (client DiskPoolsClient) StartPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (DiskPoolsClient) StartResponder

func (client DiskPoolsClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (DiskPoolsClient) StartSender

func (client DiskPoolsClient) StartSender(req *http.Request) (future DiskPoolsStartFuture, err error)

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

func (DiskPoolsClient) Update

func (client DiskPoolsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (result DiskPoolsUpdateFuture, err error)

Update update a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. diskPoolUpdatePayload - request payload for Disk Pool update operation.

func (DiskPoolsClient) UpdatePreparer

func (client DiskPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, diskPoolUpdatePayload DiskPoolUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DiskPoolsClient) UpdateResponder

func (client DiskPoolsClient) UpdateResponder(resp *http.Response) (result DiskPool, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DiskPoolsClient) UpdateSender

func (client DiskPoolsClient) UpdateSender(req *http.Request) (future DiskPoolsUpdateFuture, err error)

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

type DiskPoolsCreateOrUpdateFuture

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

type DiskPoolsCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(DiskPoolsClient) (DiskPool, error)
}

func (*DiskPoolsCreateOrUpdateFuture) UnmarshalJSON

func (future *DiskPoolsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsDeallocateFuture

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

type DiskPoolsDeallocateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(DiskPoolsClient) (autorest.Response, error)
}

func (*DiskPoolsDeallocateFuture) UnmarshalJSON

func (future *DiskPoolsDeallocateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsDeleteFuture

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

type DiskPoolsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(DiskPoolsClient) (autorest.Response, error)
}

func (*DiskPoolsDeleteFuture) UnmarshalJSON

func (future *DiskPoolsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsStartFuture

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

type DiskPoolsStartFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(DiskPoolsClient) (autorest.Response, error)
}

func (*DiskPoolsStartFuture) UnmarshalJSON

func (future *DiskPoolsStartFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsUpdateFuture

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

type DiskPoolsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(DiskPoolsClient) (DiskPool, error)
}

func (*DiskPoolsUpdateFuture) UnmarshalJSON

func (future *DiskPoolsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EndpointDependency

EndpointDependency a domain name that a service is reached at, including details of the current connection status.

type EndpointDependency struct {
    // DomainName - The domain name of the dependency.
    DomainName *string `json:"domainName,omitempty"`
    // EndpointDetails - The IP Addresses and Ports used when connecting to DomainName.
    EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"`
}

type EndpointDetail

EndpointDetail current TCP connectivity information from the App Service Environment to a single endpoint.

type EndpointDetail struct {
    // IPAddress - An IP Address that Domain Name currently resolves to.
    IPAddress *string `json:"ipAddress,omitempty"`
    // Port - The port an endpoint is connected to.
    Port *int32 `json:"port,omitempty"`
    // Latency - The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port.
    Latency *float64 `json:"latency,omitempty"`
    // IsAccessible - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port.
    IsAccessible *bool `json:"isAccessible,omitempty"`
}

type Error

Error the resource management error response.

type Error struct {
    // Error - RP error response.
    Error *ErrorResponse `json:"error,omitempty"`
}

type ErrorAdditionalInfo

ErrorAdditionalInfo the resource management error additional info.

type ErrorAdditionalInfo struct {
    // Type - READ-ONLY; The additional info type.
    Type *string `json:"type,omitempty"`
    // Info - READ-ONLY; The additional info.
    Info interface{} `json:"info,omitempty"`
}

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorResponse

ErrorResponse the resource management error response.

type ErrorResponse struct {
    // Code - READ-ONLY; The error code.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; The error message.
    Message *string `json:"message,omitempty"`
    // Target - READ-ONLY; The error target.
    Target *string `json:"target,omitempty"`
    // Details - READ-ONLY; The error details.
    Details *[]ErrorResponse `json:"details,omitempty"`
    // AdditionalInfo - READ-ONLY; The error additional info.
    AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type IscsiLun

IscsiLun LUN to expose the Azure Managed Disk.

type IscsiLun struct {
    // Name - User defined name for iSCSI LUN; example: "lun0"
    Name *string `json:"name,omitempty"`
    // ManagedDiskAzureResourceID - Azure Resource ID of the Managed Disk.
    ManagedDiskAzureResourceID *string `json:"managedDiskAzureResourceId,omitempty"`
    // Lun - READ-ONLY; Specifies the Logical Unit Number of the iSCSI LUN.
    Lun *int32 `json:"lun,omitempty"`
}

func (IscsiLun) MarshalJSON

func (il IscsiLun) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiLun.

type IscsiTarget

IscsiTarget response for iSCSI Target requests.

type IscsiTarget struct {
    autorest.Response `json:"-"`
    // IscsiTargetProperties - Properties for iSCSI Target operations.
    *IscsiTargetProperties `json:"properties,omitempty"`
    // SystemData - Resource metadata required by ARM RPC
    SystemData *SystemMetadata `json:"systemData,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (IscsiTarget) MarshalJSON

func (it IscsiTarget) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiTarget.

func (*IscsiTarget) UnmarshalJSON

func (it *IscsiTarget) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IscsiTarget struct.

type IscsiTargetACLMode

IscsiTargetACLMode enumerates the values for iscsi target acl mode.

type IscsiTargetACLMode string
const (
    // IscsiTargetACLModeDynamic ...
    IscsiTargetACLModeDynamic IscsiTargetACLMode = "Dynamic"
    // IscsiTargetACLModeStatic ...
    IscsiTargetACLModeStatic IscsiTargetACLMode = "Static"
)

func PossibleIscsiTargetACLModeValues

func PossibleIscsiTargetACLModeValues() []IscsiTargetACLMode

PossibleIscsiTargetACLModeValues returns an array of possible values for the IscsiTargetACLMode const type.

type IscsiTargetCreate

IscsiTargetCreate payload for iSCSI Target create or update requests.

type IscsiTargetCreate struct {
    // IscsiTargetCreateProperties - Properties for iSCSI Target create request.
    *IscsiTargetCreateProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (IscsiTargetCreate) MarshalJSON

func (itc IscsiTargetCreate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiTargetCreate.

func (*IscsiTargetCreate) UnmarshalJSON

func (itc *IscsiTargetCreate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IscsiTargetCreate struct.

type IscsiTargetCreateProperties

IscsiTargetCreateProperties properties for iSCSI Target create or update request.

type IscsiTargetCreateProperties struct {
    // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic'
    ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"`
    // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
    TargetIqn *string `json:"targetIqn,omitempty"`
    // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
    StaticAcls *[]ACL `json:"staticAcls,omitempty"`
    // Luns - List of LUNs to be exposed through iSCSI Target.
    Luns *[]IscsiLun `json:"luns,omitempty"`
}

type IscsiTargetList

IscsiTargetList list of iSCSI Targets.

type IscsiTargetList struct {
    autorest.Response `json:"-"`
    // Value - An array of iSCSI Targets in a Disk Pool.
    Value *[]IscsiTarget `json:"value,omitempty"`
    // NextLink - READ-ONLY; URI to fetch the next section of the paginated response.
    NextLink *string `json:"nextLink,omitempty"`
}

func (IscsiTargetList) IsEmpty

func (itl IscsiTargetList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (IscsiTargetList) MarshalJSON

func (itl IscsiTargetList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiTargetList.

type IscsiTargetListIterator

IscsiTargetListIterator provides access to a complete listing of IscsiTarget values.

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

func NewIscsiTargetListIterator

func NewIscsiTargetListIterator(page IscsiTargetListPage) IscsiTargetListIterator

Creates a new instance of the IscsiTargetListIterator type.

func (*IscsiTargetListIterator) Next

func (iter *IscsiTargetListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*IscsiTargetListIterator) NextWithContext

func (iter *IscsiTargetListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (IscsiTargetListIterator) NotDone

func (iter IscsiTargetListIterator) NotDone() bool

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

func (IscsiTargetListIterator) Response

func (iter IscsiTargetListIterator) Response() IscsiTargetList

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

func (IscsiTargetListIterator) Value

func (iter IscsiTargetListIterator) Value() IscsiTarget

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

type IscsiTargetListPage

IscsiTargetListPage contains a page of IscsiTarget values.

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

func NewIscsiTargetListPage

func NewIscsiTargetListPage(cur IscsiTargetList, getNextPage func(context.Context, IscsiTargetList) (IscsiTargetList, error)) IscsiTargetListPage

Creates a new instance of the IscsiTargetListPage type.

func (*IscsiTargetListPage) Next

func (page *IscsiTargetListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*IscsiTargetListPage) NextWithContext

func (page *IscsiTargetListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (IscsiTargetListPage) NotDone

func (page IscsiTargetListPage) NotDone() bool

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

func (IscsiTargetListPage) Response

func (page IscsiTargetListPage) Response() IscsiTargetList

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

func (IscsiTargetListPage) Values

func (page IscsiTargetListPage) Values() []IscsiTarget

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

type IscsiTargetProperties

IscsiTargetProperties response properties for iSCSI Target operations.

type IscsiTargetProperties struct {
    // ACLMode - Mode for Target connectivity. Possible values include: 'IscsiTargetACLModeDynamic', 'IscsiTargetACLModeStatic'
    ACLMode IscsiTargetACLMode `json:"aclMode,omitempty"`
    // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
    StaticAcls *[]ACL `json:"staticAcls,omitempty"`
    // Luns - List of LUNs to be exposed through iSCSI Target.
    Luns *[]IscsiLun `json:"luns,omitempty"`
    // TargetIqn - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
    TargetIqn *string `json:"targetIqn,omitempty"`
    // ProvisioningState - State of the operation on the resource. Possible values include: 'ProvisioningStatesInvalid', 'ProvisioningStatesSucceeded', 'ProvisioningStatesFailed', 'ProvisioningStatesCanceled', 'ProvisioningStatesPending', 'ProvisioningStatesCreating', 'ProvisioningStatesUpdating', 'ProvisioningStatesDeleting'
    ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"`
    // Status - Operational status of the iSCSI Target. Possible values include: 'OperationalStatusInvalid', 'OperationalStatusUnknown', 'OperationalStatusHealthy', 'OperationalStatusUnhealthy', 'OperationalStatusUpdating', 'OperationalStatusRunning', 'OperationalStatusStopped', 'OperationalStatusStoppeddeallocated'
    Status OperationalStatus `json:"status,omitempty"`
    // Endpoints - List of private IPv4 addresses to connect to the iSCSI Target.
    Endpoints *[]string `json:"endpoints,omitempty"`
    // Port - The port used by iSCSI Target portal group.
    Port *int32 `json:"port,omitempty"`
}

type IscsiTargetUpdate

IscsiTargetUpdate payload for iSCSI Target update requests.

type IscsiTargetUpdate struct {
    // IscsiTargetUpdateProperties - Properties for iSCSI Target update request.
    *IscsiTargetUpdateProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (IscsiTargetUpdate) MarshalJSON

func (itu IscsiTargetUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiTargetUpdate.

func (*IscsiTargetUpdate) UnmarshalJSON

func (itu *IscsiTargetUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IscsiTargetUpdate struct.

type IscsiTargetUpdateProperties

IscsiTargetUpdateProperties properties for iSCSI Target update request.

type IscsiTargetUpdateProperties struct {
    // StaticAcls - Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
    StaticAcls *[]ACL `json:"staticAcls,omitempty"`
    // Luns - List of LUNs to be exposed through iSCSI Target.
    Luns *[]IscsiLun `json:"luns,omitempty"`
}

type IscsiTargetsClient

IscsiTargetsClient is the client for the IscsiTargets methods of the Storagepool service.

type IscsiTargetsClient struct {
    BaseClient
}

func NewIscsiTargetsClient

func NewIscsiTargetsClient(subscriptionID string) IscsiTargetsClient

NewIscsiTargetsClient creates an instance of the IscsiTargetsClient client.

func NewIscsiTargetsClientWithBaseURI

func NewIscsiTargetsClientWithBaseURI(baseURI string, subscriptionID string) IscsiTargetsClient

NewIscsiTargetsClientWithBaseURI creates an instance of the IscsiTargetsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (IscsiTargetsClient) CreateOrUpdate

func (client IscsiTargetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (result IscsiTargetsCreateOrUpdateFuture, err error)

CreateOrUpdate create or Update an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target. iscsiTargetCreatePayload - request payload for iSCSI Target create operation.

func (IscsiTargetsClient) CreateOrUpdatePreparer

func (client IscsiTargetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetCreatePayload IscsiTargetCreate) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IscsiTargetsClient) CreateOrUpdateResponder

func (client IscsiTargetsClient) CreateOrUpdateResponder(resp *http.Response) (result IscsiTarget, err error)

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

func (IscsiTargetsClient) CreateOrUpdateSender

func (client IscsiTargetsClient) CreateOrUpdateSender(req *http.Request) (future IscsiTargetsCreateOrUpdateFuture, err error)

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

func (IscsiTargetsClient) Delete

func (client IscsiTargetsClient) Delete(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTargetsDeleteFuture, err error)

Delete delete an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target.

func (IscsiTargetsClient) DeletePreparer

func (client IscsiTargetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (IscsiTargetsClient) DeleteResponder

func (client IscsiTargetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (IscsiTargetsClient) DeleteSender

func (client IscsiTargetsClient) DeleteSender(req *http.Request) (future IscsiTargetsDeleteFuture, err error)

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

func (IscsiTargetsClient) Get

func (client IscsiTargetsClient) Get(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (result IscsiTarget, err error)

Get get an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target.

func (IscsiTargetsClient) GetPreparer

func (client IscsiTargetsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (IscsiTargetsClient) GetResponder

func (client IscsiTargetsClient) GetResponder(resp *http.Response) (result IscsiTarget, err error)

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

func (IscsiTargetsClient) GetSender

func (client IscsiTargetsClient) GetSender(req *http.Request) (*http.Response, error)

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

func (IscsiTargetsClient) ListByDiskPool

func (client IscsiTargetsClient) ListByDiskPool(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListPage, err error)

ListByDiskPool get iSCSI Targets in a Disk pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (IscsiTargetsClient) ListByDiskPoolComplete

func (client IscsiTargetsClient) ListByDiskPoolComplete(ctx context.Context, resourceGroupName string, diskPoolName string) (result IscsiTargetListIterator, err error)

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

func (IscsiTargetsClient) ListByDiskPoolPreparer

func (client IscsiTargetsClient) ListByDiskPoolPreparer(ctx context.Context, resourceGroupName string, diskPoolName string) (*http.Request, error)

ListByDiskPoolPreparer prepares the ListByDiskPool request.

func (IscsiTargetsClient) ListByDiskPoolResponder

func (client IscsiTargetsClient) ListByDiskPoolResponder(resp *http.Response) (result IscsiTargetList, err error)

ListByDiskPoolResponder handles the response to the ListByDiskPool request. The method always closes the http.Response Body.

func (IscsiTargetsClient) ListByDiskPoolSender

func (client IscsiTargetsClient) ListByDiskPoolSender(req *http.Request) (*http.Response, error)

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

func (IscsiTargetsClient) Update

func (client IscsiTargetsClient) Update(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (result IscsiTargetsUpdateFuture, err error)

Update update an iSCSI Target. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool. iscsiTargetName - the name of the iSCSI Target. iscsiTargetUpdatePayload - request payload for iSCSI Target update operation.

func (IscsiTargetsClient) UpdatePreparer

func (client IscsiTargetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskPoolName string, iscsiTargetName string, iscsiTargetUpdatePayload IscsiTargetUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (IscsiTargetsClient) UpdateResponder

func (client IscsiTargetsClient) UpdateResponder(resp *http.Response) (result IscsiTarget, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (IscsiTargetsClient) UpdateSender

func (client IscsiTargetsClient) UpdateSender(req *http.Request) (future IscsiTargetsUpdateFuture, err error)

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

type IscsiTargetsCreateOrUpdateFuture

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

type IscsiTargetsCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(IscsiTargetsClient) (IscsiTarget, error)
}

func (*IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON

func (future *IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IscsiTargetsDeleteFuture

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

type IscsiTargetsDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(IscsiTargetsClient) (autorest.Response, error)
}

func (*IscsiTargetsDeleteFuture) UnmarshalJSON

func (future *IscsiTargetsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IscsiTargetsUpdateFuture

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

type IscsiTargetsUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(IscsiTargetsClient) (IscsiTarget, error)
}

func (*IscsiTargetsUpdateFuture) UnmarshalJSON

func (future *IscsiTargetsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type OperationDisplay

OperationDisplay metadata about an operation.

type OperationDisplay struct {
    // Provider - Localized friendly form of the resource provider name.
    Provider *string `json:"provider,omitempty"`
    // Resource - Localized friendly form of the resource type related to this action/operation.
    Resource *string `json:"resource,omitempty"`
    // Operation - Localized friendly name for the operation, as it should be shown to the user.
    Operation *string `json:"operation,omitempty"`
    // Description - Localized friendly description for the operation, as it should be shown to the user.
    Description *string `json:"description,omitempty"`
}

type OperationListResult

OperationListResult list of operations supported by the RP.

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of operations supported by the StoragePool RP.
    Value *[]RPOperation `json:"value,omitempty"`
    // NextLink - URI to fetch the next section of the paginated response.
    NextLink *string `json:"nextLink,omitempty"`
}

type OperationalStatus

OperationalStatus enumerates the values for operational status.

type OperationalStatus string
const (
    // OperationalStatusHealthy ...
    OperationalStatusHealthy OperationalStatus = "Healthy"
    // OperationalStatusInvalid ...
    OperationalStatusInvalid OperationalStatus = "Invalid"
    // OperationalStatusRunning ...
    OperationalStatusRunning OperationalStatus = "Running"
    // OperationalStatusStopped ...
    OperationalStatusStopped OperationalStatus = "Stopped"
    // OperationalStatusStoppeddeallocated ...
    OperationalStatusStoppeddeallocated OperationalStatus = "Stopped (deallocated)"
    // OperationalStatusUnhealthy ...
    OperationalStatusUnhealthy OperationalStatus = "Unhealthy"
    // OperationalStatusUnknown ...
    OperationalStatusUnknown OperationalStatus = "Unknown"
    // OperationalStatusUpdating ...
    OperationalStatusUpdating OperationalStatus = "Updating"
)

func PossibleOperationalStatusValues

func PossibleOperationalStatusValues() []OperationalStatus

PossibleOperationalStatusValues returns an array of possible values for the OperationalStatus const type.

type OperationsClient

OperationsClient is the client for the Operations methods of the Storagepool service.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List gets a list of StoragePool operations.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

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

type OutboundEnvironmentEndpoint

OutboundEnvironmentEndpoint endpoints accessed for a common purpose that the App Service Environment requires outbound network access to.

type OutboundEnvironmentEndpoint struct {
    // Category - The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory.
    Category *string `json:"category,omitempty"`
    // Endpoints - The endpoints that the App Service Environment reaches the service at.
    Endpoints *[]EndpointDependency `json:"endpoints,omitempty"`
}

type OutboundEnvironmentEndpointList

OutboundEnvironmentEndpointList collection of Outbound Environment Endpoints

type OutboundEnvironmentEndpointList struct {
    autorest.Response `json:"-"`
    // Value - Collection of resources.
    Value *[]OutboundEnvironmentEndpoint `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to next page of resources.
    NextLink *string `json:"nextLink,omitempty"`
}

func (OutboundEnvironmentEndpointList) IsEmpty

func (oeel OutboundEnvironmentEndpointList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OutboundEnvironmentEndpointList) MarshalJSON

func (oeel OutboundEnvironmentEndpointList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OutboundEnvironmentEndpointList.

type OutboundEnvironmentEndpointListIterator

OutboundEnvironmentEndpointListIterator provides access to a complete listing of OutboundEnvironmentEndpoint values.

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

func NewOutboundEnvironmentEndpointListIterator

func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator

Creates a new instance of the OutboundEnvironmentEndpointListIterator type.

func (*OutboundEnvironmentEndpointListIterator) Next

func (iter *OutboundEnvironmentEndpointListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OutboundEnvironmentEndpointListIterator) NextWithContext

func (iter *OutboundEnvironmentEndpointListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OutboundEnvironmentEndpointListIterator) NotDone

func (iter OutboundEnvironmentEndpointListIterator) NotDone() bool

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

func (OutboundEnvironmentEndpointListIterator) Response

func (iter OutboundEnvironmentEndpointListIterator) Response() OutboundEnvironmentEndpointList

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

func (OutboundEnvironmentEndpointListIterator) Value

func (iter OutboundEnvironmentEndpointListIterator) Value() OutboundEnvironmentEndpoint

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

type OutboundEnvironmentEndpointListPage

OutboundEnvironmentEndpointListPage contains a page of OutboundEnvironmentEndpoint values.

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

func NewOutboundEnvironmentEndpointListPage

func NewOutboundEnvironmentEndpointListPage(cur OutboundEnvironmentEndpointList, getNextPage func(context.Context, OutboundEnvironmentEndpointList) (OutboundEnvironmentEndpointList, error)) OutboundEnvironmentEndpointListPage

Creates a new instance of the OutboundEnvironmentEndpointListPage type.

func (*OutboundEnvironmentEndpointListPage) Next

func (page *OutboundEnvironmentEndpointListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OutboundEnvironmentEndpointListPage) NextWithContext

func (page *OutboundEnvironmentEndpointListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OutboundEnvironmentEndpointListPage) NotDone

func (page OutboundEnvironmentEndpointListPage) NotDone() bool

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

func (OutboundEnvironmentEndpointListPage) Response

func (page OutboundEnvironmentEndpointListPage) Response() OutboundEnvironmentEndpointList

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

func (OutboundEnvironmentEndpointListPage) Values

func (page OutboundEnvironmentEndpointListPage) Values() []OutboundEnvironmentEndpoint

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

type ProvisioningStates

ProvisioningStates enumerates the values for provisioning states.

type ProvisioningStates string
const (
    // ProvisioningStatesCanceled ...
    ProvisioningStatesCanceled ProvisioningStates = "Canceled"
    // ProvisioningStatesCreating ...
    ProvisioningStatesCreating ProvisioningStates = "Creating"
    // ProvisioningStatesDeleting ...
    ProvisioningStatesDeleting ProvisioningStates = "Deleting"
    // ProvisioningStatesFailed ...
    ProvisioningStatesFailed ProvisioningStates = "Failed"
    // ProvisioningStatesInvalid ...
    ProvisioningStatesInvalid ProvisioningStates = "Invalid"
    // ProvisioningStatesPending ...
    ProvisioningStatesPending ProvisioningStates = "Pending"
    // ProvisioningStatesSucceeded ...
    ProvisioningStatesSucceeded ProvisioningStates = "Succeeded"
    // ProvisioningStatesUpdating ...
    ProvisioningStatesUpdating ProvisioningStates = "Updating"
)

func PossibleProvisioningStatesValues

func PossibleProvisioningStatesValues() []ProvisioningStates

PossibleProvisioningStatesValues returns an array of possible values for the ProvisioningStates const type.

type ProxyResource

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type RPOperation

RPOperation description of a StoragePool RP Operation

type RPOperation struct {
    // Name - The name of the operation being performed on this particular object
    Name *string `json:"name,omitempty"`
    // IsDataAction - Indicates whether the operation applies to data-plane.
    IsDataAction *bool `json:"isDataAction,omitempty"`
    // ActionType - Indicates the action type.
    ActionType *string `json:"actionType,omitempty"`
    // Display - Additional metadata about RP operation.
    Display *OperationDisplay `json:"display,omitempty"`
    // Origin - The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX.
    Origin *string `json:"origin,omitempty"`
}

type Resource

Resource ARM resource model definition.

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Sku

Sku sku for ARM resource

type Sku struct {
    // Name - Sku name
    Name *string `json:"name,omitempty"`
    // Tier - Sku tier
    Tier *string `json:"tier,omitempty"`
}

type SystemMetadata

SystemMetadata metadata pertaining to creation and last modification of the resource.

type SystemMetadata struct {
    // CreatedBy - The identity that created the resource.
    CreatedBy *string `json:"createdBy,omitempty"`
    // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
    CreatedByType CreatedByType `json:"createdByType,omitempty"`
    // CreatedAt - The timestamp of resource creation (UTC).
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // LastModifiedBy - The identity that last modified the resource.
    LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
    // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
    LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
    // LastModifiedAt - The type of identity that last modified the resource.
    LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

type TrackedResource

TrackedResource the resource model definition for a ARM tracked top level resource.

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives.
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Subdirectories

Name Synopsis
..
storagepoolapi Deprecated: Please note, this package has been deprecated.