storagepool

package
v59.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

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

Variables

This section is empty.

Functions

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.

Types

type ACL

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"`
}

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

type BaseClient

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

BaseClient is the base client for Storagepool.

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

type CreatedByType string

CreatedByType enumerates the values for created by type.

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

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

Disk azure Managed Disk to attach to the Disk Pool.

type DiskPool

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"`
	// ManagedBy - READ-ONLY; Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - READ-ONLY; List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,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"`
}

DiskPool response for Disk Pool request.

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

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"`
	// ManagedBy - Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,omitempty"`
}

DiskPoolCreate request payload for create or update Disk Pool request.

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

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"`
}

DiskPoolCreateProperties properties for Disk Pool create or update request.

type DiskPoolListResult

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"`
}

DiskPoolListResult list of Disk Pools

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

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

DiskPoolListResultIterator provides access to a complete listing of DiskPool values.

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

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

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

DiskPoolListResultPage contains a page of DiskPool values.

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

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

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"`
}

DiskPoolProperties disk Pool response properties.

type DiskPoolTier

type DiskPoolTier string

DiskPoolTier enumerates the values for disk pool tier.

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

type DiskPoolUpdate struct {
	// ManagedBy - Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,omitempty"`
	// DiskPoolUpdateProperties - Properties for Disk Pool update request.
	*DiskPoolUpdateProperties `json:"properties,omitempty"`
	// Sku - Determines the SKU of the Disk Pool
	Sku *Sku `json:"sku,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

DiskPoolUpdate request payload for Update Disk Pool request.

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

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

DiskPoolUpdateProperties properties for Disk Pool update request.

type DiskPoolZoneInfo

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

DiskPoolZoneInfo disk Pool SKU Details

func (DiskPoolZoneInfo) MarshalJSON

func (dpzi DiskPoolZoneInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPoolZoneInfo.

type DiskPoolZoneListResult

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

DiskPoolZoneListResult list Disk Pool skus operation response.

func (DiskPoolZoneListResult) IsEmpty

func (dpzlr DiskPoolZoneListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DiskPoolZoneListResult) MarshalJSON

func (dpzlr DiskPoolZoneListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiskPoolZoneListResult.

type DiskPoolZoneListResultIterator

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

DiskPoolZoneListResultIterator provides access to a complete listing of DiskPoolZoneInfo values.

func NewDiskPoolZoneListResultIterator

func NewDiskPoolZoneListResultIterator(page DiskPoolZoneListResultPage) DiskPoolZoneListResultIterator

Creates a new instance of the DiskPoolZoneListResultIterator type.

func (*DiskPoolZoneListResultIterator) Next

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

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

func (DiskPoolZoneListResultIterator) Value

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

type DiskPoolZoneListResultPage

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

DiskPoolZoneListResultPage contains a page of DiskPoolZoneInfo values.

func NewDiskPoolZoneListResultPage

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

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

func (DiskPoolZoneListResultPage) Values

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

type DiskPoolZonesClient

type DiskPoolZonesClient struct {
	BaseClient
}

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

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

type DiskPoolsClient struct {
	BaseClient
}

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

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. This create or update operation can take 15 minutes to complete. This is expected service behavior. 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. This operation can take 10 minutes to complete. This is expected service behavior. 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; attached disks are not affected. This delete operation can take 10 minutes to complete. This is expected service behavior. 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. This start operation can take 10 minutes to complete. This is expected service behavior. 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.

func (DiskPoolsClient) Upgrade

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

Upgrade upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to complete. This is expected service behavior. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. diskPoolName - the name of the Disk Pool.

func (DiskPoolsClient) UpgradePreparer

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

UpgradePreparer prepares the Upgrade request.

func (DiskPoolsClient) UpgradeResponder

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

UpgradeResponder handles the response to the Upgrade request. The method always closes the http.Response Body.

func (DiskPoolsClient) UpgradeSender

func (client DiskPoolsClient) UpgradeSender(req *http.Request) (future DiskPoolsUpgradeFuture, err error)

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

type DiskPoolsCreateOrUpdateFuture

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)
}

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

func (*DiskPoolsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsDeallocateFuture

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)
}

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

func (*DiskPoolsDeallocateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsDeleteFuture

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)
}

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

func (*DiskPoolsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsStartFuture

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)
}

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

func (*DiskPoolsStartFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsUpdateFuture

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)
}

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

func (*DiskPoolsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DiskPoolsUpgradeFuture

type DiskPoolsUpgradeFuture 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)
}

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

func (*DiskPoolsUpgradeFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EndpointDependency

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"`
}

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

type EndpointDetail

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"`
}

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

type Error

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

Error the resource management error response.

type ErrorAdditionalInfo

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"`
}

ErrorAdditionalInfo the resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

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

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorResponse

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"`
}

ErrorResponse the resource management error response.

func (ErrorResponse) MarshalJSON

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

MarshalJSON is the custom marshaler for ErrorResponse.

type IscsiLun

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"`
}

IscsiLun LUN to expose the Azure Managed Disk.

func (IscsiLun) MarshalJSON

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

MarshalJSON is the custom marshaler for IscsiLun.

type IscsiTarget

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"`
	// ManagedBy - READ-ONLY; Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - READ-ONLY; List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,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"`
}

IscsiTarget response for iSCSI Target requests.

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

type IscsiTargetACLMode string

IscsiTargetACLMode enumerates the values for iscsi target acl mode.

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

type IscsiTargetCreate struct {
	// IscsiTargetCreateProperties - Properties for iSCSI Target create request.
	*IscsiTargetCreateProperties `json:"properties,omitempty"`
	// ManagedBy - Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,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"`
}

IscsiTargetCreate payload for iSCSI Target create or update requests.

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

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"`
}

IscsiTargetCreateProperties properties for iSCSI Target create or update request.

type IscsiTargetList

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"`
}

IscsiTargetList list of iSCSI Targets.

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

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

IscsiTargetListIterator provides access to a complete listing of IscsiTarget values.

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

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

IscsiTargetListPage contains a page of IscsiTarget values.

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

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"`
	// Sessions - READ-ONLY; List of identifiers for active sessions on the iSCSI target
	Sessions *[]string `json:"sessions,omitempty"`
}

IscsiTargetProperties response properties for iSCSI Target operations.

func (IscsiTargetProperties) MarshalJSON

func (itp IscsiTargetProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IscsiTargetProperties.

type IscsiTargetUpdate

type IscsiTargetUpdate struct {
	// IscsiTargetUpdateProperties - Properties for iSCSI Target update request.
	*IscsiTargetUpdateProperties `json:"properties,omitempty"`
	// ManagedBy - Azure resource id. Indicates if this resource is managed by another Azure resource.
	ManagedBy *string `json:"managedBy,omitempty"`
	// ManagedByExtended - List of Azure resource ids that manage this resource.
	ManagedByExtended *[]string `json:"managedByExtended,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"`
}

IscsiTargetUpdate payload for iSCSI Target update requests.

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

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"`
}

IscsiTargetUpdateProperties properties for iSCSI Target update request.

type IscsiTargetsClient

type IscsiTargetsClient struct {
	BaseClient
}

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

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

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)
}

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

func (*IscsiTargetsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IscsiTargetsDeleteFuture

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)
}

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

func (*IscsiTargetsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IscsiTargetsUpdateFuture

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)
}

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

func (*IscsiTargetsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type OperationDisplay

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"`
}

OperationDisplay metadata about an operation.

type OperationListResult

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"`
}

OperationListResult list of operations supported by the RP.

type OperationalStatus

type OperationalStatus string

OperationalStatus enumerates the values for operational status.

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

type OperationsClient struct {
	BaseClient
}

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

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

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"`
}

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

type OutboundEnvironmentEndpointList

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"`
}

OutboundEnvironmentEndpointList collection of Outbound Environment Endpoints

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

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

OutboundEnvironmentEndpointListIterator provides access to a complete listing of OutboundEnvironmentEndpoint values.

func NewOutboundEnvironmentEndpointListIterator

func NewOutboundEnvironmentEndpointListIterator(page OutboundEnvironmentEndpointListPage) OutboundEnvironmentEndpointListIterator

Creates a new instance of the OutboundEnvironmentEndpointListIterator type.

func (*OutboundEnvironmentEndpointListIterator) Next

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

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

func (OutboundEnvironmentEndpointListIterator) Response

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

func (OutboundEnvironmentEndpointListIterator) Value

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

type OutboundEnvironmentEndpointListPage

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

OutboundEnvironmentEndpointListPage contains a page of OutboundEnvironmentEndpoint values.

func NewOutboundEnvironmentEndpointListPage

Creates a new instance of the OutboundEnvironmentEndpointListPage type.

func (*OutboundEnvironmentEndpointListPage) Next

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

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

func (OutboundEnvironmentEndpointListPage) Response

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

func (OutboundEnvironmentEndpointListPage) Values

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

type ProvisioningStates

type ProvisioningStates string

ProvisioningStates enumerates the values for provisioning states.

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

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"`
}

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

func (ProxyResource) MarshalJSON

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

MarshalJSON is the custom marshaler for ProxyResource.

type RPOperation

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"`
}

RPOperation description of a StoragePool RP Operation

type Resource

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"`
}

Resource ARM resource model definition.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceSkuCapability

type ResourceSkuCapability struct {
	// Name - READ-ONLY; Capability name
	Name *string `json:"name,omitempty"`
	// Value - READ-ONLY; Capability value
	Value *string `json:"value,omitempty"`
}

ResourceSkuCapability capability a resource SKU has.

func (ResourceSkuCapability) MarshalJSON

func (rsc ResourceSkuCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuCapability.

type ResourceSkuInfo

type ResourceSkuInfo struct {
	// APIVersion - READ-ONLY; StoragePool RP API version
	APIVersion *string `json:"apiVersion,omitempty"`
	// ResourceType - READ-ONLY; StoragePool resource type
	ResourceType *string `json:"resourceType,omitempty"`
	// Capabilities - READ-ONLY; List of additional capabilities for StoragePool resource.
	Capabilities *[]ResourceSkuCapability `json:"capabilities,omitempty"`
	// LocationInfo - READ-ONLY; Zones and zone capabilities in those locations where the SKU is available.
	LocationInfo *ResourceSkuLocationInfo `json:"locationInfo,omitempty"`
	// Name - READ-ONLY; Sku name
	Name *string `json:"name,omitempty"`
	// Tier - READ-ONLY; Sku tier
	Tier *string `json:"tier,omitempty"`
	// Restrictions - READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
	Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"`
}

ResourceSkuInfo resource SKU Details

func (ResourceSkuInfo) MarshalJSON

func (rsi ResourceSkuInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuInfo.

type ResourceSkuListResult

type ResourceSkuListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of StoragePool resource skus.
	Value *[]ResourceSkuInfo `json:"value,omitempty"`
	// NextLink - URI to fetch the next section of the paginated response.
	NextLink *string `json:"nextLink,omitempty"`
}

ResourceSkuListResult list Disk Pool skus operation response.

func (ResourceSkuListResult) IsEmpty

func (rslr ResourceSkuListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourceSkuListResultIterator

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

ResourceSkuListResultIterator provides access to a complete listing of ResourceSkuInfo values.

func NewResourceSkuListResultIterator

func NewResourceSkuListResultIterator(page ResourceSkuListResultPage) ResourceSkuListResultIterator

Creates a new instance of the ResourceSkuListResultIterator type.

func (*ResourceSkuListResultIterator) Next

func (iter *ResourceSkuListResultIterator) 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 (*ResourceSkuListResultIterator) NextWithContext

func (iter *ResourceSkuListResultIterator) 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 (ResourceSkuListResultIterator) NotDone

func (iter ResourceSkuListResultIterator) NotDone() bool

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

func (ResourceSkuListResultIterator) Response

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

func (ResourceSkuListResultIterator) Value

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

type ResourceSkuListResultPage

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

ResourceSkuListResultPage contains a page of ResourceSkuInfo values.

func NewResourceSkuListResultPage

Creates a new instance of the ResourceSkuListResultPage type.

func (*ResourceSkuListResultPage) Next

func (page *ResourceSkuListResultPage) 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 (*ResourceSkuListResultPage) NextWithContext

func (page *ResourceSkuListResultPage) 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 (ResourceSkuListResultPage) NotDone

func (page ResourceSkuListResultPage) NotDone() bool

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

func (ResourceSkuListResultPage) Response

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

func (ResourceSkuListResultPage) Values

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

type ResourceSkuLocationInfo

type ResourceSkuLocationInfo struct {
	// Location - READ-ONLY; Location of the SKU
	Location *string `json:"location,omitempty"`
	// Zones - READ-ONLY; List of availability zones where the SKU is supported.
	Zones *[]string `json:"zones,omitempty"`
	// ZoneDetails - READ-ONLY; Details of capabilities available to a SKU in specific zones.
	ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"`
}

ResourceSkuLocationInfo zone and capability info for resource sku

func (ResourceSkuLocationInfo) MarshalJSON

func (rsli ResourceSkuLocationInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuLocationInfo.

type ResourceSkuRestrictionInfo

type ResourceSkuRestrictionInfo struct {
	// Locations - READ-ONLY; Locations where the SKU is restricted
	Locations *[]string `json:"locations,omitempty"`
	// Zones - READ-ONLY; List of availability zones where the SKU is restricted.
	Zones *[]string `json:"zones,omitempty"`
}

ResourceSkuRestrictionInfo describes an available Compute SKU Restriction Information.

func (ResourceSkuRestrictionInfo) MarshalJSON

func (rsri ResourceSkuRestrictionInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuRestrictionInfo.

type ResourceSkuRestrictions

type ResourceSkuRestrictions struct {
	// Type - READ-ONLY; The type of restrictions. Possible values include: 'ResourceSkuRestrictionsTypeLocation', 'ResourceSkuRestrictionsTypeZone'
	Type ResourceSkuRestrictionsType `json:"type,omitempty"`
	// Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
	Values *[]string `json:"values,omitempty"`
	// RestrictionInfo - READ-ONLY; The information about the restriction where the SKU cannot be used.
	RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"`
	// ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'ResourceSkuRestrictionsReasonCodeQuotaID', 'ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription'
	ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"`
}

ResourceSkuRestrictions describes scaling information of a SKU.

func (ResourceSkuRestrictions) MarshalJSON

func (rsr ResourceSkuRestrictions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuRestrictions.

type ResourceSkuRestrictionsReasonCode

type ResourceSkuRestrictionsReasonCode string

ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code.

const (
	// ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ...
	ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription"
	// ResourceSkuRestrictionsReasonCodeQuotaID ...
	ResourceSkuRestrictionsReasonCodeQuotaID ResourceSkuRestrictionsReasonCode = "QuotaId"
)

func PossibleResourceSkuRestrictionsReasonCodeValues

func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode

PossibleResourceSkuRestrictionsReasonCodeValues returns an array of possible values for the ResourceSkuRestrictionsReasonCode const type.

type ResourceSkuRestrictionsType

type ResourceSkuRestrictionsType string

ResourceSkuRestrictionsType enumerates the values for resource sku restrictions type.

const (
	// ResourceSkuRestrictionsTypeLocation ...
	ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location"
	// ResourceSkuRestrictionsTypeZone ...
	ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone"
)

func PossibleResourceSkuRestrictionsTypeValues

func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType

PossibleResourceSkuRestrictionsTypeValues returns an array of possible values for the ResourceSkuRestrictionsType const type.

type ResourceSkuZoneDetails

type ResourceSkuZoneDetails struct {
	// Name - READ-ONLY; The set of zones that the SKU is available in with the specified capabilities.
	Name *[]string `json:"name,omitempty"`
	// Capabilities - READ-ONLY; A list of capabilities that are available for the SKU in the specified list of zones.
	Capabilities *[]ResourceSkuCapability `json:"capabilities,omitempty"`
}

ResourceSkuZoneDetails describes The zonal capabilities of a SKU.

func (ResourceSkuZoneDetails) MarshalJSON

func (rszd ResourceSkuZoneDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceSkuZoneDetails.

type ResourceSkusClient

type ResourceSkusClient struct {
	BaseClient
}

ResourceSkusClient is the client for the ResourceSkus methods of the Storagepool service.

func NewResourceSkusClient

func NewResourceSkusClient(subscriptionID string) ResourceSkusClient

NewResourceSkusClient creates an instance of the ResourceSkusClient client.

func NewResourceSkusClientWithBaseURI

func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) ResourceSkusClient

NewResourceSkusClientWithBaseURI creates an instance of the ResourceSkusClient 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 (ResourceSkusClient) List

func (client ResourceSkusClient) List(ctx context.Context, location string) (result ResourceSkuListResultPage, err error)

List lists available StoragePool resources and skus in an Azure location. Parameters: location - the location of the resource.

func (ResourceSkusClient) ListComplete

func (client ResourceSkusClient) ListComplete(ctx context.Context, location string) (result ResourceSkuListResultIterator, err error)

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

func (ResourceSkusClient) ListPreparer

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

ListPreparer prepares the List request.

func (ResourceSkusClient) ListResponder

func (client ResourceSkusClient) ListResponder(resp *http.Response) (result ResourceSkuListResult, err error)

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

func (ResourceSkusClient) ListSender

func (client ResourceSkusClient) 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 Sku

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

Sku sku for ARM resource

type SystemMetadata

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"`
}

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

type TrackedResource

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"`
}

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

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL