azure-arm-rediscache
Advanced tools
Comparing version 0.2.3 to 1.0.0-preview
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,54 +18,56 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @constructor | ||
* Parameters for redis export operation. | ||
* Parameters for Redis export operation. | ||
* | ||
* @member {string} [format] File format. | ||
* | ||
* @member {string} prefix Prifix to use for exported files. | ||
* | ||
* | ||
* @member {string} prefix Prefix to use for exported files. | ||
* | ||
* @member {string} container Container name to export to. | ||
* | ||
* | ||
*/ | ||
function ExportRDBParameters() { | ||
} | ||
class ExportRDBParameters { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of ExportRDBParameters | ||
* | ||
* @returns {object} metadata of ExportRDBParameters | ||
* | ||
*/ | ||
ExportRDBParameters.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'ExportRDBParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'ExportRDBParameters', | ||
modelProperties: { | ||
format: { | ||
required: false, | ||
serializedName: 'format', | ||
type: { | ||
name: 'String' | ||
/** | ||
* Defines the metadata of ExportRDBParameters | ||
* | ||
* @returns {object} metadata of ExportRDBParameters | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ExportRDBParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'ExportRDBParameters', | ||
modelProperties: { | ||
format: { | ||
required: false, | ||
serializedName: 'format', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
prefix: { | ||
required: true, | ||
serializedName: 'prefix', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
container: { | ||
required: true, | ||
serializedName: 'container', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
prefix: { | ||
required: true, | ||
serializedName: 'prefix', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
container: { | ||
required: true, | ||
serializedName: 'container', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = ExportRDBParameters; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -14,4 +14,2 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var util = require('util'); | ||
/** | ||
@@ -21,52 +19,54 @@ * @class | ||
* @constructor | ||
* Parameters for redis import operation. | ||
* Parameters for Redis import operation. | ||
* | ||
* @member {string} [format] File format. | ||
* | ||
* @member {array} files files to import | ||
* | ||
*/ | ||
function ImportRDBParameters() { | ||
} | ||
/** | ||
* Defines the metadata of ImportRDBParameters | ||
* | ||
* @returns {object} metadata of ImportRDBParameters | ||
* @member {array} files files to import. | ||
* | ||
*/ | ||
ImportRDBParameters.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'ImportRDBParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImportRDBParameters', | ||
modelProperties: { | ||
format: { | ||
required: false, | ||
serializedName: 'format', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
files: { | ||
required: true, | ||
serializedName: 'files', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
class ImportRDBParameters { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of ImportRDBParameters | ||
* | ||
* @returns {object} metadata of ImportRDBParameters | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ImportRDBParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImportRDBParameters', | ||
modelProperties: { | ||
format: { | ||
required: false, | ||
serializedName: 'format', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
files: { | ||
required: true, | ||
serializedName: 'files', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = ImportRDBParameters; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -12,3 +12,9 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
import { BaseResource } from 'ms-rest-azure'; | ||
import { CloudError } from 'ms-rest-azure'; | ||
export { BaseResource } from 'ms-rest-azure'; | ||
export { CloudError } from 'ms-rest-azure'; | ||
/** | ||
@@ -18,14 +24,15 @@ * @class | ||
* @constructor | ||
* Sku parameters supplied to the create redis operation. | ||
* SKU parameters supplied to the create Redis operation. | ||
* | ||
* @member {string} name What type of redis cache to deploy. Valid values: | ||
* @member {string} name The type of Redis cache to deploy. Valid values: | ||
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard', | ||
* 'Premium' | ||
* | ||
* @member {string} family Which family to use. Valid values: (C, P). Possible | ||
* values include: 'C', 'P' | ||
* | ||
* @member {number} capacity What size of redis cache to deploy. Valid values: | ||
* for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* | ||
* @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). | ||
* | ||
*/ | ||
@@ -40,45 +47,65 @@ export interface Sku { | ||
* @class | ||
* Initializes a new instance of the RedisProperties class. | ||
* Initializes a new instance of the Resource class. | ||
* @constructor | ||
* Properties supplied to CreateOrUpdate redis operation. | ||
* The Resource definition. | ||
* | ||
* @member {string} [redisVersion] RedisVersion parameter has been deprecated. | ||
* As such, it is no longer necessary to provide this parameter and any value | ||
* specified is ignored. | ||
* | ||
* @member {object} sku What sku of redis cache to deploy. | ||
* | ||
* @member {string} [sku.name] What type of redis cache to deploy. Valid | ||
* values: (Basic, Standard, Premium). Possible values include: 'Basic', | ||
* 'Standard', 'Premium' | ||
* | ||
* @member {string} [sku.family] Which family to use. Valid values: (C, P). | ||
* Possible values include: 'C', 'P' | ||
* | ||
* @member {number} [sku.capacity] What size of redis cache to deploy. Valid | ||
* values: for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* @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 | ||
* @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. | ||
* | ||
*/ | ||
export interface Resource extends BaseResource { | ||
readonly id?: string; | ||
readonly name?: string; | ||
readonly type?: string; | ||
location: string; | ||
tags?: { [propertyName: string]: string }; | ||
} | ||
/** | ||
* @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] If the value is true, then the non-ssl | ||
* redis server port (6379) will be enabled. | ||
* | ||
* | ||
* @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: | ||
* network to deploy the Redis cache in. Example format: | ||
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 | ||
* | ||
* @member {string} [staticIP] Required when deploying a redis cache inside an | ||
* existing Azure Virtual Network. | ||
* | ||
* | ||
* @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). | ||
* | ||
*/ | ||
export interface RedisProperties { | ||
redisVersion?: string; | ||
sku: Sku; | ||
export interface RedisCreateParameters extends Resource { | ||
redisConfiguration?: { [propertyName: string]: string }; | ||
@@ -90,2 +117,3 @@ enableNonSslPort?: boolean; | ||
staticIP?: string; | ||
sku: Sku; | ||
} | ||
@@ -95,68 +123,42 @@ | ||
* @class | ||
* Initializes a new instance of the Resource class. | ||
* Initializes a new instance of the RedisUpdateParameters class. | ||
* @constructor | ||
* @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 | ||
* | ||
*/ | ||
export interface Resource extends BaseResource { | ||
id?: string; | ||
name?: string; | ||
type?: string; | ||
location: string; | ||
tags?: { [propertyName: string]: string }; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the RedisCreateOrUpdateParameters class. | ||
* @constructor | ||
* Parameters supplied to the CreateOrUpdate Redis operation. | ||
* Parameters supplied to the Update Redis operation. | ||
* | ||
* @member {string} [redisVersion] RedisVersion parameter has been deprecated. | ||
* As such, it is no longer necessary to provide this parameter and any value | ||
* specified is ignored. | ||
* | ||
* @member {object} sku What sku of redis cache to deploy. | ||
* | ||
* @member {string} [sku.name] What type of redis cache to deploy. Valid | ||
* values: (Basic, Standard, Premium). Possible values include: 'Basic', | ||
* 'Standard', 'Premium' | ||
* | ||
* @member {string} [sku.family] Which family to use. Valid values: (C, P). | ||
* Possible values include: 'C', 'P' | ||
* | ||
* @member {number} [sku.capacity] What size of redis cache to deploy. Valid | ||
* values: for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* @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 | ||
* @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] If the value is true, then the non-ssl | ||
* redis server port (6379) will be enabled. | ||
* | ||
* | ||
* @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: | ||
* network to deploy the Redis cache in. Example format: | ||
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 | ||
* | ||
* @member {string} [staticIP] Required when deploying a redis cache inside an | ||
* existing Azure Virtual Network. | ||
* | ||
* | ||
* @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. | ||
* | ||
*/ | ||
export interface RedisCreateOrUpdateParameters extends Resource { | ||
redisVersion?: string; | ||
sku: Sku; | ||
export interface RedisUpdateParameters { | ||
redisConfiguration?: { [propertyName: string]: string }; | ||
@@ -168,2 +170,4 @@ enableNonSslPort?: boolean; | ||
staticIP?: string; | ||
sku?: Sku; | ||
tags?: { [propertyName: string]: string }; | ||
} | ||
@@ -178,11 +182,11 @@ | ||
* @member {string} [primaryKey] The current primary key that clients can use | ||
* to authenticate with redis cache. | ||
* | ||
* to authenticate with Redis cache. | ||
* | ||
* @member {string} [secondaryKey] The current secondary key that clients can | ||
* use to authenticate with redis cache. | ||
* | ||
* use to authenticate with Redis cache. | ||
* | ||
*/ | ||
export interface RedisAccessKeys { | ||
primaryKey?: string; | ||
secondaryKey?: string; | ||
readonly primaryKey?: string; | ||
readonly secondaryKey?: string; | ||
} | ||
@@ -192,72 +196,25 @@ | ||
* @class | ||
* Initializes a new instance of the RedisResourceWithAccessKey class. | ||
* Initializes a new instance of the RedisFirewallRule class. | ||
* @constructor | ||
* A redis item in CreateOrUpdate Operation response. | ||
* A firewall rule on a redis cache has a name, and describes a contiguous | ||
* range of IP addresses permitted to connect | ||
* | ||
* @member {string} [redisVersion] RedisVersion parameter has been deprecated. | ||
* As such, it is no longer necessary to provide this parameter and any value | ||
* specified is ignored. | ||
* | ||
* @member {object} sku What sku of redis cache to deploy. | ||
* | ||
* @member {string} [sku.name] What type of redis cache to deploy. Valid | ||
* values: (Basic, Standard, Premium). Possible values include: 'Basic', | ||
* 'Standard', 'Premium' | ||
* | ||
* @member {string} [sku.family] Which family to use. Valid values: (C, P). | ||
* Possible values include: 'C', 'P' | ||
* | ||
* @member {number} [sku.capacity] What size of redis cache to deploy. Valid | ||
* values: for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* @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] If the value is true, then the non-ssl | ||
* redis server port (6379) will be 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] Required when deploying a redis cache inside an | ||
* existing Azure Virtual Network. | ||
* | ||
* @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] Redis cache access keys. | ||
* | ||
* @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 {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 | ||
* | ||
*/ | ||
export interface RedisResourceWithAccessKey extends Resource { | ||
redisVersion?: string; | ||
sku: Sku; | ||
redisConfiguration?: { [propertyName: string]: string }; | ||
enableNonSslPort?: boolean; | ||
tenantSettings?: { [propertyName: string]: string }; | ||
shardCount?: number; | ||
subnetId?: string; | ||
staticIP?: string; | ||
provisioningState?: string; | ||
hostName?: string; | ||
port?: number; | ||
sslPort?: number; | ||
accessKeys?: RedisAccessKeys; | ||
export interface RedisFirewallRule { | ||
readonly id?: string; | ||
readonly name?: string; | ||
readonly type?: string; | ||
startIP: string; | ||
endIP: string; | ||
} | ||
@@ -267,53 +224,75 @@ | ||
* @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 RedisResource class. | ||
* @constructor | ||
* A single redis item in List or Get Operation. | ||
* A single Redis item in List or Get Operation. | ||
* | ||
* @member {string} [redisVersion] RedisVersion parameter has been deprecated. | ||
* As such, it is no longer necessary to provide this parameter and any value | ||
* specified is ignored. | ||
* | ||
* @member {object} sku What sku of redis cache to deploy. | ||
* | ||
* @member {string} [sku.name] What type of redis cache to deploy. Valid | ||
* values: (Basic, Standard, Premium). Possible values include: 'Basic', | ||
* 'Standard', 'Premium' | ||
* | ||
* @member {string} [sku.family] Which family to use. Valid values: (C, P). | ||
* Possible values include: 'C', 'P' | ||
* | ||
* @member {number} [sku.capacity] What size of redis cache to deploy. Valid | ||
* values: for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* @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 | ||
* @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] If the value is true, then the non-ssl | ||
* redis server port (6379) will be enabled. | ||
* | ||
* | ||
* @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: | ||
* network to deploy the Redis cache in. Example format: | ||
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 | ||
* | ||
* @member {string} [staticIP] Required when deploying a redis cache inside an | ||
* existing Azure Virtual Network. | ||
* | ||
* @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 {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. | ||
* | ||
*/ | ||
export interface RedisResource extends Resource { | ||
redisVersion?: string; | ||
sku: Sku; | ||
redisConfiguration?: { [propertyName: string]: string }; | ||
@@ -325,6 +304,9 @@ enableNonSslPort?: boolean; | ||
staticIP?: string; | ||
provisioningState?: string; | ||
hostName?: string; | ||
port?: number; | ||
sslPort?: number; | ||
sku?: Sku; | ||
readonly redisVersion?: string; | ||
readonly provisioningState?: string; | ||
readonly hostName?: string; | ||
readonly port?: number; | ||
readonly sslPort?: number; | ||
readonly accessKeys?: RedisAccessKeys; | ||
} | ||
@@ -334,16 +316,14 @@ | ||
* @class | ||
* Initializes a new instance of the RedisListKeysResult class. | ||
* Initializes a new instance of the RedisListResult class. | ||
* @constructor | ||
* The response of redis list keys operation. | ||
* The response of list Redis operation. | ||
* | ||
* @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. | ||
* | ||
* @member {array} [value] List of Redis cache instances. | ||
* | ||
* @member {string} [nextLink] Link for next set of locations. | ||
* | ||
*/ | ||
export interface RedisListKeysResult { | ||
primaryKey?: string; | ||
secondaryKey?: string; | ||
export interface RedisListResult { | ||
value?: RedisResource[]; | ||
nextLink?: string; | ||
} | ||
@@ -355,7 +335,7 @@ | ||
* @constructor | ||
* Specifies which redis access keys to reset. | ||
* Specifies which Redis access keys to reset. | ||
* | ||
* @member {string} keyType Which redis access key to reset. Possible values | ||
* @member {string} keyType The Redis access key to regenerate. Possible values | ||
* include: 'Primary', 'Secondary' | ||
* | ||
* | ||
*/ | ||
@@ -370,11 +350,11 @@ export interface RedisRegenerateKeyParameters { | ||
* @constructor | ||
* Specifies which redis node(s) to reboot. | ||
* 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', | ||
* @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] In case of cluster cache, this specifies shard | ||
* id which should be rebooted. | ||
* | ||
* | ||
* @member {number} [shardId] If clustering is enabled, the ID of the shard to | ||
* be rebooted. | ||
* | ||
*/ | ||
@@ -390,10 +370,10 @@ export interface RedisRebootParameters { | ||
* @constructor | ||
* Parameters for redis export operation. | ||
* Parameters for Redis export operation. | ||
* | ||
* @member {string} [format] File format. | ||
* | ||
* @member {string} prefix Prifix to use for exported files. | ||
* | ||
* | ||
* @member {string} prefix Prefix to use for exported files. | ||
* | ||
* @member {string} container Container name to export to. | ||
* | ||
* | ||
*/ | ||
@@ -410,8 +390,8 @@ export interface ExportRDBParameters { | ||
* @constructor | ||
* Parameters for redis import operation. | ||
* Parameters for Redis import operation. | ||
* | ||
* @member {string} [format] File format. | ||
* | ||
* @member {array} files files to import | ||
* | ||
* | ||
* @member {array} files files to import. | ||
* | ||
*/ | ||
@@ -427,12 +407,14 @@ export interface ImportRDBParameters { | ||
* @constructor | ||
* @member {string} dayOfWeek Day of week when cache can be patched. Possible | ||
* values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', | ||
* 'Saturday', 'Sunday' | ||
* | ||
* 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. | ||
* | ||
* | ||
*/ | ||
@@ -447,10 +429,22 @@ export interface ScheduleEntry { | ||
* @class | ||
* Initializes a new instance of the RedisPatchSchedulesRequest class. | ||
* Initializes a new instance of the RedisPatchSchedule class. | ||
* @constructor | ||
* Parameters to set patch schedules for redis cache. | ||
* Response to put/get patch schedules for Redis cache. | ||
* | ||
* @member {array} scheduleEntries List of 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. | ||
* | ||
*/ | ||
export interface RedisPatchSchedulesRequest { | ||
export interface RedisPatchSchedule { | ||
readonly id?: string; | ||
readonly name?: string; | ||
readonly type?: string; | ||
readonly location?: string; | ||
scheduleEntries: ScheduleEntry[]; | ||
@@ -461,37 +455,173 @@ } | ||
* @class | ||
* Initializes a new instance of the RedisPatchSchedulesResponse class. | ||
* Initializes a new instance of the RedisForceRebootResponse class. | ||
* @constructor | ||
* Response to put/get patch schedules for redis cache. | ||
* Response to force reboot 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 redis cache. | ||
* | ||
* @member {string} [message] Status message | ||
* | ||
*/ | ||
export interface RedisPatchSchedulesResponse { | ||
id?: string; | ||
export interface RedisForceRebootResponse { | ||
readonly message?: string; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the OperationDisplay class. | ||
* @constructor | ||
* The object that describes the operation. | ||
* | ||
* @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 | ||
* | ||
*/ | ||
export interface OperationDisplay { | ||
provider?: string; | ||
operation?: string; | ||
resource?: string; | ||
description?: string; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the Operation class. | ||
* @constructor | ||
* REST API operation | ||
* | ||
* @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 | ||
* | ||
*/ | ||
export interface Operation { | ||
name?: string; | ||
type?: string; | ||
location?: string; | ||
scheduleEntries: ScheduleEntry[]; | ||
display?: OperationDisplay; | ||
} | ||
/** | ||
* @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; | ||
} | ||
/** | ||
* @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; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the RedisListResult class. | ||
* @constructor | ||
* The response of list redis operation. | ||
* 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 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; | ||
} |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -23,9 +23,10 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
exports.Sku = require('./sku'); | ||
exports.RedisProperties = require('./redisProperties'); | ||
exports.Resource = require('./resource'); | ||
exports.RedisCreateOrUpdateParameters = require('./redisCreateOrUpdateParameters'); | ||
exports.RedisCreateParameters = require('./redisCreateParameters'); | ||
exports.RedisUpdateParameters = require('./redisUpdateParameters'); | ||
exports.RedisAccessKeys = require('./redisAccessKeys'); | ||
exports.RedisResourceWithAccessKey = require('./redisResourceWithAccessKey'); | ||
exports.RedisFirewallRule = require('./redisFirewallRule'); | ||
exports.RedisFirewallRuleListResult = require('./redisFirewallRuleListResult'); | ||
exports.RedisResource = require('./redisResource'); | ||
exports.RedisListKeysResult = require('./redisListKeysResult'); | ||
exports.RedisListResult = require('./redisListResult'); | ||
exports.RedisRegenerateKeyParameters = require('./redisRegenerateKeyParameters'); | ||
@@ -36,4 +37,9 @@ exports.RedisRebootParameters = require('./redisRebootParameters'); | ||
exports.ScheduleEntry = require('./scheduleEntry'); | ||
exports.RedisPatchSchedulesRequest = require('./redisPatchSchedulesRequest'); | ||
exports.RedisPatchSchedulesResponse = require('./redisPatchSchedulesResponse'); | ||
exports.RedisPatchSchedule = require('./redisPatchSchedule'); | ||
exports.RedisForceRebootResponse = require('./redisForceRebootResponse'); | ||
exports.OperationDisplay = require('./operationDisplay'); | ||
exports.Operation = require('./operation'); | ||
exports.OperationListResult = require('./operationListResult'); | ||
exports.OperationListResult = require('./operationListResult'); | ||
exports.RedisListResult = require('./redisListResult'); | ||
exports.RedisFirewallRuleListResult = require('./redisFirewallRuleListResult'); |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -21,44 +21,48 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @member {string} [primaryKey] The current primary key that clients can use | ||
* to authenticate with redis cache. | ||
* | ||
* to authenticate with Redis cache. | ||
* | ||
* @member {string} [secondaryKey] The current secondary key that clients can | ||
* use to authenticate with redis cache. | ||
* | ||
* use to authenticate with Redis cache. | ||
* | ||
*/ | ||
function RedisAccessKeys() { | ||
} | ||
class RedisAccessKeys { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of RedisAccessKeys | ||
* | ||
* @returns {object} metadata of RedisAccessKeys | ||
* | ||
*/ | ||
RedisAccessKeys.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'RedisAccessKeys', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisAccessKeys', | ||
modelProperties: { | ||
primaryKey: { | ||
required: false, | ||
serializedName: 'primaryKey', | ||
type: { | ||
name: 'String' | ||
/** | ||
* Defines the metadata of RedisAccessKeys | ||
* | ||
* @returns {object} metadata of RedisAccessKeys | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RedisAccessKeys', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisAccessKeys', | ||
modelProperties: { | ||
primaryKey: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'primaryKey', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
secondaryKey: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'secondaryKey', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
secondaryKey: { | ||
required: false, | ||
serializedName: 'secondaryKey', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = RedisAccessKeys; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -14,4 +14,2 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var util = require('util'); | ||
/** | ||
@@ -21,53 +19,54 @@ * @class | ||
* @constructor | ||
* The response of list redis operation. | ||
* The response of list Redis operation. | ||
* | ||
* @member {string} [nextLink] Link for next set of locations. | ||
* | ||
* | ||
*/ | ||
function RedisListResult() { | ||
} | ||
class RedisListResult extends Array { | ||
constructor() { | ||
super(); | ||
} | ||
util.inherits(RedisListResult, Array); | ||
/** | ||
* Defines the metadata of RedisListResult | ||
* | ||
* @returns {object} metadata of RedisListResult | ||
* | ||
*/ | ||
RedisListResult.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'RedisListResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisListResult', | ||
modelProperties: { | ||
value: { | ||
required: false, | ||
serializedName: '', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'RedisResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisResource' | ||
} | ||
/** | ||
* Defines the metadata of RedisListResult | ||
* | ||
* @returns {object} metadata of RedisListResult | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RedisListResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisListResult', | ||
modelProperties: { | ||
value: { | ||
required: false, | ||
serializedName: '', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'RedisResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisResource' | ||
} | ||
} | ||
} | ||
}, | ||
nextLink: { | ||
required: false, | ||
serializedName: 'nextLink', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
nextLink: { | ||
required: false, | ||
serializedName: 'nextLink', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = RedisListResult; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,48 +18,50 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @constructor | ||
* Specifies which redis node(s) to reboot. | ||
* 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', | ||
* @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] In case of cluster cache, this specifies shard | ||
* id which should be rebooted. | ||
* | ||
*/ | ||
function RedisRebootParameters() { | ||
} | ||
/** | ||
* Defines the metadata of RedisRebootParameters | ||
* | ||
* @returns {object} metadata of RedisRebootParameters | ||
* @member {number} [shardId] If clustering is enabled, the ID of the shard to | ||
* be rebooted. | ||
* | ||
*/ | ||
RedisRebootParameters.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'RedisRebootParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisRebootParameters', | ||
modelProperties: { | ||
rebootType: { | ||
required: true, | ||
serializedName: 'rebootType', | ||
type: { | ||
name: 'String' | ||
class RedisRebootParameters { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of RedisRebootParameters | ||
* | ||
* @returns {object} metadata of RedisRebootParameters | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RedisRebootParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisRebootParameters', | ||
modelProperties: { | ||
rebootType: { | ||
required: true, | ||
serializedName: 'rebootType', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
shardId: { | ||
required: false, | ||
serializedName: 'shardId', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
}, | ||
shardId: { | ||
required: false, | ||
serializedName: 'shardId', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = RedisRebootParameters; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,38 +18,40 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @constructor | ||
* Specifies which redis access keys to reset. | ||
* Specifies which Redis access keys to reset. | ||
* | ||
* @member {string} keyType Which redis access key to reset. Possible values | ||
* @member {string} keyType The Redis access key to regenerate. Possible values | ||
* include: 'Primary', 'Secondary' | ||
* | ||
* | ||
*/ | ||
function RedisRegenerateKeyParameters() { | ||
} | ||
class RedisRegenerateKeyParameters { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of RedisRegenerateKeyParameters | ||
* | ||
* @returns {object} metadata of RedisRegenerateKeyParameters | ||
* | ||
*/ | ||
RedisRegenerateKeyParameters.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'RedisRegenerateKeyParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisRegenerateKeyParameters', | ||
modelProperties: { | ||
keyType: { | ||
required: true, | ||
serializedName: 'keyType', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Primary', 'Secondary' ] | ||
/** | ||
* Defines the metadata of RedisRegenerateKeyParameters | ||
* | ||
* @returns {object} metadata of RedisRegenerateKeyParameters | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RedisRegenerateKeyParameters', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisRegenerateKeyParameters', | ||
modelProperties: { | ||
keyType: { | ||
required: true, | ||
serializedName: 'keyType', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Primary', 'Secondary' ] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = RedisRegenerateKeyParameters; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -14,6 +14,4 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var models = require('./index'); | ||
const models = require('./index'); | ||
var util = require('util'); | ||
/** | ||
@@ -23,223 +21,245 @@ * @class | ||
* @constructor | ||
* A single redis item in List or Get Operation. | ||
* A single Redis item in List or Get Operation. | ||
* | ||
* @member {string} [redisVersion] RedisVersion parameter has been deprecated. | ||
* As such, it is no longer necessary to provide this parameter and any value | ||
* specified is ignored. | ||
* | ||
* @member {object} sku What sku of redis cache to deploy. | ||
* | ||
* @member {string} [sku.name] What type of redis cache to deploy. Valid | ||
* values: (Basic, Standard, Premium). Possible values include: 'Basic', | ||
* 'Standard', 'Premium' | ||
* | ||
* @member {string} [sku.family] Which family to use. Valid values: (C, P). | ||
* Possible values include: 'C', 'P' | ||
* | ||
* @member {number} [sku.capacity] What size of redis cache to deploy. Valid | ||
* values: for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
* @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 | ||
* @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] If the value is true, then the non-ssl | ||
* redis server port (6379) will be enabled. | ||
* | ||
* | ||
* @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: | ||
* network to deploy the Redis cache in. Example format: | ||
* /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 | ||
* | ||
* @member {string} [staticIP] Required when deploying a redis cache inside an | ||
* existing Azure Virtual Network. | ||
* | ||
* @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 | ||
* | ||
*/ | ||
function RedisResource() { | ||
RedisResource['super_'].call(this); | ||
} | ||
util.inherits(RedisResource, models['Resource']); | ||
/** | ||
* Defines the metadata of RedisResource | ||
* | ||
* @returns {object} metadata of RedisResource | ||
* @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. | ||
* | ||
*/ | ||
RedisResource.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'RedisResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisResource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
location: { | ||
required: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
class RedisResource extends models['Resource'] { | ||
constructor() { | ||
super(); | ||
} | ||
/** | ||
* Defines the metadata of RedisResource | ||
* | ||
* @returns {object} metadata of RedisResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RedisResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisResource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
redisVersion: { | ||
required: false, | ||
serializedName: 'properties.redisVersion', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
sku: { | ||
required: true, | ||
serializedName: 'properties.sku', | ||
type: { | ||
name: 'Composite', | ||
className: 'Sku' | ||
} | ||
}, | ||
redisConfiguration: { | ||
required: false, | ||
serializedName: 'properties.redisConfiguration', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
enableNonSslPort: { | ||
required: false, | ||
serializedName: 'properties.enableNonSslPort', | ||
}, | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
tenantSettings: { | ||
required: false, | ||
serializedName: 'properties.tenantSettings', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
}, | ||
shardCount: { | ||
required: false, | ||
serializedName: 'properties.shardCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
subnetId: { | ||
required: false, | ||
serializedName: 'properties.subnetId', | ||
constraints: { | ||
Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$' | ||
}, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
staticIP: { | ||
required: false, | ||
serializedName: 'properties.staticIP', | ||
constraints: { | ||
Pattern: '^\d+\.\d+\.\d+\.\d+$' | ||
location: { | ||
required: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
name: 'String' | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
redisConfiguration: { | ||
required: false, | ||
serializedName: 'properties.redisConfiguration', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
enableNonSslPort: { | ||
required: false, | ||
serializedName: 'properties.enableNonSslPort', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
tenantSettings: { | ||
required: false, | ||
serializedName: 'properties.tenantSettings', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
shardCount: { | ||
required: false, | ||
serializedName: 'properties.shardCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
subnetId: { | ||
required: false, | ||
serializedName: 'properties.subnetId', | ||
constraints: { | ||
Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$' | ||
}, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
staticIP: { | ||
required: false, | ||
serializedName: 'properties.staticIP', | ||
constraints: { | ||
Pattern: '^\d+\.\d+\.\d+\.\d+$' | ||
}, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
sku: { | ||
required: false, | ||
serializedName: 'properties.sku', | ||
type: { | ||
name: 'Composite', | ||
className: 'Sku' | ||
} | ||
}, | ||
redisVersion: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.redisVersion', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
provisioningState: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.provisioningState', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
hostName: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.hostName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
port: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.port', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
sslPort: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.sslPort', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
accessKeys: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.accessKeys', | ||
type: { | ||
name: 'Composite', | ||
className: 'RedisAccessKeys' | ||
} | ||
} | ||
}, | ||
provisioningState: { | ||
required: false, | ||
serializedName: 'properties.provisioningState', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
hostName: { | ||
required: false, | ||
serializedName: 'properties.hostName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
port: { | ||
required: false, | ||
serializedName: 'properties.port', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
sslPort: { | ||
required: false, | ||
serializedName: 'properties.sslPort', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = RedisResource; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -14,6 +14,4 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var models = require('./index'); | ||
const models = require('./index'); | ||
var util = require('util'); | ||
/** | ||
@@ -23,83 +21,85 @@ * @class | ||
* @constructor | ||
* @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 | ||
* | ||
*/ | ||
function Resource() { | ||
Resource['super_'].call(this); | ||
} | ||
util.inherits(Resource, models['BaseResource']); | ||
/** | ||
* Defines the metadata of Resource | ||
* The Resource definition. | ||
* | ||
* @returns {object} metadata of 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. | ||
* | ||
*/ | ||
Resource.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'Resource', | ||
type: { | ||
name: 'Composite', | ||
className: 'Resource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
class Resource extends models['BaseResource'] { | ||
constructor() { | ||
super(); | ||
} | ||
/** | ||
* Defines the metadata of Resource | ||
* | ||
* @returns {object} metadata of Resource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Resource', | ||
type: { | ||
name: 'Composite', | ||
className: 'Resource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
location: { | ||
required: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
location: { | ||
required: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = Resource; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,56 +18,61 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @constructor | ||
* @member {string} dayOfWeek Day of week when cache can be patched. Possible | ||
* values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', | ||
* 'Saturday', 'Sunday' | ||
* | ||
* 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. | ||
* | ||
* | ||
*/ | ||
function ScheduleEntry() { | ||
} | ||
class ScheduleEntry { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of ScheduleEntry | ||
* | ||
* @returns {object} metadata of ScheduleEntry | ||
* | ||
*/ | ||
ScheduleEntry.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'ScheduleEntry', | ||
type: { | ||
name: 'Composite', | ||
className: 'ScheduleEntry', | ||
modelProperties: { | ||
dayOfWeek: { | ||
required: true, | ||
serializedName: 'dayOfWeek', | ||
type: { | ||
name: 'String' | ||
/** | ||
* Defines the metadata of ScheduleEntry | ||
* | ||
* @returns {object} metadata of ScheduleEntry | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ScheduleEntry', | ||
type: { | ||
name: 'Composite', | ||
className: 'ScheduleEntry', | ||
modelProperties: { | ||
dayOfWeek: { | ||
required: true, | ||
serializedName: 'dayOfWeek', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend' ] | ||
} | ||
}, | ||
startHourUtc: { | ||
required: true, | ||
serializedName: 'startHourUtc', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
maintenanceWindow: { | ||
required: false, | ||
serializedName: 'maintenanceWindow', | ||
type: { | ||
name: 'TimeSpan' | ||
} | ||
} | ||
}, | ||
startHourUtc: { | ||
required: true, | ||
serializedName: 'startHourUtc', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
maintenanceWindow: { | ||
required: false, | ||
serializedName: 'maintenanceWindow', | ||
type: { | ||
name: 'TimeSpan' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = ScheduleEntry; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,58 +18,61 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
* @constructor | ||
* Sku parameters supplied to the create redis operation. | ||
* SKU parameters supplied to the create Redis operation. | ||
* | ||
* @member {string} name What type of redis cache to deploy. Valid values: | ||
* @member {string} name The type of Redis cache to deploy. Valid values: | ||
* (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard', | ||
* 'Premium' | ||
* | ||
* @member {string} family Which family to use. Valid values: (C, P). Possible | ||
* values include: 'C', 'P' | ||
* | ||
* @member {number} capacity What size of redis cache to deploy. Valid values: | ||
* for C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4) | ||
* | ||
*/ | ||
function Sku() { | ||
} | ||
/** | ||
* Defines the metadata of Sku | ||
* | ||
* @returns {object} metadata of Sku | ||
* @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). | ||
* | ||
*/ | ||
Sku.prototype.mapper = function () { | ||
return { | ||
required: false, | ||
serializedName: 'Sku', | ||
type: { | ||
name: 'Composite', | ||
className: 'Sku', | ||
modelProperties: { | ||
name: { | ||
required: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
class Sku { | ||
constructor() { | ||
} | ||
/** | ||
* Defines the metadata of Sku | ||
* | ||
* @returns {object} metadata of Sku | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Sku', | ||
type: { | ||
name: 'Composite', | ||
className: 'Sku', | ||
modelProperties: { | ||
name: { | ||
required: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
family: { | ||
required: true, | ||
serializedName: 'family', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
capacity: { | ||
required: true, | ||
serializedName: 'capacity', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
}, | ||
family: { | ||
required: true, | ||
serializedName: 'family', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
capacity: { | ||
required: true, | ||
serializedName: 'capacity', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
module.exports = Sku; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,3 +18,6 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
exports.Operations = require('./operations'); | ||
exports.Redis = require('./redis'); | ||
exports.FirewallRules = require('./firewallRules'); | ||
exports.RedisFirewallRuleOperations = require('./redisFirewallRuleOperations'); | ||
exports.PatchSchedules = require('./patchSchedules'); |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -14,37 +14,23 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var util = require('util'); | ||
var msRest = require('ms-rest'); | ||
var msRestAzure = require('ms-rest-azure'); | ||
var WebResource = msRest.WebResource; | ||
const msRest = require('ms-rest'); | ||
const msRestAzure = require('ms-rest-azure'); | ||
const WebResource = msRest.WebResource; | ||
/** | ||
* @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 | ||
* Create or replace the patching schedule for Redis cache (requires Premium | ||
* SKU). | ||
* | ||
* @param {RedisManagementClient} client Reference to the service client. | ||
*/ | ||
function PatchSchedules(client) { | ||
this.client = client; | ||
} | ||
/** | ||
* Create or replace the patching schedule for redis cache. | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* @param {array} scheduleEntries List of patch schedules for redis cache. | ||
* | ||
* @param {string} name The name of the Redis cache. | ||
* | ||
* @param {array} scheduleEntries List of patch schedules for a Redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} callback | ||
* | ||
* @param {function} callback - The callback. | ||
* | ||
* @returns {function} callback(err, result, request, response) | ||
@@ -54,5 +40,4 @@ * | ||
* | ||
* {object} [result] - The deserialized result object. | ||
* See {@link RedisPatchSchedulesResponse} for more | ||
* information. | ||
* {object} [result] - The deserialized result object if an error did not occur. | ||
* See {@link RedisPatchSchedule} for more information. | ||
* | ||
@@ -63,4 +48,5 @@ * {object} [request] - The HTTP Request object if an error did not occur. | ||
*/ | ||
PatchSchedules.prototype.createOrUpdate = function (resourceGroupName, name, scheduleEntries, options, callback) { | ||
var client = this.client; | ||
function _createOrUpdate(resourceGroupName, name, scheduleEntries, options, callback) { | ||
/* jshint validthis: true */ | ||
let client = this.client; | ||
if(!callback && typeof options === 'function') { | ||
@@ -93,18 +79,19 @@ callback = options; | ||
} | ||
var parameters; | ||
if (scheduleEntries !== null && scheduleEntries !== undefined) { | ||
parameters = new client.models['RedisPatchSchedulesRequest'](); | ||
let parameters = new client.models['RedisPatchSchedule'](); | ||
try { | ||
if (scheduleEntries !== null && scheduleEntries !== undefined) | ||
{ | ||
parameters.scheduleEntries = scheduleEntries; | ||
} | ||
} catch (error) { | ||
return callback(error); | ||
} | ||
// Construct URL | ||
var requestUrl = this.client.baseUri + | ||
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
let baseUrl = this.client.baseUri; | ||
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); | ||
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name)); | ||
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); | ||
// trim all duplicate forward slashes in the url | ||
var regex = /([^:]\/)\/+/gi; | ||
requestUrl = requestUrl.replace(regex, '$1'); | ||
var queryParameters = []; | ||
let queryParameters = []; | ||
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); | ||
@@ -116,3 +103,3 @@ if (queryParameters.length > 0) { | ||
// Create HTTP transport objects | ||
var httpRequest = new WebResource(); | ||
let httpRequest = new WebResource(); | ||
httpRequest.method = 'PUT'; | ||
@@ -129,3 +116,3 @@ httpRequest.headers = {}; | ||
if(options) { | ||
for(var headerName in options['customHeaders']) { | ||
for(let headerName in options['customHeaders']) { | ||
if (options['customHeaders'].hasOwnProperty(headerName)) { | ||
@@ -138,7 +125,7 @@ httpRequest.headers[headerName] = options['customHeaders'][headerName]; | ||
// Serialize Request | ||
var requestContent = null; | ||
var requestModel = null; | ||
let requestContent = null; | ||
let requestModel = null; | ||
try { | ||
if (parameters !== null && parameters !== undefined) { | ||
var requestModelMapper = new client.models['RedisPatchSchedulesRequest']().mapper(); | ||
let requestModelMapper = new client.models['RedisPatchSchedule']().mapper(); | ||
requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); | ||
@@ -148,4 +135,4 @@ requestContent = JSON.stringify(requestModel); | ||
} catch (error) { | ||
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + | ||
'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); | ||
let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + | ||
`payload - ${JSON.stringify(parameters, null, 2)}.`); | ||
return callback(serializationError); | ||
@@ -155,9 +142,9 @@ } | ||
// Send Request | ||
return client.pipeline(httpRequest, function (err, response, responseBody) { | ||
return client.pipeline(httpRequest, (err, response, responseBody) => { | ||
if (err) { | ||
return callback(err); | ||
} | ||
var statusCode = response.statusCode; | ||
if (statusCode !== 200) { | ||
var error = new Error(responseBody); | ||
let statusCode = response.statusCode; | ||
if (statusCode !== 200 && statusCode !== 201) { | ||
let error = new Error(responseBody); | ||
error.statusCode = response.statusCode; | ||
@@ -167,3 +154,3 @@ error.request = msRest.stripRequest(httpRequest); | ||
if (responseBody === '') responseBody = null; | ||
var parsedErrorResponse; | ||
let parsedErrorResponse; | ||
try { | ||
@@ -177,8 +164,8 @@ parsedErrorResponse = JSON.parse(responseBody); | ||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { | ||
var resultMapper = new client.models['CloudError']().mapper(); | ||
let resultMapper = new client.models['CloudError']().mapper(); | ||
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); | ||
} | ||
} catch (defaultError) { | ||
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + | ||
'- "%s" for the default response.', defaultError.message, responseBody); | ||
error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + | ||
`- "${responseBody}" for the default response.`; | ||
return callback(error); | ||
@@ -189,7 +176,7 @@ } | ||
// Create Result | ||
var result = null; | ||
let result = null; | ||
if (responseBody === '') responseBody = null; | ||
// Deserialize Response | ||
if (statusCode === 200) { | ||
var parsedResponse = null; | ||
let parsedResponse = null; | ||
try { | ||
@@ -199,7 +186,7 @@ parsedResponse = JSON.parse(responseBody); | ||
if (parsedResponse !== null && parsedResponse !== undefined) { | ||
var resultMapper = new client.models['RedisPatchSchedulesResponse']().mapper(); | ||
let resultMapper = new client.models['RedisPatchSchedule']().mapper(); | ||
result = client.deserialize(resultMapper, parsedResponse, 'result'); | ||
} | ||
} catch (error) { | ||
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody)); | ||
let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); | ||
deserializationError.request = msRest.stripRequest(httpRequest); | ||
@@ -210,21 +197,38 @@ deserializationError.response = msRest.stripResponse(response); | ||
} | ||
// Deserialize Response | ||
if (statusCode === 201) { | ||
let parsedResponse = null; | ||
try { | ||
parsedResponse = JSON.parse(responseBody); | ||
result = JSON.parse(responseBody); | ||
if (parsedResponse !== null && parsedResponse !== undefined) { | ||
let resultMapper = new client.models['RedisPatchSchedule']().mapper(); | ||
result = client.deserialize(resultMapper, parsedResponse, 'result'); | ||
} | ||
} catch (error) { | ||
let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); | ||
deserializationError1.request = msRest.stripRequest(httpRequest); | ||
deserializationError1.response = msRest.stripResponse(response); | ||
return callback(deserializationError1); | ||
} | ||
} | ||
return callback(null, result, httpRequest, response); | ||
}); | ||
}; | ||
} | ||
/** | ||
* Deletes the patching schedule for redis cache. | ||
* Deletes the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} callback | ||
* | ||
* @param {function} callback - The callback. | ||
* | ||
* @returns {function} callback(err, result, request, response) | ||
@@ -234,3 +238,3 @@ * | ||
* | ||
* {null} [result] - The deserialized result object. | ||
* {null} [result] - The deserialized result object if an error did not occur. | ||
* | ||
@@ -241,4 +245,5 @@ * {object} [request] - The HTTP Request object if an error did not occur. | ||
*/ | ||
PatchSchedules.prototype.deleteMethod = function (resourceGroupName, name, options, callback) { | ||
var client = this.client; | ||
function _deleteMethod(resourceGroupName, name, options, callback) { | ||
/* jshint validthis: true */ | ||
let client = this.client; | ||
if(!callback && typeof options === 'function') { | ||
@@ -273,11 +278,8 @@ callback = options; | ||
// Construct URL | ||
var requestUrl = this.client.baseUri + | ||
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
let baseUrl = this.client.baseUri; | ||
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); | ||
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name)); | ||
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); | ||
// trim all duplicate forward slashes in the url | ||
var regex = /([^:]\/)\/+/gi; | ||
requestUrl = requestUrl.replace(regex, '$1'); | ||
var queryParameters = []; | ||
let queryParameters = []; | ||
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); | ||
@@ -289,3 +291,3 @@ if (queryParameters.length > 0) { | ||
// Create HTTP transport objects | ||
var httpRequest = new WebResource(); | ||
let httpRequest = new WebResource(); | ||
httpRequest.method = 'DELETE'; | ||
@@ -302,3 +304,3 @@ httpRequest.headers = {}; | ||
if(options) { | ||
for(var headerName in options['customHeaders']) { | ||
for(let headerName in options['customHeaders']) { | ||
if (options['customHeaders'].hasOwnProperty(headerName)) { | ||
@@ -312,9 +314,9 @@ httpRequest.headers[headerName] = options['customHeaders'][headerName]; | ||
// Send Request | ||
return client.pipeline(httpRequest, function (err, response, responseBody) { | ||
return client.pipeline(httpRequest, (err, response, responseBody) => { | ||
if (err) { | ||
return callback(err); | ||
} | ||
var statusCode = response.statusCode; | ||
if (statusCode !== 200) { | ||
var error = new Error(responseBody); | ||
let statusCode = response.statusCode; | ||
if (statusCode !== 200 && statusCode !== 204) { | ||
let error = new Error(responseBody); | ||
error.statusCode = response.statusCode; | ||
@@ -324,3 +326,3 @@ error.request = msRest.stripRequest(httpRequest); | ||
if (responseBody === '') responseBody = null; | ||
var parsedErrorResponse; | ||
let parsedErrorResponse; | ||
try { | ||
@@ -333,5 +335,9 @@ parsedErrorResponse = JSON.parse(responseBody); | ||
} | ||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { | ||
let resultMapper = new client.models['CloudError']().mapper(); | ||
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); | ||
} | ||
} catch (defaultError) { | ||
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + | ||
'- "%s" for the default response.', defaultError.message, responseBody); | ||
error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + | ||
`- "${responseBody}" for the default response.`; | ||
return callback(error); | ||
@@ -342,3 +348,3 @@ } | ||
// Create Result | ||
var result = null; | ||
let result = null; | ||
if (responseBody === '') responseBody = null; | ||
@@ -348,18 +354,18 @@ | ||
}); | ||
}; | ||
} | ||
/** | ||
* Gets the patching schedule for redis cache. | ||
* Gets the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} callback | ||
* | ||
* @param {function} callback - The callback. | ||
* | ||
* @returns {function} callback(err, result, request, response) | ||
@@ -369,5 +375,4 @@ * | ||
* | ||
* {object} [result] - The deserialized result object. | ||
* See {@link RedisPatchSchedulesResponse} for more | ||
* information. | ||
* {object} [result] - The deserialized result object if an error did not occur. | ||
* See {@link RedisPatchSchedule} for more information. | ||
* | ||
@@ -378,4 +383,5 @@ * {object} [request] - The HTTP Request object if an error did not occur. | ||
*/ | ||
PatchSchedules.prototype.get = function (resourceGroupName, name, options, callback) { | ||
var client = this.client; | ||
function _get(resourceGroupName, name, options, callback) { | ||
/* jshint validthis: true */ | ||
let client = this.client; | ||
if(!callback && typeof options === 'function') { | ||
@@ -410,11 +416,8 @@ callback = options; | ||
// Construct URL | ||
var requestUrl = this.client.baseUri + | ||
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
let baseUrl = this.client.baseUri; | ||
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/patchSchedules/default'; | ||
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); | ||
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name)); | ||
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); | ||
// trim all duplicate forward slashes in the url | ||
var regex = /([^:]\/)\/+/gi; | ||
requestUrl = requestUrl.replace(regex, '$1'); | ||
var queryParameters = []; | ||
let queryParameters = []; | ||
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); | ||
@@ -426,3 +429,3 @@ if (queryParameters.length > 0) { | ||
// Create HTTP transport objects | ||
var httpRequest = new WebResource(); | ||
let httpRequest = new WebResource(); | ||
httpRequest.method = 'GET'; | ||
@@ -439,3 +442,3 @@ httpRequest.headers = {}; | ||
if(options) { | ||
for(var headerName in options['customHeaders']) { | ||
for(let headerName in options['customHeaders']) { | ||
if (options['customHeaders'].hasOwnProperty(headerName)) { | ||
@@ -449,9 +452,9 @@ httpRequest.headers[headerName] = options['customHeaders'][headerName]; | ||
// Send Request | ||
return client.pipeline(httpRequest, function (err, response, responseBody) { | ||
return client.pipeline(httpRequest, (err, response, responseBody) => { | ||
if (err) { | ||
return callback(err); | ||
} | ||
var statusCode = response.statusCode; | ||
let statusCode = response.statusCode; | ||
if (statusCode !== 200) { | ||
var error = new Error(responseBody); | ||
let error = new Error(responseBody); | ||
error.statusCode = response.statusCode; | ||
@@ -461,3 +464,3 @@ error.request = msRest.stripRequest(httpRequest); | ||
if (responseBody === '') responseBody = null; | ||
var parsedErrorResponse; | ||
let parsedErrorResponse; | ||
try { | ||
@@ -471,8 +474,8 @@ parsedErrorResponse = JSON.parse(responseBody); | ||
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { | ||
var resultMapper = new client.models['CloudError']().mapper(); | ||
let resultMapper = new client.models['CloudError']().mapper(); | ||
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); | ||
} | ||
} catch (defaultError) { | ||
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + | ||
'- "%s" for the default response.', defaultError.message, responseBody); | ||
error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + | ||
`- "${responseBody}" for the default response.`; | ||
return callback(error); | ||
@@ -483,7 +486,7 @@ } | ||
// Create Result | ||
var result = null; | ||
let result = null; | ||
if (responseBody === '') responseBody = null; | ||
// Deserialize Response | ||
if (statusCode === 200) { | ||
var parsedResponse = null; | ||
let parsedResponse = null; | ||
try { | ||
@@ -493,7 +496,7 @@ parsedResponse = JSON.parse(responseBody); | ||
if (parsedResponse !== null && parsedResponse !== undefined) { | ||
var resultMapper = new client.models['RedisPatchSchedulesResponse']().mapper(); | ||
let resultMapper = new client.models['RedisPatchSchedule']().mapper(); | ||
result = client.deserialize(resultMapper, parsedResponse, 'result'); | ||
} | ||
} catch (error) { | ||
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody)); | ||
let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); | ||
deserializationError.request = msRest.stripRequest(httpRequest); | ||
@@ -507,5 +510,287 @@ deserializationError.response = msRest.stripResponse(response); | ||
}); | ||
}; | ||
} | ||
/** | ||
* @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 PatchSchedules { | ||
constructor(client) { | ||
this.client = client; | ||
this._createOrUpdate = _createOrUpdate; | ||
this._deleteMethod = _deleteMethod; | ||
this._get = _get; | ||
} | ||
/** | ||
* Create or replace the patching schedule for Redis cache (requires Premium | ||
* SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the Redis cache. | ||
* | ||
* @param {array} scheduleEntries List of patch schedules for a Redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @returns {Promise} A promise is returned | ||
* | ||
* @resolve {HttpOperationResponse<RedisPatchSchedule>} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
*/ | ||
createOrUpdateWithHttpOperationResponse(resourceGroupName, name, scheduleEntries, options) { | ||
let client = this.client; | ||
let self = this; | ||
return new Promise((resolve, reject) => { | ||
self._createOrUpdate(resourceGroupName, name, scheduleEntries, options, (err, result, request, response) => { | ||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response); | ||
httpOperationResponse.body = result; | ||
if (err) { reject(err); } | ||
else { resolve(httpOperationResponse); } | ||
return; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Create or replace the patching schedule for Redis cache (requires Premium | ||
* SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the Redis cache. | ||
* | ||
* @param {array} scheduleEntries List of patch schedules for a Redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} [optionalCallback] - The optional callback. | ||
* | ||
* @returns {function|Promise} If a callback was passed as the last parameter | ||
* then it returns the callback else returns a Promise. | ||
* | ||
* {Promise} A promise is returned | ||
* | ||
* @resolve {RedisPatchSchedule} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
* | ||
* {function} optionalCallback(err, result, request, response) | ||
* | ||
* {Error} err - The Error object if an error occurred, null otherwise. | ||
* | ||
* {object} [result] - The deserialized result object if an error did not occur. | ||
* See {@link RedisPatchSchedule} for more information. | ||
* | ||
* {object} [request] - The HTTP Request object if an error did not occur. | ||
* | ||
* {stream} [response] - The HTTP Response stream if an error did not occur. | ||
*/ | ||
createOrUpdate(resourceGroupName, name, scheduleEntries, options, optionalCallback) { | ||
let client = this.client; | ||
let self = this; | ||
if (!optionalCallback && typeof options === 'function') { | ||
optionalCallback = options; | ||
options = null; | ||
} | ||
if (!optionalCallback) { | ||
return new Promise((resolve, reject) => { | ||
self._createOrUpdate(resourceGroupName, name, scheduleEntries, options, (err, result, request, response) => { | ||
if (err) { reject(err); } | ||
else { resolve(result); } | ||
return; | ||
}); | ||
}); | ||
} else { | ||
return self._createOrUpdate(resourceGroupName, name, scheduleEntries, options, optionalCallback); | ||
} | ||
} | ||
/** | ||
* Deletes the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @returns {Promise} A promise is returned | ||
* | ||
* @resolve {HttpOperationResponse<null>} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
*/ | ||
deleteMethodWithHttpOperationResponse(resourceGroupName, name, options) { | ||
let client = this.client; | ||
let self = this; | ||
return new Promise((resolve, reject) => { | ||
self._deleteMethod(resourceGroupName, name, options, (err, result, request, response) => { | ||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response); | ||
httpOperationResponse.body = result; | ||
if (err) { reject(err); } | ||
else { resolve(httpOperationResponse); } | ||
return; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Deletes the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} [optionalCallback] - The optional callback. | ||
* | ||
* @returns {function|Promise} If a callback was passed as the last parameter | ||
* then it returns the callback else returns a Promise. | ||
* | ||
* {Promise} A promise is returned | ||
* | ||
* @resolve {null} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
* | ||
* {function} optionalCallback(err, result, request, response) | ||
* | ||
* {Error} err - The Error object if an error occurred, null otherwise. | ||
* | ||
* {null} [result] - The deserialized result object if an error did not occur. | ||
* | ||
* {object} [request] - The HTTP Request object if an error did not occur. | ||
* | ||
* {stream} [response] - The HTTP Response stream if an error did not occur. | ||
*/ | ||
deleteMethod(resourceGroupName, name, options, optionalCallback) { | ||
let client = this.client; | ||
let self = this; | ||
if (!optionalCallback && typeof options === 'function') { | ||
optionalCallback = options; | ||
options = null; | ||
} | ||
if (!optionalCallback) { | ||
return new Promise((resolve, reject) => { | ||
self._deleteMethod(resourceGroupName, name, options, (err, result, request, response) => { | ||
if (err) { reject(err); } | ||
else { resolve(result); } | ||
return; | ||
}); | ||
}); | ||
} else { | ||
return self._deleteMethod(resourceGroupName, name, options, optionalCallback); | ||
} | ||
} | ||
/** | ||
* Gets the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @returns {Promise} A promise is returned | ||
* | ||
* @resolve {HttpOperationResponse<RedisPatchSchedule>} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
*/ | ||
getWithHttpOperationResponse(resourceGroupName, name, options) { | ||
let client = this.client; | ||
let self = this; | ||
return new Promise((resolve, reject) => { | ||
self._get(resourceGroupName, name, options, (err, result, request, response) => { | ||
let httpOperationResponse = new msRest.HttpOperationResponse(request, response); | ||
httpOperationResponse.body = result; | ||
if (err) { reject(err); } | ||
else { resolve(httpOperationResponse); } | ||
return; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Gets the patching schedule of a redis cache (requires Premium SKU). | ||
* | ||
* @param {string} resourceGroupName The name of the resource group. | ||
* | ||
* @param {string} name The name of the redis cache. | ||
* | ||
* @param {object} [options] Optional Parameters. | ||
* | ||
* @param {object} [options.customHeaders] Headers that will be added to the | ||
* request | ||
* | ||
* @param {function} [optionalCallback] - The optional callback. | ||
* | ||
* @returns {function|Promise} If a callback was passed as the last parameter | ||
* then it returns the callback else returns a Promise. | ||
* | ||
* {Promise} A promise is returned | ||
* | ||
* @resolve {RedisPatchSchedule} - The deserialized result object. | ||
* | ||
* @reject {Error} - The error object. | ||
* | ||
* {function} optionalCallback(err, result, request, response) | ||
* | ||
* {Error} err - The Error object if an error occurred, null otherwise. | ||
* | ||
* {object} [result] - The deserialized result object if an error did not occur. | ||
* See {@link RedisPatchSchedule} for more information. | ||
* | ||
* {object} [request] - The HTTP Request object if an error did not occur. | ||
* | ||
* {stream} [response] - The HTTP Response stream if an error did not occur. | ||
*/ | ||
get(resourceGroupName, name, options, optionalCallback) { | ||
let client = this.client; | ||
let self = this; | ||
if (!optionalCallback && typeof options === 'function') { | ||
optionalCallback = options; | ||
options = null; | ||
} | ||
if (!optionalCallback) { | ||
return new Promise((resolve, reject) => { | ||
self._get(resourceGroupName, name, options, (err, result, request, response) => { | ||
if (err) { reject(err); } | ||
else { resolve(result); } | ||
return; | ||
}); | ||
}); | ||
} else { | ||
return self._get(resourceGroupName, name, options, optionalCallback); | ||
} | ||
} | ||
} | ||
module.exports = PatchSchedules; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -12,54 +12,57 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
import { ServiceClientOptions, RequestOptions, ServiceCallback, ServiceClientCredentials } from 'ms-rest'; | ||
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; | ||
import * as operations from "./operations"; | ||
declare class RedisManagementClient { | ||
/** | ||
* @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 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. | ||
* | ||
*/ | ||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri: string, options: ServiceClientOptions); | ||
/** | ||
* Initializes a new instance of the RedisManagementClient class. | ||
* @constructor | ||
* | ||
* @class | ||
* @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. | ||
* | ||
*/ | ||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions); | ||
credentials: ServiceClientCredentials; | ||
credentials: ServiceClientCredentials; | ||
subscriptionId: string; | ||
subscriptionId: string; | ||
apiVersion: string; | ||
apiVersion: string; | ||
acceptLanguage: string; | ||
acceptLanguage: string; | ||
longRunningOperationRetryTimeout: number; | ||
longRunningOperationRetryTimeout: number; | ||
generateClientRequestId: boolean; | ||
generateClientRequestId: boolean; | ||
// Operation groups | ||
redis: operations.Redis; | ||
patchSchedules: operations.PatchSchedules; | ||
} | ||
// Operation groups | ||
operations: operations.Operations; | ||
redis: operations.Redis; | ||
firewallRules: operations.FirewallRules; | ||
redisFirewallRuleOperations: operations.RedisFirewallRuleOperations; | ||
patchSchedules: operations.PatchSchedules; | ||
} | ||
export = RedisManagementClient; |
@@ -5,3 +5,3 @@ /* | ||
* license information. | ||
* | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
@@ -18,10 +18,10 @@ * Changes may cause incorrect behavior and will be lost if the code is | ||
var util = require('util'); | ||
var msRest = require('ms-rest'); | ||
var msRestAzure = require('ms-rest-azure'); | ||
var ServiceClient = msRestAzure.AzureServiceClient; | ||
const msRest = require('ms-rest'); | ||
const msRestAzure = require('ms-rest-azure'); | ||
const ServiceClient = msRestAzure.AzureServiceClient; | ||
var models = require('./models'); | ||
var operations = require('./operations'); | ||
const models = require('./models'); | ||
const operations = require('./operations'); | ||
/** | ||
@@ -34,3 +34,3 @@ * @class | ||
* | ||
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. | ||
* @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. | ||
* | ||
@@ -57,44 +57,51 @@ * @param {string} [baseUri] - The base URI of the service. | ||
*/ | ||
function RedisManagementClient(credentials, subscriptionId, baseUri, options) { | ||
this.apiVersion = '2016-04-01'; | ||
this.acceptLanguage = 'en-US'; | ||
this.longRunningOperationRetryTimeout = 30; | ||
this.generateClientRequestId = true; | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
} | ||
if (subscriptionId === null || subscriptionId === undefined) { | ||
throw new Error('\'subscriptionId\' cannot be null.'); | ||
} | ||
class RedisManagementClient extends ServiceClient { | ||
constructor(credentials, subscriptionId, baseUri, options) { | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
} | ||
if (subscriptionId === null || subscriptionId === undefined) { | ||
throw new Error('\'subscriptionId\' cannot be null.'); | ||
} | ||
if (!options) options = {}; | ||
if (!options) options = {}; | ||
RedisManagementClient['super_'].call(this, credentials, options); | ||
this.baseUri = baseUri; | ||
if (!this.baseUri) { | ||
this.baseUri = 'https://management.azure.com'; | ||
super(credentials, options); | ||
this.apiVersion = '2016-04-01'; | ||
this.acceptLanguage = 'en-US'; | ||
this.longRunningOperationRetryTimeout = 30; | ||
this.generateClientRequestId = true; | ||
this.baseUri = baseUri; | ||
if (!this.baseUri) { | ||
this.baseUri = 'https://management.azure.com'; | ||
} | ||
this.credentials = credentials; | ||
this.subscriptionId = subscriptionId; | ||
let packageInfo = this.getPackageJsonInfo(__dirname); | ||
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); | ||
if(options.apiVersion !== null && options.apiVersion !== undefined) { | ||
this.apiVersion = options.apiVersion; | ||
} | ||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { | ||
this.acceptLanguage = options.acceptLanguage; | ||
} | ||
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { | ||
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; | ||
} | ||
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { | ||
this.generateClientRequestId = options.generateClientRequestId; | ||
} | ||
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.models = models; | ||
msRest.addSerializationMixin(this); | ||
} | ||
this.credentials = credentials; | ||
this.subscriptionId = subscriptionId; | ||
if(options.apiVersion !== null && options.apiVersion !== undefined) { | ||
this.apiVersion = options.apiVersion; | ||
} | ||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { | ||
this.acceptLanguage = options.acceptLanguage; | ||
} | ||
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { | ||
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; | ||
} | ||
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { | ||
this.generateClientRequestId = options.generateClientRequestId; | ||
} | ||
this.redis = new operations.Redis(this); | ||
this.patchSchedules = new operations.PatchSchedules(this); | ||
this.models = models; | ||
msRest.addSerializationMixin(this); | ||
} | ||
util.inherits(RedisManagementClient, ServiceClient); | ||
module.exports = RedisManagementClient; |
The MIT License (MIT) | ||
Copyright (c) 2016 Microsoft | ||
Copyright (c) 2017 Microsoft | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.2.3", | ||
"version": "1.0.0-preview", | ||
"description": "Microsoft Azure Redis Cache Client Library for node", | ||
@@ -21,6 +21,7 @@ "tags": [ | ||
"main": "./lib/redisManagementClient.js", | ||
"types": "./lib/redisManagementClient.d.ts", | ||
"license": "MIT", | ||
"dependencies": { | ||
"ms-rest": "^1.14.0", | ||
"ms-rest-azure": "^1.14.0" | ||
"ms-rest": "^2.0.0", | ||
"ms-rest-azure": "^2.0.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "homepage": "http://github.com/Azure/azure-sdk-for-node", |
103
README.md
# Microsoft Azure SDK for Node.js - Redis | ||
This project provides a Node.js package for accessing the Azure Redis Cache Client. Right now it supports: | ||
- **Node.js version: 0.10.0 or higher** | ||
- **API version: ** | ||
- **Node.js version: 6.x.x or higher** | ||
- **API version: 2016-04-01** | ||
@@ -37,36 +37,37 @@ ## Features | ||
#### Managing a RedisCache | ||
client = new AzureMgmtRedisCache(credentials, 'your-subscription-id'); | ||
```javascript | ||
var client = new AzureMgmtRedisCache(credentials, 'your-subscription-id'); | ||
var resourceGroup = 'myResourceGroup'; | ||
var cacheName = 'myNewCache'; | ||
var resourceGroup = 'myResourceGroup'; | ||
var cacheName = 'myNewCache'; | ||
//Create an Azure Redis Cache | ||
var skuProperties = { | ||
capacity : 1, | ||
family : C, | ||
name : 'Standard' | ||
}; | ||
var parameters = { | ||
location:'West US', | ||
redisVersion : '3.0', | ||
enableNonSslPort : false, | ||
sku : skuProperties | ||
}; | ||
console.info('Creating cache...'); | ||
client.redis.createOrUpdate(resourceGroup, cacheName, parameters, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache created: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
var skuProperties = { | ||
capacity : 1, | ||
family : C, | ||
name : 'Standard' | ||
}; | ||
var parameters = { | ||
location:'West US', | ||
redisVersion : '3.0', | ||
enableNonSslPort : false, | ||
sku : skuProperties | ||
}; | ||
console.info('Creating cache...'); | ||
client.redis.createOrUpdate(resourceGroup, cacheName, parameters, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache created: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
//Show properties of an existing Azure Redis Cache | ||
console.info('Getting cache properties...'); | ||
client.redis.get(resourceGroup, cacheName, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache properties: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
console.info('Getting cache properties...'); | ||
client.redis.get(resourceGroup, cacheName, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache properties: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
@@ -76,34 +77,34 @@ | ||
console.info('Getting caches within a resource group...'); | ||
client.redis.listByResourceGroup(resourceGroup, function (err, result) { | ||
if (err) throw err; | ||
console.info('Caches: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
console.info('Getting caches within a resource group...'); | ||
client.redis.listByResourceGroup(resourceGroup, function (err, result) { | ||
if (err) throw err; | ||
console.info('Caches: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
//list all caches within your subscription | ||
console.info('Getting caches within a subscription...'); | ||
client.redis.list(function (err, result) { | ||
if (err) throw err; | ||
console.info('Caches: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
console.info('Getting caches within a subscription...'); | ||
client.redis.list(function (err, result) { | ||
if (err) throw err; | ||
console.info('Caches: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
//show primary and secondary keys of the cache | ||
console.info('Getting cache keys...'); | ||
client.redis.listKeys(resourceGroup, cacheName, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache keys: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
console.info('Getting cache keys...'); | ||
client.redis.listKeys(resourceGroup, cacheName, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache keys: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
//regenerate keys of the cache | ||
var keytype = 'Primary'; | ||
console.info('Getting cache keys...'); | ||
client.redis.regenerateKey(resourceGroup, cacheName, keytype, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache primary key regenerated'); | ||
console.info('Regenerated Cache keys: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
var keytype = 'Primary'; | ||
console.info('Getting cache keys...'); | ||
client.redis.regenerateKey(resourceGroup, cacheName, keytype, function (err, result) { | ||
if (err) throw err; | ||
console.info('Cache primary key regenerated'); | ||
console.info('Regenerated Cache keys: ' + JSON.stringify(result, null, ' ')); | ||
}); | ||
``` | ||
@@ -110,0 +111,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
438166
33
10876
0
113
1
+ Added@xmldom/xmldom@0.8.10(transitive)
+ Addedadal-node@0.2.4(transitive)
+ Addedajv@6.12.3(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaxios@0.21.4(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.01.3.6(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjsprim@2.0.2(transitive)
+ Addedms-rest@2.5.6(transitive)
+ Addedms-rest-azure@2.6.2(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel@0.0.5(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removed@types/node@8.10.66(transitive)
- Removedadal-node@0.1.28(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedasync@0.2.73.2.6(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedazure-arm-resource@1.6.1-preview(transitive)
- Removedbl@1.1.2(transitive)
- Removedboom@2.10.1(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@1.0.1(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedms-rest@1.15.7(transitive)
- Removedms-rest-azure@1.15.7(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.2.4(transitive)
- Removedreadable-stream@2.0.6(transitive)
- Removedrequest@2.74.0(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtunnel@0.0.6(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxmldom@0.6.0(transitive)
- Removedxtend@4.0.2(transitive)
Updatedms-rest@^2.0.0
Updatedms-rest-azure@^2.0.0