@azure/arm-healthcareapis 1.1.1 → 2.0.0-alpha.20220208.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 +82 -23
- 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
package/src/models/parameters.ts
CHANGED
@@ -1,120 +1,183 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
9
|
+
import {
|
10
|
+
OperationParameter,
|
11
|
+
OperationURLParameter,
|
12
|
+
OperationQueryParameter
|
13
|
+
} from "@azure/core-client";
|
14
|
+
import {
|
15
|
+
ServicesDescription as ServicesDescriptionMapper,
|
16
|
+
ServicesPatchDescription as ServicesPatchDescriptionMapper,
|
17
|
+
CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper,
|
18
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper
|
19
|
+
} from "../models/mappers";
|
12
20
|
|
13
|
-
export const
|
14
|
-
parameterPath: "
|
21
|
+
export const accept: OperationParameter = {
|
22
|
+
parameterPath: "accept",
|
15
23
|
mapper: {
|
16
|
-
|
17
|
-
|
24
|
+
defaultValue: "application/json",
|
25
|
+
isConstant: true,
|
26
|
+
serializedName: "Accept",
|
18
27
|
type: {
|
19
28
|
name: "String"
|
20
29
|
}
|
21
30
|
}
|
22
31
|
};
|
23
|
-
|
24
|
-
|
32
|
+
|
33
|
+
export const $host: OperationURLParameter = {
|
34
|
+
parameterPath: "$host",
|
25
35
|
mapper: {
|
36
|
+
serializedName: "$host",
|
26
37
|
required: true,
|
38
|
+
type: {
|
39
|
+
name: "String"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
skipEncoding: true
|
43
|
+
};
|
44
|
+
|
45
|
+
export const apiVersion: OperationQueryParameter = {
|
46
|
+
parameterPath: "apiVersion",
|
47
|
+
mapper: {
|
48
|
+
defaultValue: "2021-01-11",
|
49
|
+
isConstant: true,
|
27
50
|
serializedName: "api-version",
|
28
51
|
type: {
|
29
52
|
name: "String"
|
30
53
|
}
|
31
54
|
}
|
32
55
|
};
|
33
|
-
|
34
|
-
|
56
|
+
|
57
|
+
export const subscriptionId: OperationURLParameter = {
|
58
|
+
parameterPath: "subscriptionId",
|
35
59
|
mapper: {
|
60
|
+
serializedName: "subscriptionId",
|
36
61
|
required: true,
|
37
|
-
serializedName: "groupName",
|
38
62
|
type: {
|
39
63
|
name: "String"
|
40
64
|
}
|
41
65
|
}
|
42
66
|
};
|
43
|
-
|
44
|
-
|
67
|
+
|
68
|
+
export const resourceGroupName: OperationURLParameter = {
|
69
|
+
parameterPath: "resourceGroupName",
|
45
70
|
mapper: {
|
71
|
+
constraints: {
|
72
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
73
|
+
MaxLength: 90,
|
74
|
+
MinLength: 1
|
75
|
+
},
|
76
|
+
serializedName: "resourceGroupName",
|
46
77
|
required: true,
|
47
|
-
serializedName: "locationName",
|
48
78
|
type: {
|
49
79
|
name: "String"
|
50
80
|
}
|
51
81
|
}
|
52
82
|
};
|
53
|
-
|
54
|
-
|
83
|
+
|
84
|
+
export const resourceName: OperationURLParameter = {
|
85
|
+
parameterPath: "resourceName",
|
55
86
|
mapper: {
|
87
|
+
constraints: {
|
88
|
+
MaxLength: 24,
|
89
|
+
MinLength: 3
|
90
|
+
},
|
91
|
+
serializedName: "resourceName",
|
56
92
|
required: true,
|
57
|
-
serializedName: "nextLink",
|
58
93
|
type: {
|
59
94
|
name: "String"
|
60
95
|
}
|
61
|
-
}
|
62
|
-
skipEncoding: true
|
96
|
+
}
|
63
97
|
};
|
64
|
-
|
65
|
-
|
98
|
+
|
99
|
+
export const contentType: OperationParameter = {
|
100
|
+
parameterPath: ["options", "contentType"],
|
66
101
|
mapper: {
|
67
|
-
|
68
|
-
|
102
|
+
defaultValue: "application/json",
|
103
|
+
isConstant: true,
|
104
|
+
serializedName: "Content-Type",
|
69
105
|
type: {
|
70
106
|
name: "String"
|
71
107
|
}
|
72
108
|
}
|
73
109
|
};
|
74
|
-
|
75
|
-
|
110
|
+
|
111
|
+
export const serviceDescription: OperationParameter = {
|
112
|
+
parameterPath: "serviceDescription",
|
113
|
+
mapper: ServicesDescriptionMapper
|
114
|
+
};
|
115
|
+
|
116
|
+
export const servicePatchDescription: OperationParameter = {
|
117
|
+
parameterPath: "servicePatchDescription",
|
118
|
+
mapper: ServicesPatchDescriptionMapper
|
119
|
+
};
|
120
|
+
|
121
|
+
export const checkNameAvailabilityInputs: OperationParameter = {
|
122
|
+
parameterPath: "checkNameAvailabilityInputs",
|
123
|
+
mapper: CheckNameAvailabilityParametersMapper
|
124
|
+
};
|
125
|
+
|
126
|
+
export const nextLink: OperationURLParameter = {
|
127
|
+
parameterPath: "nextLink",
|
76
128
|
mapper: {
|
129
|
+
serializedName: "nextLink",
|
130
|
+
required: true,
|
131
|
+
type: {
|
132
|
+
name: "String"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
skipEncoding: true
|
136
|
+
};
|
137
|
+
|
138
|
+
export const locationName: OperationURLParameter = {
|
139
|
+
parameterPath: "locationName",
|
140
|
+
mapper: {
|
141
|
+
serializedName: "locationName",
|
77
142
|
required: true,
|
78
|
-
serializedName: "privateEndpointConnectionName",
|
79
143
|
type: {
|
80
144
|
name: "String"
|
81
145
|
}
|
82
146
|
}
|
83
147
|
};
|
84
|
-
|
85
|
-
|
148
|
+
|
149
|
+
export const operationResultId: OperationURLParameter = {
|
150
|
+
parameterPath: "operationResultId",
|
86
151
|
mapper: {
|
152
|
+
serializedName: "operationResultId",
|
87
153
|
required: true,
|
88
|
-
serializedName: "resourceGroupName",
|
89
|
-
constraints: {
|
90
|
-
MaxLength: 90,
|
91
|
-
MinLength: 1,
|
92
|
-
Pattern: /^[-\w\._\(\)]+$/
|
93
|
-
},
|
94
154
|
type: {
|
95
155
|
name: "String"
|
96
156
|
}
|
97
157
|
}
|
98
158
|
};
|
99
|
-
|
100
|
-
|
159
|
+
|
160
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
161
|
+
parameterPath: "privateEndpointConnectionName",
|
101
162
|
mapper: {
|
163
|
+
serializedName: "privateEndpointConnectionName",
|
102
164
|
required: true,
|
103
|
-
serializedName: "resourceName",
|
104
|
-
constraints: {
|
105
|
-
MaxLength: 24,
|
106
|
-
MinLength: 3
|
107
|
-
},
|
108
165
|
type: {
|
109
166
|
name: "String"
|
110
167
|
}
|
111
168
|
}
|
112
169
|
};
|
113
|
-
|
114
|
-
|
170
|
+
|
171
|
+
export const properties: OperationParameter = {
|
172
|
+
parameterPath: "properties",
|
173
|
+
mapper: PrivateEndpointConnectionMapper
|
174
|
+
};
|
175
|
+
|
176
|
+
export const groupName: OperationURLParameter = {
|
177
|
+
parameterPath: "groupName",
|
115
178
|
mapper: {
|
179
|
+
serializedName: "groupName",
|
116
180
|
required: true,
|
117
|
-
serializedName: "subscriptionId",
|
118
181
|
type: {
|
119
182
|
name: "String"
|
120
183
|
}
|
package/src/operations/index.ts
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
9
|
export * from "./services";
|
@@ -1,28 +1,30 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
12
|
-
import * as
|
13
|
-
import * as Mappers from "../models/
|
9
|
+
import { OperationResults } from "../operationsInterfaces";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers";
|
14
12
|
import * as Parameters from "../models/parameters";
|
15
|
-
import {
|
13
|
+
import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
|
14
|
+
import {
|
15
|
+
OperationResultsGetOptionalParams,
|
16
|
+
OperationResultsGetResponse
|
17
|
+
} from "../models";
|
16
18
|
|
17
|
-
/** Class
|
18
|
-
export class OperationResults {
|
19
|
-
private readonly client:
|
19
|
+
/** Class containing OperationResults operations. */
|
20
|
+
export class OperationResultsImpl implements OperationResults {
|
21
|
+
private readonly client: HealthcareApisManagementClient;
|
20
22
|
|
21
23
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
24
|
+
* Initialize a new instance of the class OperationResults class.
|
25
|
+
* @param client Reference to the service client
|
24
26
|
*/
|
25
|
-
constructor(client:
|
27
|
+
constructor(client: HealthcareApisManagementClient) {
|
26
28
|
this.client = client;
|
27
29
|
}
|
28
30
|
|
@@ -30,51 +32,26 @@ export class OperationResults {
|
|
30
32
|
* Get the operation result for a long running operation.
|
31
33
|
* @param locationName The location of the operation.
|
32
34
|
* @param operationResultId The ID of the operation result to get.
|
33
|
-
* @param
|
34
|
-
* @returns Promise<Models.OperationResultsGetResponse>
|
35
|
+
* @param options The options parameters.
|
35
36
|
*/
|
36
|
-
get(
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
*/
|
42
|
-
get(locationName: string, operationResultId: string, callback: msRest.ServiceCallback<any>): void;
|
43
|
-
/**
|
44
|
-
* @param locationName The location of the operation.
|
45
|
-
* @param operationResultId The ID of the operation result to get.
|
46
|
-
* @param options The optional parameters
|
47
|
-
* @param callback The callback
|
48
|
-
*/
|
49
|
-
get(locationName: string, operationResultId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<any>): void;
|
50
|
-
get(locationName: string, operationResultId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<any>, callback?: msRest.ServiceCallback<any>): Promise<Models.OperationResultsGetResponse> {
|
37
|
+
get(
|
38
|
+
locationName: string,
|
39
|
+
operationResultId: string,
|
40
|
+
options?: OperationResultsGetOptionalParams
|
41
|
+
): Promise<OperationResultsGetResponse> {
|
51
42
|
return this.client.sendOperationRequest(
|
52
|
-
{
|
53
|
-
|
54
|
-
|
55
|
-
options
|
56
|
-
},
|
57
|
-
getOperationSpec,
|
58
|
-
callback) as Promise<Models.OperationResultsGetResponse>;
|
43
|
+
{ locationName, operationResultId, options },
|
44
|
+
getOperationSpec
|
45
|
+
);
|
59
46
|
}
|
60
47
|
}
|
61
|
-
|
62
48
|
// Operation Specifications
|
63
|
-
const serializer =
|
64
|
-
|
49
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
50
|
+
|
51
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
52
|
+
path:
|
53
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",
|
65
54
|
httpMethod: "GET",
|
66
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",
|
67
|
-
urlParameters: [
|
68
|
-
Parameters.subscriptionId,
|
69
|
-
Parameters.locationName,
|
70
|
-
Parameters.operationResultId
|
71
|
-
],
|
72
|
-
queryParameters: [
|
73
|
-
Parameters.apiVersion
|
74
|
-
],
|
75
|
-
headerParameters: [
|
76
|
-
Parameters.acceptLanguage
|
77
|
-
],
|
78
55
|
responses: {
|
79
56
|
200: {
|
80
57
|
bodyMapper: Mappers.OperationResultsDescription
|
@@ -86,5 +63,13 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
86
63
|
bodyMapper: Mappers.ErrorDetails
|
87
64
|
}
|
88
65
|
},
|
66
|
+
queryParameters: [Parameters.apiVersion],
|
67
|
+
urlParameters: [
|
68
|
+
Parameters.$host,
|
69
|
+
Parameters.subscriptionId,
|
70
|
+
Parameters.locationName,
|
71
|
+
Parameters.operationResultId
|
72
|
+
],
|
73
|
+
headerParameters: [Parameters.accept],
|
89
74
|
serializer
|
90
75
|
};
|
@@ -1,95 +1,111 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
14
13
|
import * as Parameters from "../models/parameters";
|
15
|
-
import {
|
14
|
+
import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
|
15
|
+
import {
|
16
|
+
Operation,
|
17
|
+
OperationsListNextOptionalParams,
|
18
|
+
OperationsListOptionalParams,
|
19
|
+
OperationsListResponse,
|
20
|
+
OperationsListNextResponse
|
21
|
+
} from "../models";
|
16
22
|
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
24
|
+
/** Class containing Operations operations. */
|
25
|
+
export class OperationsImpl implements Operations {
|
26
|
+
private readonly client: HealthcareApisManagementClient;
|
20
27
|
|
21
28
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
29
|
+
* Initialize a new instance of the class Operations class.
|
30
|
+
* @param client Reference to the service client
|
24
31
|
*/
|
25
|
-
constructor(client:
|
32
|
+
constructor(client: HealthcareApisManagementClient) {
|
26
33
|
this.client = client;
|
27
34
|
}
|
28
35
|
|
29
36
|
/**
|
30
37
|
* Lists all of the available Healthcare service REST API operations.
|
31
|
-
* @param
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
38
|
+
* @param options The options parameters.
|
33
39
|
*/
|
34
|
-
list(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
45
|
-
return this.client.sendOperationRequest(
|
46
|
-
{
|
47
|
-
options
|
40
|
+
public list(
|
41
|
+
options?: OperationsListOptionalParams
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
43
|
+
const iter = this.listPagingAll(options);
|
44
|
+
return {
|
45
|
+
next() {
|
46
|
+
return iter.next();
|
47
|
+
},
|
48
|
+
[Symbol.asyncIterator]() {
|
49
|
+
return this;
|
48
50
|
},
|
49
|
-
|
50
|
-
|
51
|
+
byPage: () => {
|
52
|
+
return this.listPagingPage(options);
|
53
|
+
}
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
private async *listPagingPage(
|
58
|
+
options?: OperationsListOptionalParams
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
60
|
+
let result = await this._list(options);
|
61
|
+
yield result.value || [];
|
62
|
+
let continuationToken = result.nextLink;
|
63
|
+
while (continuationToken) {
|
64
|
+
result = await this._listNext(continuationToken, options);
|
65
|
+
continuationToken = result.nextLink;
|
66
|
+
yield result.value || [];
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
private async *listPagingAll(
|
71
|
+
options?: OperationsListOptionalParams
|
72
|
+
): AsyncIterableIterator<Operation> {
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
74
|
+
yield* page;
|
75
|
+
}
|
51
76
|
}
|
52
77
|
|
53
78
|
/**
|
54
79
|
* Lists all of the available Healthcare service REST API operations.
|
55
|
-
* @param
|
56
|
-
* @param [options] The optional parameters
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
58
|
-
*/
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
60
|
-
/**
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
62
|
-
* @param callback The callback
|
80
|
+
* @param options The options parameters.
|
63
81
|
*/
|
64
|
-
|
82
|
+
private _list(
|
83
|
+
options?: OperationsListOptionalParams
|
84
|
+
): Promise<OperationsListResponse> {
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
86
|
+
}
|
87
|
+
|
65
88
|
/**
|
66
|
-
*
|
67
|
-
* @param
|
68
|
-
* @param
|
89
|
+
* ListNext
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
91
|
+
* @param options The options parameters.
|
69
92
|
*/
|
70
|
-
|
71
|
-
|
93
|
+
private _listNext(
|
94
|
+
nextLink: string,
|
95
|
+
options?: OperationsListNextOptionalParams
|
96
|
+
): Promise<OperationsListNextResponse> {
|
72
97
|
return this.client.sendOperationRequest(
|
73
|
-
{
|
74
|
-
|
75
|
-
|
76
|
-
},
|
77
|
-
listNextOperationSpec,
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
98
|
+
{ nextLink, options },
|
99
|
+
listNextOperationSpec
|
100
|
+
);
|
79
101
|
}
|
80
102
|
}
|
81
|
-
|
82
103
|
// Operation Specifications
|
83
|
-
const serializer =
|
84
|
-
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
105
|
+
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
107
|
+
path: "/providers/Microsoft.HealthcareApis/operations",
|
85
108
|
httpMethod: "GET",
|
86
|
-
path: "providers/Microsoft.HealthcareApis/operations",
|
87
|
-
queryParameters: [
|
88
|
-
Parameters.apiVersion
|
89
|
-
],
|
90
|
-
headerParameters: [
|
91
|
-
Parameters.acceptLanguage
|
92
|
-
],
|
93
109
|
responses: {
|
94
110
|
200: {
|
95
111
|
bodyMapper: Mappers.OperationListResult
|
@@ -98,19 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
98
114
|
bodyMapper: Mappers.ErrorDetails
|
99
115
|
}
|
100
116
|
},
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
118
|
+
urlParameters: [Parameters.$host],
|
119
|
+
headerParameters: [Parameters.accept],
|
101
120
|
serializer
|
102
121
|
};
|
103
|
-
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
105
|
-
httpMethod: "GET",
|
106
|
-
baseUrl: "https://management.azure.com",
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
107
123
|
path: "{nextLink}",
|
108
|
-
|
109
|
-
Parameters.nextPageLink
|
110
|
-
],
|
111
|
-
headerParameters: [
|
112
|
-
Parameters.acceptLanguage
|
113
|
-
],
|
124
|
+
httpMethod: "GET",
|
114
125
|
responses: {
|
115
126
|
200: {
|
116
127
|
bodyMapper: Mappers.OperationListResult
|
@@ -119,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
119
130
|
bodyMapper: Mappers.ErrorDetails
|
120
131
|
}
|
121
132
|
},
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
135
|
+
headerParameters: [Parameters.accept],
|
122
136
|
serializer
|
123
137
|
};
|