Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-arm-rediscache

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-arm-rediscache - npm Package Compare versions

Comparing version 1.0.0-preview to 2.0.0-preview

lib/models/redisLinkedServer.js

15

lib/models/exportRDBParameters.js

@@ -14,15 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the ExportRDBParameters class.
* @constructor
* Parameters for Redis export operation.
*
* @member {string} [format] File format.
*
* @member {string} prefix Prefix to use for exported files.
*
* @member {string} container Container name to export to.
*
*/
class ExportRDBParameters {
/**
* Create a ExportRDBParameters.
* @member {string} [format] File format.
* @member {string} prefix Prefix to use for exported files.
* @member {string} container Container name to export to.
*/
constructor() {

@@ -29,0 +26,0 @@ }

12

lib/models/importRDBParameters.js

@@ -14,13 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the ImportRDBParameters class.
* @constructor
* Parameters for Redis import operation.
*
* @member {string} [format] File format.
*
* @member {array} files files to import.
*
*/
class ImportRDBParameters {
/**
* Create a ImportRDBParameters.
* @member {string} [format] File format.
* @member {array} files files to import.
*/
constructor() {

@@ -27,0 +25,0 @@ }

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -28,10 +29,7 @@ export { BaseResource } from 'ms-rest-azure';

* 'Premium'
*
* @member {string} family The SKU family to use. Valid values: (C, P). (C =
* Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} capacity The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
*/

@@ -51,11 +49,6 @@ export interface Sku {

* @member {string} [id] Resource ID.
*
* @member {string} [name] Resource name.
*
* @member {string} [type] Resource type.
*
* @member {string} location Resource location.
*
* @member {object} [tags] Resource tags.
*
*/

@@ -79,31 +72,21 @@ export interface Resource extends BaseResource {

* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} sku The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
*/

@@ -129,33 +112,22 @@ export interface RedisCreateParameters extends Resource {

* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} [sku] The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
* @member {object} [tags] Resource tags.
*
*/

@@ -181,6 +153,4 @@ export interface RedisUpdateParameters {

* to authenticate with Redis cache.
*
* @member {string} [secondaryKey] The current secondary key that clients can
* use to authenticate with Redis cache.
*
*/

@@ -194,25 +164,10 @@ export interface RedisAccessKeys {

* @class
* Initializes a new instance of the RedisFirewallRule class.
* Initializes a new instance of the RedisLinkedServer class.
* @constructor
* A firewall rule on a redis cache has a name, and describes a contiguous
* range of IP addresses permitted to connect
* Linked server Id
*
* @member {string} [id] resource ID (of the firewall rule)
*
* @member {string} [name] name of the firewall rule
*
* @member {string} [type] type (of the firewall rule resource =
* 'Microsoft.Cache/redis/firewallRule')
*
* @member {string} startIP lowest IP address included in the range
*
* @member {string} endIP highest IP address included in the range
*
* @member {string} [id] Linked server Id.
*/
export interface RedisFirewallRule {
export interface RedisLinkedServer {
readonly id?: string;
readonly name?: string;
readonly type?: string;
startIP: string;
endIP: string;
}

@@ -222,14 +177,10 @@

* @class
* Initializes a new instance of the RedisFirewallRuleListResult class.
* Initializes a new instance of the RedisLinkedServerList class.
* @constructor
* The response of list firewall rules Redis operation.
* List of linked server Ids of a Redis cache.
*
* @member {array} value Results of the list firewall rules operation.
*
* @member {string} [nextLink] Link for next set of locations.
*
* @member {array} value List of linked server Ids of a Redis cache.
*/
export interface RedisFirewallRuleListResult {
value: RedisFirewallRule[];
nextLink?: string;
export interface RedisLinkedServerList {
value: RedisLinkedServer[];
}

@@ -246,50 +197,36 @@

* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} [sku] The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
* @member {string} [redisVersion] Redis version.
*
* @member {string} [provisioningState] Redis instance provisioning status.
*
* @member {string} [hostName] Redis host name.
*
* @member {number} [port] Redis non-SSL port.
*
* @member {number} [sslPort] Redis SSL port.
*
* @member {object} [accessKeys] The keys of the Redis cache - not set if this
* object is not the response to Create or Update redis cache
*
* @member {string} [accessKeys.primaryKey] The current primary key that
* clients can use to authenticate with Redis cache.
*
* @member {string} [accessKeys.secondaryKey] The current secondary key that
* clients can use to authenticate with Redis cache.
*
* @member {object} [linkedServers] List of the linked servers associated with
* the cache
* @member {array} [linkedServers.value] List of linked server Ids of a Redis
* cache.
*/

@@ -310,2 +247,3 @@ export interface RedisResource extends Resource {

readonly accessKeys?: RedisAccessKeys;
readonly linkedServers?: RedisLinkedServerList;
}

@@ -315,18 +253,2 @@

* @class
* Initializes a new instance of the RedisListResult class.
* @constructor
* The response of list Redis operation.
*
* @member {array} [value] List of Redis cache instances.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
export interface RedisListResult {
value?: RedisResource[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the RedisRegenerateKeyParameters class.

@@ -338,3 +260,2 @@ * @constructor

* include: 'Primary', 'Secondary'
*
*/

@@ -354,6 +275,4 @@ export interface RedisRegenerateKeyParameters {

* 'SecondaryNode', 'AllNodes'
*
* @member {number} [shardId] If clustering is enabled, the ID of the shard to
* be rebooted.
*
*/

@@ -372,7 +291,4 @@ export interface RedisRebootParameters {

* @member {string} [format] File format.
*
* @member {string} prefix Prefix to use for exported files.
*
* @member {string} container Container name to export to.
*
*/

@@ -392,5 +308,3 @@ export interface ExportRDBParameters {

* @member {string} [format] File format.
*
* @member {array} files files to import.
*
*/

@@ -411,9 +325,6 @@ export interface ImportRDBParameters {

* 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
*
* @member {number} startHourUtc Start hour after which cache patching can
* start.
*
* @member {moment.duration} [maintenanceWindow] ISO8601 timespan specifying
* how much time cache patching can take.
*
*/

@@ -433,11 +344,6 @@ export interface ScheduleEntry {

* @member {string} [id] Resource ID.
*
* @member {string} [name] Resource name.
*
* @member {string} [type] Resource type.
*
* @member {string} [location] Resource location.
*
* @member {array} scheduleEntries List of patch schedules for a Redis cache.
*
*/

@@ -459,3 +365,2 @@ export interface RedisPatchSchedule {

* @member {string} [message] Status message
*
*/

@@ -468,22 +373,26 @@ export interface RedisForceRebootResponse {

* @class
* Initializes a new instance of the OperationDisplay class.
* Initializes a new instance of the RedisLinkedServerWithProperties class.
* @constructor
* The object that describes the operation.
* Response to put/get linked server (with properties) for Redis cache.
*
* @member {string} [provider] Friendly name of the resource provider
*
* @member {string} [operation] Operation type: read, write, delete,
* listKeys/action, etc.
*
* @member {string} [resource] Resource type on which the operation is
* performed.
*
* @member {string} [description] Friendly name of the operation
*
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} linkedRedisCacheId Fully qualified resourceId of the linked
* redis cache.
* @member {string} linkedRedisCacheLocation Location of the linked redis
* cache.
* @member {string} serverRole Role of the linked server. Possible values
* include: 'Primary', 'Secondary'
* @member {string} [provisioningState] Terminal state of the link between
* primary and secondary redis cache.
*/
export interface OperationDisplay {
provider?: string;
operation?: string;
resource?: string;
description?: string;
export interface RedisLinkedServerWithProperties {
readonly id?: string;
readonly name?: string;
readonly type?: string;
linkedRedisCacheId: string;
linkedRedisCacheLocation: string;
serverRole: string;
readonly provisioningState?: string;
}

@@ -493,24 +402,11 @@

* @class
* Initializes a new instance of the Operation class.
* Initializes a new instance of the RedisLinkedServerWithPropertiesList class.
* @constructor
* REST API operation
* List of linked servers (with properites) of a Redis cache.
*
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
*
* @member {object} [display] The object that describes the operation.
*
* @member {string} [display.provider] Friendly name of the resource provider
*
* @member {string} [display.operation] Operation type: read, write, delete,
* listKeys/action, etc.
*
* @member {string} [display.resource] Resource type on which the operation is
* performed.
*
* @member {string} [display.description] Friendly name of the operation
*
* @member {array} value List of linked servers (with properites) of a Redis
* cache.
*/
export interface Operation {
name?: string;
display?: OperationDisplay;
export interface RedisLinkedServerWithPropertiesList {
value: RedisLinkedServerWithProperties[];
}

@@ -520,37 +416,19 @@

* @class
* Initializes a new instance of the OperationListResult class.
* Initializes a new instance of the RedisLinkedServerCreateParameters class.
* @constructor
* Result of the request to list REST API operations. It contains a list of
* operations and a URL nextLink to get the next set of results.
* Parameter required for creating a linked server to redis cache.
*
* @member {array} [value] List of operations supported by the resource
* provider.
*
* @member {string} [nextLink] URL to get the next set of operation list
* results if there are any.
*
* @member {string} linkedRedisCacheId Fully qualified resourceId of the linked
* redis cache.
* @member {string} linkedRedisCacheLocation Location of the linked redis
* cache.
* @member {string} serverRole Role of the linked server. Possible values
* include: 'Primary', 'Secondary'
*/
export interface OperationListResult {
value?: Operation[];
nextLink?: string;
export interface RedisLinkedServerCreateParameters {
linkedRedisCacheId: string;
linkedRedisCacheLocation: string;
serverRole: string;
}
/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* Result of the request to list REST API operations. It contains a list of
* operations and a URL nextLink to get the next set of results.
*
* @member {array} [value] List of operations supported by the resource
* provider.
*
* @member {string} [nextLink] URL to get the next set of operation list
* results if there are any.
*
*/
export interface OperationListResult {
value?: Operation[];
nextLink?: string;
}

@@ -563,68 +441,6 @@ /**

*
* @member {array} [value] List of Redis cache instances.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
export interface RedisListResult {
value?: RedisResource[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the RedisFirewallRuleListResult class.
* @constructor
* The response of list firewall rules Redis operation.
*
* @member {array} value Results of the list firewall rules operation.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
export interface RedisFirewallRuleListResult {
value: RedisFirewallRule[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* Result of the request to list REST API operations. It contains a list of
* operations and a URL nextLink to get the next set of results.
*
* @member {string} [nextLink] URL to get the next set of operation list
* results if there are any.
*
*/
export interface OperationListResult extends Array<Operation> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the RedisListResult class.
* @constructor
* The response of list Redis operation.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
export interface RedisListResult extends Array<RedisResource> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the RedisFirewallRuleListResult class.
* @constructor
* The response of list firewall rules Redis operation.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
export interface RedisFirewallRuleListResult extends Array<RedisFirewallRule> {
nextLink?: string;
}

@@ -26,6 +26,5 @@ /*

exports.RedisAccessKeys = require('./redisAccessKeys');
exports.RedisFirewallRule = require('./redisFirewallRule');
exports.RedisFirewallRuleListResult = require('./redisFirewallRuleListResult');
exports.RedisLinkedServer = require('./redisLinkedServer');
exports.RedisLinkedServerList = require('./redisLinkedServerList');
exports.RedisResource = require('./redisResource');
exports.RedisListResult = require('./redisListResult');
exports.RedisRegenerateKeyParameters = require('./redisRegenerateKeyParameters');

@@ -38,7 +37,5 @@ exports.RedisRebootParameters = require('./redisRebootParameters');

exports.RedisForceRebootResponse = require('./redisForceRebootResponse');
exports.OperationDisplay = require('./operationDisplay');
exports.Operation = require('./operation');
exports.OperationListResult = require('./operationListResult');
exports.OperationListResult = require('./operationListResult');
exports.RedisLinkedServerWithProperties = require('./redisLinkedServerWithProperties');
exports.RedisLinkedServerWithPropertiesList = require('./redisLinkedServerWithPropertiesList');
exports.RedisLinkedServerCreateParameters = require('./redisLinkedServerCreateParameters');
exports.RedisListResult = require('./redisListResult');
exports.RedisFirewallRuleListResult = require('./redisFirewallRuleListResult');

@@ -14,15 +14,13 @@ /*

/**
* @class
* Initializes a new instance of the RedisAccessKeys class.
* @constructor
* Redis cache access keys.
*
* @member {string} [primaryKey] The current primary key that clients can use
* to authenticate with Redis cache.
*
* @member {string} [secondaryKey] The current secondary key that clients can
* use to authenticate with Redis cache.
*
*/
class RedisAccessKeys {
/**
* Create a RedisAccessKeys.
* @member {string} [primaryKey] The current primary key that clients can use
* to authenticate with Redis cache.
* @member {string} [secondaryKey] The current secondary key that clients can
* use to authenticate with Redis cache.
*/
constructor() {

@@ -29,0 +27,0 @@ }

@@ -16,41 +16,33 @@ /*

/**
* @class
* Initializes a new instance of the RedisCreateParameters class.
* @constructor
* Parameters supplied to the Create Redis operation.
*
* @member {object} [redisConfiguration] All Redis Settings. Few possible keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} sku The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
* @extends models['Resource']
*/
class RedisCreateParameters extends models['Resource'] {
/**
* Create a RedisCreateParameters.
* @member {object} [redisConfiguration] All Redis Settings. Few possible
* keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
* @member {object} [tenantSettings] tenantSettings
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
* @member {object} sku The SKU of the Redis cache to deploy.
* @member {string} [sku.name] The type of Redis cache to deploy. Valid
* values: (Basic, Standard, Premium). Possible values include: 'Basic',
* 'Standard', 'Premium'
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
* @member {number} [sku.capacity] The size of the Redis cache to deploy.
* Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P
* (Premium) family (1, 2, 3, 4).
*/
constructor() {

@@ -57,0 +49,0 @@ super();

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the RedisForceRebootResponse class.
* @constructor
* Response to force reboot for Redis cache.
*
* @member {string} [message] Status message
*
*/
class RedisForceRebootResponse {
/**
* Create a RedisForceRebootResponse.
* @member {string} [message] Status message
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -14,11 +14,9 @@ /*

/**
* @class
* Initializes a new instance of the RedisListResult class.
* @constructor
* The response of list Redis operation.
*
* @member {string} [nextLink] Link for next set of locations.
*
*/
class RedisListResult extends Array {
/**
* Create a RedisListResult.
* @member {string} [nextLink] Link for next set of locations.
*/
constructor() {

@@ -25,0 +23,0 @@ super();

@@ -16,19 +16,14 @@ /*

/**
* @class
* Initializes a new instance of the RedisPatchSchedule class.
* @constructor
* Response to put/get patch schedules for Redis cache.
*
* @member {string} [id] Resource ID.
*
* @member {string} [name] Resource name.
*
* @member {string} [type] Resource type.
*
* @member {string} [location] Resource location.
*
* @member {array} scheduleEntries List of patch schedules for a Redis cache.
*
*/
class RedisPatchSchedule {
/**
* Create a RedisPatchSchedule.
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} [location] Resource location.
* @member {array} scheduleEntries List of patch schedules for a Redis cache.
*/
constructor() {

@@ -35,0 +30,0 @@ }

@@ -14,16 +14,14 @@ /*

/**
* @class
* Initializes a new instance of the RedisRebootParameters class.
* @constructor
* Specifies which Redis node(s) to reboot.
*
* @member {string} rebootType Which Redis node(s) to reboot. Depending on this
* value data loss is possible. Possible values include: 'PrimaryNode',
* 'SecondaryNode', 'AllNodes'
*
* @member {number} [shardId] If clustering is enabled, the ID of the shard to
* be rebooted.
*
*/
class RedisRebootParameters {
/**
* Create a RedisRebootParameters.
* @member {string} rebootType Which Redis node(s) to reboot. Depending on
* this value data loss is possible. Possible values include: 'PrimaryNode',
* 'SecondaryNode', 'AllNodes'
* @member {number} [shardId] If clustering is enabled, the ID of the shard
* to be rebooted.
*/
constructor() {

@@ -30,0 +28,0 @@ }

@@ -14,12 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the RedisRegenerateKeyParameters class.
* @constructor
* Specifies which Redis access keys to reset.
*
* @member {string} keyType The Redis access key to regenerate. Possible values
* include: 'Primary', 'Secondary'
*
*/
class RedisRegenerateKeyParameters {
/**
* Create a RedisRegenerateKeyParameters.
* @member {string} keyType The Redis access key to regenerate. Possible
* values include: 'Primary', 'Secondary'
*/
constructor() {

@@ -26,0 +25,0 @@ }

@@ -16,60 +16,48 @@ /*

/**
* @class
* Initializes a new instance of the RedisResource class.
* @constructor
* A single Redis item in List or Get Operation.
*
* @member {object} [redisConfiguration] All Redis Settings. Few possible keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} [sku] The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
* @member {string} [redisVersion] Redis version.
*
* @member {string} [provisioningState] Redis instance provisioning status.
*
* @member {string} [hostName] Redis host name.
*
* @member {number} [port] Redis non-SSL port.
*
* @member {number} [sslPort] Redis SSL port.
*
* @member {object} [accessKeys] The keys of the Redis cache - not set if this
* object is not the response to Create or Update redis cache
*
* @member {string} [accessKeys.primaryKey] The current primary key that
* clients can use to authenticate with Redis cache.
*
* @member {string} [accessKeys.secondaryKey] The current secondary key that
* clients can use to authenticate with Redis cache.
*
* @extends models['Resource']
*/
class RedisResource extends models['Resource'] {
/**
* Create a RedisResource.
* @member {object} [redisConfiguration] All Redis Settings. Few possible
* keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
* @member {object} [tenantSettings] tenantSettings
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
* @member {object} [sku] The SKU of the Redis cache to deploy.
* @member {string} [sku.name] The type of Redis cache to deploy. Valid
* values: (Basic, Standard, Premium). Possible values include: 'Basic',
* 'Standard', 'Premium'
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
* @member {number} [sku.capacity] The size of the Redis cache to deploy.
* Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P
* (Premium) family (1, 2, 3, 4).
* @member {string} [redisVersion] Redis version.
* @member {string} [provisioningState] Redis instance provisioning status.
* @member {string} [hostName] Redis host name.
* @member {number} [port] Redis non-SSL port.
* @member {number} [sslPort] Redis SSL port.
* @member {object} [accessKeys] The keys of the Redis cache - not set if
* this object is not the response to Create or Update redis cache
* @member {string} [accessKeys.primaryKey] The current primary key that
* clients can use to authenticate with Redis cache.
* @member {string} [accessKeys.secondaryKey] The current secondary key that
* clients can use to authenticate with Redis cache.
* @member {object} [linkedServers] List of the linked servers associated
* with the cache
* @member {array} [linkedServers.value] List of linked server Ids of a Redis
* cache.
*/
constructor() {

@@ -256,2 +244,11 @@ super();

}
},
linkedServers: {
required: false,
readOnly: true,
serializedName: 'properties.linkedServers',
type: {
name: 'Composite',
className: 'RedisLinkedServerList'
}
}

@@ -258,0 +255,0 @@ }

@@ -16,43 +16,33 @@ /*

/**
* @class
* Initializes a new instance of the RedisUpdateParameters class.
* @constructor
* Parameters supplied to the Update Redis operation.
*
* @member {object} [redisConfiguration] All Redis Settings. Few possible keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
*
* @member {object} [tenantSettings] tenantSettings
*
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
*
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
*
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
*
* @member {object} [sku] The SKU of the Redis cache to deploy.
*
* @member {string} [sku.name] The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} [sku.capacity] The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
* @member {object} [tags] Resource tags.
*
*/
class RedisUpdateParameters {
/**
* Create a RedisUpdateParameters.
* @member {object} [redisConfiguration] All Redis Settings. Few possible
* keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
* @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis
* server port (6379) is enabled.
* @member {object} [tenantSettings] tenantSettings
* @member {number} [shardCount] The number of shards to be created on a
* Premium Cluster Cache.
* @member {string} [subnetId] The full resource ID of a subnet in a virtual
* network to deploy the Redis cache in. Example format:
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
* @member {string} [staticIP] Static IP address. Required when deploying a
* Redis cache inside an existing Azure Virtual Network.
* @member {object} [sku] The SKU of the Redis cache to deploy.
* @member {string} [sku.name] The type of Redis cache to deploy. Valid
* values: (Basic, Standard, Premium). Possible values include: 'Basic',
* 'Standard', 'Premium'
* @member {string} [sku.family] The SKU family to use. Valid values: (C, P).
* (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
* @member {number} [sku.capacity] The size of the Redis cache to deploy.
* Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P
* (Premium) family (1, 2, 3, 4).
* @member {object} [tags] Resource tags.
*/
constructor() {

@@ -59,0 +49,0 @@ }

@@ -16,19 +16,15 @@ /*

/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* The Resource definition.
*
* @member {string} [id] Resource ID.
*
* @member {string} [name] Resource name.
*
* @member {string} [type] Resource type.
*
* @member {string} location Resource location.
*
* @member {object} [tags] Resource tags.
*
* @extends models['BaseResource']
*/
class Resource extends models['BaseResource'] {
/**
* Create a Resource.
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} location Resource location.
* @member {object} [tags] Resource tags.
*/
constructor() {

@@ -35,0 +31,0 @@ super();

@@ -14,19 +14,16 @@ /*

/**
* @class
* Initializes a new instance of the ScheduleEntry class.
* @constructor
* Patch schedule entry for a Premium Redis Cache.
*
* @member {string} dayOfWeek Day of the week when a cache can be patched.
* Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
* 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
*
* @member {number} startHourUtc Start hour after which cache patching can
* start.
*
* @member {moment.duration} [maintenanceWindow] ISO8601 timespan specifying
* how much time cache patching can take.
*
*/
class ScheduleEntry {
/**
* Create a ScheduleEntry.
* @member {string} dayOfWeek Day of the week when a cache can be patched.
* Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
* 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
* @member {number} startHourUtc Start hour after which cache patching can
* start.
* @member {moment.duration} [maintenanceWindow] ISO8601 timespan specifying
* how much time cache patching can take.
*/
constructor() {

@@ -33,0 +30,0 @@ }

@@ -14,20 +14,17 @@ /*

/**
* @class
* Initializes a new instance of the Sku class.
* @constructor
* SKU parameters supplied to the create Redis operation.
*
* @member {string} name The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
*
* @member {string} family The SKU family to use. Valid values: (C, P). (C =
* Basic/Standard, P = Premium). Possible values include: 'C', 'P'
*
* @member {number} capacity The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
* family (1, 2, 3, 4).
*
*/
class Sku {
/**
* Create a Sku.
* @member {string} name The type of Redis cache to deploy. Valid values:
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard',
* 'Premium'
* @member {string} family The SKU family to use. Valid values: (C, P). (C =
* Basic/Standard, P = Premium). Possible values include: 'C', 'P'
* @member {number} capacity The size of the Redis cache to deploy. Valid
* values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P
* (Premium) family (1, 2, 3, 4).
*/
constructor() {

@@ -34,0 +31,0 @@ }

@@ -17,6 +17,4 @@ /*

exports.Operations = require('./operations');
exports.Redis = require('./redis');
exports.FirewallRules = require('./firewallRules');
exports.RedisFirewallRuleOperations = require('./redisFirewallRuleOperations');
exports.PatchSchedules = require('./patchSchedules');
exports.RedisLinkedServerOperations = require('./redisLinkedServerOperations');

@@ -100,5 +100,6 @@ /*

httpRequest.method = 'PUT';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -117,3 +118,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request

@@ -277,5 +277,6 @@ let requestContent = null;

httpRequest.method = 'DELETE';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -294,3 +295,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -407,5 +407,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -424,3 +425,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -483,13 +483,8 @@ // Send Request

/**
* @class
* PatchSchedules
* __NOTE__: An instance of this class is automatically created for an
* instance of the RedisManagementClient.
* Initializes a new instance of the PatchSchedules class.
* @constructor
*
* @param {RedisManagementClient} client Reference to the service client.
*/
/** Class representing a PatchSchedules. */
class PatchSchedules {
/**
* Create a PatchSchedules.
* @param {RedisManagementClient} client Reference to the service client.
*/
constructor(client) {

@@ -496,0 +491,0 @@ this.client = client;

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class RedisManagementClient {
declare class RedisManagementClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the RedisManagementClient class.

*
* @param {string} [options.apiVersion] - Client Api Version.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -62,9 +61,7 @@ credentials: ServiceClientCredentials;

// Operation groups
operations: operations.Operations;
redis: operations.Redis;
firewallRules: operations.FirewallRules;
redisFirewallRuleOperations: operations.RedisFirewallRuleOperations;
patchSchedules: operations.PatchSchedules;
redisLinkedServerOperations: operations.RedisLinkedServerOperations;
}
export = RedisManagementClient;

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the RedisManagementClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - Client Api Version.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a RedisManagementClient. */
class RedisManagementClient extends ServiceClient {
/**
* Create a RedisManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -68,3 +54,3 @@ if (credentials === null || credentials === undefined) {

this.apiVersion = '2016-04-01';
this.apiVersion = '2017-02-01';
this.acceptLanguage = 'en-US';

@@ -82,5 +68,2 @@ this.longRunningOperationRetryTimeout = 30;

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -95,7 +78,5 @@ this.acceptLanguage = options.acceptLanguage;

}
this.operations = new operations.Operations(this);
this.redis = new operations.Redis(this);
this.firewallRules = new operations.FirewallRules(this);
this.redisFirewallRuleOperations = new operations.RedisFirewallRuleOperations(this);
this.patchSchedules = new operations.PatchSchedules(this);
this.redisLinkedServerOperations = new operations.RedisLinkedServerOperations(this);
this.models = models;

@@ -102,0 +83,0 @@ msRest.addSerializationMixin(this);

@@ -9,3 +9,3 @@ {

],
"version": "1.0.0-preview",
"version": "2.0.0-preview",
"description": "Microsoft Azure Redis Cache Client Library for node",

@@ -24,4 +24,4 @@ "tags": [

"dependencies": {
"ms-rest": "^2.0.0",
"ms-rest-azure": "^2.0.0"
"ms-rest": "^2.2.2",
"ms-rest-azure": "^2.3.3"
},

@@ -28,0 +28,0 @@ "homepage": "http://github.com/Azure/azure-sdk-for-node",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc