@azure/arm-elasticsan 1.0.1-alpha.20240925.1 → 1.1.0
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 +7 -9
- package/dist/index.js +849 -837
- 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 +6 -6
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansGetSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +4 -4
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +7 -7
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/skusListSample.js +3 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +17 -14
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +16 -13
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -8
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +3 -3
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +4 -4
- package/dist-esm/samples-dev/volumesDeleteSample.js +4 -4
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +2 -2
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +2 -2
- package/dist-esm/samples-dev/volumesUpdateSample.js +2 -2
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +9 -9
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +4 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +531 -519
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +61 -61
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operations/elasticSans.js +59 -59
- package/dist-esm/src/operations/elasticSans.js.map +1 -1
- package/dist-esm/src/operations/operations.js +5 -5
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +5 -5
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/skus.js +5 -5
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +51 -51
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.js +40 -40
- package/dist-esm/src/operations/volumeSnapshots.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +54 -54
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.js +28 -9
- package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-elasticsan.api.md +2 -0
- package/src/elasticSanManagement.ts +18 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +26 -19
- package/src/models/mappers.ts +549 -536
- package/src/models/parameters.ts +62 -62
- package/src/operations/elasticSans.ts +115 -124
- package/src/operations/operations.ts +10 -10
- package/src/operations/privateEndpointConnections.ts +71 -76
- package/src/operations/privateLinkResources.ts +9 -10
- package/src/operations/skus.ts +9 -9
- package/src/operations/volumeGroups.ts +101 -109
- package/src/operations/volumeSnapshots.ts +79 -85
- package/src/operations/volumes.ts +104 -112
- package/src/operationsInterfaces/elasticSans.ts +10 -10
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/skus.ts +1 -1
- package/src/operationsInterfaces/volumeGroups.ts +9 -9
- package/src/operationsInterfaces/volumeSnapshots.ts +7 -7
- package/src/operationsInterfaces/volumes.ts +9 -9
- package/src/pagingHelper.ts +1 -1
- package/types/arm-elasticsan.d.ts +4 -0
|
@@ -15,7 +15,7 @@ import { ElasticSanManagement } from "../elasticSanManagement";
|
|
|
15
15
|
import {
|
|
16
16
|
Operation,
|
|
17
17
|
OperationsListOptionalParams,
|
|
18
|
-
OperationsListResponse
|
|
18
|
+
OperationsListResponse,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -36,7 +36,7 @@ export class OperationsImpl implements Operations {
|
|
|
36
36
|
* @param options The options parameters.
|
|
37
37
|
*/
|
|
38
38
|
public list(
|
|
39
|
-
options?: OperationsListOptionalParams
|
|
39
|
+
options?: OperationsListOptionalParams,
|
|
40
40
|
): PagedAsyncIterableIterator<Operation> {
|
|
41
41
|
const iter = this.listPagingAll(options);
|
|
42
42
|
return {
|
|
@@ -51,13 +51,13 @@ export class OperationsImpl implements Operations {
|
|
|
51
51
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
52
|
}
|
|
53
53
|
return this.listPagingPage(options, settings);
|
|
54
|
-
}
|
|
54
|
+
},
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
private async *listPagingPage(
|
|
59
59
|
options?: OperationsListOptionalParams,
|
|
60
|
-
_settings?: PageSettings
|
|
60
|
+
_settings?: PageSettings,
|
|
61
61
|
): AsyncIterableIterator<Operation[]> {
|
|
62
62
|
let result: OperationsListResponse;
|
|
63
63
|
result = await this._list(options);
|
|
@@ -65,7 +65,7 @@ export class OperationsImpl implements Operations {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
private async *listPagingAll(
|
|
68
|
-
options?: OperationsListOptionalParams
|
|
68
|
+
options?: OperationsListOptionalParams,
|
|
69
69
|
): AsyncIterableIterator<Operation> {
|
|
70
70
|
for await (const page of this.listPagingPage(options)) {
|
|
71
71
|
yield* page;
|
|
@@ -77,7 +77,7 @@ export class OperationsImpl implements Operations {
|
|
|
77
77
|
* @param options The options parameters.
|
|
78
78
|
*/
|
|
79
79
|
private _list(
|
|
80
|
-
options?: OperationsListOptionalParams
|
|
80
|
+
options?: OperationsListOptionalParams,
|
|
81
81
|
): Promise<OperationsListResponse> {
|
|
82
82
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
83
83
|
}
|
|
@@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
90
90
|
httpMethod: "GET",
|
|
91
91
|
responses: {
|
|
92
92
|
200: {
|
|
93
|
-
bodyMapper: Mappers.OperationListResult
|
|
93
|
+
bodyMapper: Mappers.OperationListResult,
|
|
94
94
|
},
|
|
95
95
|
default: {
|
|
96
|
-
bodyMapper: Mappers.ErrorResponse
|
|
97
|
-
}
|
|
96
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
97
|
+
},
|
|
98
98
|
},
|
|
99
99
|
queryParameters: [Parameters.apiVersion],
|
|
100
100
|
urlParameters: [Parameters.$host],
|
|
101
101
|
headerParameters: [Parameters.accept],
|
|
102
|
-
serializer
|
|
102
|
+
serializer,
|
|
103
103
|
};
|
|
@@ -15,7 +15,7 @@ import { ElasticSanManagement } from "../elasticSanManagement";
|
|
|
15
15
|
import {
|
|
16
16
|
SimplePollerLike,
|
|
17
17
|
OperationState,
|
|
18
|
-
createHttpPoller
|
|
18
|
+
createHttpPoller,
|
|
19
19
|
} from "@azure/core-lro";
|
|
20
20
|
import { createLroSpec } from "../lroImpl";
|
|
21
21
|
import {
|
|
@@ -26,13 +26,14 @@ import {
|
|
|
26
26
|
PrivateEndpointConnectionsCreateResponse,
|
|
27
27
|
PrivateEndpointConnectionsGetOptionalParams,
|
|
28
28
|
PrivateEndpointConnectionsGetResponse,
|
|
29
|
-
PrivateEndpointConnectionsDeleteOptionalParams
|
|
29
|
+
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
30
30
|
} from "../models";
|
|
31
31
|
|
|
32
32
|
/// <reference lib="esnext.asynciterable" />
|
|
33
33
|
/** Class containing PrivateEndpointConnections operations. */
|
|
34
34
|
export class PrivateEndpointConnectionsImpl
|
|
35
|
-
implements PrivateEndpointConnections
|
|
35
|
+
implements PrivateEndpointConnections
|
|
36
|
+
{
|
|
36
37
|
private readonly client: ElasticSanManagement;
|
|
37
38
|
|
|
38
39
|
/**
|
|
@@ -52,7 +53,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
52
53
|
public list(
|
|
53
54
|
resourceGroupName: string,
|
|
54
55
|
elasticSanName: string,
|
|
55
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
56
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
56
57
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
57
58
|
const iter = this.listPagingAll(resourceGroupName, elasticSanName, options);
|
|
58
59
|
return {
|
|
@@ -70,9 +71,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
70
71
|
resourceGroupName,
|
|
71
72
|
elasticSanName,
|
|
72
73
|
options,
|
|
73
|
-
settings
|
|
74
|
+
settings,
|
|
74
75
|
);
|
|
75
|
-
}
|
|
76
|
+
},
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
|
|
@@ -80,7 +81,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
80
81
|
resourceGroupName: string,
|
|
81
82
|
elasticSanName: string,
|
|
82
83
|
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
83
|
-
_settings?: PageSettings
|
|
84
|
+
_settings?: PageSettings,
|
|
84
85
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
85
86
|
let result: PrivateEndpointConnectionsListResponse;
|
|
86
87
|
result = await this._list(resourceGroupName, elasticSanName, options);
|
|
@@ -90,12 +91,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
90
91
|
private async *listPagingAll(
|
|
91
92
|
resourceGroupName: string,
|
|
92
93
|
elasticSanName: string,
|
|
93
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
94
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
94
95
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
95
96
|
for await (const page of this.listPagingPage(
|
|
96
97
|
resourceGroupName,
|
|
97
98
|
elasticSanName,
|
|
98
|
-
options
|
|
99
|
+
options,
|
|
99
100
|
)) {
|
|
100
101
|
yield* page;
|
|
101
102
|
}
|
|
@@ -114,7 +115,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
114
115
|
elasticSanName: string,
|
|
115
116
|
privateEndpointConnectionName: string,
|
|
116
117
|
parameters: PrivateEndpointConnection,
|
|
117
|
-
options?: PrivateEndpointConnectionsCreateOptionalParams
|
|
118
|
+
options?: PrivateEndpointConnectionsCreateOptionalParams,
|
|
118
119
|
): Promise<
|
|
119
120
|
SimplePollerLike<
|
|
120
121
|
OperationState<PrivateEndpointConnectionsCreateResponse>,
|
|
@@ -123,21 +124,20 @@ export class PrivateEndpointConnectionsImpl
|
|
|
123
124
|
> {
|
|
124
125
|
const directSendOperation = async (
|
|
125
126
|
args: coreClient.OperationArguments,
|
|
126
|
-
spec: coreClient.OperationSpec
|
|
127
|
+
spec: coreClient.OperationSpec,
|
|
127
128
|
): Promise<PrivateEndpointConnectionsCreateResponse> => {
|
|
128
129
|
return this.client.sendOperationRequest(args, spec);
|
|
129
130
|
};
|
|
130
131
|
const sendOperationFn = async (
|
|
131
132
|
args: coreClient.OperationArguments,
|
|
132
|
-
spec: coreClient.OperationSpec
|
|
133
|
+
spec: coreClient.OperationSpec,
|
|
133
134
|
) => {
|
|
134
|
-
let currentRawResponse:
|
|
135
|
-
|
|
136
|
-
| undefined = undefined;
|
|
135
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
136
|
+
undefined;
|
|
137
137
|
const providedCallback = args.options?.onResponse;
|
|
138
138
|
const callback: coreClient.RawResponseCallback = (
|
|
139
139
|
rawResponse: coreClient.FullOperationResponse,
|
|
140
|
-
flatResponse: unknown
|
|
140
|
+
flatResponse: unknown,
|
|
141
141
|
) => {
|
|
142
142
|
currentRawResponse = rawResponse;
|
|
143
143
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -146,8 +146,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
146
146
|
...args,
|
|
147
147
|
options: {
|
|
148
148
|
...args.options,
|
|
149
|
-
onResponse: callback
|
|
150
|
-
}
|
|
149
|
+
onResponse: callback,
|
|
150
|
+
},
|
|
151
151
|
};
|
|
152
152
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
153
153
|
return {
|
|
@@ -155,8 +155,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
155
155
|
rawResponse: {
|
|
156
156
|
statusCode: currentRawResponse!.status,
|
|
157
157
|
body: currentRawResponse!.parsedBody,
|
|
158
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
159
|
-
}
|
|
158
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
159
|
+
},
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
|
|
@@ -167,9 +167,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
167
167
|
elasticSanName,
|
|
168
168
|
privateEndpointConnectionName,
|
|
169
169
|
parameters,
|
|
170
|
-
options
|
|
170
|
+
options,
|
|
171
171
|
},
|
|
172
|
-
spec: createOperationSpec
|
|
172
|
+
spec: createOperationSpec,
|
|
173
173
|
});
|
|
174
174
|
const poller = await createHttpPoller<
|
|
175
175
|
PrivateEndpointConnectionsCreateResponse,
|
|
@@ -177,7 +177,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
177
177
|
>(lro, {
|
|
178
178
|
restoreFrom: options?.resumeFrom,
|
|
179
179
|
intervalInMs: options?.updateIntervalInMs,
|
|
180
|
-
resourceLocationConfig: "location"
|
|
180
|
+
resourceLocationConfig: "location",
|
|
181
181
|
});
|
|
182
182
|
await poller.poll();
|
|
183
183
|
return poller;
|
|
@@ -196,14 +196,14 @@ export class PrivateEndpointConnectionsImpl
|
|
|
196
196
|
elasticSanName: string,
|
|
197
197
|
privateEndpointConnectionName: string,
|
|
198
198
|
parameters: PrivateEndpointConnection,
|
|
199
|
-
options?: PrivateEndpointConnectionsCreateOptionalParams
|
|
199
|
+
options?: PrivateEndpointConnectionsCreateOptionalParams,
|
|
200
200
|
): Promise<PrivateEndpointConnectionsCreateResponse> {
|
|
201
201
|
const poller = await this.beginCreate(
|
|
202
202
|
resourceGroupName,
|
|
203
203
|
elasticSanName,
|
|
204
204
|
privateEndpointConnectionName,
|
|
205
205
|
parameters,
|
|
206
|
-
options
|
|
206
|
+
options,
|
|
207
207
|
);
|
|
208
208
|
return poller.pollUntilDone();
|
|
209
209
|
}
|
|
@@ -219,16 +219,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
219
219
|
resourceGroupName: string,
|
|
220
220
|
elasticSanName: string,
|
|
221
221
|
privateEndpointConnectionName: string,
|
|
222
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
222
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
223
223
|
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
224
224
|
return this.client.sendOperationRequest(
|
|
225
225
|
{
|
|
226
226
|
resourceGroupName,
|
|
227
227
|
elasticSanName,
|
|
228
228
|
privateEndpointConnectionName,
|
|
229
|
-
options
|
|
229
|
+
options,
|
|
230
230
|
},
|
|
231
|
-
getOperationSpec
|
|
231
|
+
getOperationSpec,
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -243,25 +243,24 @@ export class PrivateEndpointConnectionsImpl
|
|
|
243
243
|
resourceGroupName: string,
|
|
244
244
|
elasticSanName: string,
|
|
245
245
|
privateEndpointConnectionName: string,
|
|
246
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
246
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
247
247
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
248
248
|
const directSendOperation = async (
|
|
249
249
|
args: coreClient.OperationArguments,
|
|
250
|
-
spec: coreClient.OperationSpec
|
|
250
|
+
spec: coreClient.OperationSpec,
|
|
251
251
|
): Promise<void> => {
|
|
252
252
|
return this.client.sendOperationRequest(args, spec);
|
|
253
253
|
};
|
|
254
254
|
const sendOperationFn = async (
|
|
255
255
|
args: coreClient.OperationArguments,
|
|
256
|
-
spec: coreClient.OperationSpec
|
|
256
|
+
spec: coreClient.OperationSpec,
|
|
257
257
|
) => {
|
|
258
|
-
let currentRawResponse:
|
|
259
|
-
|
|
260
|
-
| undefined = undefined;
|
|
258
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
259
|
+
undefined;
|
|
261
260
|
const providedCallback = args.options?.onResponse;
|
|
262
261
|
const callback: coreClient.RawResponseCallback = (
|
|
263
262
|
rawResponse: coreClient.FullOperationResponse,
|
|
264
|
-
flatResponse: unknown
|
|
263
|
+
flatResponse: unknown,
|
|
265
264
|
) => {
|
|
266
265
|
currentRawResponse = rawResponse;
|
|
267
266
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -270,8 +269,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
270
269
|
...args,
|
|
271
270
|
options: {
|
|
272
271
|
...args.options,
|
|
273
|
-
onResponse: callback
|
|
274
|
-
}
|
|
272
|
+
onResponse: callback,
|
|
273
|
+
},
|
|
275
274
|
};
|
|
276
275
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
277
276
|
return {
|
|
@@ -279,8 +278,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
279
278
|
rawResponse: {
|
|
280
279
|
statusCode: currentRawResponse!.status,
|
|
281
280
|
body: currentRawResponse!.parsedBody,
|
|
282
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
283
|
-
}
|
|
281
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
282
|
+
},
|
|
284
283
|
};
|
|
285
284
|
};
|
|
286
285
|
|
|
@@ -290,14 +289,14 @@ export class PrivateEndpointConnectionsImpl
|
|
|
290
289
|
resourceGroupName,
|
|
291
290
|
elasticSanName,
|
|
292
291
|
privateEndpointConnectionName,
|
|
293
|
-
options
|
|
292
|
+
options,
|
|
294
293
|
},
|
|
295
|
-
spec: deleteOperationSpec
|
|
294
|
+
spec: deleteOperationSpec,
|
|
296
295
|
});
|
|
297
296
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
298
297
|
restoreFrom: options?.resumeFrom,
|
|
299
298
|
intervalInMs: options?.updateIntervalInMs,
|
|
300
|
-
resourceLocationConfig: "location"
|
|
299
|
+
resourceLocationConfig: "location",
|
|
301
300
|
});
|
|
302
301
|
await poller.poll();
|
|
303
302
|
return poller;
|
|
@@ -314,13 +313,13 @@ export class PrivateEndpointConnectionsImpl
|
|
|
314
313
|
resourceGroupName: string,
|
|
315
314
|
elasticSanName: string,
|
|
316
315
|
privateEndpointConnectionName: string,
|
|
317
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
316
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
318
317
|
): Promise<void> {
|
|
319
318
|
const poller = await this.beginDelete(
|
|
320
319
|
resourceGroupName,
|
|
321
320
|
elasticSanName,
|
|
322
321
|
privateEndpointConnectionName,
|
|
323
|
-
options
|
|
322
|
+
options,
|
|
324
323
|
);
|
|
325
324
|
return poller.pollUntilDone();
|
|
326
325
|
}
|
|
@@ -334,11 +333,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
334
333
|
private _list(
|
|
335
334
|
resourceGroupName: string,
|
|
336
335
|
elasticSanName: string,
|
|
337
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
336
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
338
337
|
): Promise<PrivateEndpointConnectionsListResponse> {
|
|
339
338
|
return this.client.sendOperationRequest(
|
|
340
339
|
{ resourceGroupName, elasticSanName, options },
|
|
341
|
-
listOperationSpec
|
|
340
|
+
listOperationSpec,
|
|
342
341
|
);
|
|
343
342
|
}
|
|
344
343
|
}
|
|
@@ -346,25 +345,24 @@ export class PrivateEndpointConnectionsImpl
|
|
|
346
345
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
347
346
|
|
|
348
347
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
349
|
-
path:
|
|
350
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
348
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
351
349
|
httpMethod: "PUT",
|
|
352
350
|
responses: {
|
|
353
351
|
200: {
|
|
354
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
352
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
355
353
|
},
|
|
356
354
|
201: {
|
|
357
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
355
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
358
356
|
},
|
|
359
357
|
202: {
|
|
360
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
358
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
361
359
|
},
|
|
362
360
|
204: {
|
|
363
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
361
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
364
362
|
},
|
|
365
363
|
default: {
|
|
366
|
-
bodyMapper: Mappers.ErrorResponse
|
|
367
|
-
}
|
|
364
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
365
|
+
},
|
|
368
366
|
},
|
|
369
367
|
requestBody: Parameters.parameters6,
|
|
370
368
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -373,23 +371,22 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
373
371
|
Parameters.subscriptionId,
|
|
374
372
|
Parameters.resourceGroupName,
|
|
375
373
|
Parameters.elasticSanName,
|
|
376
|
-
Parameters.privateEndpointConnectionName
|
|
374
|
+
Parameters.privateEndpointConnectionName,
|
|
377
375
|
],
|
|
378
376
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
379
377
|
mediaType: "json",
|
|
380
|
-
serializer
|
|
378
|
+
serializer,
|
|
381
379
|
};
|
|
382
380
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
383
|
-
path:
|
|
384
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
381
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
385
382
|
httpMethod: "GET",
|
|
386
383
|
responses: {
|
|
387
384
|
200: {
|
|
388
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
385
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
389
386
|
},
|
|
390
387
|
default: {
|
|
391
|
-
bodyMapper: Mappers.ErrorResponse
|
|
392
|
-
}
|
|
388
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
389
|
+
},
|
|
393
390
|
},
|
|
394
391
|
queryParameters: [Parameters.apiVersion],
|
|
395
392
|
urlParameters: [
|
|
@@ -397,14 +394,13 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
397
394
|
Parameters.subscriptionId,
|
|
398
395
|
Parameters.resourceGroupName,
|
|
399
396
|
Parameters.elasticSanName,
|
|
400
|
-
Parameters.privateEndpointConnectionName
|
|
397
|
+
Parameters.privateEndpointConnectionName,
|
|
401
398
|
],
|
|
402
399
|
headerParameters: [Parameters.accept],
|
|
403
|
-
serializer
|
|
400
|
+
serializer,
|
|
404
401
|
};
|
|
405
402
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
406
|
-
path:
|
|
407
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
403
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
408
404
|
httpMethod: "DELETE",
|
|
409
405
|
responses: {
|
|
410
406
|
200: {},
|
|
@@ -412,8 +408,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
412
408
|
202: {},
|
|
413
409
|
204: {},
|
|
414
410
|
default: {
|
|
415
|
-
bodyMapper: Mappers.ErrorResponse
|
|
416
|
-
}
|
|
411
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
412
|
+
},
|
|
417
413
|
},
|
|
418
414
|
queryParameters: [Parameters.apiVersion],
|
|
419
415
|
urlParameters: [
|
|
@@ -421,30 +417,29 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
421
417
|
Parameters.subscriptionId,
|
|
422
418
|
Parameters.resourceGroupName,
|
|
423
419
|
Parameters.elasticSanName,
|
|
424
|
-
Parameters.privateEndpointConnectionName
|
|
420
|
+
Parameters.privateEndpointConnectionName,
|
|
425
421
|
],
|
|
426
422
|
headerParameters: [Parameters.accept],
|
|
427
|
-
serializer
|
|
423
|
+
serializer,
|
|
428
424
|
};
|
|
429
425
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
430
|
-
path:
|
|
431
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
|
|
426
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
|
|
432
427
|
httpMethod: "GET",
|
|
433
428
|
responses: {
|
|
434
429
|
200: {
|
|
435
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
430
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
436
431
|
},
|
|
437
432
|
default: {
|
|
438
|
-
bodyMapper: Mappers.ErrorResponse
|
|
439
|
-
}
|
|
433
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
434
|
+
},
|
|
440
435
|
},
|
|
441
436
|
queryParameters: [Parameters.apiVersion],
|
|
442
437
|
urlParameters: [
|
|
443
438
|
Parameters.$host,
|
|
444
439
|
Parameters.subscriptionId,
|
|
445
440
|
Parameters.resourceGroupName,
|
|
446
|
-
Parameters.elasticSanName
|
|
441
|
+
Parameters.elasticSanName,
|
|
447
442
|
],
|
|
448
443
|
headerParameters: [Parameters.accept],
|
|
449
|
-
serializer
|
|
444
|
+
serializer,
|
|
450
445
|
};
|
|
@@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters";
|
|
|
13
13
|
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
14
14
|
import {
|
|
15
15
|
PrivateLinkResourcesListByElasticSanOptionalParams,
|
|
16
|
-
PrivateLinkResourcesListByElasticSanResponse
|
|
16
|
+
PrivateLinkResourcesListByElasticSanResponse,
|
|
17
17
|
} from "../models";
|
|
18
18
|
|
|
19
19
|
/** Class containing PrivateLinkResources operations. */
|
|
@@ -37,11 +37,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
37
37
|
listByElasticSan(
|
|
38
38
|
resourceGroupName: string,
|
|
39
39
|
elasticSanName: string,
|
|
40
|
-
options?: PrivateLinkResourcesListByElasticSanOptionalParams
|
|
40
|
+
options?: PrivateLinkResourcesListByElasticSanOptionalParams,
|
|
41
41
|
): Promise<PrivateLinkResourcesListByElasticSanResponse> {
|
|
42
42
|
return this.client.sendOperationRequest(
|
|
43
43
|
{ resourceGroupName, elasticSanName, options },
|
|
44
|
-
listByElasticSanOperationSpec
|
|
44
|
+
listByElasticSanOperationSpec,
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -49,24 +49,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
49
49
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
50
50
|
|
|
51
51
|
const listByElasticSanOperationSpec: coreClient.OperationSpec = {
|
|
52
|
-
path:
|
|
53
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
|
|
52
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
|
|
54
53
|
httpMethod: "GET",
|
|
55
54
|
responses: {
|
|
56
55
|
200: {
|
|
57
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
56
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
58
57
|
},
|
|
59
58
|
default: {
|
|
60
|
-
bodyMapper: Mappers.ErrorResponse
|
|
61
|
-
}
|
|
59
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
60
|
+
},
|
|
62
61
|
},
|
|
63
62
|
queryParameters: [Parameters.apiVersion],
|
|
64
63
|
urlParameters: [
|
|
65
64
|
Parameters.$host,
|
|
66
65
|
Parameters.subscriptionId,
|
|
67
66
|
Parameters.resourceGroupName,
|
|
68
|
-
Parameters.elasticSanName
|
|
67
|
+
Parameters.elasticSanName,
|
|
69
68
|
],
|
|
70
69
|
headerParameters: [Parameters.accept],
|
|
71
|
-
serializer
|
|
70
|
+
serializer,
|
|
72
71
|
};
|
package/src/operations/skus.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { ElasticSanManagement } from "../elasticSanManagement";
|
|
|
15
15
|
import {
|
|
16
16
|
SkuInformation,
|
|
17
17
|
SkusListOptionalParams,
|
|
18
|
-
SkusListResponse
|
|
18
|
+
SkusListResponse,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -36,7 +36,7 @@ export class SkusImpl implements Skus {
|
|
|
36
36
|
* @param options The options parameters.
|
|
37
37
|
*/
|
|
38
38
|
public list(
|
|
39
|
-
options?: SkusListOptionalParams
|
|
39
|
+
options?: SkusListOptionalParams,
|
|
40
40
|
): PagedAsyncIterableIterator<SkuInformation> {
|
|
41
41
|
const iter = this.listPagingAll(options);
|
|
42
42
|
return {
|
|
@@ -51,13 +51,13 @@ export class SkusImpl implements Skus {
|
|
|
51
51
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
52
|
}
|
|
53
53
|
return this.listPagingPage(options, settings);
|
|
54
|
-
}
|
|
54
|
+
},
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
private async *listPagingPage(
|
|
59
59
|
options?: SkusListOptionalParams,
|
|
60
|
-
_settings?: PageSettings
|
|
60
|
+
_settings?: PageSettings,
|
|
61
61
|
): AsyncIterableIterator<SkuInformation[]> {
|
|
62
62
|
let result: SkusListResponse;
|
|
63
63
|
result = await this._list(options);
|
|
@@ -65,7 +65,7 @@ export class SkusImpl implements Skus {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
private async *listPagingAll(
|
|
68
|
-
options?: SkusListOptionalParams
|
|
68
|
+
options?: SkusListOptionalParams,
|
|
69
69
|
): AsyncIterableIterator<SkuInformation> {
|
|
70
70
|
for await (const page of this.listPagingPage(options)) {
|
|
71
71
|
yield* page;
|
|
@@ -88,14 +88,14 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
88
88
|
httpMethod: "GET",
|
|
89
89
|
responses: {
|
|
90
90
|
200: {
|
|
91
|
-
bodyMapper: Mappers.SkuInformationList
|
|
91
|
+
bodyMapper: Mappers.SkuInformationList,
|
|
92
92
|
},
|
|
93
93
|
default: {
|
|
94
|
-
bodyMapper: Mappers.ErrorResponse
|
|
95
|
-
}
|
|
94
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
95
|
+
},
|
|
96
96
|
},
|
|
97
97
|
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
98
98
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
99
99
|
headerParameters: [Parameters.accept],
|
|
100
|
-
serializer
|
|
100
|
+
serializer,
|
|
101
101
|
};
|