@azure/arm-rediscache 30.0.0-alpha.20210928.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +21 -0
- package/README.md +94 -0
- package/dist/index.js +4051 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1016 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +77 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +49 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1580 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +27 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +198 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +63 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +238 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +8 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +15 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/linkedServer.d.ts +73 -0
- package/dist-esm/src/operations/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedServer.js +288 -0
- package/dist-esm/src/operations/linkedServer.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/patchSchedules.d.ts +63 -0
- package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/patchSchedules.js +238 -0
- package/dist-esm/src/operations/patchSchedules.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +69 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +260 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +99 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/redis.d.ts +192 -0
- package/dist-esm/src/operations/redis.d.ts.map +1 -0
- package/dist-esm/src/operations/redis.js +840 -0
- package/dist-esm/src/operations/redis.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts +136 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.js +9 -0
- package/dist-esm/src/operationsInterfaces/redis.js.map +1 -0
- package/dist-esm/src/redisManagementClient.d.ts +22 -0
- package/dist-esm/src/redisManagementClient.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClient.js +29 -0
- package/dist-esm/src/redisManagementClient.js.map +1 -0
- package/dist-esm/src/redisManagementClientContext.d.ts +17 -0
- package/dist-esm/src/redisManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClientContext.js +50 -0
- package/dist-esm/src/redisManagementClientContext.js.map +1 -0
- package/dist-esm/test/redis_examples.d.ts +2 -0
- package/dist-esm/test/redis_examples.d.ts.map +1 -0
- package/dist-esm/test/redis_examples.js +209 -0
- package/dist-esm/test/redis_examples.js.map +1 -0
- package/package.json +103 -0
- package/review/arm-rediscache.api.md +879 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1154 -0
- package/src/models/mappers.ts +1709 -0
- package/src/models/parameters.ts +240 -0
- package/src/operations/firewallRules.ts +314 -0
- package/src/operations/index.ts +15 -0
- package/src/operations/linkedServer.ts +397 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/patchSchedules.ts +327 -0
- package/src/operations/privateEndpointConnections.ts +353 -0
- package/src/operations/privateLinkResources.ts +135 -0
- package/src/operations/redis.ts +1152 -0
- package/src/operationsInterfaces/firewallRules.ts +75 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/linkedServer.ts +97 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/patchSchedules.ts +76 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +100 -0
- package/src/operationsInterfaces/privateLinkResources.ts +29 -0
- package/src/operationsInterfaces/redis.ts +250 -0
- package/src/redisManagementClient.ts +61 -0
- package/src/redisManagementClientContext.ts +71 -0
- package/tsconfig.json +19 -0
- package/types/arm-rediscache.d.ts +1509 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { OperationsImpl, RedisImpl, FirewallRulesImpl, PatchSchedulesImpl, LinkedServerImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations";
|
|
9
|
+
import { RedisManagementClientContext } from "./redisManagementClientContext";
|
|
10
|
+
export class RedisManagementClient extends RedisManagementClientContext {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes a new instance of the RedisManagementClient class.
|
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
|
|
15
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
16
|
+
* @param options The parameter options
|
|
17
|
+
*/
|
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
super(credentials, subscriptionId, options);
|
|
20
|
+
this.operations = new OperationsImpl(this);
|
|
21
|
+
this.redis = new RedisImpl(this);
|
|
22
|
+
this.firewallRules = new FirewallRulesImpl(this);
|
|
23
|
+
this.patchSchedules = new PatchSchedulesImpl(this);
|
|
24
|
+
this.linkedServer = new LinkedServerImpl(this);
|
|
25
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
26
|
+
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=redisManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redisManagementClient.js","sourceRoot":"","sources":["../../src/redisManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAG9E,MAAM,OAAO,qBAAsB,SAAQ,4BAA4B;IACrE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,KAAK,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;CASF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { RedisManagementClientOptionalParams } from "./models";
|
|
4
|
+
export declare class RedisManagementClientContext extends coreClient.ServiceClient {
|
|
5
|
+
$host: string;
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a new instance of the RedisManagementClientContext class.
|
|
10
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
11
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
|
|
12
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: RedisManagementClientOptionalParams);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=redisManagementClientContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redisManagementClientContext.d.ts","sourceRoot":"","sources":["../../src/redisManagementClientContext.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC;CA2ChD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
export class RedisManagementClientContext extends coreClient.ServiceClient {
|
|
10
|
+
/**
|
|
11
|
+
* Initializes a new instance of the RedisManagementClientContext class.
|
|
12
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
13
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
|
|
14
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
15
|
+
* @param options The parameter options
|
|
16
|
+
*/
|
|
17
|
+
constructor(credentials, subscriptionId, options) {
|
|
18
|
+
if (credentials === undefined) {
|
|
19
|
+
throw new Error("'credentials' cannot be null");
|
|
20
|
+
}
|
|
21
|
+
if (subscriptionId === undefined) {
|
|
22
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
23
|
+
}
|
|
24
|
+
// Initializing default values for options
|
|
25
|
+
if (!options) {
|
|
26
|
+
options = {};
|
|
27
|
+
}
|
|
28
|
+
const defaults = {
|
|
29
|
+
requestContentType: "application/json; charset=utf-8",
|
|
30
|
+
credential: credentials
|
|
31
|
+
};
|
|
32
|
+
const packageDetails = `azsdk-js-arm-rediscache/30.0.0-beta.1`;
|
|
33
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
|
+
: `${packageDetails}`;
|
|
36
|
+
if (!options.credentialScopes) {
|
|
37
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
38
|
+
}
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix
|
|
41
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
// Parameter assignments
|
|
44
|
+
this.subscriptionId = subscriptionId;
|
|
45
|
+
// Assigning values to Constant parameters
|
|
46
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
47
|
+
this.apiVersion = options.apiVersion || "2020-12-01";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=redisManagementClientContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redisManagementClientContext.js","sourceRoot":"","sources":["../../src/redisManagementClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IAKxE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,uCAAuC,CAAC;QAC/D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis_examples.d.ts","sourceRoot":"","sources":["../../test/redis_examples.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, record } from "@azure-tools/test-recorder";
|
|
10
|
+
import * as assert from "assert";
|
|
11
|
+
import { ClientSecretCredential } from "@azure/identity";
|
|
12
|
+
import { RedisManagementClient } from "../src/redisManagementClient";
|
|
13
|
+
import { NetworkManagementClient } from "@azure/arm-network";
|
|
14
|
+
const recorderEnvSetup = {
|
|
15
|
+
replaceableVariables: {
|
|
16
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
17
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
18
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
19
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
20
|
+
},
|
|
21
|
+
customizationsOnRecordings: [
|
|
22
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
23
|
+
],
|
|
24
|
+
queryParametersToSkip: []
|
|
25
|
+
};
|
|
26
|
+
describe("Redis test", () => {
|
|
27
|
+
let recorder;
|
|
28
|
+
let subscriptionId;
|
|
29
|
+
let client;
|
|
30
|
+
let network_client;
|
|
31
|
+
let location;
|
|
32
|
+
let resourceGroupName;
|
|
33
|
+
let networkName;
|
|
34
|
+
let subnetName;
|
|
35
|
+
let name;
|
|
36
|
+
beforeEach(function () {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
recorder = record(this, recorderEnvSetup);
|
|
39
|
+
subscriptionId = env.SUBSCRIPTION_ID;
|
|
40
|
+
// This is an example of how the environment variables are used
|
|
41
|
+
const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
|
|
42
|
+
client = new RedisManagementClient(credential, subscriptionId);
|
|
43
|
+
network_client = new NetworkManagementClient(credential, subscriptionId);
|
|
44
|
+
location = "eastus";
|
|
45
|
+
resourceGroupName = "myjstest";
|
|
46
|
+
networkName = "networknamex";
|
|
47
|
+
subnetName = "subnetworknamex";
|
|
48
|
+
name = "myrediscachexxx111";
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
afterEach(function () {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
yield recorder.stop();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
function sleep(ms) {
|
|
57
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
58
|
+
}
|
|
59
|
+
function createVirtualNetwork(groupName, location, networkName, subnetName) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const parameter = {
|
|
62
|
+
location: location,
|
|
63
|
+
addressSpace: {
|
|
64
|
+
addressPrefixes: ["10.0.0.0/16"],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
//network create
|
|
68
|
+
const network_create = yield network_client.virtualNetworks.beginCreateOrUpdateAndWait(groupName, networkName, parameter);
|
|
69
|
+
//subnet create
|
|
70
|
+
const subnet_info = yield network_client.subnets.beginCreateOrUpdateAndWait(groupName, networkName, subnetName, { addressPrefix: "10.0.0.0/24" });
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
it("Redis create test", function () {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
//create network resource
|
|
76
|
+
yield createVirtualNetwork(resourceGroupName, location, networkName, subnetName);
|
|
77
|
+
const res = yield client.redis.beginCreateAndWait(resourceGroupName, name, {
|
|
78
|
+
location: location,
|
|
79
|
+
zones: [
|
|
80
|
+
"1"
|
|
81
|
+
],
|
|
82
|
+
sku: {
|
|
83
|
+
name: "Premium",
|
|
84
|
+
family: "P",
|
|
85
|
+
capacity: 1
|
|
86
|
+
},
|
|
87
|
+
enableNonSslPort: true,
|
|
88
|
+
shardCount: 2,
|
|
89
|
+
redisConfiguration: {
|
|
90
|
+
maxmemoryPolicy: "allkeys-lru"
|
|
91
|
+
},
|
|
92
|
+
subnetId: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.Network/virtualNetworks/" + networkName + "/subnets/" + subnetName,
|
|
93
|
+
staticIP: "10.0.0.5",
|
|
94
|
+
minimumTlsVersion: "1.2"
|
|
95
|
+
});
|
|
96
|
+
assert.equal(res.name, name);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
it("redis get test", function () {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const res = yield client.redis.get(resourceGroupName, name);
|
|
102
|
+
assert.equal(res.name, name);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
it("patchSchedules create for redis test", function () {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const res = yield client.patchSchedules.createOrUpdate(resourceGroupName, name, {
|
|
108
|
+
scheduleEntries: [
|
|
109
|
+
{
|
|
110
|
+
dayOfWeek: "Monday",
|
|
111
|
+
startHourUtc: 12,
|
|
112
|
+
maintenanceWindow: "PT5H"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
dayOfWeek: "Tuesday",
|
|
116
|
+
startHourUtc: 12
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}, "default");
|
|
120
|
+
assert.equal(res.type, "Microsoft.Cache/Redis/PatchSchedules");
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
it("patchSchedules listByRedisResource for redis test", function () {
|
|
124
|
+
var e_1, _a;
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const resArray = new Array();
|
|
127
|
+
try {
|
|
128
|
+
for (var _b = __asyncValues(client.patchSchedules.listByRedisResource(resourceGroupName, name)), _c; _c = yield _b.next(), !_c.done;) {
|
|
129
|
+
let item = _c.value;
|
|
130
|
+
resArray.push(item);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
134
|
+
finally {
|
|
135
|
+
try {
|
|
136
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
137
|
+
}
|
|
138
|
+
finally { if (e_1) throw e_1.error; }
|
|
139
|
+
}
|
|
140
|
+
assert.equal(resArray.length, 1);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
it("redis listByResourceGroup test", function () {
|
|
144
|
+
var e_2, _a;
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const resArray = new Array();
|
|
147
|
+
try {
|
|
148
|
+
for (var _b = __asyncValues(client.redis.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
149
|
+
let item = _c.value;
|
|
150
|
+
resArray.push(item);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
154
|
+
finally {
|
|
155
|
+
try {
|
|
156
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
157
|
+
}
|
|
158
|
+
finally { if (e_2) throw e_2.error; }
|
|
159
|
+
}
|
|
160
|
+
assert.equal(resArray.length, 1);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
it("redis update test", function () {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
let count = 0;
|
|
166
|
+
while (count < 20) {
|
|
167
|
+
count++;
|
|
168
|
+
const res = yield client.redis.get(resourceGroupName, name);
|
|
169
|
+
if (res.provisioningState == "Succeeded") {
|
|
170
|
+
const res = yield client.redis.update(resourceGroupName, name, { enableNonSslPort: true });
|
|
171
|
+
assert.equal(res.enableNonSslPort, true);
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
// The resource is activating
|
|
176
|
+
yield sleep(300000);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}).timeout(3600000);
|
|
181
|
+
it("patchSchedules delete for redis test", function () {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const res = yield client.patchSchedules.delete(resourceGroupName, name, "default");
|
|
184
|
+
// It's can not run patchSchedules.listByRedisResource after patchSchedules.delete operation
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
it("redis delete test", function () {
|
|
188
|
+
var e_3, _a;
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
const res = yield client.redis.beginDeleteAndWait(resourceGroupName, name);
|
|
191
|
+
const resArray = new Array();
|
|
192
|
+
try {
|
|
193
|
+
for (var _b = __asyncValues(client.redis.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
194
|
+
let item = _c.value;
|
|
195
|
+
resArray.push(item);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
199
|
+
finally {
|
|
200
|
+
try {
|
|
201
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
202
|
+
}
|
|
203
|
+
finally { if (e_3) throw e_3.error; }
|
|
204
|
+
}
|
|
205
|
+
assert.equal(resArray.length, 0);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
//# sourceMappingURL=redis_examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis_examples.js","sourceRoot":"","sources":["../../test/redis_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAGP,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAkB,MAAM,oBAAoB,CAAC;AAE7E,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE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AG,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;YAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAA,IAAA;oBAA/D,IAAI,IAAI,WAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/arm-rediscache",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
4
|
+
"author": "Microsoft Corporation",
|
|
5
|
+
"description": "A generated SDK for RedisManagementClient.",
|
|
6
|
+
"version": "30.0.0-alpha.20210928.1",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@azure/abort-controller": "^1.0.0",
|
|
12
|
+
"@azure/arm-network": "^30.0.0-beta.3",
|
|
13
|
+
"@azure/core-auth": "^1.3.0",
|
|
14
|
+
"@azure/core-client": "^1.0.0",
|
|
15
|
+
"@azure/core-lro": "^2.2.0",
|
|
16
|
+
"@azure/core-paging": "^1.1.1",
|
|
17
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
18
|
+
"tslib": "^2.2.0"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"node",
|
|
22
|
+
"azure",
|
|
23
|
+
"typescript",
|
|
24
|
+
"browser",
|
|
25
|
+
"isomorphic"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"module": "./dist-esm/src/index.js",
|
|
30
|
+
"types": "./types/arm-rediscache.d.ts",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@microsoft/api-extractor": "7.7.11",
|
|
33
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
34
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
35
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
36
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
37
|
+
"mkdirp": "^1.0.4",
|
|
38
|
+
"rollup": "^1.16.3",
|
|
39
|
+
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
40
|
+
"typescript": "~4.2.0",
|
|
41
|
+
"uglify-js": "^3.4.9",
|
|
42
|
+
"@azure/identity": "2.0.0-beta.6",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redis/arm-rediscache",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist/**/*.js",
|
|
57
|
+
"dist/**/*.js.map",
|
|
58
|
+
"dist/**/*.d.ts",
|
|
59
|
+
"dist/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
64
|
+
"src/**/*.ts",
|
|
65
|
+
"README.md",
|
|
66
|
+
"LICENSE",
|
|
67
|
+
"rollup.config.js",
|
|
68
|
+
"tsconfig.json",
|
|
69
|
+
"review/*",
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
75
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
76
|
+
"prepack": "npm run build",
|
|
77
|
+
"pack": "npm pack 2>&1",
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
79
|
+
"lint": "echo skipped",
|
|
80
|
+
"audit": "echo skipped",
|
|
81
|
+
"clean": "echo skipped",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"prebuild": "echo skipped",
|
|
91
|
+
"test:node": "echo skipped",
|
|
92
|
+
"test:browser": "echo skipped",
|
|
93
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
94
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
95
|
+
"unit-test:browser": "echo skipped",
|
|
96
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
97
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
|
|
98
|
+
"integration-test:browser": "echo skipped",
|
|
99
|
+
"docs": "echo skipped"
|
|
100
|
+
},
|
|
101
|
+
"sideEffects": false,
|
|
102
|
+
"autoPublish": true
|
|
103
|
+
}
|