@azure/arm-policyinsights 4.1.1 → 5.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 -85
- package/dist/index.js +8639 -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/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/policyEventsMappers.js → dist-esm/src/index.js} +5 -2
- 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 +1870 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +50 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +60 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1287 -697
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +42 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +209 -162
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestations.d.ts +161 -0
- package/dist-esm/src/operations/attestations.d.ts.map +1 -0
- package/dist-esm/src/operations/attestations.js +747 -0
- package/dist-esm/src/operations/attestations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +16 -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/policyEvents.d.ts +208 -0
- package/dist-esm/src/operations/policyEvents.d.ts.map +1 -0
- package/dist-esm/src/operations/policyEvents.js +1097 -0
- package/dist-esm/src/operations/policyEvents.js.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts +38 -0
- package/dist-esm/src/operations/policyMetadataOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/policyMetadataOperations.js +144 -0
- package/dist-esm/src/operations/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts +27 -0
- package/dist-esm/src/operations/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operations/policyRestrictions.js +81 -0
- package/dist-esm/src/operations/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operations/policyStates.d.ts +361 -0
- package/dist-esm/src/operations/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operations/policyStates.js +1632 -0
- package/dist-esm/src/operations/policyStates.js.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts +99 -0
- package/dist-esm/src/operations/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/policyTrackedResources.js +458 -0
- package/dist-esm/src/operations/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operations/remediations.d.ts +304 -0
- package/dist-esm/src/operations/remediations.d.ts.map +1 -0
- package/dist-esm/src/operations/remediations.js +1377 -0
- package/dist-esm/src/operations/remediations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts +110 -0
- package/dist-esm/src/operationsInterfaces/attestations.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/attestations.js} +2 -8
- package/dist-esm/src/operationsInterfaces/attestations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +16 -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/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts +60 -0
- package/dist-esm/src/operationsInterfaces/policyEvents.d.ts.map +1 -0
- package/{src/models/policyEventsMappers.ts → dist-esm/src/operationsInterfaces/policyEvents.js} +2 -8
- package/dist-esm/src/operationsInterfaces/policyEvents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts.map +1 -0
- package/{src/models/policyMetadataOperationsMappers.ts → dist-esm/src/operationsInterfaces/policyMetadataOperations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyRestrictions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts +165 -0
- package/dist-esm/src/operationsInterfaces/policyStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/policyTrackedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts +168 -0
- package/dist-esm/src/operationsInterfaces/remediations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/remediations.js +9 -0
- package/dist-esm/src/operationsInterfaces/remediations.js.map +1 -0
- package/dist-esm/src/policyInsightsClient.d.ts +24 -0
- package/dist-esm/src/policyInsightsClient.d.ts.map +1 -0
- package/dist-esm/src/policyInsightsClient.js +57 -0
- package/dist-esm/src/policyInsightsClient.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-policyinsights.api.md +1525 -0
- package/rollup.config.js +181 -30
- package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1582 -2619
- package/src/models/mappers.ts +1454 -829
- package/src/models/parameters.ts +257 -163
- package/src/operations/attestations.ts +999 -0
- package/src/operations/index.ts +3 -2
- package/src/operations/operations.ts +27 -41
- package/src/operations/policyEvents.ts +1064 -600
- package/src/operations/policyMetadataOperations.ts +106 -113
- package/src/operations/policyRestrictions.ts +111 -0
- package/src/operations/policyStates.ts +1685 -1109
- package/src/operations/policyTrackedResources.ts +414 -293
- package/src/operations/remediations.ts +1201 -1264
- package/src/operationsInterfaces/attestations.ts +212 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/policyEvents.ts +109 -0
- package/src/operationsInterfaces/policyMetadataOperations.ts +36 -0
- package/src/operationsInterfaces/policyRestrictions.ts +40 -0
- package/src/operationsInterfaces/policyStates.ts +287 -0
- package/src/operationsInterfaces/policyTrackedResources.ts +55 -0
- package/src/operationsInterfaces/remediations.ts +310 -0
- package/src/policyInsightsClient.ts +91 -42
- package/tsconfig.json +20 -7
- package/types/arm-policyinsights.d.ts +2728 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-policyinsights.js +0 -5548
- package/dist/arm-policyinsights.js.map +0 -1
- package/dist/arm-policyinsights.min.js +0 -1
- package/dist/arm-policyinsights.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -3009
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -42
- 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.map +0 -1
- package/esm/models/parameters.d.ts +0 -32
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policyEventsMappers.d.ts +0 -2
- package/esm/models/policyEventsMappers.d.ts.map +0 -1
- package/esm/models/policyEventsMappers.js.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.d.ts +0 -2
- package/esm/models/policyMetadataOperationsMappers.d.ts.map +0 -1
- package/esm/models/policyMetadataOperationsMappers.js +0 -9
- package/esm/models/policyMetadataOperationsMappers.js.map +0 -1
- package/esm/models/policyStatesMappers.d.ts +0 -2
- package/esm/models/policyStatesMappers.d.ts.map +0 -1
- package/esm/models/policyStatesMappers.js +0 -9
- package/esm/models/policyStatesMappers.js.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.d.ts +0 -2
- package/esm/models/policyTrackedResourcesMappers.d.ts.map +0 -1
- package/esm/models/policyTrackedResourcesMappers.js +0 -9
- package/esm/models/policyTrackedResourcesMappers.js.map +0 -1
- package/esm/models/remediationsMappers.d.ts +0 -2
- package/esm/models/remediationsMappers.d.ts.map +0 -1
- package/esm/models/remediationsMappers.js +0 -9
- package/esm/models/remediationsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- 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 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/policyEvents.d.ts +0 -323
- package/esm/operations/policyEvents.d.ts.map +0 -1
- package/esm/operations/policyEvents.js +0 -572
- package/esm/operations/policyEvents.js.map +0 -1
- package/esm/operations/policyMetadataOperations.d.ts +0 -64
- package/esm/operations/policyMetadataOperations.d.ts.map +0 -1
- package/esm/operations/policyMetadataOperations.js +0 -108
- package/esm/operations/policyMetadataOperations.js.map +0 -1
- package/esm/operations/policyStates.d.ts +0 -588
- package/esm/operations/policyStates.d.ts.map +0 -1
- package/esm/operations/policyStates.js +0 -951
- package/esm/operations/policyStates.js.map +0 -1
- package/esm/operations/policyTrackedResources.d.ts +0 -160
- package/esm/operations/policyTrackedResources.d.ts.map +0 -1
- package/esm/operations/policyTrackedResources.js +0 -269
- package/esm/operations/policyTrackedResources.js.map +0 -1
- package/esm/operations/remediations.d.ts +0 -679
- package/esm/operations/remediations.d.ts.map +0 -1
- package/esm/operations/remediations.js +0 -1037
- package/esm/operations/remediations.js.map +0 -1
- package/esm/policyInsightsClient.d.ts +0 -28
- package/esm/policyInsightsClient.d.ts.map +0 -1
- package/esm/policyInsightsClient.js +0 -41
- package/esm/policyInsightsClient.js.map +0 -1
- package/esm/policyInsightsClientContext.d.ts +0 -19
- package/esm/policyInsightsClientContext.d.ts.map +0 -1
- package/esm/policyInsightsClientContext.js +0 -54
- package/esm/policyInsightsClientContext.js.map +0 -1
- package/src/models/policyStatesMappers.ts +0 -25
- package/src/models/policyTrackedResourcesMappers.ts +0 -16
- package/src/models/remediationsMappers.ts +0 -20
- package/src/policyInsightsClientContext.ts +0 -59
|
@@ -0,0 +1,747 @@
|
|
|
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, __awaiter } 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
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Attestations operations. */
|
|
16
|
+
export class AttestationsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Attestations class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets all attestations for the subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listForSubscription(options) {
|
|
29
|
+
const iter = this.listForSubscriptionPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listForSubscriptionPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listForSubscriptionPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listForSubscriptionPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listForSubscription(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listForSubscriptionNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listForSubscriptionPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listForSubscriptionPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listForSubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets all attestations for the resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listForResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listForResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listForResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listForResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listForResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listForResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listForResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Gets all attestations for a resource.
|
|
123
|
+
* @param resourceId Resource ID.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
listForResource(resourceId, options) {
|
|
127
|
+
const iter = this.listForResourcePagingAll(resourceId, options);
|
|
128
|
+
return {
|
|
129
|
+
next() {
|
|
130
|
+
return iter.next();
|
|
131
|
+
},
|
|
132
|
+
[Symbol.asyncIterator]() {
|
|
133
|
+
return this;
|
|
134
|
+
},
|
|
135
|
+
byPage: () => {
|
|
136
|
+
return this.listForResourcePagingPage(resourceId, options);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
listForResourcePagingPage(resourceId, options) {
|
|
141
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingPage_1() {
|
|
142
|
+
let result = yield __await(this._listForResource(resourceId, options));
|
|
143
|
+
yield yield __await(result.value || []);
|
|
144
|
+
let continuationToken = result.nextLink;
|
|
145
|
+
while (continuationToken) {
|
|
146
|
+
result = yield __await(this._listForResourceNext(resourceId, continuationToken, options));
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
yield yield __await(result.value || []);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
listForResourcePagingAll(resourceId, options) {
|
|
153
|
+
return __asyncGenerator(this, arguments, function* listForResourcePagingAll_1() {
|
|
154
|
+
var e_3, _a;
|
|
155
|
+
try {
|
|
156
|
+
for (var _b = __asyncValues(this.listForResourcePagingPage(resourceId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
157
|
+
const page = _c.value;
|
|
158
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
162
|
+
finally {
|
|
163
|
+
try {
|
|
164
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
165
|
+
}
|
|
166
|
+
finally { if (e_3) throw e_3.error; }
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Gets all attestations for the subscription.
|
|
172
|
+
* @param options The options parameters.
|
|
173
|
+
*/
|
|
174
|
+
_listForSubscription(options) {
|
|
175
|
+
return this.client.sendOperationRequest({ options }, listForSubscriptionOperationSpec);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Creates or updates an attestation at subscription scope.
|
|
179
|
+
* @param attestationName The name of the attestation.
|
|
180
|
+
* @param parameters The attestation parameters.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
beginCreateOrUpdateAtSubscription(attestationName, parameters, options) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return this.client.sendOperationRequest(args, spec);
|
|
187
|
+
});
|
|
188
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
var _a;
|
|
190
|
+
let currentRawResponse = undefined;
|
|
191
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
192
|
+
const callback = (rawResponse, flatResponse) => {
|
|
193
|
+
currentRawResponse = rawResponse;
|
|
194
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
195
|
+
};
|
|
196
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
198
|
+
return {
|
|
199
|
+
flatResponse,
|
|
200
|
+
rawResponse: {
|
|
201
|
+
statusCode: currentRawResponse.status,
|
|
202
|
+
body: currentRawResponse.parsedBody,
|
|
203
|
+
headers: currentRawResponse.headers.toJSON()
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
const lro = new LroImpl(sendOperation, { attestationName, parameters, options }, createOrUpdateAtSubscriptionOperationSpec);
|
|
208
|
+
return new LroEngine(lro, {
|
|
209
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
210
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Creates or updates an attestation at subscription scope.
|
|
216
|
+
* @param attestationName The name of the attestation.
|
|
217
|
+
* @param parameters The attestation parameters.
|
|
218
|
+
* @param options The options parameters.
|
|
219
|
+
*/
|
|
220
|
+
beginCreateOrUpdateAtSubscriptionAndWait(attestationName, parameters, options) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const poller = yield this.beginCreateOrUpdateAtSubscription(attestationName, parameters, options);
|
|
223
|
+
return poller.pollUntilDone();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Gets an existing attestation at subscription scope.
|
|
228
|
+
* @param attestationName The name of the attestation.
|
|
229
|
+
* @param options The options parameters.
|
|
230
|
+
*/
|
|
231
|
+
getAtSubscription(attestationName, options) {
|
|
232
|
+
return this.client.sendOperationRequest({ attestationName, options }, getAtSubscriptionOperationSpec);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Deletes an existing attestation at subscription scope.
|
|
236
|
+
* @param attestationName The name of the attestation.
|
|
237
|
+
* @param options The options parameters.
|
|
238
|
+
*/
|
|
239
|
+
deleteAtSubscription(attestationName, options) {
|
|
240
|
+
return this.client.sendOperationRequest({ attestationName, options }, deleteAtSubscriptionOperationSpec);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Gets all attestations for the resource group.
|
|
244
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
_listForResourceGroup(resourceGroupName, options) {
|
|
248
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listForResourceGroupOperationSpec);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Creates or updates an attestation at resource group scope.
|
|
252
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
|
+
* @param attestationName The name of the attestation.
|
|
254
|
+
* @param parameters The attestation parameters.
|
|
255
|
+
* @param options The options parameters.
|
|
256
|
+
*/
|
|
257
|
+
beginCreateOrUpdateAtResourceGroup(resourceGroupName, attestationName, parameters, options) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
return this.client.sendOperationRequest(args, spec);
|
|
261
|
+
});
|
|
262
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
var _a;
|
|
264
|
+
let currentRawResponse = undefined;
|
|
265
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
266
|
+
const callback = (rawResponse, flatResponse) => {
|
|
267
|
+
currentRawResponse = rawResponse;
|
|
268
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
269
|
+
};
|
|
270
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
271
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
272
|
+
return {
|
|
273
|
+
flatResponse,
|
|
274
|
+
rawResponse: {
|
|
275
|
+
statusCode: currentRawResponse.status,
|
|
276
|
+
body: currentRawResponse.parsedBody,
|
|
277
|
+
headers: currentRawResponse.headers.toJSON()
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
});
|
|
281
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, attestationName, parameters, options }, createOrUpdateAtResourceGroupOperationSpec);
|
|
282
|
+
return new LroEngine(lro, {
|
|
283
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
284
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Creates or updates an attestation at resource group scope.
|
|
290
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
291
|
+
* @param attestationName The name of the attestation.
|
|
292
|
+
* @param parameters The attestation parameters.
|
|
293
|
+
* @param options The options parameters.
|
|
294
|
+
*/
|
|
295
|
+
beginCreateOrUpdateAtResourceGroupAndWait(resourceGroupName, attestationName, parameters, options) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const poller = yield this.beginCreateOrUpdateAtResourceGroup(resourceGroupName, attestationName, parameters, options);
|
|
298
|
+
return poller.pollUntilDone();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Gets an existing attestation at resource group scope.
|
|
303
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
304
|
+
* @param attestationName The name of the attestation.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
getAtResourceGroup(resourceGroupName, attestationName, options) {
|
|
308
|
+
return this.client.sendOperationRequest({ resourceGroupName, attestationName, options }, getAtResourceGroupOperationSpec);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Deletes an existing attestation at resource group scope.
|
|
312
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
313
|
+
* @param attestationName The name of the attestation.
|
|
314
|
+
* @param options The options parameters.
|
|
315
|
+
*/
|
|
316
|
+
deleteAtResourceGroup(resourceGroupName, attestationName, options) {
|
|
317
|
+
return this.client.sendOperationRequest({ resourceGroupName, attestationName, options }, deleteAtResourceGroupOperationSpec);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Gets all attestations for a resource.
|
|
321
|
+
* @param resourceId Resource ID.
|
|
322
|
+
* @param options The options parameters.
|
|
323
|
+
*/
|
|
324
|
+
_listForResource(resourceId, options) {
|
|
325
|
+
return this.client.sendOperationRequest({ resourceId, options }, listForResourceOperationSpec);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Creates or updates an attestation at resource scope.
|
|
329
|
+
* @param resourceId Resource ID.
|
|
330
|
+
* @param attestationName The name of the attestation.
|
|
331
|
+
* @param parameters The attestation parameters.
|
|
332
|
+
* @param options The options parameters.
|
|
333
|
+
*/
|
|
334
|
+
beginCreateOrUpdateAtResource(resourceId, attestationName, parameters, options) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
337
|
+
return this.client.sendOperationRequest(args, spec);
|
|
338
|
+
});
|
|
339
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
var _a;
|
|
341
|
+
let currentRawResponse = undefined;
|
|
342
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
343
|
+
const callback = (rawResponse, flatResponse) => {
|
|
344
|
+
currentRawResponse = rawResponse;
|
|
345
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
346
|
+
};
|
|
347
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
348
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
349
|
+
return {
|
|
350
|
+
flatResponse,
|
|
351
|
+
rawResponse: {
|
|
352
|
+
statusCode: currentRawResponse.status,
|
|
353
|
+
body: currentRawResponse.parsedBody,
|
|
354
|
+
headers: currentRawResponse.headers.toJSON()
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
});
|
|
358
|
+
const lro = new LroImpl(sendOperation, { resourceId, attestationName, parameters, options }, createOrUpdateAtResourceOperationSpec);
|
|
359
|
+
return new LroEngine(lro, {
|
|
360
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
361
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Creates or updates an attestation at resource scope.
|
|
367
|
+
* @param resourceId Resource ID.
|
|
368
|
+
* @param attestationName The name of the attestation.
|
|
369
|
+
* @param parameters The attestation parameters.
|
|
370
|
+
* @param options The options parameters.
|
|
371
|
+
*/
|
|
372
|
+
beginCreateOrUpdateAtResourceAndWait(resourceId, attestationName, parameters, options) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
const poller = yield this.beginCreateOrUpdateAtResource(resourceId, attestationName, parameters, options);
|
|
375
|
+
return poller.pollUntilDone();
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Gets an existing attestation at resource scope.
|
|
380
|
+
* @param resourceId Resource ID.
|
|
381
|
+
* @param attestationName The name of the attestation.
|
|
382
|
+
* @param options The options parameters.
|
|
383
|
+
*/
|
|
384
|
+
getAtResource(resourceId, attestationName, options) {
|
|
385
|
+
return this.client.sendOperationRequest({ resourceId, attestationName, options }, getAtResourceOperationSpec);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Deletes an existing attestation at individual resource scope.
|
|
389
|
+
* @param resourceId Resource ID.
|
|
390
|
+
* @param attestationName The name of the attestation.
|
|
391
|
+
* @param options The options parameters.
|
|
392
|
+
*/
|
|
393
|
+
deleteAtResource(resourceId, attestationName, options) {
|
|
394
|
+
return this.client.sendOperationRequest({ resourceId, attestationName, options }, deleteAtResourceOperationSpec);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* ListForSubscriptionNext
|
|
398
|
+
* @param nextLink The nextLink from the previous successful call to the ListForSubscription method.
|
|
399
|
+
* @param options The options parameters.
|
|
400
|
+
*/
|
|
401
|
+
_listForSubscriptionNext(nextLink, options) {
|
|
402
|
+
return this.client.sendOperationRequest({ nextLink, options }, listForSubscriptionNextOperationSpec);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* ListForResourceGroupNext
|
|
406
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
407
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResourceGroup method.
|
|
408
|
+
* @param options The options parameters.
|
|
409
|
+
*/
|
|
410
|
+
_listForResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
411
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listForResourceGroupNextOperationSpec);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* ListForResourceNext
|
|
415
|
+
* @param resourceId Resource ID.
|
|
416
|
+
* @param nextLink The nextLink from the previous successful call to the ListForResource method.
|
|
417
|
+
* @param options The options parameters.
|
|
418
|
+
*/
|
|
419
|
+
_listForResourceNext(resourceId, nextLink, options) {
|
|
420
|
+
return this.client.sendOperationRequest({ resourceId, nextLink, options }, listForResourceNextOperationSpec);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
// Operation Specifications
|
|
424
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
425
|
+
const listForSubscriptionOperationSpec = {
|
|
426
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations",
|
|
427
|
+
httpMethod: "GET",
|
|
428
|
+
responses: {
|
|
429
|
+
200: {
|
|
430
|
+
bodyMapper: Mappers.AttestationListResult
|
|
431
|
+
},
|
|
432
|
+
default: {
|
|
433
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
437
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
438
|
+
headerParameters: [Parameters.accept],
|
|
439
|
+
serializer
|
|
440
|
+
};
|
|
441
|
+
const createOrUpdateAtSubscriptionOperationSpec = {
|
|
442
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
443
|
+
httpMethod: "PUT",
|
|
444
|
+
responses: {
|
|
445
|
+
200: {
|
|
446
|
+
bodyMapper: Mappers.Attestation
|
|
447
|
+
},
|
|
448
|
+
201: {
|
|
449
|
+
bodyMapper: Mappers.Attestation
|
|
450
|
+
},
|
|
451
|
+
202: {
|
|
452
|
+
bodyMapper: Mappers.Attestation
|
|
453
|
+
},
|
|
454
|
+
204: {
|
|
455
|
+
bodyMapper: Mappers.Attestation
|
|
456
|
+
},
|
|
457
|
+
default: {
|
|
458
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
requestBody: Parameters.parameters2,
|
|
462
|
+
queryParameters: [Parameters.apiVersion4],
|
|
463
|
+
urlParameters: [
|
|
464
|
+
Parameters.$host,
|
|
465
|
+
Parameters.subscriptionId,
|
|
466
|
+
Parameters.attestationName
|
|
467
|
+
],
|
|
468
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
469
|
+
mediaType: "json",
|
|
470
|
+
serializer
|
|
471
|
+
};
|
|
472
|
+
const getAtSubscriptionOperationSpec = {
|
|
473
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
474
|
+
httpMethod: "GET",
|
|
475
|
+
responses: {
|
|
476
|
+
200: {
|
|
477
|
+
bodyMapper: Mappers.Attestation
|
|
478
|
+
},
|
|
479
|
+
default: {
|
|
480
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
queryParameters: [Parameters.apiVersion4],
|
|
484
|
+
urlParameters: [
|
|
485
|
+
Parameters.$host,
|
|
486
|
+
Parameters.subscriptionId,
|
|
487
|
+
Parameters.attestationName
|
|
488
|
+
],
|
|
489
|
+
headerParameters: [Parameters.accept],
|
|
490
|
+
serializer
|
|
491
|
+
};
|
|
492
|
+
const deleteAtSubscriptionOperationSpec = {
|
|
493
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
494
|
+
httpMethod: "DELETE",
|
|
495
|
+
responses: {
|
|
496
|
+
200: {},
|
|
497
|
+
204: {},
|
|
498
|
+
default: {
|
|
499
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
queryParameters: [Parameters.apiVersion4],
|
|
503
|
+
urlParameters: [
|
|
504
|
+
Parameters.$host,
|
|
505
|
+
Parameters.subscriptionId,
|
|
506
|
+
Parameters.attestationName
|
|
507
|
+
],
|
|
508
|
+
headerParameters: [Parameters.accept],
|
|
509
|
+
serializer
|
|
510
|
+
};
|
|
511
|
+
const listForResourceGroupOperationSpec = {
|
|
512
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations",
|
|
513
|
+
httpMethod: "GET",
|
|
514
|
+
responses: {
|
|
515
|
+
200: {
|
|
516
|
+
bodyMapper: Mappers.AttestationListResult
|
|
517
|
+
},
|
|
518
|
+
default: {
|
|
519
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
523
|
+
urlParameters: [
|
|
524
|
+
Parameters.$host,
|
|
525
|
+
Parameters.subscriptionId,
|
|
526
|
+
Parameters.resourceGroupName1
|
|
527
|
+
],
|
|
528
|
+
headerParameters: [Parameters.accept],
|
|
529
|
+
serializer
|
|
530
|
+
};
|
|
531
|
+
const createOrUpdateAtResourceGroupOperationSpec = {
|
|
532
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
533
|
+
httpMethod: "PUT",
|
|
534
|
+
responses: {
|
|
535
|
+
200: {
|
|
536
|
+
bodyMapper: Mappers.Attestation
|
|
537
|
+
},
|
|
538
|
+
201: {
|
|
539
|
+
bodyMapper: Mappers.Attestation
|
|
540
|
+
},
|
|
541
|
+
202: {
|
|
542
|
+
bodyMapper: Mappers.Attestation
|
|
543
|
+
},
|
|
544
|
+
204: {
|
|
545
|
+
bodyMapper: Mappers.Attestation
|
|
546
|
+
},
|
|
547
|
+
default: {
|
|
548
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
requestBody: Parameters.parameters2,
|
|
552
|
+
queryParameters: [Parameters.apiVersion4],
|
|
553
|
+
urlParameters: [
|
|
554
|
+
Parameters.$host,
|
|
555
|
+
Parameters.subscriptionId,
|
|
556
|
+
Parameters.resourceGroupName1,
|
|
557
|
+
Parameters.attestationName
|
|
558
|
+
],
|
|
559
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
560
|
+
mediaType: "json",
|
|
561
|
+
serializer
|
|
562
|
+
};
|
|
563
|
+
const getAtResourceGroupOperationSpec = {
|
|
564
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
565
|
+
httpMethod: "GET",
|
|
566
|
+
responses: {
|
|
567
|
+
200: {
|
|
568
|
+
bodyMapper: Mappers.Attestation
|
|
569
|
+
},
|
|
570
|
+
default: {
|
|
571
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
queryParameters: [Parameters.apiVersion4],
|
|
575
|
+
urlParameters: [
|
|
576
|
+
Parameters.$host,
|
|
577
|
+
Parameters.subscriptionId,
|
|
578
|
+
Parameters.resourceGroupName1,
|
|
579
|
+
Parameters.attestationName
|
|
580
|
+
],
|
|
581
|
+
headerParameters: [Parameters.accept],
|
|
582
|
+
serializer
|
|
583
|
+
};
|
|
584
|
+
const deleteAtResourceGroupOperationSpec = {
|
|
585
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
586
|
+
httpMethod: "DELETE",
|
|
587
|
+
responses: {
|
|
588
|
+
200: {},
|
|
589
|
+
204: {},
|
|
590
|
+
default: {
|
|
591
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
queryParameters: [Parameters.apiVersion4],
|
|
595
|
+
urlParameters: [
|
|
596
|
+
Parameters.$host,
|
|
597
|
+
Parameters.subscriptionId,
|
|
598
|
+
Parameters.resourceGroupName1,
|
|
599
|
+
Parameters.attestationName
|
|
600
|
+
],
|
|
601
|
+
headerParameters: [Parameters.accept],
|
|
602
|
+
serializer
|
|
603
|
+
};
|
|
604
|
+
const listForResourceOperationSpec = {
|
|
605
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/attestations",
|
|
606
|
+
httpMethod: "GET",
|
|
607
|
+
responses: {
|
|
608
|
+
200: {
|
|
609
|
+
bodyMapper: Mappers.AttestationListResult
|
|
610
|
+
},
|
|
611
|
+
default: {
|
|
612
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
616
|
+
urlParameters: [Parameters.$host, Parameters.resourceId],
|
|
617
|
+
headerParameters: [Parameters.accept],
|
|
618
|
+
serializer
|
|
619
|
+
};
|
|
620
|
+
const createOrUpdateAtResourceOperationSpec = {
|
|
621
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
622
|
+
httpMethod: "PUT",
|
|
623
|
+
responses: {
|
|
624
|
+
200: {
|
|
625
|
+
bodyMapper: Mappers.Attestation
|
|
626
|
+
},
|
|
627
|
+
201: {
|
|
628
|
+
bodyMapper: Mappers.Attestation
|
|
629
|
+
},
|
|
630
|
+
202: {
|
|
631
|
+
bodyMapper: Mappers.Attestation
|
|
632
|
+
},
|
|
633
|
+
204: {
|
|
634
|
+
bodyMapper: Mappers.Attestation
|
|
635
|
+
},
|
|
636
|
+
default: {
|
|
637
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
requestBody: Parameters.parameters2,
|
|
641
|
+
queryParameters: [Parameters.apiVersion4],
|
|
642
|
+
urlParameters: [
|
|
643
|
+
Parameters.$host,
|
|
644
|
+
Parameters.resourceId,
|
|
645
|
+
Parameters.attestationName
|
|
646
|
+
],
|
|
647
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
648
|
+
mediaType: "json",
|
|
649
|
+
serializer
|
|
650
|
+
};
|
|
651
|
+
const getAtResourceOperationSpec = {
|
|
652
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
653
|
+
httpMethod: "GET",
|
|
654
|
+
responses: {
|
|
655
|
+
200: {
|
|
656
|
+
bodyMapper: Mappers.Attestation
|
|
657
|
+
},
|
|
658
|
+
default: {
|
|
659
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
queryParameters: [Parameters.apiVersion4],
|
|
663
|
+
urlParameters: [
|
|
664
|
+
Parameters.$host,
|
|
665
|
+
Parameters.resourceId,
|
|
666
|
+
Parameters.attestationName
|
|
667
|
+
],
|
|
668
|
+
headerParameters: [Parameters.accept],
|
|
669
|
+
serializer
|
|
670
|
+
};
|
|
671
|
+
const deleteAtResourceOperationSpec = {
|
|
672
|
+
path: "/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}",
|
|
673
|
+
httpMethod: "DELETE",
|
|
674
|
+
responses: {
|
|
675
|
+
200: {},
|
|
676
|
+
204: {},
|
|
677
|
+
default: {
|
|
678
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
queryParameters: [Parameters.apiVersion4],
|
|
682
|
+
urlParameters: [
|
|
683
|
+
Parameters.$host,
|
|
684
|
+
Parameters.resourceId,
|
|
685
|
+
Parameters.attestationName
|
|
686
|
+
],
|
|
687
|
+
headerParameters: [Parameters.accept],
|
|
688
|
+
serializer
|
|
689
|
+
};
|
|
690
|
+
const listForSubscriptionNextOperationSpec = {
|
|
691
|
+
path: "{nextLink}",
|
|
692
|
+
httpMethod: "GET",
|
|
693
|
+
responses: {
|
|
694
|
+
200: {
|
|
695
|
+
bodyMapper: Mappers.AttestationListResult
|
|
696
|
+
},
|
|
697
|
+
default: {
|
|
698
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
702
|
+
urlParameters: [
|
|
703
|
+
Parameters.$host,
|
|
704
|
+
Parameters.subscriptionId,
|
|
705
|
+
Parameters.nextLink
|
|
706
|
+
],
|
|
707
|
+
headerParameters: [Parameters.accept],
|
|
708
|
+
serializer
|
|
709
|
+
};
|
|
710
|
+
const listForResourceGroupNextOperationSpec = {
|
|
711
|
+
path: "{nextLink}",
|
|
712
|
+
httpMethod: "GET",
|
|
713
|
+
responses: {
|
|
714
|
+
200: {
|
|
715
|
+
bodyMapper: Mappers.AttestationListResult
|
|
716
|
+
},
|
|
717
|
+
default: {
|
|
718
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
722
|
+
urlParameters: [
|
|
723
|
+
Parameters.$host,
|
|
724
|
+
Parameters.subscriptionId,
|
|
725
|
+
Parameters.nextLink,
|
|
726
|
+
Parameters.resourceGroupName1
|
|
727
|
+
],
|
|
728
|
+
headerParameters: [Parameters.accept],
|
|
729
|
+
serializer
|
|
730
|
+
};
|
|
731
|
+
const listForResourceNextOperationSpec = {
|
|
732
|
+
path: "{nextLink}",
|
|
733
|
+
httpMethod: "GET",
|
|
734
|
+
responses: {
|
|
735
|
+
200: {
|
|
736
|
+
bodyMapper: Mappers.AttestationListResult
|
|
737
|
+
},
|
|
738
|
+
default: {
|
|
739
|
+
bodyMapper: Mappers.ErrorResponseAutoGenerated2
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion4],
|
|
743
|
+
urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.nextLink],
|
|
744
|
+
headerParameters: [Parameters.accept],
|
|
745
|
+
serializer
|
|
746
|
+
};
|
|
747
|
+
//# sourceMappingURL=attestations.js.map
|