diff --git a/packages/@azure/arm-rediscache/LICENSE.txt b/packages/@azure/arm-rediscache/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-rediscache/LICENSE.txt +++ b/packages/@azure/arm-rediscache/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-rediscache/README.md b/packages/@azure/arm-rediscache/README.md index dbdacc405831..48309506bb2c 100644 --- a/packages/@azure/arm-rediscache/README.md +++ b/packages/@azure/arm-rediscache/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for RedisManagementClient. ### How to Install -``` +```bash npm install @azure/arm-rediscache ``` @@ -19,13 +19,13 @@ npm install @azure/arm-rediscache ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` diff --git a/packages/@azure/arm-rediscache/lib/models/firewallRulesMappers.ts b/packages/@azure/arm-rediscache/lib/models/firewallRulesMappers.ts index 7e1b378b134c..5a4867d02467 100644 --- a/packages/@azure/arm-rediscache/lib/models/firewallRulesMappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/firewallRulesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RedisFirewallRuleListResult, - RedisFirewallRule, - ProxyResource, - Resource, BaseResource, CloudError, - RedisFirewallRuleCreateParameters, - TrackedResource, - RedisResource, - Sku, + ProxyResource, RedisAccessKeys, + RedisFirewallRule, + RedisFirewallRuleCreateParameters, + RedisFirewallRuleListResult, RedisLinkedServer, + RedisLinkedServerWithProperties, RedisPatchSchedule, + RedisResource, + Resource, ScheduleEntry, - RedisLinkedServerWithProperties + Sku, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-rediscache/lib/models/index.ts b/packages/@azure/arm-rediscache/lib/models/index.ts index 22ff4157ac33..862426991df8 100644 --- a/packages/@azure/arm-rediscache/lib/models/index.ts +++ b/packages/@azure/arm-rediscache/lib/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,835 +11,651 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Sku. * SKU parameters supplied to the create Redis operation. - * */ export interface Sku { /** - * @member {SkuName} name The type of Redis cache to deploy. Valid values: - * (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard', - * 'Premium' + * The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium). Possible values + * include: 'Basic', 'Standard', 'Premium' */ name: SkuName; /** - * @member {SkuFamily} family The SKU family to use. Valid values: (C, P). (C - * = Basic/Standard, P = Premium). Possible values include: 'C', 'P' + * The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium). Possible + * values include: 'C', 'P' */ family: SkuFamily; /** - * @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). + * 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). */ capacity: number; } /** - * @interface - * An interface representing RedisAccessKeys. * Redis cache access keys. - * */ export interface RedisAccessKeys { /** - * @member {string} [primaryKey] The current primary key that clients can use - * to authenticate with Redis cache. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current primary key that clients can use to authenticate with Redis cache. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly primaryKey?: string; /** - * @member {string} [secondaryKey] The current secondary key that clients can - * use to authenticate with Redis cache. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current secondary key that clients can use to authenticate with Redis cache. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondaryKey?: string; } /** - * @interface - * An interface representing RedisLinkedServer. * Linked server Id - * */ export interface RedisLinkedServer { /** - * @member {string} [id] Linked server Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Linked server Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; } /** - * @interface - * An interface representing Resource. * The Resource definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing ProxyResource. - * The resource model definition for a ARM proxy resource. It will have - * everything other than required location and tags - * - * @extends Resource + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ export interface ProxyResource extends Resource { } /** - * @interface - * An interface representing TrackedResource. * The resource model definition for a ARM tracked top level resource - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; /** - * @member {string} location The geo-location where the resource lives + * The geo-location where the resource lives */ location: string; } /** - * @interface - * An interface representing RedisCreateParameters. * Parameters supplied to the Create Redis operation. - * */ export interface RedisCreateParameters { /** - * @member {{ [propertyName: string]: string }} [redisConfiguration] All - * Redis Settings. Few possible keys: + * 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. */ redisConfiguration?: { [propertyName: string]: string }; /** - * @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis - * server port (6379) is enabled. + * Specifies whether the non-ssl Redis server port (6379) is enabled. */ enableNonSslPort?: boolean; /** - * @member {{ [propertyName: string]: string }} [tenantSettings] A dictionary - * of tenant settings + * A dictionary of tenant settings */ tenantSettings?: { [propertyName: string]: string }; /** - * @member {number} [shardCount] The number of shards to be created on a - * Premium Cluster Cache. + * The number of shards to be created on a Premium Cluster Cache. */ shardCount?: number; /** - * @member {TlsVersion} [minimumTlsVersion] Optional: requires clients to use - * a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). - * Possible values include: '1.0', '1.1', '1.2' + * Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', + * '1.1', '1.2'). Possible values include: '1.0', '1.1', '1.2' */ minimumTlsVersion?: TlsVersion; /** - * @member {Sku} sku The SKU of the Redis cache to deploy. + * The SKU of the Redis cache to deploy. */ sku: Sku; /** - * @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 + * The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example + * format: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 */ subnetId?: string; /** - * @member {string} [staticIP] Static IP address. Required when deploying a - * Redis cache inside an existing Azure Virtual Network. + * Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual + * Network. */ staticIP?: string; /** - * @member {string[]} [zones] A list of availability zones denoting where the - * resource needs to come from. + * A list of availability zones denoting where the resource needs to come from. */ zones?: string[]; /** - * @member {string} location The geo-location where the resource lives + * The geo-location where the resource lives */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing RedisUpdateParameters. * Parameters supplied to the Update Redis operation. - * */ export interface RedisUpdateParameters { /** - * @member {{ [propertyName: string]: string }} [redisConfiguration] All - * Redis Settings. Few possible keys: + * 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. */ redisConfiguration?: { [propertyName: string]: string }; /** - * @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis - * server port (6379) is enabled. + * Specifies whether the non-ssl Redis server port (6379) is enabled. */ enableNonSslPort?: boolean; /** - * @member {{ [propertyName: string]: string }} [tenantSettings] A dictionary - * of tenant settings + * A dictionary of tenant settings */ tenantSettings?: { [propertyName: string]: string }; /** - * @member {number} [shardCount] The number of shards to be created on a - * Premium Cluster Cache. + * The number of shards to be created on a Premium Cluster Cache. */ shardCount?: number; /** - * @member {TlsVersion} [minimumTlsVersion] Optional: requires clients to use - * a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). - * Possible values include: '1.0', '1.1', '1.2' + * Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', + * '1.1', '1.2'). Possible values include: '1.0', '1.1', '1.2' */ minimumTlsVersion?: TlsVersion; /** - * @member {Sku} [sku] The SKU of the Redis cache to deploy. + * The SKU of the Redis cache to deploy. */ sku?: Sku; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing RedisFirewallRuleProperties. * Specifies a range of IP addresses permitted to connect to the cache - * */ export interface RedisFirewallRuleProperties { /** - * @member {string} startIP lowest IP address included in the range + * lowest IP address included in the range */ startIP: string; /** - * @member {string} endIP highest IP address included in the range + * highest IP address included in the range */ endIP: string; } /** - * @interface - * An interface representing RedisFirewallRule. - * A firewall rule on a redis cache has a name, and describes a contiguous - * range of IP addresses permitted to connect - * - * @extends ProxyResource + * A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses + * permitted to connect */ export interface RedisFirewallRule extends ProxyResource { /** - * @member {string} startIP lowest IP address included in the range + * lowest IP address included in the range */ startIP: string; /** - * @member {string} endIP highest IP address included in the range + * highest IP address included in the range */ endIP: string; } /** - * @interface - * An interface representing RedisFirewallRuleCreateParameters. * Parameters required for creating a firewall rule on redis cache. - * */ export interface RedisFirewallRuleCreateParameters { /** - * @member {string} startIP lowest IP address included in the range + * lowest IP address included in the range */ startIP: string; /** - * @member {string} endIP highest IP address included in the range + * highest IP address included in the range */ endIP: string; } /** - * @interface - * An interface representing RedisResource. * A single Redis item in List or Get Operation. - * - * @extends TrackedResource */ export interface RedisResource extends TrackedResource { /** - * @member {{ [propertyName: string]: string }} [redisConfiguration] All - * Redis Settings. Few possible keys: + * 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. */ redisConfiguration?: { [propertyName: string]: string }; /** - * @member {boolean} [enableNonSslPort] Specifies whether the non-ssl Redis - * server port (6379) is enabled. + * Specifies whether the non-ssl Redis server port (6379) is enabled. */ enableNonSslPort?: boolean; /** - * @member {{ [propertyName: string]: string }} [tenantSettings] A dictionary - * of tenant settings + * A dictionary of tenant settings */ tenantSettings?: { [propertyName: string]: string }; /** - * @member {number} [shardCount] The number of shards to be created on a - * Premium Cluster Cache. + * The number of shards to be created on a Premium Cluster Cache. */ shardCount?: number; /** - * @member {TlsVersion} [minimumTlsVersion] Optional: requires clients to use - * a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). - * Possible values include: '1.0', '1.1', '1.2' + * Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', + * '1.1', '1.2'). Possible values include: '1.0', '1.1', '1.2' */ minimumTlsVersion?: TlsVersion; /** - * @member {Sku} sku The SKU of the Redis cache to deploy. + * The SKU of the Redis cache to deploy. */ sku: Sku; /** - * @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 + * The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example + * format: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 */ subnetId?: string; /** - * @member {string} [staticIP] Static IP address. Required when deploying a - * Redis cache inside an existing Azure Virtual Network. + * Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual + * Network. */ staticIP?: string; /** - * @member {string} [redisVersion] Redis version. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Redis version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly redisVersion?: string; /** - * @member {ProvisioningState} [provisioningState] Redis instance - * provisioning status. Possible values include: 'Creating', 'Deleting', - * 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', - * 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', + * 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', + * 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [hostName] Redis host name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Redis host name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hostName?: string; /** - * @member {number} [port] Redis non-SSL port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Redis non-SSL port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly port?: number; /** - * @member {number} [sslPort] Redis SSL port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Redis SSL port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sslPort?: number; /** - * @member {RedisAccessKeys} [accessKeys] The keys of the Redis cache - not - * set if this object is not the response to Create or Update redis cache - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The keys of the Redis cache - not set if this object is not the response to Create or Update + * redis cache + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessKeys?: RedisAccessKeys; /** - * @member {RedisLinkedServer[]} [linkedServers] List of the linked servers - * associated with the cache - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of the linked servers associated with the cache + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly linkedServers?: RedisLinkedServer[]; /** - * @member {string[]} [zones] A list of availability zones denoting where the - * resource needs to come from. + * A list of availability zones denoting where the resource needs to come from. */ zones?: string[]; } /** - * @interface - * An interface representing RedisRegenerateKeyParameters. * Specifies which Redis access keys to reset. - * */ export interface RedisRegenerateKeyParameters { /** - * @member {RedisKeyType} keyType The Redis access key to regenerate. - * Possible values include: 'Primary', 'Secondary' + * The Redis access key to regenerate. Possible values include: 'Primary', 'Secondary' */ keyType: RedisKeyType; } /** - * @interface - * An interface representing RedisRebootParameters. * Specifies which Redis node(s) to reboot. - * */ export interface RedisRebootParameters { /** - * @member {RebootType} rebootType Which Redis node(s) to reboot. Depending - * on this value data loss is possible. Possible values include: - * 'PrimaryNode', 'SecondaryNode', 'AllNodes' + * Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values + * include: 'PrimaryNode', 'SecondaryNode', 'AllNodes' */ rebootType: RebootType; /** - * @member {number} [shardId] If clustering is enabled, the ID of the shard - * to be rebooted. + * If clustering is enabled, the ID of the shard to be rebooted. */ shardId?: number; } /** - * @interface - * An interface representing ExportRDBParameters. * Parameters for Redis export operation. - * */ export interface ExportRDBParameters { /** - * @member {string} [format] File format. + * File format. */ format?: string; /** - * @member {string} prefix Prefix to use for exported files. + * Prefix to use for exported files. */ prefix: string; /** - * @member {string} container Container name to export to. + * Container name to export to. */ container: string; } /** - * @interface - * An interface representing ImportRDBParameters. * Parameters for Redis import operation. - * */ export interface ImportRDBParameters { /** - * @member {string} [format] File format. + * File format. */ format?: string; /** - * @member {string[]} files files to import. + * files to import. */ files: string[]; } /** - * @interface - * An interface representing ScheduleEntry. * Patch schedule entry for a Premium Redis Cache. - * */ export interface ScheduleEntry { /** - * @member {DayOfWeek} dayOfWeek Day of the week when a cache can be patched. - * Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', - * 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend' + * Day of the week when a cache can be patched. Possible values include: 'Monday', 'Tuesday', + * 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend' */ dayOfWeek: DayOfWeek; /** - * @member {number} startHourUtc Start hour after which cache patching can - * start. + * Start hour after which cache patching can start. */ startHourUtc: number; /** - * @member {string} [maintenanceWindow] ISO8601 timespan specifying how much - * time cache patching can take. + * ISO8601 timespan specifying how much time cache patching can take. */ maintenanceWindow?: string; } /** - * @interface - * An interface representing ScheduleEntries. * List of patch schedules for a Redis cache. - * */ export interface ScheduleEntries { /** - * @member {ScheduleEntry[]} scheduleEntries List of patch schedules for a - * Redis cache. + * List of patch schedules for a Redis cache. */ scheduleEntries: ScheduleEntry[]; } /** - * @interface - * An interface representing RedisPatchSchedule. * Response to put/get patch schedules for Redis cache. - * - * @extends ProxyResource */ export interface RedisPatchSchedule extends ProxyResource { /** - * @member {ScheduleEntry[]} scheduleEntries List of patch schedules for a - * Redis cache. + * List of patch schedules for a Redis cache. */ scheduleEntries: ScheduleEntry[]; } /** - * @interface - * An interface representing RedisForceRebootResponse. * Response to force reboot for Redis cache. - * */ export interface RedisForceRebootResponse { /** - * @member {string} [message] Status message - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Status message + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; } /** - * @interface - * An interface representing RedisLinkedServerCreateProperties. * Create properties for a linked server - * */ export interface RedisLinkedServerCreateProperties { /** - * @member {string} linkedRedisCacheId Fully qualified resourceId of the - * linked redis cache. + * Fully qualified resourceId of the linked redis cache. */ linkedRedisCacheId: string; /** - * @member {string} linkedRedisCacheLocation Location of the linked redis - * cache. + * Location of the linked redis cache. */ linkedRedisCacheLocation: string; /** - * @member {ReplicationRole} serverRole Role of the linked server. Possible - * values include: 'Primary', 'Secondary' + * Role of the linked server. Possible values include: 'Primary', 'Secondary' */ serverRole: ReplicationRole; } /** - * @interface - * An interface representing RedisLinkedServerProperties. * Properties of a linked server to be returned in get/put response - * - * @extends RedisLinkedServerCreateProperties */ export interface RedisLinkedServerProperties extends RedisLinkedServerCreateProperties { /** - * @member {string} [provisioningState] Terminal state of the link between - * primary and secondary redis cache. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Terminal state of the link between primary and secondary redis cache. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing RedisLinkedServerWithProperties. * Response to put/get linked server (with properties) for Redis cache. - * - * @extends ProxyResource */ export interface RedisLinkedServerWithProperties extends ProxyResource { /** - * @member {string} linkedRedisCacheId Fully qualified resourceId of the - * linked redis cache. + * Fully qualified resourceId of the linked redis cache. */ linkedRedisCacheId: string; /** - * @member {string} linkedRedisCacheLocation Location of the linked redis - * cache. + * Location of the linked redis cache. */ linkedRedisCacheLocation: string; /** - * @member {ReplicationRole} serverRole Role of the linked server. Possible - * values include: 'Primary', 'Secondary' + * Role of the linked server. Possible values include: 'Primary', 'Secondary' */ serverRole: ReplicationRole; /** - * @member {string} [provisioningState] Terminal state of the link between - * primary and secondary redis cache. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Terminal state of the link between primary and secondary redis cache. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing RedisLinkedServerCreateParameters. * Parameter required for creating a linked server to redis cache. - * */ export interface RedisLinkedServerCreateParameters { /** - * @member {string} linkedRedisCacheId Fully qualified resourceId of the - * linked redis cache. + * Fully qualified resourceId of the linked redis cache. */ linkedRedisCacheId: string; /** - * @member {string} linkedRedisCacheLocation Location of the linked redis - * cache. + * Location of the linked redis cache. */ linkedRedisCacheLocation: string; /** - * @member {ReplicationRole} serverRole Role of the linked server. Possible - * values include: 'Primary', 'Secondary' + * Role of the linked server. Possible values include: 'Primary', 'Secondary' */ serverRole: ReplicationRole; } /** - * @interface - * An interface representing OperationDisplay. * The object that describes the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Friendly name of the resource provider + * Friendly name of the resource provider */ provider?: string; /** - * @member {string} [operation] Operation type: read, write, delete, - * listKeys/action, etc. + * Operation type: read, write, delete, listKeys/action, etc. */ operation?: string; /** - * @member {string} [resource] Resource type on which the operation is - * performed. + * Resource type on which the operation is performed. */ resource?: string; /** - * @member {string} [description] Friendly name of the operation + * Friendly name of the operation */ description?: string; } /** - * @interface - * An interface representing Operation. * REST API operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that describes the - * operation. + * The object that describes the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing CheckNameAvailabilityParameters. * Parameters body to pass for resource name availability check. - * */ export interface CheckNameAvailabilityParameters { /** - * @member {string} name Resource name. + * Resource name. */ name: string; /** - * @member {string} type Resource type. The only legal value of this property - * for checking redis cache name availability is 'Microsoft.Cache/redis'. + * Resource type. The only legal value of this property for checking redis cache name + * availability is 'Microsoft.Cache/redis'. */ type: string; } /** - * @interface - * An interface representing UpgradeNotification. * Properties of upgrade notification. - * */ export interface UpgradeNotification { /** - * @member {string} [name] Name of upgrade notification. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of upgrade notification. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {Date} [timestamp] Timestamp when upgrade notification occured. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Timestamp when upgrade notification occurred. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timestamp?: Date; /** - * @member {{ [propertyName: string]: string }} [upsellNotification] Details - * about this upgrade notification - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Details about this upgrade notification + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly upsellNotification?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing NotificationListResponse. * The response of listUpgradeNotifications. - * */ export interface NotificationListResponse { /** - * @member {UpgradeNotification[]} [value] List of all notifications. + * List of all notifications. */ value?: UpgradeNotification[]; /** - * @member {string} [nextLink] Link for next set of notifications. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for next set of notifications. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** - * @interface * An interface representing RedisManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface RedisManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * 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. - * + * 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. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the RedisListResult. * The response of list Redis operation. - * * @extends Array */ export interface RedisListResult extends Array { /** - * @member {string} [nextLink] Link for next page of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the RedisFirewallRuleListResult. * The response of list firewall rules Redis operation. - * * @extends Array */ export interface RedisFirewallRuleListResult extends Array { /** - * @member {string} [nextLink] Link for next page of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the RedisPatchScheduleListResult. * The response of list patch schedules Redis operation. - * * @extends Array */ export interface RedisPatchScheduleListResult extends Array { /** - * @member {string} [nextLink] Link for next page of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the RedisLinkedServerWithPropertiesList. - * List of linked servers (with properites) of a Redis cache. - * + * List of linked servers (with properties) of a Redis cache. * @extends Array */ export interface RedisLinkedServerWithPropertiesList extends Array { /** - * @member {string} [nextLink] Link for next set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link for next set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } @@ -925,6 +739,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -944,6 +759,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -963,6 +779,7 @@ export type RedisListUpgradeNotificationsResponse = NotificationListResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -982,6 +799,7 @@ export type RedisCreateResponse = RedisResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1001,6 +819,7 @@ export type RedisUpdateResponse = RedisResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1020,6 +839,7 @@ export type RedisGetResponse = RedisResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1039,6 +859,7 @@ export type RedisListByResourceGroupResponse = RedisListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1058,6 +879,7 @@ export type RedisListResponse = RedisListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1077,6 +899,7 @@ export type RedisListKeysResponse = RedisAccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1096,6 +919,7 @@ export type RedisRegenerateKeyResponse = RedisAccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1115,6 +939,7 @@ export type RedisForceRebootResponse2 = RedisForceRebootResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1134,6 +959,7 @@ export type RedisBeginCreateResponse = RedisResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1153,6 +979,7 @@ export type RedisListByResourceGroupNextResponse = RedisListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1172,6 +999,7 @@ export type RedisListNextResponse = RedisListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1191,6 +1019,7 @@ export type FirewallRulesListByRedisResourceResponse = RedisFirewallRuleListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1210,6 +1039,7 @@ export type FirewallRulesCreateOrUpdateResponse = RedisFirewallRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1229,6 +1059,7 @@ export type FirewallRulesGetResponse = RedisFirewallRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1248,6 +1079,7 @@ export type FirewallRulesListByRedisResourceNextResponse = RedisFirewallRuleList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1267,6 +1099,7 @@ export type PatchSchedulesListByRedisResourceResponse = RedisPatchScheduleListRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1286,6 +1119,7 @@ export type PatchSchedulesCreateOrUpdateResponse = RedisPatchSchedule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1305,6 +1139,7 @@ export type PatchSchedulesGetResponse = RedisPatchSchedule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1324,6 +1159,7 @@ export type PatchSchedulesListByRedisResourceNextResponse = RedisPatchScheduleLi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1343,6 +1179,7 @@ export type LinkedServerCreateResponse = RedisLinkedServerWithProperties & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1362,6 +1199,7 @@ export type LinkedServerGetResponse = RedisLinkedServerWithProperties & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1381,6 +1219,7 @@ export type LinkedServerListResponse = RedisLinkedServerWithPropertiesList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1400,6 +1239,7 @@ export type LinkedServerBeginCreateResponse = RedisLinkedServerWithProperties & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1419,6 +1259,7 @@ export type LinkedServerListNextResponse = RedisLinkedServerWithPropertiesList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-rediscache/lib/models/linkedServerMappers.ts b/packages/@azure/arm-rediscache/lib/models/linkedServerMappers.ts index 4bd5868deb18..33b9d969addd 100644 --- a/packages/@azure/arm-rediscache/lib/models/linkedServerMappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/linkedServerMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RedisLinkedServerCreateParameters, - RedisLinkedServerWithProperties, - ProxyResource, - Resource, BaseResource, CloudError, - RedisLinkedServerWithPropertiesList, - TrackedResource, - RedisFirewallRule, - RedisResource, - Sku, + ProxyResource, RedisAccessKeys, + RedisFirewallRule, RedisLinkedServer, + RedisLinkedServerCreateParameters, + RedisLinkedServerWithProperties, + RedisLinkedServerWithPropertiesList, RedisPatchSchedule, - ScheduleEntry + RedisResource, + Resource, + ScheduleEntry, + Sku, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-rediscache/lib/models/mappers.ts b/packages/@azure/arm-rediscache/lib/models/mappers.ts index d2308f695e44..788facd33ad9 100644 --- a/packages/@azure/arm-rediscache/lib/models/mappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/packages/@azure/arm-rediscache/lib/models/operationsMappers.ts b/packages/@azure/arm-rediscache/lib/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/packages/@azure/arm-rediscache/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/packages/@azure/arm-rediscache/lib/models/patchSchedulesMappers.ts b/packages/@azure/arm-rediscache/lib/models/patchSchedulesMappers.ts index f6b7ba073b86..8674e556397f 100644 --- a/packages/@azure/arm-rediscache/lib/models/patchSchedulesMappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/patchSchedulesMappers.ts @@ -1,27 +1,24 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - RedisPatchScheduleListResult, - RedisPatchSchedule, - ProxyResource, - Resource, BaseResource, - ScheduleEntry, CloudError, - TrackedResource, + ProxyResource, + RedisAccessKeys, RedisFirewallRule, + RedisLinkedServer, + RedisLinkedServerWithProperties, + RedisPatchSchedule, + RedisPatchScheduleListResult, RedisResource, + Resource, + ScheduleEntry, Sku, - RedisAccessKeys, - RedisLinkedServer, - RedisLinkedServerWithProperties + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-rediscache/lib/models/redisMappers.ts b/packages/@azure/arm-rediscache/lib/models/redisMappers.ts index f780133713ea..0ae784ef7db5 100644 --- a/packages/@azure/arm-rediscache/lib/models/redisMappers.ts +++ b/packages/@azure/arm-rediscache/lib/models/redisMappers.ts @@ -1,37 +1,34 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + BaseResource, CheckNameAvailabilityParameters, CloudError, + ExportRDBParameters, + ImportRDBParameters, NotificationListResponse, - UpgradeNotification, - RedisCreateParameters, - Sku, - RedisResource, - TrackedResource, - Resource, - BaseResource, + ProxyResource, RedisAccessKeys, + RedisCreateParameters, + RedisFirewallRule, + RedisForceRebootResponse, RedisLinkedServer, - RedisUpdateParameters, + RedisLinkedServerWithProperties, RedisListResult, - RedisRegenerateKeyParameters, - RedisRebootParameters, - RedisForceRebootResponse, - ImportRDBParameters, - ExportRDBParameters, - ProxyResource, - RedisFirewallRule, RedisPatchSchedule, + RedisRebootParameters, + RedisRegenerateKeyParameters, + RedisResource, + RedisUpdateParameters, + Resource, ScheduleEntry, - RedisLinkedServerWithProperties + Sku, + TrackedResource, + UpgradeNotification } from "../models/mappers"; - diff --git a/packages/@azure/arm-rediscache/lib/redisManagementClientContext.ts b/packages/@azure/arm-rediscache/lib/redisManagementClientContext.ts index df35b1eb35ec..a0000b0d44cb 100644 --- a/packages/@azure/arm-rediscache/lib/redisManagementClientContext.ts +++ b/packages/@azure/arm-rediscache/lib/redisManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-rediscache"; -const packageVersion = "0.1.0"; +const packageVersion = "3.0.0"; export class RedisManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-rediscache/package.json b/packages/@azure/arm-rediscache/package.json index bf5665e27c92..3884ce7d767b 100644 --- a/packages/@azure/arm-rediscache/package.json +++ b/packages/@azure/arm-rediscache/package.json @@ -2,10 +2,10 @@ "name": "@azure/arm-rediscache", "author": "Microsoft Corporation", "description": "RedisManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.1.0", + "version": "3.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.1", + "@azure/ms-rest-js": "^1.2.6", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-rediscache", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/packages/@azure/arm-rediscache/rollup.config.js b/packages/@azure/arm-rediscache/rollup.config.js index a794e256477c..c1601cdebdd9 100644 --- a/packages/@azure/arm-rediscache/rollup.config.js +++ b/packages/@azure/arm-rediscache/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/redisManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/redisManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-rediscache.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;