@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,135 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { RedisManagementClientContext } from "../redisManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
PrivateLinkResource,
|
|
17
|
+
PrivateLinkResourcesListByRedisCacheOptionalParams,
|
|
18
|
+
PrivateLinkResourcesListByRedisCacheResponse
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing PrivateLinkResources operations. */
|
|
23
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
24
|
+
private readonly client: RedisManagementClientContext;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
28
|
+
* @param client Reference to the service client
|
|
29
|
+
*/
|
|
30
|
+
constructor(client: RedisManagementClientContext) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the private link resources that need to be created for a redis cache.
|
|
36
|
+
* @param resourceGroupName The name of the resource group.
|
|
37
|
+
* @param cacheName The name of the Redis cache.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public listByRedisCache(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
cacheName: string,
|
|
43
|
+
options?: PrivateLinkResourcesListByRedisCacheOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
45
|
+
const iter = this.listByRedisCachePagingAll(
|
|
46
|
+
resourceGroupName,
|
|
47
|
+
cacheName,
|
|
48
|
+
options
|
|
49
|
+
);
|
|
50
|
+
return {
|
|
51
|
+
next() {
|
|
52
|
+
return iter.next();
|
|
53
|
+
},
|
|
54
|
+
[Symbol.asyncIterator]() {
|
|
55
|
+
return this;
|
|
56
|
+
},
|
|
57
|
+
byPage: () => {
|
|
58
|
+
return this.listByRedisCachePagingPage(
|
|
59
|
+
resourceGroupName,
|
|
60
|
+
cacheName,
|
|
61
|
+
options
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async *listByRedisCachePagingPage(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
cacheName: string,
|
|
70
|
+
options?: PrivateLinkResourcesListByRedisCacheOptionalParams
|
|
71
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
72
|
+
let result = await this._listByRedisCache(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
cacheName,
|
|
75
|
+
options
|
|
76
|
+
);
|
|
77
|
+
yield result.value || [];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
private async *listByRedisCachePagingAll(
|
|
81
|
+
resourceGroupName: string,
|
|
82
|
+
cacheName: string,
|
|
83
|
+
options?: PrivateLinkResourcesListByRedisCacheOptionalParams
|
|
84
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
|
85
|
+
for await (const page of this.listByRedisCachePagingPage(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
cacheName,
|
|
88
|
+
options
|
|
89
|
+
)) {
|
|
90
|
+
yield* page;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Gets the private link resources that need to be created for a redis cache.
|
|
96
|
+
* @param resourceGroupName The name of the resource group.
|
|
97
|
+
* @param cacheName The name of the Redis cache.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
private _listByRedisCache(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
cacheName: string,
|
|
103
|
+
options?: PrivateLinkResourcesListByRedisCacheOptionalParams
|
|
104
|
+
): Promise<PrivateLinkResourcesListByRedisCacheResponse> {
|
|
105
|
+
return this.client.sendOperationRequest(
|
|
106
|
+
{ resourceGroupName, cacheName, options },
|
|
107
|
+
listByRedisCacheOperationSpec
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// Operation Specifications
|
|
112
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
113
|
+
|
|
114
|
+
const listByRedisCacheOperationSpec: coreClient.OperationSpec = {
|
|
115
|
+
path:
|
|
116
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateLinkResources",
|
|
117
|
+
httpMethod: "GET",
|
|
118
|
+
responses: {
|
|
119
|
+
200: {
|
|
120
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
121
|
+
},
|
|
122
|
+
default: {
|
|
123
|
+
bodyMapper: Mappers.ErrorResponse
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
queryParameters: [Parameters.apiVersion],
|
|
127
|
+
urlParameters: [
|
|
128
|
+
Parameters.$host,
|
|
129
|
+
Parameters.subscriptionId,
|
|
130
|
+
Parameters.resourceGroupName,
|
|
131
|
+
Parameters.cacheName
|
|
132
|
+
],
|
|
133
|
+
headerParameters: [Parameters.accept],
|
|
134
|
+
serializer
|
|
135
|
+
};
|