@azure/arm-healthcareapis 1.1.0 → 2.0.0-alpha.20220201.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +2292 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailability.js +33 -0
- package/dist-esm/samples-dev/checkNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js +62 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js +39 -0
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js.map +1 -0
- package/dist-esm/samples-dev/deleteService.d.ts +2 -0
- package/dist-esm/samples-dev/deleteService.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteService.js +31 -0
- package/dist-esm/samples-dev/deleteService.js.map +1 -0
- package/dist-esm/samples-dev/getMetadata.d.ts +2 -0
- package/dist-esm/samples-dev/getMetadata.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMetadata.js +31 -0
- package/dist-esm/samples-dev/getMetadata.js.map +1 -0
- package/dist-esm/samples-dev/getOperationResult.d.ts +2 -0
- package/dist-esm/samples-dev/getOperationResult.d.ts.map +1 -0
- package/dist-esm/samples-dev/getOperationResult.js +31 -0
- package/dist-esm/samples-dev/getOperationResult.js.map +1 -0
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listAllServicesInSubscription.js +43 -0
- package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +1 -0
- package/dist-esm/samples-dev/listOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listOperations.js +43 -0
- package/dist-esm/samples-dev/listOperations.js.map +1 -0
- package/dist-esm/samples-dev/patchService.d.ts +2 -0
- package/dist-esm/samples-dev/patchService.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchService.js +34 -0
- package/dist-esm/samples-dev/patchService.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js +38 -0
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionList.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGet.js +32 -0
- package/dist-esm/samples-dev/privateLinkResourcesGet.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js +31 -0
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js.map +1 -0
- package/dist-esm/src/healthcareApisManagementClient.d.ts +22 -0
- package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -0
- package/dist-esm/src/healthcareApisManagementClient.js +55 -0
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +609 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +65 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +32 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +335 -321
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +159 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operationResults.d.ts +20 -0
- package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
- package/dist-esm/src/operations/operationResults.js +56 -0
- package/dist-esm/src/operations/operationResults.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +78 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +314 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +114 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +527 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +61 -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 +20 -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/services.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.js +9 -0
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +81 -22
- package/review/arm-healthcareapis.api.md +535 -0
- package/rollup.config.js +181 -30
- package/src/healthcareApisManagementClient.ts +82 -43
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +450 -739
- package/src/models/mappers.ts +336 -319
- package/src/models/parameters.ts +111 -48
- package/src/operations/index.ts +3 -5
- package/src/operations/operationResults.ts +39 -54
- package/src/operations/operations.ts +87 -73
- package/src/operations/privateEndpointConnections.ts +321 -161
- package/src/operations/privateLinkResources.ts +64 -97
- package/src/operations/services.ts +538 -362
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operationResults.ts +27 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +115 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/src/operationsInterfaces/services.ts +152 -0
- package/tsconfig.json +5 -4
- package/types/arm-healthcareapis.d.ts +885 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-healthcareapis.js +0 -2100
- package/dist/arm-healthcareapis.js.map +0 -1
- package/dist/arm-healthcareapis.min.js +0 -1
- package/dist/arm-healthcareapis.min.js.map +0 -1
- package/esm/healthcareApisManagementClient.d.ts +0 -28
- package/esm/healthcareApisManagementClient.d.ts.map +0 -1
- package/esm/healthcareApisManagementClient.js +0 -42
- package/esm/healthcareApisManagementClient.js.map +0 -1
- package/esm/healthcareApisManagementClientContext.d.ts +0 -22
- package/esm/healthcareApisManagementClientContext.d.ts.map +0 -1
- package/esm/healthcareApisManagementClientContext.js +0 -61
- package/esm/healthcareApisManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -907
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -33
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationResultsMappers.d.ts +0 -2
- package/esm/models/operationResultsMappers.d.ts.map +0 -1
- package/esm/models/operationResultsMappers.js +0 -9
- package/esm/models/operationResultsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -120
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operationResults.d.ts +0 -34
- package/esm/operations/operationResults.d.ts.map +0 -1
- package/esm/operations/operationResults.js +0 -61
- package/esm/operations/operationResults.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -104
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -209
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -58
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -91
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/services.d.ts +0 -177
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -362
- package/esm/operations/services.js.map +0 -1
- package/src/healthcareApisManagementClientContext.ts +0 -68
- package/src/models/operationResultsMappers.ts +0 -13
- package/src/models/operationsMappers.ts +0 -15
- package/src/models/privateEndpointConnectionsMappers.ts +0 -31
- package/src/models/privateLinkResourcesMappers.ts +0 -31
- package/src/models/servicesMappers.ts +0 -34
@@ -0,0 +1,62 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Create or update the metadata of a service instance.
|
13
|
+
*
|
14
|
+
* @summary Create or update the metadata of a service instance.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceCreate.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function createOrUpdateAServiceWithAllParameters() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rg1";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const serviceDescription = {
|
25
|
+
identity: { type: "SystemAssigned" },
|
26
|
+
kind: "fhir-R4",
|
27
|
+
location: "westus2",
|
28
|
+
properties: {
|
29
|
+
accessPolicies: [
|
30
|
+
{ objectId: "c487e7d1-3210-41a3-8ccc-e9372b78da47" },
|
31
|
+
{ objectId: "5b307da8-43d4-492b-8b66-b0294ade872f" }
|
32
|
+
],
|
33
|
+
authenticationConfiguration: {
|
34
|
+
audience: "https://azurehealthcareapis.com",
|
35
|
+
authority: "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
|
36
|
+
smartProxyEnabled: true
|
37
|
+
},
|
38
|
+
corsConfiguration: {
|
39
|
+
allowCredentials: false,
|
40
|
+
headers: ["*"],
|
41
|
+
maxAge: 1440,
|
42
|
+
methods: ["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"],
|
43
|
+
origins: ["*"]
|
44
|
+
},
|
45
|
+
cosmosDbConfiguration: {
|
46
|
+
keyVaultKeyUri: "https://my-vault.vault.azure.net/keys/my-key",
|
47
|
+
offerThroughput: 1000
|
48
|
+
},
|
49
|
+
exportConfiguration: { storageAccountName: "existingStorageAccount" },
|
50
|
+
privateEndpointConnections: [],
|
51
|
+
publicNetworkAccess: "Disabled"
|
52
|
+
},
|
53
|
+
tags: {}
|
54
|
+
};
|
55
|
+
const credential = new DefaultAzureCredential();
|
56
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
57
|
+
const result = yield client.services.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, serviceDescription);
|
58
|
+
console.log(result);
|
59
|
+
});
|
60
|
+
}
|
61
|
+
createOrUpdateAServiceWithAllParameters().catch(console.error);
|
62
|
+
//# sourceMappingURL=createOrUpdateAServiceWithAllParameters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createOrUpdateAServiceWithAllParameters.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateAServiceWithAllParameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,kBAAkB,GAAwB;YAC9C,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,EAAE,QAAQ,EAAE,sCAAsC,EAAE;oBACpD,EAAE,QAAQ,EAAE,sCAAsC,EAAE;iBACrD;gBACD,2BAA2B,EAAE;oBAC3B,QAAQ,EAAE,iCAAiC;oBAC3C,SAAS,EACP,wEAAwE;oBAC1E,iBAAiB,EAAE,IAAI;iBACxB;gBACD,iBAAiB,EAAE;oBACjB,gBAAgB,EAAE,KAAK;oBACvB,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,MAAM,EAAE,IAAI;oBACZ,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC;oBAC7D,OAAO,EAAE,CAAC,GAAG,CAAC;iBACf;gBACD,qBAAqB,EAAE;oBACrB,cAAc,EAAE,8CAA8C;oBAC9D,eAAe,EAAE,IAAI;iBACtB;gBACD,mBAAmB,EAAE,EAAE,kBAAkB,EAAE,wBAAwB,EAAE;gBACrE,0BAA0B,EAAE,EAAE;gBAC9B,mBAAmB,EAAE,UAAU;aAChC;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,0BAA0B,CAC7D,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createOrUpdateAServiceWithMinimumParameters.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateAServiceWithMinimumParameters.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,39 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Create or update the metadata of a service instance.
|
13
|
+
*
|
14
|
+
* @summary Create or update the metadata of a service instance.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceCreateMinimum.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function createOrUpdateAServiceWithMinimumParameters() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rg1";
|
23
|
+
const resourceName = "service2";
|
24
|
+
const serviceDescription = {
|
25
|
+
kind: "fhir-R4",
|
26
|
+
location: "westus2",
|
27
|
+
properties: {
|
28
|
+
accessPolicies: [{ objectId: "c487e7d1-3210-41a3-8ccc-e9372b78da47" }]
|
29
|
+
},
|
30
|
+
tags: {}
|
31
|
+
};
|
32
|
+
const credential = new DefaultAzureCredential();
|
33
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
34
|
+
const result = yield client.services.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, serviceDescription);
|
35
|
+
console.log(result);
|
36
|
+
});
|
37
|
+
}
|
38
|
+
createOrUpdateAServiceWithMinimumParameters().catch(console.error);
|
39
|
+
//# sourceMappingURL=createOrUpdateAServiceWithMinimumParameters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createOrUpdateAServiceWithMinimumParameters.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateAServiceWithMinimumParameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,kBAAkB,GAAwB;YAC9C,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE;gBACV,cAAc,EAAE,CAAC,EAAE,QAAQ,EAAE,sCAAsC,EAAE,CAAC;aACvE;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,0BAA0B,CAC7D,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deleteService.d.ts","sourceRoot":"","sources":["../../samples-dev/deleteService.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Delete a service instance.
|
13
|
+
*
|
14
|
+
* @summary Delete a service instance.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceDelete.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function deleteService() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rg1";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const credential = new DefaultAzureCredential();
|
25
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
26
|
+
const result = yield client.services.beginDeleteAndWait(resourceGroupName, resourceName);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
deleteService().catch(console.error);
|
31
|
+
//# sourceMappingURL=deleteService.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deleteService.js","sourceRoot":"","sources":["../../samples-dev/deleteService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CACrD,iBAAiB,EACjB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMetadata.d.ts","sourceRoot":"","sources":["../../samples-dev/getMetadata.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Get the metadata of a service instance.
|
13
|
+
*
|
14
|
+
* @summary Get the metadata of a service instance.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceGet.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function getMetadata() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rg1";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const credential = new DefaultAzureCredential();
|
25
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
26
|
+
const result = yield client.services.get(resourceGroupName, resourceName);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
getMetadata().catch(console.error);
|
31
|
+
//# sourceMappingURL=getMetadata.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMetadata.js","sourceRoot":"","sources":["../../samples-dev/getMetadata.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getOperationResult.d.ts","sourceRoot":"","sources":["../../samples-dev/getOperationResult.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Get the operation result for a long running operation.
|
13
|
+
*
|
14
|
+
* @summary Get the operation result for a long running operation.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/OperationResultsGet.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function getOperationResult() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const locationName = "westus";
|
23
|
+
const operationResultId = "exampleid";
|
24
|
+
const credential = new DefaultAzureCredential();
|
25
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
26
|
+
const result = yield client.operationResults.get(locationName, operationResultId);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
getOperationResult().catch(console.error);
|
31
|
+
//# sourceMappingURL=getOperationResult.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getOperationResult.js","sourceRoot":"","sources":["../../samples-dev/getOperationResult.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listAllServicesInResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/listAllServicesInResourceGroup.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Get all the service instances in a resource group.
|
13
|
+
*
|
14
|
+
* @summary Get all the service instances in a resource group.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceListByResourceGroup.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function listAllServicesInResourceGroup() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "subid";
|
23
|
+
const resourceGroupName = "rgname";
|
24
|
+
const credential = new DefaultAzureCredential();
|
25
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
26
|
+
const resArray = new Array();
|
27
|
+
try {
|
28
|
+
for (var _b = __asyncValues(client.services.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
29
|
+
let item = _c.value;
|
30
|
+
resArray.push(item);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
|
+
finally {
|
35
|
+
try {
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
37
|
+
}
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
39
|
+
}
|
40
|
+
console.log(resArray);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
listAllServicesInResourceGroup().catch(console.error);
|
44
|
+
//# sourceMappingURL=listAllServicesInResourceGroup.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listAllServicesInResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/listAllServicesInResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CACxD,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listAllServicesInSubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/listAllServicesInSubscription.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Get all the service instances in a subscription.
|
13
|
+
*
|
14
|
+
* @summary Get all the service instances in a subscription.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceList.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function listAllServicesInSubscription() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "subid";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.services.list()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listAllServicesInSubscription().catch(console.error);
|
43
|
+
//# sourceMappingURL=listAllServicesInSubscription.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listAllServicesInSubscription.js","sourceRoot":"","sources":["../../samples-dev/listAllServicesInSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAlC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listOperations.d.ts","sourceRoot":"","sources":["../../samples-dev/listOperations.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Lists all of the available Healthcare service REST API operations.
|
13
|
+
*
|
14
|
+
* @summary Lists all of the available Healthcare service REST API operations.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/OperationsList.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function listOperations() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listOperations().catch(console.error);
|
43
|
+
//# sourceMappingURL=listOperations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listOperations.js","sourceRoot":"","sources":["../../samples-dev/listOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"patchService.d.ts","sourceRoot":"","sources":["../../samples-dev/patchService.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,34 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Update the metadata of a service instance.
|
13
|
+
*
|
14
|
+
* @summary Update the metadata of a service instance.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServicePatch.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function patchService() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rg1";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const servicePatchDescription = {
|
25
|
+
tags: { tag1: "value1", tag2: "value2" }
|
26
|
+
};
|
27
|
+
const credential = new DefaultAzureCredential();
|
28
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
29
|
+
const result = yield client.services.beginUpdateAndWait(resourceGroupName, resourceName, servicePatchDescription);
|
30
|
+
console.log(result);
|
31
|
+
});
|
32
|
+
}
|
33
|
+
patchService().catch(console.error);
|
34
|
+
//# sourceMappingURL=patchService.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"patchService.js","sourceRoot":"","sources":["../../samples-dev/patchService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,YAAY;;QACzB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,uBAAuB,GAA6B;YACxD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CACrD,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,CACxB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionCreateOrUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionCreateOrUpdate.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,38 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the service.
|
13
|
+
*
|
14
|
+
* @summary Update the state of the specified private endpoint connection associated with the service.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceCreatePrivateEndpointConnection.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function privateEndpointConnectionCreateOrUpdate() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rgname";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const privateEndpointConnectionName = "myConnection";
|
25
|
+
const properties = {
|
26
|
+
privateLinkServiceConnectionState: {
|
27
|
+
description: "Auto-Approved",
|
28
|
+
status: "Approved"
|
29
|
+
}
|
30
|
+
};
|
31
|
+
const credential = new DefaultAzureCredential();
|
32
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
33
|
+
const result = yield client.privateEndpointConnections.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, properties);
|
34
|
+
console.log(result);
|
35
|
+
});
|
36
|
+
}
|
37
|
+
privateEndpointConnectionCreateOrUpdate().catch(console.error);
|
38
|
+
//# sourceMappingURL=privateEndpointConnectionCreateOrUpdate.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionCreateOrUpdate.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionCreateOrUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAC/E,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionGetConnection.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionGetConnection.ts"],"names":[],"mappings":""}
|
@@ -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
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Gets the specified private endpoint connection associated with the service.
|
13
|
+
*
|
14
|
+
* @summary Gets the specified private endpoint connection associated with the service.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceGetPrivateEndpointConnection.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function privateEndpointConnectionGetConnection() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "subid";
|
22
|
+
const resourceGroupName = "rgname";
|
23
|
+
const resourceName = "service1";
|
24
|
+
const privateEndpointConnectionName = "myConnection";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
27
|
+
const result = yield client.privateEndpointConnections.get(resourceGroupName, resourceName, privateEndpointConnectionName);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
privateEndpointConnectionGetConnection().catch(console.error);
|
32
|
+
//# sourceMappingURL=privateEndpointConnectionGetConnection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionGetConnection.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionGetConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionList.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionList.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
/**
|
12
|
+
* This sample demonstrates how to Lists all private endpoint connections for a service.
|
13
|
+
*
|
14
|
+
* @summary Lists all private endpoint connections for a service.
|
15
|
+
* x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-01-11/examples/ServiceListPrivateEndpointConnections.json
|
16
|
+
*/
|
17
|
+
import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function privateEndpointConnectionList() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "subid";
|
23
|
+
const resourceGroupName = "rgname";
|
24
|
+
const resourceName = "service1";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new HealthcareApisManagementClient(credential, subscriptionId);
|
27
|
+
const resArray = new Array();
|
28
|
+
try {
|
29
|
+
for (var _b = __asyncValues(client.privateEndpointConnections.listByService(resourceGroupName, resourceName)), _c; _c = yield _b.next(), !_c.done;) {
|
30
|
+
let item = _c.value;
|
31
|
+
resArray.push(item);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
35
|
+
finally {
|
36
|
+
try {
|
37
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
38
|
+
}
|
39
|
+
finally { if (e_1) throw e_1.error; }
|
40
|
+
}
|
41
|
+
console.log(resArray);
|
42
|
+
});
|
43
|
+
}
|
44
|
+
privateEndpointConnectionList().catch(console.error);
|
45
|
+
//# sourceMappingURL=privateEndpointConnectionList.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionList.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,aAAa,CACpE,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|