azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache Index | Files | Directories

package storagecache

import "github.com/Azure/azure-sdk-for-go/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache"

Package storagecache implements the Azure ARM Storagecache service API version 2019-08-01-preview.

A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

Index

Package Files

caches.go client.go models.go operations.go skus.go storagetargets.go usagemodels.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type APIOperation Uses

type APIOperation struct {
    // Display - The object that represents the operation.
    Display *APIOperationDisplay `json:"display,omitempty"`
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
}

APIOperation REST API operation description: see https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md#r3023-operationsapiimplementation

type APIOperationDisplay Uses

type APIOperationDisplay struct {
    // Operation - Operation type: Read, write, delete, etc.
    Operation *string `json:"operation,omitempty"`
    // Provider - Service provider: Microsoft.StorageCache
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed: cache, etc.
    Resource *string `json:"resource,omitempty"`
}

APIOperationDisplay the object that represents the operation.

type APIOperationListResult Uses

type APIOperationListResult struct {
    autorest.Response `json:"-"`
    // NextLink - URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - List of Resource Provider operations supported by the Microsoft.StorageCache resource provider.
    Value *[]APIOperation `json:"value,omitempty"`
}

APIOperationListResult result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.

func (APIOperationListResult) IsEmpty Uses

func (aolr APIOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type APIOperationListResultIterator Uses

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

APIOperationListResultIterator provides access to a complete listing of APIOperation values.

func NewAPIOperationListResultIterator Uses

func NewAPIOperationListResultIterator(page APIOperationListResultPage) APIOperationListResultIterator

Creates a new instance of the APIOperationListResultIterator type.

func (*APIOperationListResultIterator) Next Uses

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

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

func (iter APIOperationListResultIterator) NotDone() bool

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

func (APIOperationListResultIterator) Response Uses

func (iter APIOperationListResultIterator) Response() APIOperationListResult

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

func (APIOperationListResultIterator) Value Uses

func (iter APIOperationListResultIterator) Value() APIOperation

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

type APIOperationListResultPage Uses

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

APIOperationListResultPage contains a page of APIOperation values.

func NewAPIOperationListResultPage Uses

func NewAPIOperationListResultPage(getNextPage func(context.Context, APIOperationListResult) (APIOperationListResult, error)) APIOperationListResultPage

Creates a new instance of the APIOperationListResultPage type.

func (*APIOperationListResultPage) Next Uses

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

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

func (page APIOperationListResultPage) NotDone() bool

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

func (APIOperationListResultPage) Response Uses

func (page APIOperationListResultPage) Response() APIOperationListResult

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

func (APIOperationListResultPage) Values Uses

func (page APIOperationListResultPage) Values() []APIOperation

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

type BaseClient Uses

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

BaseClient is the base client for Storagecache.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Cache Uses

type Cache struct {
    autorest.Response `json:"-"`
    // Tags - ARM tags as name/value pairs.
    Tags interface{} `json:"tags,omitempty"`
    // ID - READ-ONLY; Fully qualified URL of the cache.
    ID  *string `json:"id,omitempty"`
    // Location - Region name string.
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Name of cache.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Type for the cache; Microsoft.StorageCache/Cache
    Type *string `json:"type,omitempty"`
    // CacheProperties - Properties for the cache.
    *CacheProperties `json:"properties,omitempty"`
    // Sku - Sku for the cache.
    Sku *CacheSku `json:"sku,omitempty"`
}

Cache a cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md

func (Cache) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Cache.

func (*Cache) UnmarshalJSON Uses

func (c *Cache) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Cache struct.

type CacheHealth Uses

type CacheHealth struct {
    // State - List of cache health states. Possible values include: 'Unknown', 'Healthy', 'Degraded', 'Down', 'Transitioning', 'Stopping', 'Stopped', 'Upgrading', 'Flushing'
    State HealthStateType `json:"state,omitempty"`
    // StatusDescription - Describes explanation of state.
    StatusDescription *string `json:"statusDescription,omitempty"`
}

CacheHealth an indication of cache health. Gives more information about health than just that related to provisioning.

type CacheProperties Uses

type CacheProperties struct {
    // CacheSizeGB - The size of this cache's cache, in GB.
    CacheSizeGB *int32 `json:"cacheSizeGB,omitempty"`
    // Health - READ-ONLY; Health of the cache.
    Health *CacheHealth `json:"health,omitempty"`
    // MountAddresses - READ-ONLY; Array of IP addresses that can be used by clients mounting this Cache.
    MountAddresses *[]string `json:"mountAddresses,omitempty"`
    // ProvisioningState - ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting', 'Updating'
    ProvisioningState ProvisioningStateType `json:"provisioningState,omitempty"`
    // Subnet - Subnet used for the cache.
    Subnet *string `json:"subnet,omitempty"`
    // UpgradeStatus - Upgrade status of the cache.
    UpgradeStatus *CacheUpgradeStatus `json:"upgradeStatus,omitempty"`
}

CacheProperties properties for the cache.

type CacheSku Uses

type CacheSku struct {
    // Name - Sku name for this cache.
    Name *string `json:"name,omitempty"`
}

CacheSku sku for the cache.

type CacheUpgradeStatus Uses

type CacheUpgradeStatus struct {
    // CurrentFirmwareVersion - READ-ONLY; Version string of the firmware currently installed on this cache.
    CurrentFirmwareVersion *string `json:"currentFirmwareVersion,omitempty"`
    // FirmwareUpdateStatus - READ-ONLY; True if there is a firmware update ready to install on this cache.  The firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation. Possible values include: 'Available', 'Unavailable'
    FirmwareUpdateStatus FirmwareStatusType `json:"firmwareUpdateStatus,omitempty"`
    // FirmwareUpdateDeadline - READ-ONLY; Time at which the pending firmware update will automatically be installed on the cache.
    FirmwareUpdateDeadline *date.Time `json:"firmwareUpdateDeadline,omitempty"`
    // LastFirmwareUpdate - READ-ONLY; Time of the last successful firmware update.
    LastFirmwareUpdate *date.Time `json:"lastFirmwareUpdate,omitempty"`
    // PendingFirmwareVersion - READ-ONLY; When firmwareUpdateAvailable is true, this field holds the version string for the update.
    PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty"`
}

CacheUpgradeStatus properties describing the software upgrade state of the cache

type CachesClient Uses

type CachesClient struct {
    BaseClient
}

CachesClient is the a Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

func NewCachesClient Uses

func NewCachesClient(subscriptionID string) CachesClient

NewCachesClient creates an instance of the CachesClient client.

func NewCachesClientWithBaseURI Uses

func NewCachesClientWithBaseURI(baseURI string, subscriptionID string) CachesClient

NewCachesClientWithBaseURI creates an instance of the CachesClient client.

func (CachesClient) Create Uses

func (client CachesClient) Create(ctx context.Context, resourceGroupName string, cacheName string, cache *Cache) (result CachesCreateFuture, err error)

Create create/update a Cache instance. Parameters: resourceGroupName - target resource group. cacheName - name of cache. cache - object containing the user selectable properties of the new cache. If read-only properties are included, they must match the existing values of those properties.

func (CachesClient) CreatePreparer Uses

func (client CachesClient) CreatePreparer(ctx context.Context, resourceGroupName string, cacheName string, cache *Cache) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CachesClient) CreateResponder Uses

func (client CachesClient) CreateResponder(resp *http.Response) (result Cache, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (CachesClient) CreateSender Uses

func (client CachesClient) CreateSender(req *http.Request) (future CachesCreateFuture, err error)

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

func (CachesClient) Delete Uses

func (client CachesClient) Delete(ctx context.Context, resourceGroupName string, cacheName string) (result CachesDeleteFuture, err error)

Delete schedules a Cache for deletion. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (CachesClient) DeleteResponder Uses

func (client CachesClient) DeleteResponder(resp *http.Response) (result SetObject, err error)

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

func (CachesClient) DeleteSender Uses

func (client CachesClient) DeleteSender(req *http.Request) (future CachesDeleteFuture, err error)

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

func (CachesClient) Flush Uses

func (client CachesClient) Flush(ctx context.Context, resourceGroupName string, cacheName string) (result CachesFlushFuture, err error)

Flush tells a cache to write all dirty data to the StorageTarget(s). During the flush, clients will see errors returned until the flush is complete. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) FlushPreparer Uses

func (client CachesClient) FlushPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)

FlushPreparer prepares the Flush request.

func (CachesClient) FlushResponder Uses

func (client CachesClient) FlushResponder(resp *http.Response) (result SetObject, err error)

FlushResponder handles the response to the Flush request. The method always closes the http.Response Body.

func (CachesClient) FlushSender Uses

func (client CachesClient) FlushSender(req *http.Request) (future CachesFlushFuture, err error)

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

func (CachesClient) Get Uses

func (client CachesClient) Get(ctx context.Context, resourceGroupName string, cacheName string) (result Cache, err error)

Get returns a Cache. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (CachesClient) GetResponder Uses

func (client CachesClient) GetResponder(resp *http.Response) (result Cache, err error)

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

func (CachesClient) GetSender Uses

func (client CachesClient) 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 (CachesClient) List Uses

func (client CachesClient) List(ctx context.Context) (result CachesListResultPage, err error)

List returns all Caches the user has access to under a subscription.

func (CachesClient) ListByResourceGroup Uses

func (client CachesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result CachesListResultPage, err error)

ListByResourceGroup returns all Caches the user has access to under a resource group and subscription. Parameters: resourceGroupName - target resource group.

func (CachesClient) ListByResourceGroupComplete Uses

func (client CachesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result CachesListResultIterator, err error)

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

func (CachesClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (CachesClient) ListByResourceGroupResponder Uses

func (client CachesClient) ListByResourceGroupResponder(resp *http.Response) (result CachesListResult, err error)

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

func (CachesClient) ListByResourceGroupSender Uses

func (client CachesClient) 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 (CachesClient) ListComplete Uses

func (client CachesClient) ListComplete(ctx context.Context) (result CachesListResultIterator, err error)

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

func (CachesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (CachesClient) ListResponder Uses

func (client CachesClient) ListResponder(resp *http.Response) (result CachesListResult, err error)

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

func (CachesClient) ListSender Uses

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

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

func (CachesClient) Start Uses

func (client CachesClient) Start(ctx context.Context, resourceGroupName string, cacheName string) (result CachesStartFuture, err error)

Start tells a Stopped state cache to transition to Active state. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) StartPreparer Uses

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

StartPreparer prepares the Start request.

func (CachesClient) StartResponder Uses

func (client CachesClient) StartResponder(resp *http.Response) (result SetObject, err error)

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

func (CachesClient) StartSender Uses

func (client CachesClient) StartSender(req *http.Request) (future CachesStartFuture, err error)

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

func (CachesClient) Stop Uses

func (client CachesClient) Stop(ctx context.Context, resourceGroupName string, cacheName string) (result CachesStopFuture, err error)

Stop tells an Active cache to transition to Stopped state. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) StopPreparer Uses

func (client CachesClient) StopPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)

StopPreparer prepares the Stop request.

func (CachesClient) StopResponder Uses

func (client CachesClient) StopResponder(resp *http.Response) (result SetObject, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (CachesClient) StopSender Uses

func (client CachesClient) StopSender(req *http.Request) (future CachesStopFuture, err error)

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

func (CachesClient) Update Uses

func (client CachesClient) Update(ctx context.Context, resourceGroupName string, cacheName string, cache *Cache) (result Cache, err error)

Update update a Cache instance. Parameters: resourceGroupName - target resource group. cacheName - name of cache. cache - object containing the user selectable properties of the new cache. If read-only properties are included, they must match the existing values of those properties.

func (CachesClient) UpdatePreparer Uses

func (client CachesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, cacheName string, cache *Cache) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CachesClient) UpdateResponder Uses

func (client CachesClient) UpdateResponder(resp *http.Response) (result Cache, err error)

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

func (CachesClient) UpdateSender Uses

func (client CachesClient) UpdateSender(req *http.Request) (*http.Response, error)

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

func (CachesClient) UpgradeFirmware Uses

func (client CachesClient) UpgradeFirmware(ctx context.Context, resourceGroupName string, cacheName string) (result CachesUpgradeFirmwareFuture, err error)

UpgradeFirmware tells a cache to upgrade its firmware. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (CachesClient) UpgradeFirmwarePreparer Uses

func (client CachesClient) UpgradeFirmwarePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)

UpgradeFirmwarePreparer prepares the UpgradeFirmware request.

func (CachesClient) UpgradeFirmwareResponder Uses

func (client CachesClient) UpgradeFirmwareResponder(resp *http.Response) (result SetObject, err error)

UpgradeFirmwareResponder handles the response to the UpgradeFirmware request. The method always closes the http.Response Body.

func (CachesClient) UpgradeFirmwareSender Uses

func (client CachesClient) UpgradeFirmwareSender(req *http.Request) (future CachesUpgradeFirmwareFuture, err error)

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

type CachesCreateFuture Uses

type CachesCreateFuture struct {
    azure.Future
}

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

func (*CachesCreateFuture) Result Uses

func (future *CachesCreateFuture) Result(client CachesClient) (c Cache, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CachesDeleteFuture Uses

type CachesDeleteFuture struct {
    azure.Future
}

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

func (*CachesDeleteFuture) Result Uses

func (future *CachesDeleteFuture) Result(client CachesClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CachesFlushFuture Uses

type CachesFlushFuture struct {
    azure.Future
}

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

func (*CachesFlushFuture) Result Uses

func (future *CachesFlushFuture) Result(client CachesClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CachesListResult Uses

type CachesListResult struct {
    autorest.Response `json:"-"`
    // NextLink - URL to get the next set of cache list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - List of caches.
    Value *[]Cache `json:"value,omitempty"`
}

CachesListResult result of the request to list caches. It contains a list of caches and a URL link to get the next set of results.

func (CachesListResult) IsEmpty Uses

func (clr CachesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CachesListResultIterator Uses

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

CachesListResultIterator provides access to a complete listing of Cache values.

func NewCachesListResultIterator Uses

func NewCachesListResultIterator(page CachesListResultPage) CachesListResultIterator

Creates a new instance of the CachesListResultIterator type.

func (*CachesListResultIterator) Next Uses

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

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

func (iter CachesListResultIterator) NotDone() bool

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

func (CachesListResultIterator) Response Uses

func (iter CachesListResultIterator) Response() CachesListResult

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

func (CachesListResultIterator) Value Uses

func (iter CachesListResultIterator) Value() Cache

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

type CachesListResultPage Uses

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

CachesListResultPage contains a page of Cache values.

func NewCachesListResultPage Uses

func NewCachesListResultPage(getNextPage func(context.Context, CachesListResult) (CachesListResult, error)) CachesListResultPage

Creates a new instance of the CachesListResultPage type.

func (*CachesListResultPage) Next Uses

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

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

func (page CachesListResultPage) NotDone() bool

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

func (CachesListResultPage) Response Uses

func (page CachesListResultPage) Response() CachesListResult

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

func (CachesListResultPage) Values Uses

func (page CachesListResultPage) Values() []Cache

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

type CachesStartFuture Uses

type CachesStartFuture struct {
    azure.Future
}

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

func (*CachesStartFuture) Result Uses

func (future *CachesStartFuture) Result(client CachesClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CachesStopFuture Uses

type CachesStopFuture struct {
    azure.Future
}

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

func (*CachesStopFuture) Result Uses

func (future *CachesStopFuture) Result(client CachesClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CachesUpgradeFirmwareFuture Uses

type CachesUpgradeFirmwareFuture struct {
    azure.Future
}

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

func (*CachesUpgradeFirmwareFuture) Result Uses

func (future *CachesUpgradeFirmwareFuture) Result(client CachesClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ClfsTarget Uses

type ClfsTarget struct {
    // Target - URL of storage container.
    Target *string `json:"target,omitempty"`
}

ClfsTarget storage container for use as a CLFS StorageTarget.

type CloudError Uses

type CloudError struct {
    // Error - The body of the error.
    Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError an error response.

type CloudErrorBody Uses

type CloudErrorBody struct {
    // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    Code *string `json:"code,omitempty"`
    // Details - A list of additional details about the error.
    Details *[]CloudErrorBody `json:"details,omitempty"`
    // Message - A message describing the error, intended to be suitable for display in a user interface.
    Message *string `json:"message,omitempty"`
    // Target - The target of the particular error. For example, the name of the property in error.
    Target *string `json:"target,omitempty"`
}

CloudErrorBody an error response.

type FirmwareStatusType Uses

type FirmwareStatusType string

FirmwareStatusType enumerates the values for firmware status type.

const (
    // Available ...
    Available FirmwareStatusType = "available"
    // Unavailable ...
    Unavailable FirmwareStatusType = "unavailable"
)

func PossibleFirmwareStatusTypeValues Uses

func PossibleFirmwareStatusTypeValues() []FirmwareStatusType

PossibleFirmwareStatusTypeValues returns an array of possible values for the FirmwareStatusType const type.

type HealthStateType Uses

type HealthStateType string

HealthStateType enumerates the values for health state type.

const (
    // Degraded ...
    Degraded HealthStateType = "Degraded"
    // Down ...
    Down HealthStateType = "Down"
    // Flushing ...
    Flushing HealthStateType = "Flushing"
    // Healthy ...
    Healthy HealthStateType = "Healthy"
    // Stopped ...
    Stopped HealthStateType = "Stopped"
    // Stopping ...
    Stopping HealthStateType = "Stopping"
    // Transitioning ...
    Transitioning HealthStateType = "Transitioning"
    // Unknown ...
    Unknown HealthStateType = "Unknown"
    // Upgrading ...
    Upgrading HealthStateType = "Upgrading"
)

func PossibleHealthStateTypeValues Uses

func PossibleHealthStateTypeValues() []HealthStateType

PossibleHealthStateTypeValues returns an array of possible values for the HealthStateType const type.

type NamespaceJunction Uses

type NamespaceJunction struct {
    // NamespacePath - Namespace path on a cache for a storage target.
    NamespacePath *string `json:"namespacePath,omitempty"`
    // TargetPath - Path in storage target to which namespacePath points.
    TargetPath *string `json:"targetPath,omitempty"`
    // NfsExport - NFS export where targetPath exists.
    NfsExport *string `json:"nfsExport,omitempty"`
}

NamespaceJunction a namespace junction.

type Nfs3Target Uses

type Nfs3Target struct {
    // Target - IP or name of an NFS Storage Target host, ie: 10.0.44.44
    Target *string `json:"target,omitempty"`
    // UsageModel - Identifies the primary usage model to be used for this storage target.   GET choices from .../usageModels
    UsageModel *string `json:"usageModel,omitempty"`
}

Nfs3Target an NFS mount point for use as a StorageTarget.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the a Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List lists all of the available RP operations.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result APIOperationListResultIterator, err error)

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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

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

func (OperationsClient) ListSender Uses

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 ProvisioningStateType Uses

type ProvisioningStateType string

ProvisioningStateType enumerates the values for provisioning state type.

const (
    // Cancelled ...
    Cancelled ProvisioningStateType = "Cancelled"
    // Creating ...
    Creating ProvisioningStateType = "Creating"
    // Deleting ...
    Deleting ProvisioningStateType = "Deleting"
    // Failed ...
    Failed ProvisioningStateType = "Failed"
    // Succeeded ...
    Succeeded ProvisioningStateType = "Succeeded"
    // Updating ...
    Updating ProvisioningStateType = "Updating"
)

func PossibleProvisioningStateTypeValues Uses

func PossibleProvisioningStateTypeValues() []ProvisioningStateType

PossibleProvisioningStateTypeValues returns an array of possible values for the ProvisioningStateType const type.

type ReasonCode Uses

type ReasonCode string

ReasonCode enumerates the values for reason code.

const (
    // NotAvailableForSubscription ...
    NotAvailableForSubscription ReasonCode = "NotAvailableForSubscription"
    // QuotaID ...
    QuotaID ReasonCode = "QuotaId"
)

func PossibleReasonCodeValues Uses

func PossibleReasonCodeValues() []ReasonCode

PossibleReasonCodeValues returns an array of possible values for the ReasonCode const type.

type ResourceSku Uses

type ResourceSku struct {
    // ResourceType - READ-ONLY; The type of resource the sku applies to.
    ResourceType *string `json:"resourceType,omitempty"`
    // Capabilities - A list of capabilities of this SKU, such as throughput or ops/sec
    Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"`
    // Locations - READ-ONLY; The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).
    Locations *[]string `json:"locations,omitempty"`
    // LocationInfo - The set of locations that the SKU is available.
    LocationInfo *[]ResourceSkuLocationInfo `json:"locationInfo,omitempty"`
    // Name - The name of this sku.
    Name *string `json:"name,omitempty"`
    // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
    Restrictions *[]Restriction `json:"restrictions,omitempty"`
}

ResourceSku a resource SKU

type ResourceSkuCapabilities Uses

type ResourceSkuCapabilities struct {
    // Name - Name of a capability, such as ops/sec
    Name *string `json:"name,omitempty"`
    // Value - Quantity, if the capability is measured by quantity
    Value *string `json:"value,omitempty"`
}

ResourceSkuCapabilities a resource SKU capability.

type ResourceSkuLocationInfo Uses

type ResourceSkuLocationInfo struct {
    // Location - Location where this Sku is available
    Location *string `json:"location,omitempty"`
    // Zones - Zones if any.
    Zones *[]string `json:"zones,omitempty"`
}

ResourceSkuLocationInfo resource SKU location information.

type ResourceSkusResult Uses

type ResourceSkusResult struct {
    autorest.Response `json:"-"`
    // NextLink - The uri to fetch the next page of cache Skus.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - READ-ONLY; The list of skus available for the subscription.
    Value *[]ResourceSku `json:"value,omitempty"`
}

ResourceSkusResult the response from the List Cache SKUs operation.

func (ResourceSkusResult) IsEmpty Uses

func (rsr ResourceSkusResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourceSkusResultIterator Uses

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

ResourceSkusResultIterator provides access to a complete listing of ResourceSku values.

func NewResourceSkusResultIterator Uses

func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator

Creates a new instance of the ResourceSkusResultIterator type.

func (*ResourceSkusResultIterator) Next Uses

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

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

func (iter ResourceSkusResultIterator) NotDone() bool

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

func (ResourceSkusResultIterator) Response Uses

func (iter ResourceSkusResultIterator) Response() ResourceSkusResult

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

func (ResourceSkusResultIterator) Value Uses

func (iter ResourceSkusResultIterator) Value() ResourceSku

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

type ResourceSkusResultPage Uses

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

ResourceSkusResultPage contains a page of ResourceSku values.

func NewResourceSkusResultPage Uses

func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage

Creates a new instance of the ResourceSkusResultPage type.

func (*ResourceSkusResultPage) Next Uses

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

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

func (page ResourceSkusResultPage) NotDone() bool

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

func (ResourceSkusResultPage) Response Uses

func (page ResourceSkusResultPage) Response() ResourceSkusResult

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

func (ResourceSkusResultPage) Values Uses

func (page ResourceSkusResultPage) Values() []ResourceSku

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

type Restriction Uses

type Restriction struct {
    // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location.
    Type *string `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"`
    // ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaID', 'NotAvailableForSubscription'
    ReasonCode ReasonCode `json:"reasonCode,omitempty"`
}

Restriction the restriction because of which SKU cannot be used.

type SetObject Uses

type SetObject struct {
    autorest.Response `json:"-"`
    Value             interface{} `json:"value,omitempty"`
}

SetObject ...

type SkusClient Uses

type SkusClient struct {
    BaseClient
}

SkusClient is the a Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

func NewSkusClient Uses

func NewSkusClient(subscriptionID string) SkusClient

NewSkusClient creates an instance of the SkusClient client.

func NewSkusClientWithBaseURI Uses

func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient

NewSkusClientWithBaseURI creates an instance of the SkusClient client.

func (SkusClient) List Uses

func (client SkusClient) List(ctx context.Context) (result ResourceSkusResultPage, err error)

List get the list of StorageCache.Cache SKUs available to this subscription.

func (SkusClient) ListComplete Uses

func (client SkusClient) ListComplete(ctx context.Context) (result ResourceSkusResultIterator, err error)

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

func (SkusClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (SkusClient) ListResponder Uses

func (client SkusClient) ListResponder(resp *http.Response) (result ResourceSkusResult, err error)

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

func (SkusClient) ListSender Uses

func (client SkusClient) 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 StorageTarget Uses

type StorageTarget struct {
    autorest.Response `json:"-"`
    // Name - READ-ONLY; A fully qualified URL.
    Name *string `json:"name,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Type - READ-ONLY; Type for the storage target; Microsoft.StorageCache/Cache/StorageTarget
    Type *string `json:"type,omitempty"`
    // StorageTargetProperties - Properties of the storage target.
    *StorageTargetProperties `json:"properties,omitempty"`
}

StorageTarget a storage system being cached by a Cache.

func (StorageTarget) MarshalJSON Uses

func (st StorageTarget) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StorageTarget.

func (*StorageTarget) UnmarshalJSON Uses

func (st *StorageTarget) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StorageTarget struct.

type StorageTargetProperties Uses

type StorageTargetProperties struct {
    // Junctions - List of cache namespace to target namespace associations.
    Junctions *[]NamespaceJunction `json:"junctions,omitempty"`
    // TargetType - Type for storage target. Possible values include: 'StorageTargetTypeNfs3', 'StorageTargetTypeClfs', 'StorageTargetTypeUnknown'
    TargetType StorageTargetType `json:"targetType,omitempty"`
    // ProvisioningState - ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting', 'Updating'
    ProvisioningState ProvisioningStateType `json:"provisioningState,omitempty"`
    // Nfs3 - Properties when nfs3 target.
    Nfs3 *Nfs3Target `json:"nfs3,omitempty"`
    // Clfs - Properties when clfs target.
    Clfs *ClfsTarget `json:"clfs,omitempty"`
    // Unknown - Properties when unknown target.
    Unknown *UnknownTarget `json:"unknown,omitempty"`
}

StorageTargetProperties properties of the storage target.

type StorageTargetType Uses

type StorageTargetType string

StorageTargetType enumerates the values for storage target type.

const (
    // StorageTargetTypeClfs ...
    StorageTargetTypeClfs StorageTargetType = "clfs"
    // StorageTargetTypeNfs3 ...
    StorageTargetTypeNfs3 StorageTargetType = "nfs3"
    // StorageTargetTypeUnknown ...
    StorageTargetTypeUnknown StorageTargetType = "unknown"
)

func PossibleStorageTargetTypeValues Uses

func PossibleStorageTargetTypeValues() []StorageTargetType

PossibleStorageTargetTypeValues returns an array of possible values for the StorageTargetType const type.

type StorageTargetsClient Uses

type StorageTargetsClient struct {
    BaseClient
}

StorageTargetsClient is the a Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

func NewStorageTargetsClient Uses

func NewStorageTargetsClient(subscriptionID string) StorageTargetsClient

NewStorageTargetsClient creates an instance of the StorageTargetsClient client.

func NewStorageTargetsClientWithBaseURI Uses

func NewStorageTargetsClientWithBaseURI(baseURI string, subscriptionID string) StorageTargetsClient

NewStorageTargetsClientWithBaseURI creates an instance of the StorageTargetsClient client.

func (StorageTargetsClient) Create Uses

func (client StorageTargetsClient) Create(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget *StorageTarget) (result StorageTargetsCreateFuture, err error)

Create create/update a storage target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the storage target may be delayed until the cache is healthy again. Parameters: resourceGroupName - target resource group. cacheName - name of cache. storageTargetName - name of storage target. storagetarget - object containing the definition of a storage target.

func (StorageTargetsClient) CreatePreparer Uses

func (client StorageTargetsClient) CreatePreparer(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget *StorageTarget) (*http.Request, error)

CreatePreparer prepares the Create request.

func (StorageTargetsClient) CreateResponder Uses

func (client StorageTargetsClient) CreateResponder(resp *http.Response) (result StorageTarget, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (StorageTargetsClient) CreateSender Uses

func (client StorageTargetsClient) CreateSender(req *http.Request) (future StorageTargetsCreateFuture, err error)

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

func (StorageTargetsClient) Delete Uses

func (client StorageTargetsClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string) (result StorageTargetsDeleteFuture, err error)

Delete removes a storage target from a cache. This operation is allowed at any time, but if the cache is down or unhealthy, the actual removal of the storage target may be delayed until the cache is healthy again. Parameters: resourceGroupName - target resource group. cacheName - name of cache. storageTargetName - name of storage target.

func (StorageTargetsClient) DeletePreparer Uses

func (client StorageTargetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (StorageTargetsClient) DeleteResponder Uses

func (client StorageTargetsClient) DeleteResponder(resp *http.Response) (result SetObject, err error)

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

func (StorageTargetsClient) DeleteSender Uses

func (client StorageTargetsClient) DeleteSender(req *http.Request) (future StorageTargetsDeleteFuture, err error)

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

func (StorageTargetsClient) Get Uses

func (client StorageTargetsClient) Get(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string) (result StorageTarget, err error)

Get returns a storage target from a cache. Parameters: resourceGroupName - target resource group. cacheName - name of cache. storageTargetName - name of storage target.

func (StorageTargetsClient) GetPreparer Uses

func (client StorageTargetsClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (StorageTargetsClient) GetResponder Uses

func (client StorageTargetsClient) GetResponder(resp *http.Response) (result StorageTarget, err error)

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

func (StorageTargetsClient) GetSender Uses

func (client StorageTargetsClient) 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 (StorageTargetsClient) ListByCache Uses

func (client StorageTargetsClient) ListByCache(ctx context.Context, resourceGroupName string, cacheName string) (result StorageTargetsResultPage, err error)

ListByCache returns the StorageTargets for this cache in the subscription and resource group. Parameters: resourceGroupName - target resource group. cacheName - name of cache.

func (StorageTargetsClient) ListByCacheComplete Uses

func (client StorageTargetsClient) ListByCacheComplete(ctx context.Context, resourceGroupName string, cacheName string) (result StorageTargetsResultIterator, err error)

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

func (StorageTargetsClient) ListByCachePreparer Uses

func (client StorageTargetsClient) ListByCachePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)

ListByCachePreparer prepares the ListByCache request.

func (StorageTargetsClient) ListByCacheResponder Uses

func (client StorageTargetsClient) ListByCacheResponder(resp *http.Response) (result StorageTargetsResult, err error)

ListByCacheResponder handles the response to the ListByCache request. The method always closes the http.Response Body.

func (StorageTargetsClient) ListByCacheSender Uses

func (client StorageTargetsClient) ListByCacheSender(req *http.Request) (*http.Response, error)

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

func (StorageTargetsClient) Update Uses

func (client StorageTargetsClient) Update(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget *StorageTarget) (result StorageTarget, err error)

Update update a storage target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the storage target may be delayed until the cache is healthy again. Parameters: resourceGroupName - target resource group. cacheName - name of cache. storageTargetName - name of storage target. storagetarget - object containing the definition of a storage target.

func (StorageTargetsClient) UpdatePreparer Uses

func (client StorageTargetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget *StorageTarget) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (StorageTargetsClient) UpdateResponder Uses

func (client StorageTargetsClient) UpdateResponder(resp *http.Response) (result StorageTarget, err error)

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

func (StorageTargetsClient) UpdateSender Uses

func (client StorageTargetsClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type StorageTargetsCreateFuture Uses

type StorageTargetsCreateFuture struct {
    azure.Future
}

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

func (*StorageTargetsCreateFuture) Result Uses

func (future *StorageTargetsCreateFuture) Result(client StorageTargetsClient) (st StorageTarget, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type StorageTargetsDeleteFuture Uses

type StorageTargetsDeleteFuture struct {
    azure.Future
}

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

func (*StorageTargetsDeleteFuture) Result Uses

func (future *StorageTargetsDeleteFuture) Result(client StorageTargetsClient) (so SetObject, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type StorageTargetsResult Uses

type StorageTargetsResult struct {
    autorest.Response `json:"-"`
    // NextLink - The uri to fetch the next page of storage targets.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - The list of storage targets defined for the cache.
    Value *[]StorageTarget `json:"value,omitempty"`
}

StorageTargetsResult a list of storage targets.

func (StorageTargetsResult) IsEmpty Uses

func (str StorageTargetsResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type StorageTargetsResultIterator Uses

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

StorageTargetsResultIterator provides access to a complete listing of StorageTarget values.

func NewStorageTargetsResultIterator Uses

func NewStorageTargetsResultIterator(page StorageTargetsResultPage) StorageTargetsResultIterator

Creates a new instance of the StorageTargetsResultIterator type.

func (*StorageTargetsResultIterator) Next Uses

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

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

func (iter StorageTargetsResultIterator) NotDone() bool

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

func (StorageTargetsResultIterator) Response Uses

func (iter StorageTargetsResultIterator) Response() StorageTargetsResult

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

func (StorageTargetsResultIterator) Value Uses

func (iter StorageTargetsResultIterator) Value() StorageTarget

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

type StorageTargetsResultPage Uses

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

StorageTargetsResultPage contains a page of StorageTarget values.

func NewStorageTargetsResultPage Uses

func NewStorageTargetsResultPage(getNextPage func(context.Context, StorageTargetsResult) (StorageTargetsResult, error)) StorageTargetsResultPage

Creates a new instance of the StorageTargetsResultPage type.

func (*StorageTargetsResultPage) Next Uses

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

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

func (page StorageTargetsResultPage) NotDone() bool

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

func (StorageTargetsResultPage) Response Uses

func (page StorageTargetsResultPage) Response() StorageTargetsResult

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

func (StorageTargetsResultPage) Values Uses

func (page StorageTargetsResultPage) Values() []StorageTarget

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

type UnknownTarget Uses

type UnknownTarget struct {
    // UnknownMap - Dictionary of string->string pairs containing information about the StorageTarget.
    UnknownMap map[string]*string `json:"unknownMap"`
}

UnknownTarget storage container for use as a Unknown StorageTarget.

func (UnknownTarget) MarshalJSON Uses

func (ut UnknownTarget) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UnknownTarget.

type UsageModel Uses

type UsageModel struct {
    // Display - Localized information describing this usage model.
    Display *UsageModelDisplay `json:"display,omitempty"`
    // ModelName - Non localized keyword naming this usage model.
    ModelName *string `json:"modelName,omitempty"`
    // TargetType - The type of Storage Target to which this model is applicable (only nfs for now)
    TargetType *string `json:"targetType,omitempty"`
}

UsageModel a usage model.

type UsageModelDisplay Uses

type UsageModelDisplay struct {
    // Description - String to display for this usage model.
    Description *string `json:"description,omitempty"`
}

UsageModelDisplay localized information describing this usage model.

type UsageModelsClient Uses

type UsageModelsClient struct {
    BaseClient
}

UsageModelsClient is the a Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.

func NewUsageModelsClient Uses

func NewUsageModelsClient(subscriptionID string) UsageModelsClient

NewUsageModelsClient creates an instance of the UsageModelsClient client.

func NewUsageModelsClientWithBaseURI Uses

func NewUsageModelsClientWithBaseURI(baseURI string, subscriptionID string) UsageModelsClient

NewUsageModelsClientWithBaseURI creates an instance of the UsageModelsClient client.

func (UsageModelsClient) List Uses

func (client UsageModelsClient) List(ctx context.Context) (result UsageModelsResultPage, err error)

List get the list of cache Usage Models available to this subscription.

func (UsageModelsClient) ListComplete Uses

func (client UsageModelsClient) ListComplete(ctx context.Context) (result UsageModelsResultIterator, err error)

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

func (UsageModelsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (UsageModelsClient) ListResponder Uses

func (client UsageModelsClient) ListResponder(resp *http.Response) (result UsageModelsResult, err error)

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

func (UsageModelsClient) ListSender Uses

func (client UsageModelsClient) 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 UsageModelsResult Uses

type UsageModelsResult struct {
    autorest.Response `json:"-"`
    // NextLink - The uri to fetch the next page of cache usage models.
    NextLink *string `json:"nextLink,omitempty"`
    // Value - The list of usage models available for the subscription.
    Value *[]UsageModel `json:"value,omitempty"`
}

UsageModelsResult a list of cache usage models.

func (UsageModelsResult) IsEmpty Uses

func (umr UsageModelsResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UsageModelsResultIterator Uses

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

UsageModelsResultIterator provides access to a complete listing of UsageModel values.

func NewUsageModelsResultIterator Uses

func NewUsageModelsResultIterator(page UsageModelsResultPage) UsageModelsResultIterator

Creates a new instance of the UsageModelsResultIterator type.

func (*UsageModelsResultIterator) Next Uses

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

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

func (iter UsageModelsResultIterator) NotDone() bool

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

func (UsageModelsResultIterator) Response Uses

func (iter UsageModelsResultIterator) Response() UsageModelsResult

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

func (UsageModelsResultIterator) Value Uses

func (iter UsageModelsResultIterator) Value() UsageModel

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

type UsageModelsResultPage Uses

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

UsageModelsResultPage contains a page of UsageModel values.

func NewUsageModelsResultPage Uses

func NewUsageModelsResultPage(getNextPage func(context.Context, UsageModelsResult) (UsageModelsResult, error)) UsageModelsResultPage

Creates a new instance of the UsageModelsResultPage type.

func (*UsageModelsResultPage) Next Uses

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

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

func (page UsageModelsResultPage) NotDone() bool

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

func (UsageModelsResultPage) Response Uses

func (page UsageModelsResultPage) Response() UsageModelsResult

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

func (UsageModelsResultPage) Values Uses

func (page UsageModelsResultPage) Values() []UsageModel

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

Directories

PathSynopsis
storagecacheapi

Package storagecache imports 10 packages (graph) and is imported by 3 packages. Updated 2019-09-05. Refresh now. Tools for package owners.