3.0.0 • Published 5 years ago

@datafire/azure_storagecache v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/azure_storagecache

Client library for Storage Cache Mgmt Client

Installation and Usage

npm install --save @datafire/azure_storagecache
let azure_storagecache = require('@datafire/azure_storagecache').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

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.

Actions

Operations_List

Lists all of the available Resource Provider operations.

azure_storagecache.Operations_List({
  "api-version": ""
}, context)

Input

  • input object
    • api-version required string: Client API version.

Output

Caches_List

Returns all Caches the user has access to under a subscription.

azure_storagecache.Caches_List({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

Skus_List

Get the list of StorageCache.Cache SKUs available to this subscription.

azure_storagecache.Skus_List({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

UsageModels_List

Get the list of Cache Usage Models available to this subscription.

azure_storagecache.UsageModels_List({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

Caches_ListByResourceGroup

Returns all Caches the user has access to under a resource group.

azure_storagecache.Caches_ListByResourceGroup({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

Caches_Delete

Schedules a Cache for deletion.

azure_storagecache.Caches_Delete({
  "resourceGroupName": "",
  "cacheName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • cacheName required string: Name of Cache.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

Output schema unknown

Caches_Get

Returns a Cache.

azure_storagecache.Caches_Get({
  "resourceGroupName": "",
  "cacheName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • cacheName required string: Name of Cache.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Output

Caches_Update

Update a Cache instance.

azure_storagecache.Caches_Update({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.
    • cache Cache

Output

Caches_CreateOrUpdate

Create or update a Cache.

azure_storagecache.Caches_CreateOrUpdate({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.
    • cache Cache

Output

Caches_Flush

Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.

azure_storagecache.Caches_Flush({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.

Output

Output schema unknown

Caches_Start

Tells a Stopped state Cache to transition to Active state.

azure_storagecache.Caches_Start({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.

Output

Output schema unknown

Caches_Stop

Tells an Active Cache to transition to Stopped state.

azure_storagecache.Caches_Stop({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.

Output

Output schema unknown

StorageTargets_ListByCache

Returns a list of Storage Targets for the specified Cache.

azure_storagecache.StorageTargets_ListByCache({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.

Output

StorageTargets_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. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

azure_storagecache.StorageTargets_Delete({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": "",
  "storageTargetName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.
    • storageTargetName required string: Name of Storage Target.

Output

Output schema unknown

StorageTargets_Get

Returns a Storage Target from a Cache.

azure_storagecache.StorageTargets_Get({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": "",
  "storageTargetName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.
    • storageTargetName required string: Name of the Storage Target.

Output

StorageTargets_CreateOrUpdate

Create or 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.

azure_storagecache.StorageTargets_CreateOrUpdate({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": "",
  "storageTargetName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.
    • storageTargetName required string: Name of the Storage Target.
    • storagetarget StorageTarget

Output

Caches_UpgradeFirmware

Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.

azure_storagecache.Caches_UpgradeFirmware({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": "",
  "cacheName": ""
}, context)

Input

  • input object
    • resourceGroupName required string: Target resource group.
    • api-version required string: Client API version.
    • subscriptionId required string: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    • cacheName required string: Name of Cache.

Output

Output schema unknown

Definitions

ApiOperation

ApiOperationListResult

  • ApiOperationListResult object: 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.
    • nextLink string: URL to get the next set of operation list results if there are any.
    • value array: List of Resource Provider operations supported by the Microsoft.StorageCache resource provider.

Cache

CacheHealth

  • CacheHealth object: An indication of Cache health. Gives more information about health than just that related to provisioning.
    • state string (values: Unknown, Healthy, Degraded, Down, Transitioning, Stopping, Stopped, Upgrading, Flushing): List of Cache health states.
    • statusDescription string: Describes explanation of state.

CacheUpgradeStatus

  • CacheUpgradeStatus object: Properties describing the software upgrade state of the Cache.
    • currentFirmwareVersion string: Version string of the firmware currently installed on this Cache.
    • firmwareUpdateDeadline string: Time at which the pending firmware update will automatically be installed on the Cache.
    • firmwareUpdateStatus string (values: available, unavailable): 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.
    • lastFirmwareUpdate string: Time of the last successful firmware update.
    • pendingFirmwareVersion string: When firmwareUpdateAvailable is true, this field holds the version string for the update.

CachesListResult

  • CachesListResult object: Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set of results.
    • nextLink string: URL to get the next set of Cache list results, if there are any.
    • value array: List of Caches.

ClfsTarget

  • ClfsTarget object: Storage container for use as a CLFS Storage Target.

CloudError

CloudErrorBody

  • CloudErrorBody object: An error response.
    • code string: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
    • details array: A list of additional details about the error.
    • message string: A message describing the error, intended to be suitable for display in a user interface.
    • target string: The target of the particular error. For example, the name of the property in error.

NamespaceJunction

  • NamespaceJunction object: A namespace junction.
    • namespacePath string: Namespace path on a Cache for a Storage Target.
    • nfsExport string: NFS export where targetPath exists.
    • targetPath string: Path in Storage Target to which namespacePath points.

Nfs3Target

  • Nfs3Target object: An NFSv3 mount point for use as a Storage Target.
    • target string: IP address or host name of an NFSv3 host (e.g., 10.0.44.44).
    • usageModel string: Identifies the primary usage model to be used for this Storage Target. Get choices from .../usageModels

ResourceName

  • ResourceName string: Schema for the name of resources served by this provider. Note that objects will contain an odata @id annotation as appropriate. This will contain the complete URL of the object. These names are case-preserving, but not case sensitive.

ResourceSku

  • ResourceSku object: A resource SKU.
    • capabilities array: A list of capabilities of this SKU, such as throughput or ops/sec.
    • locationInfo array: The set of locations that the SKU is available.
    • locations array: 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.).
      • items string
    • name string: The name of this SKU.
    • resourceType string: The type of resource the SKU applies to.
    • restrictions array: The restrictions preventing this SKU from being used. This is empty if there are no restrictions.

ResourceSkuCapabilities

  • ResourceSkuCapabilities object: A resource SKU capability.
    • name string: Name of a capability, such as ops/sec.
    • value string: Quantity, if the capability is measured by quantity.

ResourceSkuLocationInfo

  • ResourceSkuLocationInfo object: Resource SKU location information.
    • location string: Location where this SKU is available.
    • zones array: Zones if any.
      • items string

ResourceSkusResult

  • ResourceSkusResult object: The response from the List Cache SKUs operation.
    • nextLink string: The URI to fetch the next page of Cache SKUs.
    • value array: The list of SKUs available for the subscription.

Restriction

  • Restriction object: The restrictions preventing this SKU from being used.
    • reasonCode string (values: QuotaId, NotAvailableForSubscription): The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter.
    • type string: The type of restrictions. In this version, the only possible value for this is location.
    • values array: The value of restrictions. If the restriction type is set to location, then this would be the different locations where the SKU is restricted.
      • items string

StorageTarget

StorageTargetsResult

  • StorageTargetsResult object: A list of Storage Targets.
    • nextLink string: The URI to fetch the next page of Storage Targets.
    • value array: The list of Storage Targets defined for the Cache.

URLString

  • URLString string: A fully qualified URL.

UnknownProperties

  • UnknownProperties object: Properties of an unknown type of Storage Target.

UnknownTarget

  • UnknownTarget object: Storage container for use as an Unknown Storage Target.

UsageModel

  • UsageModel object: A usage model.
    • display object: Localized information describing this usage model.
      • description string: String to display for this usage model.
    • modelName string: Non-localized keyword name for this usage model.
    • targetType string: The type of Storage Target to which this model is applicable (only nfs3 as of this version).

UsageModelsResult

  • UsageModelsResult object: A list of Cache usage models.
    • nextLink string: The URI to fetch the next page of Cache usage models.
    • value array: The list of usage models available for the subscription.