@azure/arm-attestation 1.0.0 → 2.0.1-alpha.20211230.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +72 -73
  4. package/dist/index.js +1319 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/attestationManagementClient.d.ts +20 -0
  9. package/dist-esm/src/attestationManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/attestationManagementClient.js +53 -0
  11. package/dist-esm/src/attestationManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +389 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +38 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +21 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +239 -164
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +15 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +138 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/attestationProviders.d.ts +65 -0
  29. package/dist-esm/src/operations/attestationProviders.d.ts.map +1 -0
  30. package/dist-esm/src/operations/attestationProviders.js +254 -0
  31. package/dist-esm/src/operations/attestationProviders.js.map +1 -0
  32. package/dist-esm/src/operations/index.d.ts +4 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/src/operations/index.js +11 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +18 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +46 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/privateEndpointConnections.d.ts +58 -0
  41. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  42. package/dist-esm/src/operations/privateEndpointConnections.js +216 -0
  43. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts +57 -0
  45. package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/attestationProviders.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/attestationProviders.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  53. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
  57. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  60. package/dist-esm/test/attestation_examples.d.ts +4 -0
  61. package/dist-esm/test/attestation_examples.d.ts.map +1 -0
  62. package/dist-esm/test/attestation_examples.js +94 -0
  63. package/dist-esm/test/attestation_examples.js.map +1 -0
  64. package/package.json +63 -21
  65. package/review/arm-attestation.api.md +346 -0
  66. package/rollup.config.js +181 -30
  67. package/src/attestationManagementClient.ts +74 -31
  68. package/src/index.ts +12 -0
  69. package/src/models/index.ts +299 -384
  70. package/src/models/mappers.ts +242 -162
  71. package/src/models/parameters.ts +106 -29
  72. package/src/operations/attestationProviders.ts +178 -315
  73. package/src/operations/index.ts +4 -5
  74. package/src/operations/operations.ts +29 -44
  75. package/src/operations/privateEndpointConnections.ts +277 -0
  76. package/src/operationsInterfaces/attestationProviders.ts +111 -0
  77. package/src/operationsInterfaces/index.ts +11 -0
  78. package/src/operationsInterfaces/operations.ts +21 -0
  79. package/src/operationsInterfaces/privateEndpointConnections.ts +78 -0
  80. package/tsconfig.json +3 -3
  81. package/types/arm-attestation.d.ts +565 -0
  82. package/types/tsdoc-metadata.json +11 -0
  83. package/dist/arm-attestation.js +0 -1105
  84. package/dist/arm-attestation.js.map +0 -1
  85. package/dist/arm-attestation.min.js +0 -1
  86. package/dist/arm-attestation.min.js.map +0 -1
  87. package/esm/attestationManagementClient.d.ts +0 -19
  88. package/esm/attestationManagementClient.d.ts.map +0 -1
  89. package/esm/attestationManagementClient.js +0 -34
  90. package/esm/attestationManagementClient.js.map +0 -1
  91. package/esm/attestationManagementClientContext.d.ts +0 -16
  92. package/esm/attestationManagementClientContext.d.ts.map +0 -1
  93. package/esm/attestationManagementClientContext.js +0 -56
  94. package/esm/attestationManagementClientContext.js.map +0 -1
  95. package/esm/models/attestationProvidersMappers.d.ts +0 -2
  96. package/esm/models/attestationProvidersMappers.d.ts.map +0 -1
  97. package/esm/models/attestationProvidersMappers.js +0 -9
  98. package/esm/models/attestationProvidersMappers.js.map +0 -1
  99. package/esm/models/index.d.ts +0 -492
  100. package/esm/models/index.d.ts.map +0 -1
  101. package/esm/models/index.js +0 -8
  102. package/esm/models/index.js.map +0 -1
  103. package/esm/models/mappers.d.ts +0 -19
  104. package/esm/models/mappers.d.ts.map +0 -1
  105. package/esm/models/mappers.js.map +0 -1
  106. package/esm/models/operationsMappers.d.ts +0 -2
  107. package/esm/models/operationsMappers.d.ts.map +0 -1
  108. package/esm/models/operationsMappers.js +0 -9
  109. package/esm/models/operationsMappers.js.map +0 -1
  110. package/esm/models/parameters.d.ts +0 -8
  111. package/esm/models/parameters.d.ts.map +0 -1
  112. package/esm/models/parameters.js +0 -81
  113. package/esm/models/parameters.js.map +0 -1
  114. package/esm/operations/attestationProviders.d.ts +0 -169
  115. package/esm/operations/attestationProviders.d.ts.map +0 -1
  116. package/esm/operations/attestationProviders.js +0 -277
  117. package/esm/operations/attestationProviders.js.map +0 -1
  118. package/esm/operations/index.d.ts +0 -3
  119. package/esm/operations/index.d.ts.map +0 -1
  120. package/esm/operations/index.js +0 -12
  121. package/esm/operations/index.js.map +0 -1
  122. package/esm/operations/operations.d.ts +0 -28
  123. package/esm/operations/operations.d.ts.map +0 -1
  124. package/esm/operations/operations.js +0 -51
  125. package/esm/operations/operations.js.map +0 -1
  126. package/src/attestationManagementClientContext.ts +0 -62
  127. package/src/models/attestationProvidersMappers.ts +0 -24
  128. package/src/models/operationsMappers.ts +0 -15
@@ -1,67 +1,49 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
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 * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/operationsMappers";
9
+ import { Operations } 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 { AttestationManagementClientContext } from "../attestationManagementClientContext";
13
+ import { AttestationManagementClient } from "../attestationManagementClient";
14
+ import {
15
+ OperationsListOptionalParams,
16
+ OperationsListResponse
17
+ } from "../models";
16
18
 
17
- /** Class representing a Operations. */
18
- export class Operations {
19
- private readonly client: AttestationManagementClientContext;
19
+ /** Class containing Operations operations. */
20
+ export class OperationsImpl implements Operations {
21
+ private readonly client: AttestationManagementClient;
20
22
 
21
23
  /**
22
- * Create a Operations.
23
- * @param {AttestationManagementClientContext} client Reference to the service client.
24
+ * Initialize a new instance of the class Operations class.
25
+ * @param client Reference to the service client
24
26
  */
25
- constructor(client: AttestationManagementClientContext) {
27
+ constructor(client: AttestationManagementClient) {
26
28
  this.client = client;
27
29
  }
28
30
 
29
31
  /**
30
32
  * Lists all of the available Azure attestation operations.
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.OperationsListResponse>
33
+ * @param options The options parameters.
33
34
  */
34
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
35
- /**
36
- * @param callback The callback
37
- */
38
- list(callback: msRest.ServiceCallback<Models.OperationList>): void;
39
- /**
40
- * @param options The optional parameters
41
- * @param callback The callback
42
- */
43
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationList>): void;
44
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationList>, callback?: msRest.ServiceCallback<Models.OperationList>): Promise<Models.OperationsListResponse> {
45
- return this.client.sendOperationRequest(
46
- {
47
- options
48
- },
49
- listOperationSpec,
50
- callback) as Promise<Models.OperationsListResponse>;
35
+ list(
36
+ options?: OperationsListOptionalParams
37
+ ): Promise<OperationsListResponse> {
38
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
51
39
  }
52
40
  }
53
-
54
41
  // Operation Specifications
55
- const serializer = new msRest.Serializer(Mappers);
56
- const listOperationSpec: msRest.OperationSpec = {
42
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
43
+
44
+ const listOperationSpec: coreClient.OperationSpec = {
45
+ path: "/providers/Microsoft.Attestation/operations",
57
46
  httpMethod: "GET",
58
- path: "providers/Microsoft.Attestation/operations",
59
- queryParameters: [
60
- Parameters.apiVersion
61
- ],
62
- headerParameters: [
63
- Parameters.acceptLanguage
64
- ],
65
47
  responses: {
66
48
  200: {
67
49
  bodyMapper: Mappers.OperationList
@@ -70,5 +52,8 @@ const listOperationSpec: msRest.OperationSpec = {
70
52
  bodyMapper: Mappers.CloudError
71
53
  }
72
54
  },
55
+ queryParameters: [Parameters.apiVersion],
56
+ urlParameters: [Parameters.$host],
57
+ headerParameters: [Parameters.accept],
73
58
  serializer
74
59
  };
@@ -0,0 +1,277 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { AttestationManagementClient } from "../attestationManagementClient";
15
+ import {
16
+ PrivateEndpointConnection,
17
+ PrivateEndpointConnectionsListOptionalParams,
18
+ PrivateEndpointConnectionsListResponse,
19
+ PrivateEndpointConnectionsGetOptionalParams,
20
+ PrivateEndpointConnectionsGetResponse,
21
+ PrivateEndpointConnectionsCreateOptionalParams,
22
+ PrivateEndpointConnectionsCreateResponse,
23
+ PrivateEndpointConnectionsDeleteOptionalParams
24
+ } from "../models";
25
+
26
+ /// <reference lib="esnext.asynciterable" />
27
+ /** Class containing PrivateEndpointConnections operations. */
28
+ export class PrivateEndpointConnectionsImpl
29
+ implements PrivateEndpointConnections {
30
+ private readonly client: AttestationManagementClient;
31
+
32
+ /**
33
+ * Initialize a new instance of the class PrivateEndpointConnections class.
34
+ * @param client Reference to the service client
35
+ */
36
+ constructor(client: AttestationManagementClient) {
37
+ this.client = client;
38
+ }
39
+
40
+ /**
41
+ * List all the private endpoint connections associated with the attestation provider.
42
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
43
+ * @param providerName The name of the attestation provider.
44
+ * @param options The options parameters.
45
+ */
46
+ public list(
47
+ resourceGroupName: string,
48
+ providerName: string,
49
+ options?: PrivateEndpointConnectionsListOptionalParams
50
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
51
+ const iter = this.listPagingAll(resourceGroupName, providerName, options);
52
+ return {
53
+ next() {
54
+ return iter.next();
55
+ },
56
+ [Symbol.asyncIterator]() {
57
+ return this;
58
+ },
59
+ byPage: () => {
60
+ return this.listPagingPage(resourceGroupName, providerName, options);
61
+ }
62
+ };
63
+ }
64
+
65
+ private async *listPagingPage(
66
+ resourceGroupName: string,
67
+ providerName: string,
68
+ options?: PrivateEndpointConnectionsListOptionalParams
69
+ ): AsyncIterableIterator<PrivateEndpointConnection[]> {
70
+ let result = await this._list(resourceGroupName, providerName, options);
71
+ yield result.value || [];
72
+ }
73
+
74
+ private async *listPagingAll(
75
+ resourceGroupName: string,
76
+ providerName: string,
77
+ options?: PrivateEndpointConnectionsListOptionalParams
78
+ ): AsyncIterableIterator<PrivateEndpointConnection> {
79
+ for await (const page of this.listPagingPage(
80
+ resourceGroupName,
81
+ providerName,
82
+ options
83
+ )) {
84
+ yield* page;
85
+ }
86
+ }
87
+
88
+ /**
89
+ * List all the private endpoint connections associated with the attestation provider.
90
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
+ * @param providerName The name of the attestation provider.
92
+ * @param options The options parameters.
93
+ */
94
+ private _list(
95
+ resourceGroupName: string,
96
+ providerName: string,
97
+ options?: PrivateEndpointConnectionsListOptionalParams
98
+ ): Promise<PrivateEndpointConnectionsListResponse> {
99
+ return this.client.sendOperationRequest(
100
+ { resourceGroupName, providerName, options },
101
+ listOperationSpec
102
+ );
103
+ }
104
+
105
+ /**
106
+ * Gets the specified private endpoint connection associated with the attestation provider.
107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
108
+ * @param providerName The name of the attestation provider.
109
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
110
+ * Azure resource
111
+ * @param options The options parameters.
112
+ */
113
+ get(
114
+ resourceGroupName: string,
115
+ providerName: string,
116
+ privateEndpointConnectionName: string,
117
+ options?: PrivateEndpointConnectionsGetOptionalParams
118
+ ): Promise<PrivateEndpointConnectionsGetResponse> {
119
+ return this.client.sendOperationRequest(
120
+ {
121
+ resourceGroupName,
122
+ providerName,
123
+ privateEndpointConnectionName,
124
+ options
125
+ },
126
+ getOperationSpec
127
+ );
128
+ }
129
+
130
+ /**
131
+ * Update the state of specified private endpoint connection associated with the attestation provider.
132
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
133
+ * @param providerName The name of the attestation provider.
134
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
135
+ * Azure resource
136
+ * @param properties The private endpoint connection properties.
137
+ * @param options The options parameters.
138
+ */
139
+ create(
140
+ resourceGroupName: string,
141
+ providerName: string,
142
+ privateEndpointConnectionName: string,
143
+ properties: PrivateEndpointConnection,
144
+ options?: PrivateEndpointConnectionsCreateOptionalParams
145
+ ): Promise<PrivateEndpointConnectionsCreateResponse> {
146
+ return this.client.sendOperationRequest(
147
+ {
148
+ resourceGroupName,
149
+ providerName,
150
+ privateEndpointConnectionName,
151
+ properties,
152
+ options
153
+ },
154
+ createOperationSpec
155
+ );
156
+ }
157
+
158
+ /**
159
+ * Deletes the specified private endpoint connection associated with the attestation provider.
160
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
161
+ * @param providerName The name of the attestation provider.
162
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
163
+ * Azure resource
164
+ * @param options The options parameters.
165
+ */
166
+ delete(
167
+ resourceGroupName: string,
168
+ providerName: string,
169
+ privateEndpointConnectionName: string,
170
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
171
+ ): Promise<void> {
172
+ return this.client.sendOperationRequest(
173
+ {
174
+ resourceGroupName,
175
+ providerName,
176
+ privateEndpointConnectionName,
177
+ options
178
+ },
179
+ deleteOperationSpec
180
+ );
181
+ }
182
+ }
183
+ // Operation Specifications
184
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
185
+
186
+ const listOperationSpec: coreClient.OperationSpec = {
187
+ path:
188
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections",
189
+ httpMethod: "GET",
190
+ responses: {
191
+ 200: {
192
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
193
+ },
194
+ default: {
195
+ bodyMapper: Mappers.CloudError
196
+ }
197
+ },
198
+ queryParameters: [Parameters.apiVersion],
199
+ urlParameters: [
200
+ Parameters.$host,
201
+ Parameters.subscriptionId,
202
+ Parameters.resourceGroupName,
203
+ Parameters.providerName1
204
+ ],
205
+ headerParameters: [Parameters.accept],
206
+ serializer
207
+ };
208
+ const getOperationSpec: coreClient.OperationSpec = {
209
+ path:
210
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
211
+ httpMethod: "GET",
212
+ responses: {
213
+ 200: {
214
+ bodyMapper: Mappers.PrivateEndpointConnection
215
+ },
216
+ default: {
217
+ bodyMapper: Mappers.CloudError
218
+ }
219
+ },
220
+ queryParameters: [Parameters.apiVersion],
221
+ urlParameters: [
222
+ Parameters.$host,
223
+ Parameters.subscriptionId,
224
+ Parameters.resourceGroupName,
225
+ Parameters.providerName1,
226
+ Parameters.privateEndpointConnectionName
227
+ ],
228
+ headerParameters: [Parameters.accept],
229
+ serializer
230
+ };
231
+ const createOperationSpec: coreClient.OperationSpec = {
232
+ path:
233
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
234
+ httpMethod: "PUT",
235
+ responses: {
236
+ 200: {
237
+ bodyMapper: Mappers.PrivateEndpointConnection
238
+ },
239
+ default: {
240
+ bodyMapper: Mappers.CloudError
241
+ }
242
+ },
243
+ requestBody: Parameters.properties,
244
+ queryParameters: [Parameters.apiVersion],
245
+ urlParameters: [
246
+ Parameters.$host,
247
+ Parameters.subscriptionId,
248
+ Parameters.resourceGroupName,
249
+ Parameters.providerName1,
250
+ Parameters.privateEndpointConnectionName
251
+ ],
252
+ headerParameters: [Parameters.accept, Parameters.contentType],
253
+ mediaType: "json",
254
+ serializer
255
+ };
256
+ const deleteOperationSpec: coreClient.OperationSpec = {
257
+ path:
258
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
259
+ httpMethod: "DELETE",
260
+ responses: {
261
+ 200: {},
262
+ 204: {},
263
+ default: {
264
+ bodyMapper: Mappers.CloudError
265
+ }
266
+ },
267
+ queryParameters: [Parameters.apiVersion],
268
+ urlParameters: [
269
+ Parameters.$host,
270
+ Parameters.subscriptionId,
271
+ Parameters.resourceGroupName,
272
+ Parameters.providerName1,
273
+ Parameters.privateEndpointConnectionName
274
+ ],
275
+ headerParameters: [Parameters.accept],
276
+ serializer
277
+ };
@@ -0,0 +1,111 @@
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
+
9
+ import {
10
+ AttestationProvidersGetOptionalParams,
11
+ AttestationProvidersGetResponse,
12
+ AttestationServiceCreationParams,
13
+ AttestationProvidersCreateOptionalParams,
14
+ AttestationProvidersCreateResponse,
15
+ AttestationServicePatchParams,
16
+ AttestationProvidersUpdateOptionalParams,
17
+ AttestationProvidersUpdateResponse,
18
+ AttestationProvidersDeleteOptionalParams,
19
+ AttestationProvidersListOptionalParams,
20
+ AttestationProvidersListResponse,
21
+ AttestationProvidersListByResourceGroupOptionalParams,
22
+ AttestationProvidersListByResourceGroupResponse,
23
+ AttestationProvidersListDefaultOptionalParams,
24
+ AttestationProvidersListDefaultResponse,
25
+ AttestationProvidersGetDefaultByLocationOptionalParams,
26
+ AttestationProvidersGetDefaultByLocationResponse
27
+ } from "../models";
28
+
29
+ /** Interface representing a AttestationProviders. */
30
+ export interface AttestationProviders {
31
+ /**
32
+ * Get the status of Attestation Provider.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param providerName Name of the attestation provider.
35
+ * @param options The options parameters.
36
+ */
37
+ get(
38
+ resourceGroupName: string,
39
+ providerName: string,
40
+ options?: AttestationProvidersGetOptionalParams
41
+ ): Promise<AttestationProvidersGetResponse>;
42
+ /**
43
+ * Creates a new Attestation Provider.
44
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
+ * @param providerName Name of the attestation provider.
46
+ * @param creationParams Client supplied parameters.
47
+ * @param options The options parameters.
48
+ */
49
+ create(
50
+ resourceGroupName: string,
51
+ providerName: string,
52
+ creationParams: AttestationServiceCreationParams,
53
+ options?: AttestationProvidersCreateOptionalParams
54
+ ): Promise<AttestationProvidersCreateResponse>;
55
+ /**
56
+ * Updates the Attestation Provider.
57
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
58
+ * @param providerName Name of the attestation provider.
59
+ * @param updateParams Client supplied parameters.
60
+ * @param options The options parameters.
61
+ */
62
+ update(
63
+ resourceGroupName: string,
64
+ providerName: string,
65
+ updateParams: AttestationServicePatchParams,
66
+ options?: AttestationProvidersUpdateOptionalParams
67
+ ): Promise<AttestationProvidersUpdateResponse>;
68
+ /**
69
+ * Delete Attestation Service.
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param providerName Name of the attestation service
72
+ * @param options The options parameters.
73
+ */
74
+ delete(
75
+ resourceGroupName: string,
76
+ providerName: string,
77
+ options?: AttestationProvidersDeleteOptionalParams
78
+ ): Promise<void>;
79
+ /**
80
+ * Returns a list of attestation providers in a subscription.
81
+ * @param options The options parameters.
82
+ */
83
+ list(
84
+ options?: AttestationProvidersListOptionalParams
85
+ ): Promise<AttestationProvidersListResponse>;
86
+ /**
87
+ * Returns attestation providers list in a resource group.
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param options The options parameters.
90
+ */
91
+ listByResourceGroup(
92
+ resourceGroupName: string,
93
+ options?: AttestationProvidersListByResourceGroupOptionalParams
94
+ ): Promise<AttestationProvidersListByResourceGroupResponse>;
95
+ /**
96
+ * Get the default provider
97
+ * @param options The options parameters.
98
+ */
99
+ listDefault(
100
+ options?: AttestationProvidersListDefaultOptionalParams
101
+ ): Promise<AttestationProvidersListDefaultResponse>;
102
+ /**
103
+ * Get the default provider by location.
104
+ * @param location The location of the default provider.
105
+ * @param options The options parameters.
106
+ */
107
+ getDefaultByLocation(
108
+ location: string,
109
+ options?: AttestationProvidersGetDefaultByLocationOptionalParams
110
+ ): Promise<AttestationProvidersGetDefaultByLocationResponse>;
111
+ }
@@ -0,0 +1,11 @@
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
+
9
+ export * from "./operations";
10
+ export * from "./attestationProviders";
11
+ export * from "./privateEndpointConnections";
@@ -0,0 +1,21 @@
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
+
9
+ import {
10
+ OperationsListOptionalParams,
11
+ OperationsListResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a Operations. */
15
+ export interface Operations {
16
+ /**
17
+ * Lists all of the available Azure attestation operations.
18
+ * @param options The options parameters.
19
+ */
20
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
21
+ }
@@ -0,0 +1,78 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ PrivateEndpointConnection,
12
+ PrivateEndpointConnectionsListOptionalParams,
13
+ PrivateEndpointConnectionsGetOptionalParams,
14
+ PrivateEndpointConnectionsGetResponse,
15
+ PrivateEndpointConnectionsCreateOptionalParams,
16
+ PrivateEndpointConnectionsCreateResponse,
17
+ PrivateEndpointConnectionsDeleteOptionalParams
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a PrivateEndpointConnections. */
22
+ export interface PrivateEndpointConnections {
23
+ /**
24
+ * List all the private endpoint connections associated with the attestation provider.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param providerName The name of the attestation provider.
27
+ * @param options The options parameters.
28
+ */
29
+ list(
30
+ resourceGroupName: string,
31
+ providerName: string,
32
+ options?: PrivateEndpointConnectionsListOptionalParams
33
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
34
+ /**
35
+ * Gets the specified private endpoint connection associated with the attestation provider.
36
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
+ * @param providerName The name of the attestation provider.
38
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
39
+ * Azure resource
40
+ * @param options The options parameters.
41
+ */
42
+ get(
43
+ resourceGroupName: string,
44
+ providerName: string,
45
+ privateEndpointConnectionName: string,
46
+ options?: PrivateEndpointConnectionsGetOptionalParams
47
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
48
+ /**
49
+ * Update the state of specified private endpoint connection associated with the attestation provider.
50
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
51
+ * @param providerName The name of the attestation provider.
52
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
53
+ * Azure resource
54
+ * @param properties The private endpoint connection properties.
55
+ * @param options The options parameters.
56
+ */
57
+ create(
58
+ resourceGroupName: string,
59
+ providerName: string,
60
+ privateEndpointConnectionName: string,
61
+ properties: PrivateEndpointConnection,
62
+ options?: PrivateEndpointConnectionsCreateOptionalParams
63
+ ): Promise<PrivateEndpointConnectionsCreateResponse>;
64
+ /**
65
+ * Deletes the specified private endpoint connection associated with the attestation provider.
66
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
67
+ * @param providerName The name of the attestation provider.
68
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
69
+ * Azure resource
70
+ * @param options The options parameters.
71
+ */
72
+ delete(
73
+ resourceGroupName: string,
74
+ providerName: string,
75
+ privateEndpointConnectionName: string,
76
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
77
+ ): Promise<void>;
78
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }