@azure/arm-attestation 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -80
- package/dist/index.js +1319 -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/src/attestationManagementClient.d.ts +20 -0
- package/dist-esm/src/attestationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/attestationManagementClient.js +53 -0
- package/dist-esm/src/attestationManagementClient.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/models/index.d.ts +389 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +38 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +239 -164
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +138 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestationProviders.d.ts +65 -0
- package/dist-esm/src/operations/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operations/attestationProviders.js +254 -0
- package/dist-esm/src/operations/attestationProviders.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +58 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +216 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.js +9 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -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 +41 -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/test/attestation_examples.d.ts +4 -0
- package/dist-esm/test/attestation_examples.d.ts.map +1 -0
- package/dist-esm/test/attestation_examples.js +94 -0
- package/dist-esm/test/attestation_examples.js.map +1 -0
- package/package.json +63 -32
- package/review/arm-attestation.api.md +346 -0
- package/rollup.config.js +181 -30
- package/src/attestationManagementClient.ts +74 -37
- package/src/index.ts +12 -0
- package/src/models/index.ts +299 -384
- package/src/models/mappers.ts +242 -162
- package/src/models/parameters.ts +106 -29
- package/src/operations/attestationProviders.ts +178 -315
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +29 -44
- package/src/operations/privateEndpointConnections.ts +277 -0
- package/src/operationsInterfaces/attestationProviders.ts +111 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +78 -0
- package/tsconfig.json +3 -3
- package/types/arm-attestation.d.ts +565 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-attestation.js +0 -1115
- package/dist/arm-attestation.js.map +0 -1
- package/dist/arm-attestation.min.js +0 -1
- package/dist/arm-attestation.min.js.map +0 -1
- package/esm/attestationManagementClient.d.ts +0 -25
- package/esm/attestationManagementClient.d.ts.map +0 -1
- package/esm/attestationManagementClient.js +0 -39
- package/esm/attestationManagementClient.js.map +0 -1
- package/esm/attestationManagementClientContext.d.ts +0 -22
- package/esm/attestationManagementClientContext.d.ts.map +0 -1
- package/esm/attestationManagementClientContext.js +0 -61
- package/esm/attestationManagementClientContext.js.map +0 -1
- package/esm/models/attestationProvidersMappers.d.ts +0 -2
- package/esm/models/attestationProvidersMappers.d.ts.map +0 -1
- package/esm/models/attestationProvidersMappers.js +0 -9
- package/esm/models/attestationProvidersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -492
- 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 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.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 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -81
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/attestationProviders.d.ts +0 -169
- package/esm/operations/attestationProviders.d.ts.map +0 -1
- package/esm/operations/attestationProviders.js +0 -277
- package/esm/operations/attestationProviders.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/attestationManagementClientContext.ts +0 -68
- package/src/models/attestationProvidersMappers.ts +0 -24
- package/src/models/operationsMappers.ts +0 -15
|
@@ -0,0 +1,216 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
14
|
+
export class PrivateEndpointConnectionsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List all the private endpoint connections associated with the attestation provider.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param providerName The name of the attestation provider.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(resourceGroupName, providerName, options) {
|
|
29
|
+
const iter = this.listPagingAll(resourceGroupName, providerName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(resourceGroupName, providerName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(resourceGroupName, providerName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(resourceGroupName, providerName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
listPagingAll(resourceGroupName, providerName, options) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
50
|
+
var e_1, _a;
|
|
51
|
+
try {
|
|
52
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, providerName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
const page = _c.value;
|
|
54
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
58
|
+
finally {
|
|
59
|
+
try {
|
|
60
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
61
|
+
}
|
|
62
|
+
finally { if (e_1) throw e_1.error; }
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* List all the private endpoint connections associated with the attestation provider.
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param providerName The name of the attestation provider.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
_list(resourceGroupName, providerName, options) {
|
|
73
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, listOperationSpec);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Gets the specified private endpoint connection associated with the attestation provider.
|
|
77
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
|
+
* @param providerName The name of the attestation provider.
|
|
79
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
80
|
+
* Azure resource
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
get(resourceGroupName, providerName, privateEndpointConnectionName, options) {
|
|
84
|
+
return this.client.sendOperationRequest({
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
providerName,
|
|
87
|
+
privateEndpointConnectionName,
|
|
88
|
+
options
|
|
89
|
+
}, getOperationSpec);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Update the state of specified private endpoint connection associated with the attestation provider.
|
|
93
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
94
|
+
* @param providerName The name of the attestation provider.
|
|
95
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
96
|
+
* Azure resource
|
|
97
|
+
* @param properties The private endpoint connection properties.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
create(resourceGroupName, providerName, privateEndpointConnectionName, properties, options) {
|
|
101
|
+
return this.client.sendOperationRequest({
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
providerName,
|
|
104
|
+
privateEndpointConnectionName,
|
|
105
|
+
properties,
|
|
106
|
+
options
|
|
107
|
+
}, createOperationSpec);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Deletes the specified private endpoint connection associated with the attestation provider.
|
|
111
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
112
|
+
* @param providerName The name of the attestation provider.
|
|
113
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
114
|
+
* Azure resource
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
delete(resourceGroupName, providerName, privateEndpointConnectionName, options) {
|
|
118
|
+
return this.client.sendOperationRequest({
|
|
119
|
+
resourceGroupName,
|
|
120
|
+
providerName,
|
|
121
|
+
privateEndpointConnectionName,
|
|
122
|
+
options
|
|
123
|
+
}, deleteOperationSpec);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// Operation Specifications
|
|
127
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
128
|
+
const listOperationSpec = {
|
|
129
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections",
|
|
130
|
+
httpMethod: "GET",
|
|
131
|
+
responses: {
|
|
132
|
+
200: {
|
|
133
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
134
|
+
},
|
|
135
|
+
default: {
|
|
136
|
+
bodyMapper: Mappers.CloudError
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
queryParameters: [Parameters.apiVersion],
|
|
140
|
+
urlParameters: [
|
|
141
|
+
Parameters.$host,
|
|
142
|
+
Parameters.subscriptionId,
|
|
143
|
+
Parameters.resourceGroupName,
|
|
144
|
+
Parameters.providerName1
|
|
145
|
+
],
|
|
146
|
+
headerParameters: [Parameters.accept],
|
|
147
|
+
serializer
|
|
148
|
+
};
|
|
149
|
+
const getOperationSpec = {
|
|
150
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
151
|
+
httpMethod: "GET",
|
|
152
|
+
responses: {
|
|
153
|
+
200: {
|
|
154
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
155
|
+
},
|
|
156
|
+
default: {
|
|
157
|
+
bodyMapper: Mappers.CloudError
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
queryParameters: [Parameters.apiVersion],
|
|
161
|
+
urlParameters: [
|
|
162
|
+
Parameters.$host,
|
|
163
|
+
Parameters.subscriptionId,
|
|
164
|
+
Parameters.resourceGroupName,
|
|
165
|
+
Parameters.providerName1,
|
|
166
|
+
Parameters.privateEndpointConnectionName
|
|
167
|
+
],
|
|
168
|
+
headerParameters: [Parameters.accept],
|
|
169
|
+
serializer
|
|
170
|
+
};
|
|
171
|
+
const createOperationSpec = {
|
|
172
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
173
|
+
httpMethod: "PUT",
|
|
174
|
+
responses: {
|
|
175
|
+
200: {
|
|
176
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
177
|
+
},
|
|
178
|
+
default: {
|
|
179
|
+
bodyMapper: Mappers.CloudError
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
requestBody: Parameters.properties,
|
|
183
|
+
queryParameters: [Parameters.apiVersion],
|
|
184
|
+
urlParameters: [
|
|
185
|
+
Parameters.$host,
|
|
186
|
+
Parameters.subscriptionId,
|
|
187
|
+
Parameters.resourceGroupName,
|
|
188
|
+
Parameters.providerName1,
|
|
189
|
+
Parameters.privateEndpointConnectionName
|
|
190
|
+
],
|
|
191
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
192
|
+
mediaType: "json",
|
|
193
|
+
serializer
|
|
194
|
+
};
|
|
195
|
+
const deleteOperationSpec = {
|
|
196
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
197
|
+
httpMethod: "DELETE",
|
|
198
|
+
responses: {
|
|
199
|
+
200: {},
|
|
200
|
+
204: {},
|
|
201
|
+
default: {
|
|
202
|
+
bodyMapper: Mappers.CloudError
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
queryParameters: [Parameters.apiVersion],
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.providerName1,
|
|
211
|
+
Parameters.privateEndpointConnectionName
|
|
212
|
+
],
|
|
213
|
+
headerParameters: [Parameters.accept],
|
|
214
|
+
serializer
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;YACvE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAAsD;;YAEtD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,K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AAmM;IACrM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,mMAAmM;IACrM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AttestationProvidersGetOptionalParams, AttestationProvidersGetResponse, AttestationServiceCreationParams, AttestationProvidersCreateOptionalParams, AttestationProvidersCreateResponse, AttestationServicePatchParams, AttestationProvidersUpdateOptionalParams, AttestationProvidersUpdateResponse, AttestationProvidersDeleteOptionalParams, AttestationProvidersListOptionalParams, AttestationProvidersListResponse, AttestationProvidersListByResourceGroupOptionalParams, AttestationProvidersListByResourceGroupResponse, AttestationProvidersListDefaultOptionalParams, AttestationProvidersListDefaultResponse, AttestationProvidersGetDefaultByLocationOptionalParams, AttestationProvidersGetDefaultByLocationResponse } from "../models";
|
|
2
|
+
/** Interface representing a AttestationProviders. */
|
|
3
|
+
export interface AttestationProviders {
|
|
4
|
+
/**
|
|
5
|
+
* Get the status of Attestation Provider.
|
|
6
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7
|
+
* @param providerName Name of the attestation provider.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
get(resourceGroupName: string, providerName: string, options?: AttestationProvidersGetOptionalParams): Promise<AttestationProvidersGetResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Attestation Provider.
|
|
13
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
14
|
+
* @param providerName Name of the attestation provider.
|
|
15
|
+
* @param creationParams Client supplied parameters.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
create(resourceGroupName: string, providerName: string, creationParams: AttestationServiceCreationParams, options?: AttestationProvidersCreateOptionalParams): Promise<AttestationProvidersCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the Attestation Provider.
|
|
21
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
22
|
+
* @param providerName Name of the attestation provider.
|
|
23
|
+
* @param updateParams Client supplied parameters.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
update(resourceGroupName: string, providerName: string, updateParams: AttestationServicePatchParams, options?: AttestationProvidersUpdateOptionalParams): Promise<AttestationProvidersUpdateResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Delete Attestation Service.
|
|
29
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
30
|
+
* @param providerName Name of the attestation service
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
delete(resourceGroupName: string, providerName: string, options?: AttestationProvidersDeleteOptionalParams): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a list of attestation providers in a subscription.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
list(options?: AttestationProvidersListOptionalParams): Promise<AttestationProvidersListResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Returns attestation providers list in a resource group.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
listByResourceGroup(resourceGroupName: string, options?: AttestationProvidersListByResourceGroupOptionalParams): Promise<AttestationProvidersListByResourceGroupResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Get the default provider
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
listDefault(options?: AttestationProvidersListDefaultOptionalParams): Promise<AttestationProvidersListDefaultResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get the default provider by location.
|
|
52
|
+
* @param location The location of the default provider.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
getDefaultByLocation(location: string, options?: AttestationProvidersGetDefaultByLocationOptionalParams): Promise<AttestationProvidersGetDefaultByLocationResponse>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=attestationProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestationProviders.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/attestationProviders.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qCAAqC,EACrC,+BAA+B,EAC/B,gCAAgC,EAChC,wCAAwC,EACxC,kCAAkC,EAClC,6BAA6B,EAC7B,wCAAwC,EACxC,kCAAkC,EAClC,wCAAwC,EACxC,sCAAsC,EACtC,gCAAgC,EAChC,qDAAqD,EACrD,+CAA+C,EAC/C,6CAA6C,EAC7C,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,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=attestationProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestationProviders.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/attestationProviders.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
@@ -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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./attestationProviders";
|
|
10
|
+
export * from "./privateEndpointConnections";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models";
|
|
2
|
+
/** Interface representing a Operations. */
|
|
3
|
+
export interface Operations {
|
|
4
|
+
/**
|
|
5
|
+
* Lists all of the available Azure attestation operations.
|
|
6
|
+
* @param options The options parameters.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, PrivateEndpointConnectionsDeleteOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a PrivateEndpointConnections. */
|
|
4
|
+
export interface PrivateEndpointConnections {
|
|
5
|
+
/**
|
|
6
|
+
* List all the private endpoint connections associated with the attestation provider.
|
|
7
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8
|
+
* @param providerName The name of the attestation provider.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
list(resourceGroupName: string, providerName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
12
|
+
/**
|
|
13
|
+
* Gets the specified private endpoint connection associated with the attestation provider.
|
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15
|
+
* @param providerName The name of the attestation provider.
|
|
16
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
17
|
+
* Azure resource
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
get(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update the state of specified private endpoint connection associated with the attestation provider.
|
|
23
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
24
|
+
* @param providerName The name of the attestation provider.
|
|
25
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
26
|
+
* Azure resource
|
|
27
|
+
* @param properties The private endpoint connection properties.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
create(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise<PrivateEndpointConnectionsCreateResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Deletes the specified private endpoint connection associated with the attestation provider.
|
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
+
* @param providerName The name of the attestation provider.
|
|
35
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
36
|
+
* Azure resource
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
delete(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=privateEndpointConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,yBAAyB,EACzB,4CAA4C,EAC5C,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC9C,wCAAwC,EACxC,8CAA8C,EAC/C,MAAM,WAAW,CAAC;AAGnB,2DAA2D;AAC3D,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;IACzD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestation_examples.d.ts","sourceRoot":"","sources":["../../test/attestation_examples.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
|
|
10
|
+
import * as assert from "assert";
|
|
11
|
+
import { ClientSecretCredential } from "@azure/identity";
|
|
12
|
+
import { AttestationManagementClient } from "../src/attestationManagementClient";
|
|
13
|
+
const recorderEnvSetup = {
|
|
14
|
+
replaceableVariables: {
|
|
15
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
16
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
17
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
18
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
19
|
+
},
|
|
20
|
+
customizationsOnRecordings: [
|
|
21
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
22
|
+
],
|
|
23
|
+
queryParametersToSkip: []
|
|
24
|
+
};
|
|
25
|
+
export const testPollingOptions = {
|
|
26
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
27
|
+
};
|
|
28
|
+
describe("Attestation test", () => {
|
|
29
|
+
let recorder;
|
|
30
|
+
let subscriptionId;
|
|
31
|
+
let client;
|
|
32
|
+
let location;
|
|
33
|
+
let resourceGroup;
|
|
34
|
+
let providerName;
|
|
35
|
+
beforeEach(function () {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
recorder = record(this, recorderEnvSetup);
|
|
38
|
+
subscriptionId = env.SUBSCRIPTION_ID;
|
|
39
|
+
// This is an example of how the environment variables are used
|
|
40
|
+
const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
|
|
41
|
+
client = new AttestationManagementClient(credential, subscriptionId);
|
|
42
|
+
location = "eastus";
|
|
43
|
+
resourceGroup = "myjstest";
|
|
44
|
+
providerName = "myservicexxx";
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
afterEach(function () {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
yield recorder.stop();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
it("attestationProviders create test", function () {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const res = yield client.attestationProviders.create(resourceGroup, providerName, {
|
|
55
|
+
properties: {},
|
|
56
|
+
location: location
|
|
57
|
+
});
|
|
58
|
+
assert.equal(res.name, providerName);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
it("attestationProviders get test", function () {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const res = yield client.attestationProviders.get(resourceGroup, providerName);
|
|
64
|
+
assert.equal(res.name, providerName);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
it("attestationProviders list test", function () {
|
|
68
|
+
var _a;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const res = yield client.attestationProviders.listByResourceGroup(resourceGroup);
|
|
71
|
+
assert.notEqual((_a = res.value) === null || _a === void 0 ? void 0 : _a.length, 0);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
it("attestationProviders update test", function () {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const res = yield client.attestationProviders.update(resourceGroup, providerName, {
|
|
77
|
+
tags: {
|
|
78
|
+
tag1: "value1",
|
|
79
|
+
tag2: "value2"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
assert.equal(res.type, "Microsoft.Attestation/attestationProviders");
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
it("attestationProviders delete test", function () {
|
|
86
|
+
var _a;
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const resDelete = yield client.attestationProviders.delete(resourceGroup, providerName);
|
|
89
|
+
const res = yield client.attestationProviders.listByResourceGroup(resourceGroup);
|
|
90
|
+
assert.equal((_a = res.value) === null || _a === void 0 ? void 0 : _a.length, 0);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=attestation_examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestation_examples.js","sourceRoot":"","sources":["../../test/attestation_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAIN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,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