@azure/arm-healthcareapis 2.1.2-alpha.20221101.1 → 2.2.0-alpha.20221129.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -10
- package/dist/index.js +316 -95
- 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/src/healthcareApisManagementClient.d.ts +2 -0
- package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +49 -18
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +82 -29
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +48 -0
- 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 +0 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dicomServices.js +19 -7
- package/dist-esm/src/operations/dicomServices.js.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.js +19 -7
- package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
- package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirServices.js +19 -7
- package/dist-esm/src/operations/fhirServices.js.map +1 -1
- package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectors.js +19 -7
- package/dist-esm/src/operations/iotConnectors.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +37 -14
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.js +8 -4
- package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +37 -14
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-healthcareapis.api.md +52 -92
- package/src/healthcareApisManagementClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +158 -109
- package/src/models/mappers.ts +0 -1
- package/src/operations/dicomServices.ts +26 -12
- package/src/operations/fhirDestinations.ts +27 -13
- package/src/operations/fhirServices.ts +26 -12
- package/src/operations/iotConnectors.ts +26 -12
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +11 -5
- package/src/operations/services.ts +46 -17
- package/src/operations/workspacePrivateEndpointConnections.ts +11 -5
- package/src/operations/workspacePrivateLinkResources.ts +11 -5
- package/src/operations/workspaces.ts +45 -16
- package/src/pagingHelper.ts +39 -0
- package/types/arm-healthcareapis.d.ts +93 -29
- package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,32 @@
|
|
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
|
+
const pageMap = new WeakMap();
|
9
|
+
/**
|
10
|
+
* Given a result page from a pageable operation, returns a
|
11
|
+
* continuation token that can be used to begin paging from
|
12
|
+
* that point later.
|
13
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
14
|
+
* @returns The continuation token that can be passed into byPage().
|
15
|
+
*/
|
16
|
+
export function getContinuationToken(page) {
|
17
|
+
var _a;
|
18
|
+
if (typeof page !== "object" || page === null) {
|
19
|
+
return undefined;
|
20
|
+
}
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
22
|
+
}
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
24
|
+
var _a;
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
30
|
+
pageMap.set(page, pageInfo);
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
@@ -6,24 +6,22 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import { __awaiter } from "tslib";
|
9
|
-
import {
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
19
|
-
],
|
20
|
-
queryParametersToSkip: []
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
10
|
+
const replaceableVariables = {
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
15
|
+
};
|
16
|
+
const recorderOptions = {
|
17
|
+
envSetupForPlayback: replaceableVariables
|
21
18
|
};
|
22
19
|
describe("My test", () => {
|
23
20
|
let recorder;
|
24
21
|
beforeEach(function () {
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
26
|
-
recorder =
|
23
|
+
recorder = new Recorder(this.currentTest);
|
24
|
+
yield recorder.start(recorderOptions);
|
27
25
|
});
|
28
26
|
});
|
29
27
|
afterEach(function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"sdk-type": "mgmt",
|
4
4
|
"author": "Microsoft Corporation",
|
5
5
|
"description": "A generated SDK for HealthcareApisManagementClient.",
|
6
|
-
"version": "2.
|
6
|
+
"version": "2.2.0-alpha.20221129.3",
|
7
7
|
"engines": {
|
8
8
|
"node": ">=14.0.0"
|
9
9
|
},
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
14
|
-
"@azure/core-client": "^1.
|
14
|
+
"@azure/core-client": "^1.6.1",
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
17
17
|
"tslib": "^2.2.0"
|
@@ -36,13 +36,18 @@
|
|
36
36
|
"mkdirp": "^1.0.4",
|
37
37
|
"rollup": "^2.66.1",
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
39
|
-
"typescript": "~4.
|
39
|
+
"typescript": "~4.8.0",
|
40
40
|
"uglify-js": "^3.4.9",
|
41
41
|
"rimraf": "^3.0.0",
|
42
42
|
"@azure/identity": "^2.0.1",
|
43
|
-
"@azure-tools/test-recorder": "^
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
44
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
44
45
|
"mocha": "^7.1.1",
|
45
|
-
"
|
46
|
+
"@types/chai": "^4.2.8",
|
47
|
+
"chai": "^4.2.0",
|
48
|
+
"cross-env": "^7.0.2",
|
49
|
+
"@types/node": "^14.0.0",
|
50
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
46
51
|
},
|
47
52
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthcareapis/arm-healthcareapis",
|
48
53
|
"repository": {
|
@@ -93,9 +98,8 @@
|
|
93
98
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
94
99
|
"unit-test:browser": "echo skipped",
|
95
100
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
96
|
-
"integration-test:node": "
|
97
|
-
"integration-test:browser": "echo skipped"
|
98
|
-
"docs": "echo skipped"
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
102
|
+
"integration-test:browser": "echo skipped"
|
99
103
|
},
|
100
104
|
"sideEffects": false,
|
101
105
|
"//metadata": {
|
@@ -23,14 +23,14 @@ export interface CheckNameAvailabilityParameters {
|
|
23
23
|
export type CreatedByType = string;
|
24
24
|
|
25
25
|
// @public
|
26
|
-
export
|
27
|
-
readonly systemData?: SystemData;
|
28
|
-
readonly provisioningState?: ProvisioningState;
|
26
|
+
export interface DicomService extends TaggedResource, ServiceManagedIdentity {
|
29
27
|
authenticationConfiguration?: DicomServiceAuthenticationConfiguration;
|
30
|
-
readonly serviceUrl?: string;
|
31
28
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
29
|
+
readonly provisioningState?: ProvisioningState;
|
32
30
|
publicNetworkAccess?: PublicNetworkAccess;
|
33
|
-
|
31
|
+
readonly serviceUrl?: string;
|
32
|
+
readonly systemData?: SystemData;
|
33
|
+
}
|
34
34
|
|
35
35
|
// @public
|
36
36
|
export interface DicomServiceAuthenticationConfiguration {
|
@@ -45,7 +45,8 @@ export interface DicomServiceCollection {
|
|
45
45
|
}
|
46
46
|
|
47
47
|
// @public
|
48
|
-
export
|
48
|
+
export interface DicomServicePatchResource extends ResourceTags, ServiceManagedIdentity {
|
49
|
+
}
|
49
50
|
|
50
51
|
// @public
|
51
52
|
export interface DicomServices {
|
@@ -144,20 +145,20 @@ export type FhirDestinationsListByIotConnectorResponse = IotFhirDestinationColle
|
|
144
145
|
export type FhirResourceVersionPolicy = string;
|
145
146
|
|
146
147
|
// @public
|
147
|
-
export
|
148
|
-
kind?: FhirServiceKind;
|
149
|
-
readonly systemData?: SystemData;
|
150
|
-
readonly provisioningState?: ProvisioningState;
|
148
|
+
export interface FhirService extends TaggedResource, ServiceManagedIdentity {
|
151
149
|
accessPolicies?: FhirServiceAccessPolicyEntry[];
|
152
150
|
acrConfiguration?: FhirServiceAcrConfiguration;
|
153
151
|
authenticationConfiguration?: FhirServiceAuthenticationConfiguration;
|
154
152
|
corsConfiguration?: FhirServiceCorsConfiguration;
|
153
|
+
readonly eventState?: ServiceEventState;
|
155
154
|
exportConfiguration?: FhirServiceExportConfiguration;
|
155
|
+
kind?: FhirServiceKind;
|
156
156
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
157
|
+
readonly provisioningState?: ProvisioningState;
|
157
158
|
publicNetworkAccess?: PublicNetworkAccess;
|
158
|
-
readonly eventState?: ServiceEventState;
|
159
159
|
resourceVersionPolicyConfiguration?: ResourceVersionPolicyConfiguration;
|
160
|
-
|
160
|
+
readonly systemData?: SystemData;
|
161
|
+
}
|
161
162
|
|
162
163
|
// @public
|
163
164
|
export interface FhirServiceAccessPolicyEntry {
|
@@ -201,7 +202,8 @@ export interface FhirServiceExportConfiguration {
|
|
201
202
|
export type FhirServiceKind = string;
|
202
203
|
|
203
204
|
// @public
|
204
|
-
export
|
205
|
+
export interface FhirServicePatchResource extends ResourceTags, ServiceManagedIdentity {
|
206
|
+
}
|
205
207
|
|
206
208
|
// @public
|
207
209
|
export interface FhirServices {
|
@@ -260,6 +262,9 @@ export interface FhirServicesUpdateOptionalParams extends coreClient.OperationOp
|
|
260
262
|
// @public
|
261
263
|
export type FhirServicesUpdateResponse = FhirService;
|
262
264
|
|
265
|
+
// @public
|
266
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
267
|
+
|
263
268
|
// @public (undocumented)
|
264
269
|
export class HealthcareApisManagementClient extends coreClient.ServiceClient {
|
265
270
|
// (undocumented)
|
@@ -305,12 +310,12 @@ export interface HealthcareApisManagementClientOptionalParams extends coreClient
|
|
305
310
|
}
|
306
311
|
|
307
312
|
// @public
|
308
|
-
export
|
309
|
-
readonly systemData?: SystemData;
|
310
|
-
readonly provisioningState?: ProvisioningState;
|
311
|
-
ingestionEndpointConfiguration?: IotEventHubIngestionEndpointConfiguration;
|
313
|
+
export interface IotConnector extends TaggedResource, ServiceManagedIdentity {
|
312
314
|
deviceMapping?: IotMappingProperties;
|
313
|
-
|
315
|
+
ingestionEndpointConfiguration?: IotEventHubIngestionEndpointConfiguration;
|
316
|
+
readonly provisioningState?: ProvisioningState;
|
317
|
+
readonly systemData?: SystemData;
|
318
|
+
}
|
314
319
|
|
315
320
|
// @public
|
316
321
|
export interface IotConnectorCollection {
|
@@ -350,7 +355,8 @@ export interface IotConnectorFhirDestinationGetOptionalParams extends coreClient
|
|
350
355
|
export type IotConnectorFhirDestinationGetResponse = IotFhirDestination;
|
351
356
|
|
352
357
|
// @public
|
353
|
-
export
|
358
|
+
export interface IotConnectorPatchResource extends ResourceTags, ServiceManagedIdentity {
|
359
|
+
}
|
354
360
|
|
355
361
|
// @public
|
356
362
|
export interface IotConnectors {
|
@@ -422,13 +428,13 @@ export interface IotEventHubIngestionEndpointConfiguration {
|
|
422
428
|
}
|
423
429
|
|
424
430
|
// @public
|
425
|
-
export
|
426
|
-
|
431
|
+
export interface IotFhirDestination extends LocationBasedResource {
|
432
|
+
fhirMapping: IotMappingProperties;
|
433
|
+
fhirServiceResourceId: string;
|
427
434
|
readonly provisioningState?: ProvisioningState;
|
428
435
|
resourceIdentityResolutionType: IotIdentityResolutionType;
|
429
|
-
|
430
|
-
|
431
|
-
};
|
436
|
+
readonly systemData?: SystemData;
|
437
|
+
}
|
432
438
|
|
433
439
|
// @public
|
434
440
|
export interface IotFhirDestinationCollection {
|
@@ -437,11 +443,11 @@ export interface IotFhirDestinationCollection {
|
|
437
443
|
}
|
438
444
|
|
439
445
|
// @public
|
440
|
-
export
|
441
|
-
resourceIdentityResolutionType: IotIdentityResolutionType;
|
442
|
-
fhirServiceResourceId: string;
|
446
|
+
export interface IotFhirDestinationProperties extends IotDestinationProperties {
|
443
447
|
fhirMapping: IotMappingProperties;
|
444
|
-
|
448
|
+
fhirServiceResourceId: string;
|
449
|
+
resourceIdentityResolutionType: IotIdentityResolutionType;
|
450
|
+
}
|
445
451
|
|
446
452
|
// @public
|
447
453
|
export type IotIdentityResolutionType = string;
|
@@ -456,149 +462,101 @@ export type Kind = "fhir" | "fhir-Stu3" | "fhir-R4";
|
|
456
462
|
|
457
463
|
// @public
|
458
464
|
export enum KnownActionType {
|
459
|
-
// (undocumented)
|
460
465
|
Internal = "Internal"
|
461
466
|
}
|
462
467
|
|
463
468
|
// @public
|
464
469
|
export enum KnownCreatedByType {
|
465
|
-
// (undocumented)
|
466
470
|
Application = "Application",
|
467
|
-
// (undocumented)
|
468
471
|
Key = "Key",
|
469
|
-
// (undocumented)
|
470
472
|
ManagedIdentity = "ManagedIdentity",
|
471
|
-
// (undocumented)
|
472
473
|
User = "User"
|
473
474
|
}
|
474
475
|
|
475
476
|
// @public
|
476
477
|
export enum KnownFhirResourceVersionPolicy {
|
477
|
-
// (undocumented)
|
478
478
|
NoVersion = "no-version",
|
479
|
-
// (undocumented)
|
480
479
|
Versioned = "versioned",
|
481
|
-
// (undocumented)
|
482
480
|
VersionedUpdate = "versioned-update"
|
483
481
|
}
|
484
482
|
|
485
483
|
// @public
|
486
484
|
export enum KnownFhirServiceKind {
|
487
|
-
// (undocumented)
|
488
485
|
FhirR4 = "fhir-R4",
|
489
|
-
// (undocumented)
|
490
486
|
FhirStu3 = "fhir-Stu3"
|
491
487
|
}
|
492
488
|
|
493
489
|
// @public
|
494
490
|
export enum KnownIotIdentityResolutionType {
|
495
|
-
// (undocumented)
|
496
491
|
Create = "Create",
|
497
|
-
// (undocumented)
|
498
492
|
Lookup = "Lookup"
|
499
493
|
}
|
500
494
|
|
501
495
|
// @public
|
502
496
|
export enum KnownManagedServiceIdentityType {
|
503
|
-
// (undocumented)
|
504
497
|
None = "None",
|
505
|
-
// (undocumented)
|
506
498
|
SystemAssigned = "SystemAssigned"
|
507
499
|
}
|
508
500
|
|
509
501
|
// @public
|
510
502
|
export enum KnownOperationResultStatus {
|
511
|
-
// (undocumented)
|
512
503
|
Canceled = "Canceled",
|
513
|
-
// (undocumented)
|
514
504
|
Failed = "Failed",
|
515
|
-
// (undocumented)
|
516
505
|
Requested = "Requested",
|
517
|
-
// (undocumented)
|
518
506
|
Running = "Running",
|
519
|
-
// (undocumented)
|
520
507
|
Succeeded = "Succeeded"
|
521
508
|
}
|
522
509
|
|
523
510
|
// @public
|
524
511
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
525
|
-
// (undocumented)
|
526
512
|
Creating = "Creating",
|
527
|
-
// (undocumented)
|
528
513
|
Deleting = "Deleting",
|
529
|
-
// (undocumented)
|
530
514
|
Failed = "Failed",
|
531
|
-
// (undocumented)
|
532
515
|
Succeeded = "Succeeded"
|
533
516
|
}
|
534
517
|
|
535
518
|
// @public
|
536
519
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
537
|
-
// (undocumented)
|
538
520
|
Approved = "Approved",
|
539
|
-
// (undocumented)
|
540
521
|
Pending = "Pending",
|
541
|
-
// (undocumented)
|
542
522
|
Rejected = "Rejected"
|
543
523
|
}
|
544
524
|
|
545
525
|
// @public
|
546
526
|
export enum KnownProvisioningState {
|
547
|
-
// (undocumented)
|
548
527
|
Accepted = "Accepted",
|
549
|
-
// (undocumented)
|
550
528
|
Canceled = "Canceled",
|
551
|
-
// (undocumented)
|
552
529
|
Creating = "Creating",
|
553
|
-
// (undocumented)
|
554
530
|
Deleting = "Deleting",
|
555
|
-
// (undocumented)
|
556
531
|
Deprovisioned = "Deprovisioned",
|
557
|
-
// (undocumented)
|
558
532
|
Failed = "Failed",
|
559
|
-
// (undocumented)
|
560
533
|
Moving = "Moving",
|
561
|
-
// (undocumented)
|
562
534
|
Succeeded = "Succeeded",
|
563
|
-
// (undocumented)
|
564
535
|
Suspended = "Suspended",
|
565
|
-
// (undocumented)
|
566
536
|
SystemMaintenance = "SystemMaintenance",
|
567
|
-
// (undocumented)
|
568
537
|
Updating = "Updating",
|
569
|
-
// (undocumented)
|
570
538
|
Verifying = "Verifying",
|
571
|
-
// (undocumented)
|
572
539
|
Warned = "Warned"
|
573
540
|
}
|
574
541
|
|
575
542
|
// @public
|
576
543
|
export enum KnownPublicNetworkAccess {
|
577
|
-
// (undocumented)
|
578
544
|
Disabled = "Disabled",
|
579
|
-
// (undocumented)
|
580
545
|
Enabled = "Enabled"
|
581
546
|
}
|
582
547
|
|
583
548
|
// @public
|
584
549
|
export enum KnownServiceEventState {
|
585
|
-
// (undocumented)
|
586
550
|
Disabled = "Disabled",
|
587
|
-
// (undocumented)
|
588
551
|
Enabled = "Enabled",
|
589
|
-
// (undocumented)
|
590
552
|
Updating = "Updating"
|
591
553
|
}
|
592
554
|
|
593
555
|
// @public
|
594
556
|
export enum KnownServiceManagedIdentityType {
|
595
|
-
// (undocumented)
|
596
557
|
None = "None",
|
597
|
-
// (undocumented)
|
598
558
|
SystemAssigned = "SystemAssigned",
|
599
|
-
// (undocumented)
|
600
559
|
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
|
601
|
-
// (undocumented)
|
602
560
|
UserAssigned = "UserAssigned"
|
603
561
|
}
|
604
562
|
|
@@ -609,9 +567,9 @@ export interface ListOperations {
|
|
609
567
|
}
|
610
568
|
|
611
569
|
// @public
|
612
|
-
export
|
570
|
+
export interface LocationBasedResource extends ResourceCore {
|
613
571
|
location?: string;
|
614
|
-
}
|
572
|
+
}
|
615
573
|
|
616
574
|
// @public
|
617
575
|
export interface LogSpecification {
|
@@ -718,16 +676,16 @@ export interface PrivateEndpoint {
|
|
718
676
|
}
|
719
677
|
|
720
678
|
// @public
|
721
|
-
export
|
679
|
+
export interface PrivateEndpointConnection extends Resource {
|
722
680
|
privateEndpoint?: PrivateEndpoint;
|
723
681
|
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
724
682
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
725
|
-
}
|
683
|
+
}
|
726
684
|
|
727
685
|
// @public
|
728
|
-
export
|
686
|
+
export interface PrivateEndpointConnectionDescription extends PrivateEndpointConnection {
|
729
687
|
readonly systemData?: SystemData;
|
730
|
-
}
|
688
|
+
}
|
731
689
|
|
732
690
|
// @public
|
733
691
|
export interface PrivateEndpointConnectionListResult {
|
@@ -785,16 +743,16 @@ export type PrivateEndpointConnectionsListByServiceResponse = PrivateEndpointCon
|
|
785
743
|
export type PrivateEndpointServiceConnectionStatus = string;
|
786
744
|
|
787
745
|
// @public
|
788
|
-
export
|
746
|
+
export interface PrivateLinkResource extends Resource {
|
789
747
|
readonly groupId?: string;
|
790
748
|
readonly requiredMembers?: string[];
|
791
749
|
requiredZoneNames?: string[];
|
792
|
-
}
|
750
|
+
}
|
793
751
|
|
794
752
|
// @public
|
795
|
-
export
|
753
|
+
export interface PrivateLinkResourceDescription extends PrivateLinkResource {
|
796
754
|
readonly systemData?: SystemData;
|
797
|
-
}
|
755
|
+
}
|
798
756
|
|
799
757
|
// @public
|
800
758
|
export interface PrivateLinkResourceListResultDescription {
|
@@ -970,10 +928,10 @@ export interface ServicesDeleteOptionalParams extends coreClient.OperationOption
|
|
970
928
|
}
|
971
929
|
|
972
930
|
// @public
|
973
|
-
export
|
931
|
+
export interface ServicesDescription extends ServicesResource {
|
974
932
|
properties?: ServicesProperties;
|
975
933
|
readonly systemData?: SystemData;
|
976
|
-
}
|
934
|
+
}
|
977
935
|
|
978
936
|
// @public
|
979
937
|
export interface ServicesDescriptionListResult {
|
@@ -1091,7 +1049,8 @@ export interface SystemData {
|
|
1091
1049
|
}
|
1092
1050
|
|
1093
1051
|
// @public
|
1094
|
-
export
|
1052
|
+
export interface TaggedResource extends ResourceTags, LocationBasedResource {
|
1053
|
+
}
|
1095
1054
|
|
1096
1055
|
// @public
|
1097
1056
|
export interface UserAssignedIdentity {
|
@@ -1100,10 +1059,10 @@ export interface UserAssignedIdentity {
|
|
1100
1059
|
}
|
1101
1060
|
|
1102
1061
|
// @public
|
1103
|
-
export
|
1062
|
+
export interface Workspace extends TaggedResource {
|
1104
1063
|
properties?: WorkspaceProperties;
|
1105
1064
|
readonly systemData?: SystemData;
|
1106
|
-
}
|
1065
|
+
}
|
1107
1066
|
|
1108
1067
|
// @public
|
1109
1068
|
export interface WorkspaceList {
|
@@ -1112,7 +1071,8 @@ export interface WorkspaceList {
|
|
1112
1071
|
}
|
1113
1072
|
|
1114
1073
|
// @public
|
1115
|
-
export
|
1074
|
+
export interface WorkspacePatchResource extends ResourceTags {
|
1075
|
+
}
|
1116
1076
|
|
1117
1077
|
// @public
|
1118
1078
|
export interface WorkspacePrivateEndpointConnections {
|
@@ -8,6 +8,11 @@
|
|
8
8
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
11
|
+
import {
|
12
|
+
PipelineRequest,
|
13
|
+
PipelineResponse,
|
14
|
+
SendRequest
|
15
|
+
} from "@azure/core-rest-pipeline";
|
11
16
|
import * as coreAuth from "@azure/core-auth";
|
12
17
|
import {
|
13
18
|
ServicesImpl,
|
@@ -73,47 +78,53 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient {
|
|
73
78
|
credential: credentials
|
74
79
|
};
|
75
80
|
|
76
|
-
const packageDetails = `azsdk-js-arm-healthcareapis/2.
|
81
|
+
const packageDetails = `azsdk-js-arm-healthcareapis/2.2.0`;
|
77
82
|
const userAgentPrefix =
|
78
83
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
79
84
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
80
85
|
: `${packageDetails}`;
|
81
86
|
|
82
|
-
if (!options.credentialScopes) {
|
83
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
84
|
-
}
|
85
87
|
const optionsWithDefaults = {
|
86
88
|
...defaults,
|
87
89
|
...options,
|
88
90
|
userAgentOptions: {
|
89
91
|
userAgentPrefix
|
90
92
|
},
|
91
|
-
|
93
|
+
endpoint:
|
92
94
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
93
95
|
};
|
94
96
|
super(optionsWithDefaults);
|
95
97
|
|
98
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
96
99
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
97
100
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
98
|
-
|
101
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
99
102
|
(pipelinePolicy) =>
|
100
103
|
pipelinePolicy.name ===
|
101
104
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
102
105
|
);
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
106
|
+
}
|
107
|
+
if (
|
108
|
+
!options ||
|
109
|
+
!options.pipeline ||
|
110
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
111
|
+
!bearerTokenAuthenticationPolicyFound
|
112
|
+
) {
|
113
|
+
this.pipeline.removePolicy({
|
114
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
115
|
+
});
|
116
|
+
this.pipeline.addPolicy(
|
117
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
118
|
+
credential: credentials,
|
119
|
+
scopes:
|
120
|
+
optionsWithDefaults.credentialScopes ??
|
121
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
122
|
+
challengeCallbacks: {
|
123
|
+
authorizeRequestOnChallenge:
|
124
|
+
coreClient.authorizeRequestOnClaimChallenge
|
125
|
+
}
|
126
|
+
})
|
127
|
+
);
|
117
128
|
}
|
118
129
|
// Parameter assignments
|
119
130
|
this.subscriptionId = subscriptionId;
|
@@ -140,6 +151,35 @@ export class HealthcareApisManagementClient extends coreClient.ServiceClient {
|
|
140
151
|
);
|
141
152
|
this.operations = new OperationsImpl(this);
|
142
153
|
this.operationResults = new OperationResultsImpl(this);
|
154
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
155
|
+
}
|
156
|
+
|
157
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
158
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
159
|
+
if (!apiVersion) {
|
160
|
+
return;
|
161
|
+
}
|
162
|
+
const apiVersionPolicy = {
|
163
|
+
name: "CustomApiVersionPolicy",
|
164
|
+
async sendRequest(
|
165
|
+
request: PipelineRequest,
|
166
|
+
next: SendRequest
|
167
|
+
): Promise<PipelineResponse> {
|
168
|
+
const param = request.url.split("?");
|
169
|
+
if (param.length > 1) {
|
170
|
+
const newParams = param[1].split("&").map((item) => {
|
171
|
+
if (item.indexOf("api-version") > -1) {
|
172
|
+
return "api-version=" + apiVersion;
|
173
|
+
} else {
|
174
|
+
return item;
|
175
|
+
}
|
176
|
+
});
|
177
|
+
request.url = param[0] + "?" + newParams.join("&");
|
178
|
+
}
|
179
|
+
return next(request);
|
180
|
+
}
|
181
|
+
};
|
182
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
143
183
|
}
|
144
184
|
|
145
185
|
services: Services;
|
package/src/index.ts
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
10
11
|
export * from "./models";
|
11
12
|
export { HealthcareApisManagementClient } from "./healthcareApisManagementClient";
|
12
13
|
export * from "./operationsInterfaces";
|