@azure/arm-elasticsan 1.0.0-alpha.20230719.1 → 1.0.0-alpha.20230725.2
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 +62 -8
- package/dist/index.js +1035 -284
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.js +16 -15
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +8 -8
- package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansGetSample.js +8 -8
- package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +6 -6
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +4 -4
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +11 -11
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +74 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +5 -5
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +15 -13
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +10 -10
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +10 -10
- package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +8 -8
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +15 -13
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +15 -16
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +12 -12
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +12 -12
- package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +10 -10
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +13 -16
- package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
- package/dist-esm/src/elasticSanManagement.d.ts +3 -1
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +4 -2
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +305 -98
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +28 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +20 -6
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +400 -112
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticSans.d.ts +4 -4
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operations/elasticSans.js +37 -25
- package/dist-esm/src/operations/elasticSans.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +2 -2
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/skus.js +1 -1
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +47 -35
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts +4 -4
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +55 -43
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -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 +12 -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/volumeGroups.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
- package/package.json +4 -4
- package/review/arm-elasticsan.api.md +226 -60
- package/src/elasticSanManagement.ts +11 -3
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +334 -93
- package/src/models/mappers.ts +429 -114
- package/src/models/parameters.ts +19 -3
- package/src/operations/elasticSans.ts +52 -42
- package/src/operations/index.ts +2 -0
- package/src/operations/operations.ts +6 -6
- package/src/operations/privateEndpointConnections.ts +450 -0
- package/src/operations/privateLinkResources.ts +72 -0
- package/src/operations/skus.ts +1 -1
- package/src/operations/volumeGroups.ts +50 -40
- package/src/operations/volumes.ts +54 -38
- package/src/operationsInterfaces/elasticSans.ts +6 -6
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +27 -0
- package/src/operationsInterfaces/volumeGroups.ts +6 -6
- package/src/operationsInterfaces/volumes.ts +10 -4
- package/types/arm-elasticsan.d.ts +400 -98
- package/types/tsdoc-metadata.json +1 -1
|
@@ -0,0 +1,334 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
|
+
import { createLroSpec } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
16
|
+
export class PrivateEndpointConnectionsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List all Private Endpoint Connections associated with the Elastic San.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, elasticSanName, options) {
|
|
31
|
+
const iter = this.listPagingAll(resourceGroupName, elasticSanName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listPagingPage(resourceGroupName, elasticSanName, options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
listPagingPage(resourceGroupName, elasticSanName, options, _settings) {
|
|
48
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
49
|
+
let result;
|
|
50
|
+
result = yield __await(this._list(resourceGroupName, elasticSanName, options));
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listPagingAll(resourceGroupName, elasticSanName, options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
56
|
+
var _a, e_1, _b, _c;
|
|
57
|
+
try {
|
|
58
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, elasticSanName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
59
|
+
_c = _f.value;
|
|
60
|
+
_d = false;
|
|
61
|
+
try {
|
|
62
|
+
const page = _c;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
finally {
|
|
66
|
+
_d = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
+
finally {
|
|
72
|
+
try {
|
|
73
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
74
|
+
}
|
|
75
|
+
finally { if (e_1) throw e_1.error; }
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
81
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
82
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
83
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
84
|
+
* @param parameters Private Endpoint Connection Approval object.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return this.client.sendOperationRequest(args, spec);
|
|
91
|
+
});
|
|
92
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
var _a;
|
|
94
|
+
let currentRawResponse = undefined;
|
|
95
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
96
|
+
const callback = (rawResponse, flatResponse) => {
|
|
97
|
+
currentRawResponse = rawResponse;
|
|
98
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
99
|
+
};
|
|
100
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
101
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
102
|
+
return {
|
|
103
|
+
flatResponse,
|
|
104
|
+
rawResponse: {
|
|
105
|
+
statusCode: currentRawResponse.status,
|
|
106
|
+
body: currentRawResponse.parsedBody,
|
|
107
|
+
headers: currentRawResponse.headers.toJSON()
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
const lro = createLroSpec({
|
|
112
|
+
sendOperationFn,
|
|
113
|
+
args: {
|
|
114
|
+
resourceGroupName,
|
|
115
|
+
elasticSanName,
|
|
116
|
+
privateEndpointConnectionName,
|
|
117
|
+
parameters,
|
|
118
|
+
options
|
|
119
|
+
},
|
|
120
|
+
spec: createOperationSpec
|
|
121
|
+
});
|
|
122
|
+
const poller = yield createHttpPoller(lro, {
|
|
123
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
124
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
125
|
+
resourceLocationConfig: "location"
|
|
126
|
+
});
|
|
127
|
+
yield poller.poll();
|
|
128
|
+
return poller;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
133
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
134
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
135
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
136
|
+
* @param parameters Private Endpoint Connection Approval object.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options);
|
|
142
|
+
return poller.pollUntilDone();
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Gets the specified private endpoint connection associated with the Elastic San
|
|
147
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
148
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
149
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
get(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
153
|
+
return this.client.sendOperationRequest({
|
|
154
|
+
resourceGroupName,
|
|
155
|
+
elasticSanName,
|
|
156
|
+
privateEndpointConnectionName,
|
|
157
|
+
options
|
|
158
|
+
}, getOperationSpec);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
164
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
return this.client.sendOperationRequest(args, spec);
|
|
171
|
+
});
|
|
172
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
var _a;
|
|
174
|
+
let currentRawResponse = undefined;
|
|
175
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
176
|
+
const callback = (rawResponse, flatResponse) => {
|
|
177
|
+
currentRawResponse = rawResponse;
|
|
178
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
179
|
+
};
|
|
180
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
181
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
182
|
+
return {
|
|
183
|
+
flatResponse,
|
|
184
|
+
rawResponse: {
|
|
185
|
+
statusCode: currentRawResponse.status,
|
|
186
|
+
body: currentRawResponse.parsedBody,
|
|
187
|
+
headers: currentRawResponse.headers.toJSON()
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
const lro = createLroSpec({
|
|
192
|
+
sendOperationFn,
|
|
193
|
+
args: {
|
|
194
|
+
resourceGroupName,
|
|
195
|
+
elasticSanName,
|
|
196
|
+
privateEndpointConnectionName,
|
|
197
|
+
options
|
|
198
|
+
},
|
|
199
|
+
spec: deleteOperationSpec
|
|
200
|
+
});
|
|
201
|
+
const poller = yield createHttpPoller(lro, {
|
|
202
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
203
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
204
|
+
resourceLocationConfig: "location"
|
|
205
|
+
});
|
|
206
|
+
yield poller.poll();
|
|
207
|
+
return poller;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
212
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
213
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
214
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
215
|
+
* @param options The options parameters.
|
|
216
|
+
*/
|
|
217
|
+
beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options);
|
|
220
|
+
return poller.pollUntilDone();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* List all Private Endpoint Connections associated with the Elastic San.
|
|
225
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
226
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
227
|
+
* @param options The options parameters.
|
|
228
|
+
*/
|
|
229
|
+
_list(resourceGroupName, elasticSanName, options) {
|
|
230
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listOperationSpec);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// Operation Specifications
|
|
234
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
235
|
+
const createOperationSpec = {
|
|
236
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
237
|
+
httpMethod: "PUT",
|
|
238
|
+
responses: {
|
|
239
|
+
200: {
|
|
240
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
241
|
+
},
|
|
242
|
+
201: {
|
|
243
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
244
|
+
},
|
|
245
|
+
202: {
|
|
246
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
247
|
+
},
|
|
248
|
+
204: {
|
|
249
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
250
|
+
},
|
|
251
|
+
default: {
|
|
252
|
+
bodyMapper: Mappers.ErrorResponse
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
requestBody: Parameters.parameters6,
|
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
|
257
|
+
urlParameters: [
|
|
258
|
+
Parameters.$host,
|
|
259
|
+
Parameters.subscriptionId,
|
|
260
|
+
Parameters.resourceGroupName,
|
|
261
|
+
Parameters.elasticSanName,
|
|
262
|
+
Parameters.privateEndpointConnectionName
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
265
|
+
mediaType: "json",
|
|
266
|
+
serializer
|
|
267
|
+
};
|
|
268
|
+
const getOperationSpec = {
|
|
269
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
270
|
+
httpMethod: "GET",
|
|
271
|
+
responses: {
|
|
272
|
+
200: {
|
|
273
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
274
|
+
},
|
|
275
|
+
default: {
|
|
276
|
+
bodyMapper: Mappers.ErrorResponse
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
queryParameters: [Parameters.apiVersion],
|
|
280
|
+
urlParameters: [
|
|
281
|
+
Parameters.$host,
|
|
282
|
+
Parameters.subscriptionId,
|
|
283
|
+
Parameters.resourceGroupName,
|
|
284
|
+
Parameters.elasticSanName,
|
|
285
|
+
Parameters.privateEndpointConnectionName
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
288
|
+
serializer
|
|
289
|
+
};
|
|
290
|
+
const deleteOperationSpec = {
|
|
291
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
292
|
+
httpMethod: "DELETE",
|
|
293
|
+
responses: {
|
|
294
|
+
200: {},
|
|
295
|
+
201: {},
|
|
296
|
+
202: {},
|
|
297
|
+
204: {},
|
|
298
|
+
default: {
|
|
299
|
+
bodyMapper: Mappers.ErrorResponse
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
queryParameters: [Parameters.apiVersion],
|
|
303
|
+
urlParameters: [
|
|
304
|
+
Parameters.$host,
|
|
305
|
+
Parameters.subscriptionId,
|
|
306
|
+
Parameters.resourceGroupName,
|
|
307
|
+
Parameters.elasticSanName,
|
|
308
|
+
Parameters.privateEndpointConnectionName
|
|
309
|
+
],
|
|
310
|
+
headerParameters: [Parameters.accept],
|
|
311
|
+
serializer
|
|
312
|
+
};
|
|
313
|
+
const listOperationSpec = {
|
|
314
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
|
|
315
|
+
httpMethod: "GET",
|
|
316
|
+
responses: {
|
|
317
|
+
200: {
|
|
318
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
319
|
+
},
|
|
320
|
+
default: {
|
|
321
|
+
bodyMapper: Mappers.ErrorResponse
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
queryParameters: [Parameters.apiVersion],
|
|
325
|
+
urlParameters: [
|
|
326
|
+
Parameters.$host,
|
|
327
|
+
Parameters.subscriptionId,
|
|
328
|
+
Parameters.resourceGroupName,
|
|
329
|
+
Parameters.elasticSanName
|
|
330
|
+
],
|
|
331
|
+
headerParameters: [Parameters.accept],
|
|
332
|
+
serializer
|
|
333
|
+
};
|
|
334
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,O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gB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,2JAA2J;IAC7J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
2
|
+
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
3
|
+
import { PrivateLinkResourcesListByElasticSanOptionalParams, PrivateLinkResourcesListByElasticSanResponse } from "../models";
|
|
4
|
+
/** Class containing PrivateLinkResources operations. */
|
|
5
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: ElasticSanManagement);
|
|
12
|
+
/**
|
|
13
|
+
* Gets the private link resources that need to be created for a elastic San.
|
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByElasticSan(resourceGroupName: string, elasticSanName: string, options?: PrivateLinkResourcesListByElasticSanOptionalParams): Promise<PrivateLinkResourcesListByElasticSanResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;OAKG;IACH,gBAAgB,CACd,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC;CAMzD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import * as Mappers from "../models/mappers";
|
|
10
|
+
import * as Parameters from "../models/parameters";
|
|
11
|
+
/** Class containing PrivateLinkResources operations. */
|
|
12
|
+
export class PrivateLinkResourcesImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Gets the private link resources that need to be created for a elastic San.
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
27
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listByElasticSanOperationSpec);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
// Operation Specifications
|
|
31
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
32
|
+
const listByElasticSanOperationSpec = {
|
|
33
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
|
|
34
|
+
httpMethod: "GET",
|
|
35
|
+
responses: {
|
|
36
|
+
200: {
|
|
37
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
38
|
+
},
|
|
39
|
+
default: {
|
|
40
|
+
bodyMapper: Mappers.ErrorResponse
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
queryParameters: [Parameters.apiVersion],
|
|
44
|
+
urlParameters: [
|
|
45
|
+
Parameters.$host,
|
|
46
|
+
Parameters.subscriptionId,
|
|
47
|
+
Parameters.resourceGroupName,
|
|
48
|
+
Parameters.elasticSanName
|
|
49
|
+
],
|
|
50
|
+
headerParameters: [Parameters.accept],
|
|
51
|
+
serializer
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=privateLinkResources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBA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1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
2
|
import { VolumeGroups } from "../operationsInterfaces";
|
|
3
3
|
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
4
|
-
import {
|
|
4
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
5
|
import { VolumeGroup, VolumeGroupsListByElasticSanOptionalParams, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, VolumeGroupUpdate, VolumeGroupsUpdateOptionalParams, VolumeGroupsUpdateResponse, VolumeGroupsDeleteOptionalParams, VolumeGroupsGetOptionalParams, VolumeGroupsGetResponse } from "../models";
|
|
6
6
|
/** Class containing VolumeGroups operations. */
|
|
7
7
|
export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
@@ -35,7 +35,7 @@ export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
|
35
35
|
* @param parameters Volume Group object.
|
|
36
36
|
* @param options The options parameters.
|
|
37
37
|
*/
|
|
38
|
-
beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<
|
|
38
|
+
beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<SimplePollerLike<OperationState<VolumeGroupsCreateResponse>, VolumeGroupsCreateResponse>>;
|
|
39
39
|
/**
|
|
40
40
|
* Create a Volume Group.
|
|
41
41
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -53,7 +53,7 @@ export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
|
53
53
|
* @param parameters Volume Group object.
|
|
54
54
|
* @param options The options parameters.
|
|
55
55
|
*/
|
|
56
|
-
beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<
|
|
56
|
+
beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VolumeGroupsUpdateResponse>, VolumeGroupsUpdateResponse>>;
|
|
57
57
|
/**
|
|
58
58
|
* Update an VolumeGroup.
|
|
59
59
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -70,7 +70,7 @@ export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
|
70
70
|
* @param volumeGroupName The name of the VolumeGroup.
|
|
71
71
|
* @param options The options parameters.
|
|
72
72
|
*/
|
|
73
|
-
beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<
|
|
73
|
+
beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
74
74
|
/**
|
|
75
75
|
* Delete an VolumeGroup.
|
|
76
76
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/volumeGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"volumeGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/volumeGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM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